biocompute-objects / bco_api

The master repository for the JSON API.
MIT License
2 stars 1 forks source link

Model refactor (#280) #321

Closed HadleyKing closed 1 month ago

HadleyKing commented 1 month ago

Changes to be committed: modified: .gitignore deleted: bcodb/settings.py renamed: bcodb/init.py -> config/init.py renamed: bcodb/asgi.py -> config/asgi.py renamed: bcodb/fixtures/local_data.json -> config/fixtures/local_data.json renamed: bcodb/fixtures/test_portal.json -> config/fixtures/test_portal.json renamed: bcodb/urls.py -> config/urls.py renamed: bcodb/wsgi.py -> config/wsgi.py modified: manage.py

changed model behind /api/accounts/new/ Changes to be committed: modified: api/admin.py new file: api/migrations/0006_delete_new_users.py modified: api/models.py deleted: api/scripts/method_specific/POST_api_accounts_new.py modified: api/urls.py modified: api/views.py modified: authentication/admin.py modified: authentication/apis.py new file: authentication/migrations/0002_newuser.py modified: authentication/models.py modified: authentication/selectors.py modified: authentication/services.py modified: tests/fixtures/test_data.json modified: tests/test_views/test_api_account_activate.py modified: tests/test_views/test_api_account_new.py

Changes to be committed: modified: authentication/apis.py new file: docs/refactor.md

On branch account_authorization Changes to be committed: modified: api/urls.py modified: api/views.py modified: authentication/apis.py modified: authentication/selectors.py modified: authentication/services.py modified: authentication/urls.py

On branch account_authorization Changes to be committed: modified: api/urls.py modified: api/views.py modified: authentication/apis.py modified: authentication/selectors.py modified: authentication/services.py modified: authentication/urls.py

Changes not staged for commit: modified: authentication/apis.py modified: authentication/migrations/0001_initial.py deleted: authentication/migrations/0002_newuser.py modified: authentication/services.py modified: docs/refactor.md modified: search/selectors.py modified: tests/fixtures/test_data.json deleted: tests/test_database.py deleted: tests/test_fixtures.py deleted: tests/test_models modified: tests/test_views/test_api_account_activate.py deleted: tests/test_views/test_api_accounts_describe.py modified: tests/test_views/test_api_auth_add.py modified: tests/test_views/test_api_auth_reset_token.py deleted: tests/test_views/test_api_groups_group_info.py deleted: tests/test_views/test_api_groups_modify.py deleted: tests/test_views/test_api_objects.py deleted: tests/test_views/test_api_objects_drafts_create.py deleted: tests/test_views/test_api_objects_drafts_modify.py deleted: tests/test_views/test_api_objects_drafts_publish.py deleted: tests/test_views/test_api_objects_search.py deleted: tests/test_views/test_api_objects_validate.py deleted: tests/test_views/test_api_prefixes_create.py deleted: tests/test_views/test_api_prefixes_token.py deleted: tests/test_views/test_get_object_id_draft.py deleted: tests/test_views/test_get_objectid.py deleted: tests/test_views/test_published_object_by_id.py modified: token.json

Changes to be committed: new file: biocompute/init.py new file: biocompute/admin.py new file: biocompute/apis.py new file: biocompute/migrations/init.py new file: biocompute/models.py new file: biocompute/selectors.py new file: biocompute/services.py new file: biocompute/urls.py

Changes to be committed: new file: prefix/init.py new file: prefix/admin.py new file: prefix/apis.py new file: prefix/apps.py new file: prefix/migrations/init.py new file: prefix/models.py new file: prefix/selectors.py new file: prefix/services.py new file: prefix/urls.py

Changes to be committed: modified: .gitignore modified: authentication/apis.py modified: authentication/migrations/0001_initial.py deleted: authentication/migrations/0002_newuser.py modified: authentication/services.py new file: biocompute/migrations/0001_initial.py modified: docs/refactor.md new file: prefix/migrations/0001_initial.py modified: search/selectors.py new file: test.json new file: tests/fixtures/old_test_data.json modified: tests/fixtures/test_data.json deleted: tests/test_database.py deleted: tests/test_fixtures.py deleted: tests/test_models modified: tests/test_views/test_api_account_activate.py renamed: tests/test_views/test_api_accounts_describe.py -> tests/test_views/test_api_account_describe.py modified: tests/test_views/test_api_auth_add.py modified: tests/test_views/test_api_auth_reset_token.py deleted: tests/test_views/test_api_groups_group_info.py deleted: tests/test_views/test_api_groups_modify.py deleted: tests/test_views/test_api_objects.py deleted: tests/test_views/test_api_objects_drafts_create.py deleted: tests/test_views/test_api_objects_drafts_modify.py deleted: tests/test_views/test_api_objects_drafts_publish.py deleted: tests/test_views/test_api_objects_search.py deleted: tests/test_views/test_api_objects_validate.py deleted: tests/test_views/test_api_prefixes_create.py deleted: tests/test_views/test_api_prefixes_token.py deleted: tests/test_views/test_get_object_id_draft.py deleted: tests/test_views/test_get_objectid.py deleted: tests/test_views/test_published_object_by_id.py modified: token.json

Changes not staged for commit: modified: authentication/apis.py modified: authentication/migrations/0001_initial.py deleted: authentication/migrations/0002_newuser.py modified: authentication/services.py modified: docs/refactor.md modified: search/selectors.py modified: tests/fixtures/test_data.json deleted: tests/test_database.py deleted: tests/test_fixtures.py deleted: tests/test_models modified: tests/test_views/test_api_account_activate.py deleted: tests/test_views/test_api_accounts_describe.py modified: tests/test_views/test_api_auth_add.py modified: tests/test_views/test_api_auth_reset_token.py deleted: tests/test_views/test_api_groups_group_info.py deleted: tests/test_views/test_api_groups_modify.py deleted: tests/test_views/test_api_objects.py deleted: tests/test_views/test_api_objects_drafts_create.py deleted: tests/test_views/test_api_objects_drafts_modify.py deleted: tests/test_views/test_api_objects_drafts_publish.py deleted: tests/test_views/test_api_objects_search.py deleted: tests/test_views/test_api_objects_validate.py deleted: tests/test_views/test_api_prefixes_create.py deleted: tests/test_views/test_api_prefixes_token.py deleted: tests/test_views/test_get_object_id_draft.py deleted: tests/test_views/test_get_objectid.py deleted: tests/test_views/test_published_object_by_id.py modified: token.json

Changes to be committed: new file: biocompute/init.py new file: biocompute/admin.py new file: biocompute/apis.py new file: biocompute/migrations/init.py new file: biocompute/models.py new file: biocompute/selectors.py new file: biocompute/services.py new file: biocompute/urls.py

Changes to be committed: new file: prefix/init.py new file: prefix/admin.py new file: prefix/apis.py new file: prefix/apps.py new file: prefix/migrations/init.py new file: prefix/models.py new file: prefix/selectors.py new file: prefix/services.py new file: prefix/urls.py

Changes to be committed: modified: .gitignore modified: authentication/apis.py modified: authentication/migrations/0001_initial.py deleted: authentication/migrations/0002_newuser.py modified: authentication/services.py new file: biocompute/migrations/0001_initial.py modified: docs/refactor.md new file: prefix/migrations/0001_initial.py modified: search/selectors.py new file: test.json new file: tests/fixtures/old_test_data.json modified: tests/fixtures/test_data.json deleted: tests/test_database.py deleted: tests/test_fixtures.py deleted: tests/test_models modified: tests/test_views/test_api_account_activate.py renamed: tests/test_views/test_api_accounts_describe.py -> tests/test_views/test_api_account_describe.py modified: tests/test_views/test_api_auth_add.py modified: tests/test_views/test_api_auth_reset_token.py deleted: tests/test_views/test_api_groups_group_info.py deleted: tests/test_views/test_api_groups_modify.py deleted: tests/test_views/test_api_objects.py deleted: tests/test_views/test_api_objects_drafts_create.py deleted: tests/test_views/test_api_objects_drafts_modify.py deleted: tests/test_views/test_api_objects_drafts_publish.py deleted: tests/test_views/test_api_objects_search.py deleted: tests/test_views/test_api_objects_validate.py deleted: tests/test_views/test_api_prefixes_create.py deleted: tests/test_views/test_api_prefixes_token.py deleted: tests/test_views/test_get_object_id_draft.py deleted: tests/test_views/test_get_objectid.py deleted: tests/test_views/test_published_object_by_id.py modified: token.json

Changes to be committed: modified: biocompute/apis.py modified: biocompute/models.py modified: biocompute/services.py modified: biocompute/urls.py new file: config/services.py modified: config/urls.py modified: docs/refactor.md modified: prefix/urls.py new file: tests/fixtures/example_bco.py new file: tests/test_views/test_api_objects_drafts_create.py

Changes not staged for commit: modified: authentication/apis.py modified: authentication/migrations/0001_initial.py deleted: authentication/migrations/0002_newuser.py modified: authentication/services.py modified: docs/refactor.md modified: search/selectors.py modified: tests/fixtures/test_data.json deleted: tests/test_database.py deleted: tests/test_fixtures.py deleted: tests/test_models modified: tests/test_views/test_api_account_activate.py deleted: tests/test_views/test_api_accounts_describe.py modified: tests/test_views/test_api_auth_add.py modified: tests/test_views/test_api_auth_reset_token.py deleted: tests/test_views/test_api_groups_group_info.py deleted: tests/test_views/test_api_groups_modify.py deleted: tests/test_views/test_api_objects.py deleted: tests/test_views/test_api_objects_drafts_create.py deleted: tests/test_views/test_api_objects_drafts_modify.py deleted: tests/test_views/test_api_objects_drafts_publish.py deleted: tests/test_views/test_api_objects_search.py deleted: tests/test_views/test_api_objects_validate.py deleted: tests/test_views/test_api_prefixes_create.py deleted: tests/test_views/test_api_prefixes_token.py deleted: tests/test_views/test_get_object_id_draft.py deleted: tests/test_views/test_get_objectid.py deleted: tests/test_views/test_published_object_by_id.py modified: token.json

Changes to be committed: new file: biocompute/init.py new file: biocompute/admin.py new file: biocompute/apis.py new file: biocompute/migrations/init.py new file: biocompute/models.py new file: biocompute/selectors.py new file: biocompute/services.py new file: biocompute/urls.py

Changes to be committed: new file: prefix/init.py new file: prefix/admin.py new file: prefix/apis.py new file: prefix/apps.py new file: prefix/migrations/init.py new file: prefix/models.py new file: prefix/selectors.py new file: prefix/services.py new file: prefix/urls.py

Changes to be committed: modified: .gitignore modified: authentication/apis.py modified: authentication/migrations/0001_initial.py deleted: authentication/migrations/0002_newuser.py modified: authentication/services.py new file: biocompute/migrations/0001_initial.py modified: docs/refactor.md new file: prefix/migrations/0001_initial.py modified: search/selectors.py new file: test.json new file: tests/fixtures/old_test_data.json modified: tests/fixtures/test_data.json deleted: tests/test_database.py deleted: tests/test_fixtures.py deleted: tests/test_models modified: tests/test_views/test_api_account_activate.py renamed: tests/test_views/test_api_accounts_describe.py -> tests/test_views/test_api_account_describe.py modified: tests/test_views/test_api_auth_add.py modified: tests/test_views/test_api_auth_reset_token.py deleted: tests/test_views/test_api_groups_group_info.py deleted: tests/test_views/test_api_groups_modify.py deleted: tests/test_views/test_api_objects.py deleted: tests/test_views/test_api_objects_drafts_create.py deleted: tests/test_views/test_api_objects_drafts_modify.py deleted: tests/test_views/test_api_objects_drafts_publish.py deleted: tests/test_views/test_api_objects_search.py deleted: tests/test_views/test_api_objects_validate.py deleted: tests/test_views/test_api_prefixes_create.py deleted: tests/test_views/test_api_prefixes_token.py deleted: tests/test_views/test_get_object_id_draft.py deleted: tests/test_views/test_get_objectid.py deleted: tests/test_views/test_published_object_by_id.py modified: token.json

Changes to be committed: modified: biocompute/apis.py modified: biocompute/models.py modified: biocompute/services.py modified: biocompute/urls.py new file: config/services.py modified: config/urls.py modified: docs/refactor.md modified: prefix/urls.py new file: tests/fixtures/example_bco.py new file: tests/test_views/test_api_objects_drafts_create.py

Added the DraftsCreateApi and tests. This included serializers for BCO creation Changes to be committed: modified: biocompute/apis.py modified: biocompute/services.py modified: config/services.py modified: prefix/models.py modified: prefix/services.py modified: test.json modified: tests/fixtures/test_data.json new file: tests/test_views/test_api_objects_drafts_create.py

Changes to be committed: modified: biocompute/apis.py modified: config/fixtures/local_data.json modified: config/services.py modified: config/urls.py modified: prefix/apis.py modified: prefix/services.py modified: prefix/urls.py modified: search/apis.py modified: tests/test_views/test_api_auth_remove.py modified: tests/test_views/test_api_objects_drafts_create.py new file: tests/test_views/test_api_prefixes_create.py

Changes to be committed: modified: config/fixtures/local_data.json modified: docs/refactor.md modified: prefix/apis.py modified: prefix/services.py modified: prefix/urls.py modified: tests/fixtures/test_data.json deleted: tests/test_views/test_api_prefixes_create.py new file: tests/test_views/test_prefixes_create.py new file: tests/test_views/test_prefixes_modify.py

Changes to be committed: modified: config/services.py modified: prefix/apis.py modified: prefix/models.py modified: prefix/selectors.py modified: prefix/services.py

To do this functions related to Prefixes and the associated permissions were created

Changes to be committed: modified: biocompute/apis.py modified: biocompute/models.py modified: biocompute/selectors.py modified: biocompute/services.py modified: biocompute/urls.py modified: config/asgi.py modified: config/fixtures/local_data.json modified: config/services.py modified: config/urls.py modified: prefix/selectors.py modified: prefix/services.py deleted: test.json modified: tests/fixtures/example_bco.py modified: tests/fixtures/test_data.json deleted: token.json

Created subdirectory and moved test functions Changes to be committed: renamed: tests/test_views/init.py -> tests/test_apis/init.py new file: tests/test_apis/test_api_authentication/init.py renamed: tests/test_views/test_account_activate.py -> tests/test_apis/test_api_authentication/test_account_activate.py renamed: tests/test_views/test_account_describe.py -> tests/test_apis/test_api_authentication/test_account_describe.py renamed: tests/test_views/test_account_new.py -> tests/test_apis/test_api_authentication/test_account_new.py renamed: tests/test_views/test_api_auth_add.py -> tests/test_apis/test_api_authentication/test_api_auth_add.py renamed: tests/test_views/test_api_auth_remove.py -> tests/test_apis/test_api_authentication/test_api_auth_remove.py renamed: tests/test_views/test_api_auth_reset_token.py -> tests/test_apis/test_api_authentication/test_api_auth_reset_token.py renamed: tests/test_views/test_api_objects_drafts_create.py -> tests/test_apis/test_api_objects_drafts_create.py renamed: tests/test_views/test_auth_add.py -> tests/test_apis/test_auth_add.py renamed: tests/test_views/test_auth_remove.py -> tests/test_apis/test_auth_remove.py renamed: tests/test_views/test_auth_reset_token.py -> tests/test_apis/test_auth_reset_token.py renamed: tests/test_views/test_objects_drafts_create.py -> tests/test_apis/test_objects_drafts_create.py renamed: tests/test_views/test_prefixes_create.py -> tests/test_apis/test_prefixes_create.py new file: tests/test_apis/test_prefixes_modify.py deleted: tests/test_views/test_api_account_activate.py deleted: tests/test_views/test_api_account_describe.py deleted: tests/test_views/test_api_account_new.py deleted: tests/test_views/test_prefixes_modify.py

To do this functions related to Prefixes and the associated permissions were created

Changes to be committed: modified: biocompute/apis.py modified: biocompute/models.py modified: biocompute/selectors.py modified: biocompute/services.py modified: biocompute/urls.py modified: config/asgi.py modified: config/fixtures/local_data.json modified: config/services.py modified: config/urls.py modified: prefix/selectors.py modified: prefix/services.py deleted: test.json modified: tests/fixtures/example_bco.py modified: tests/fixtures/test_data.json deleted: token.json

Created subdirectory and moved test functions Changes to be committed: renamed: tests/test_views/init.py -> tests/test_apis/init.py new file: tests/test_apis/test_api_authentication/init.py renamed: tests/test_views/test_account_activate.py -> tests/test_apis/test_api_authentication/test_account_activate.py renamed: tests/test_views/test_account_describe.py -> tests/test_apis/test_api_authentication/test_account_describe.py renamed: tests/test_views/test_account_new.py -> tests/test_apis/test_api_authentication/test_account_new.py renamed: tests/test_views/test_api_auth_add.py -> tests/test_apis/test_api_authentication/test_api_auth_add.py renamed: tests/test_views/test_api_auth_remove.py -> tests/test_apis/test_api_authentication/test_api_auth_remove.py renamed: tests/test_views/test_api_auth_reset_token.py -> tests/test_apis/test_api_authentication/test_api_auth_reset_token.py renamed: tests/test_views/test_api_objects_drafts_create.py -> tests/test_apis/test_api_objects_drafts_create.py renamed: tests/test_views/test_auth_add.py -> tests/test_apis/test_auth_add.py renamed: tests/test_views/test_auth_remove.py -> tests/test_apis/test_auth_remove.py renamed: tests/test_views/test_auth_reset_token.py -> tests/test_apis/test_auth_reset_token.py renamed: tests/test_views/test_objects_drafts_create.py -> tests/test_apis/test_objects_drafts_create.py renamed: tests/test_views/test_prefixes_create.py -> tests/test_apis/test_prefixes_create.py new file: tests/test_apis/test_prefixes_modify.py deleted: tests/test_views/test_api_account_activate.py deleted: tests/test_views/test_api_account_describe.py deleted: tests/test_views/test_api_account_new.py deleted: tests/test_views/test_prefixes_modify.py

Changes to be committed: modified: biocompute/migrations/0001_initial.py modified: docs/refactor.md modified: prefix/apis.py modified: prefix/migrations/0001_initial.py modified: prefix/services.py new file: tests/fixtures/bco_dump.json modified: tests/fixtures/test_data.json deleted: tests/test_apis/test_api_authentication/test_api_auth_add.py deleted: tests/test_apis/test_api_authentication/test_api_auth_reset_token.py renamed: tests/test_apis/test_auth_add.py -> tests/test_apis/test_api_authentication/test_auth_add.py renamed: tests/test_apis/test_auth_reset_token.py -> tests/test_apis/test_api_authentication/test_auth_reset_token.py renamed: tests/test_apis/test_api_authentication/test_api_auth_remove.py -> tests/test_apis/test_api_authentication/testi_auth_remove.py deleted: tests/test_apis/test_api_objects_drafts_create.py new file: tests/test_apis/test_api_prefix/init.py renamed: tests/test_apis/test_prefixes_create.py -> tests/test_apis/test_api_prefix/test_prefixes_create.py renamed: tests/test_apis/test_prefixes_modify.py -> tests/test_apis/test_api_prefix/test_prefixes_modify.py deleted: tests/test_apis/test_auth_remove.py new file: tests/test_apis/test_biocompute/init.py renamed: tests/test_apis/test_objects_drafts_create.py -> tests/test_apis/test_biocompute/test_objects_drafts_create.py

To do this functions related to Prefixes and the associated permissions were created

Changes to be committed: modified: biocompute/apis.py modified: biocompute/models.py modified: biocompute/selectors.py modified: biocompute/services.py modified: biocompute/urls.py modified: config/asgi.py modified: config/fixtures/local_data.json modified: config/services.py modified: config/urls.py modified: prefix/selectors.py modified: prefix/services.py deleted: test.json modified: tests/fixtures/example_bco.py modified: tests/fixtures/test_data.json deleted: token.json

Created subdirectory and moved test functions Changes to be committed: renamed: tests/test_views/init.py -> tests/test_apis/init.py new file: tests/test_apis/test_api_authentication/init.py renamed: tests/test_views/test_account_activate.py -> tests/test_apis/test_api_authentication/test_account_activate.py renamed: tests/test_views/test_account_describe.py -> tests/test_apis/test_api_authentication/test_account_describe.py renamed: tests/test_views/test_account_new.py -> tests/test_apis/test_api_authentication/test_account_new.py renamed: tests/test_views/test_api_auth_add.py -> tests/test_apis/test_api_authentication/test_api_auth_add.py renamed: tests/test_views/test_api_auth_remove.py -> tests/test_apis/test_api_authentication/test_api_auth_remove.py renamed: tests/test_views/test_api_auth_reset_token.py -> tests/test_apis/test_api_authentication/test_api_auth_reset_token.py renamed: tests/test_views/test_api_objects_drafts_create.py -> tests/test_apis/test_api_objects_drafts_create.py renamed: tests/test_views/test_auth_add.py -> tests/test_apis/test_auth_add.py renamed: tests/test_views/test_auth_remove.py -> tests/test_apis/test_auth_remove.py renamed: tests/test_views/test_auth_reset_token.py -> tests/test_apis/test_auth_reset_token.py renamed: tests/test_views/test_objects_drafts_create.py -> tests/test_apis/test_objects_drafts_create.py renamed: tests/test_views/test_prefixes_create.py -> tests/test_apis/test_prefixes_create.py new file: tests/test_apis/test_prefixes_modify.py deleted: tests/test_views/test_api_account_activate.py deleted: tests/test_views/test_api_account_describe.py deleted: tests/test_views/test_api_account_new.py deleted: tests/test_views/test_prefixes_modify.py

Changes to be committed: modified: biocompute/migrations/0001_initial.py modified: docs/refactor.md modified: prefix/apis.py modified: prefix/migrations/0001_initial.py modified: prefix/services.py new file: tests/fixtures/bco_dump.json modified: tests/fixtures/test_data.json deleted: tests/test_apis/test_api_authentication/test_api_auth_add.py deleted: tests/test_apis/test_api_authentication/test_api_auth_reset_token.py renamed: tests/test_apis/test_auth_add.py -> tests/test_apis/test_api_authentication/test_auth_add.py renamed: tests/test_apis/test_auth_reset_token.py -> tests/test_apis/test_api_authentication/test_auth_reset_token.py renamed: tests/test_apis/test_api_authentication/test_api_auth_remove.py -> tests/test_apis/test_api_authentication/testi_auth_remove.py deleted: tests/test_apis/test_api_objects_drafts_create.py new file: tests/test_apis/test_api_prefix/init.py renamed: tests/test_apis/test_prefixes_create.py -> tests/test_apis/test_api_prefix/test_prefixes_create.py renamed: tests/test_apis/test_prefixes_modify.py -> tests/test_apis/test_api_prefix/test_prefixes_modify.py deleted: tests/test_apis/test_auth_remove.py new file: tests/test_apis/test_biocompute/init.py renamed: tests/test_apis/test_objects_drafts_create.py -> tests/test_apis/test_biocompute/test_objects_drafts_create.py

Changes to be committed: modified: biocompute/apis.py modified: biocompute/services.py modified: prefix/services.py

Changes to be committed: modified: config/fixtures/local_data.json modified: tests/fixtures/test_data.json deleted: tests/test_apis/test_api_objects_drafts_create.py deleted: tests/test_apis/test_auth_add.py deleted: tests/test_apis/test_auth_remove.py deleted: tests/test_apis/test_auth_reset_token.py renamed: tests/test_apis/test_objects_drafts_create.py -> tests/test_apis/test_biocompute/objects_drafts_create.py deleted: tests/test_apis/test_prefixes_create.py deleted: tests/test_apis/test_prefixes_modify.py

Changes to be committed: modified: biocompute/apis.py modified: biocompute/selectors.py modified: biocompute/services.py modified: biocompute/urls.py modified: prefix/selectors.py deleted: tests/test_apis/test_biocompute/objects_drafts_create.py deleted: tests/test_apis/test_biocompute/test_objects_drafts_create.py

Changes to be committed: new file: tests/test_apis/test_biocompute/test_objects_drafts_create.py

Changes to be committed: modified: biocompute/apis.py modified: biocompute/selectors.py modified: biocompute/services.py modified: biocompute/urls.py modified: prefix/selectors.py deleted: tests/test_apis/test_biocompute/objects_drafts_create.py deleted: tests/test_apis/test_biocompute/test_objects_drafts_create.py

This included a great many supporting functions and permission checks to accomplish. Also added the validate functions to the codebase

Changes to be committed: modified: biocompute/apis.py modified: biocompute/selectors.py modified: biocompute/services.py modified: biocompute/urls.py modified: config/services.py modified: docs/refactor.md modified: prefix/selectors.py new file: tests/test_apis/test_biocompute/test_objects_drafts_publish.py

Also added functions and methods for BCO Score. Updates to the BCO admin panel. Updates to the test_data.json and local_data.json Fix # 310 Changes to be committed: modified: authentication/migrations/0001_initial.py modified: biocompute/admin.py modified: biocompute/apis.py modified: biocompute/migrations/0001_initial.py modified: biocompute/models.py modified: biocompute/services.py new file: config/bco_scores.py modified: config/fixtures/local_data.json modified: tests/fixtures/test_data.json

Changes to be committed: modified: biocompute/apis.py modified: search/apis.py modified: search/selectors.py modified: search/urls.py

also updated accounts/describe Changes to be committed: modified: .gitignore new file: .secrets.example modified: authentication/selectors.py modified: biocompute/apis.py modified: biocompute/models.py modified: biocompute/selectors.py modified: config/settings.py deleted: server.conf deleted: sever.conf.example

Changes to be committed: modified: config/services.py modified: prefix/apis.py modified: tests/test_apis/test_api_prefix/test_prefixes_create.py

Changes to be committed: modified: prefix/apis.py modified: prefix/selectors.py modified: search/apis.py modified: search/urls.py

Changes to be committed: modified: admin_only/bco_api.conf


Changes to be committed: modified: biocompute/apis.py modified: biocompute/services.py modified: config/bco_scores.py modified: config/services.py modified: config/settings.py modified: config/urls.py modified: tests/fixtures/test_data.json renamed: tests/fixtures/example_bco.py -> tests/fixtures/testing_bcos.py modified: tests/test_apis/test_api_prefix/test_prefixes_create.py modified: tests/test_apis/test_biocompute/test_objects_drafts_modify.py modified: tests/test_apis/test_biocompute/test_objects_drafts_publish.py

Changes to be committed: modified: biocompute/apis.py modified: biocompute/urls.py modified: tests/test_apis/test_biocompute/test_objects_drafts_create.py modified: tests/test_apis/test_biocompute/test_objects_drafts_publish.py

Changes to be committed: modified: config/services.py modified: tests/test_apis/test_biocompute/test_objects_drafts_create.py

Changes to be committed: modified: biocompute/apis.py

Changes to be committed: modified: config/fixtures/test_portal.json

Changes to be committed: modified: admin_only/bco_api.conf modified: config/fixtures/test_portal.json

Changes to be committed: modified: config/services.py

Changes to be committed: modified: biocompute/services.py modified: config/services.py

Changes to be committed: modified: biocompute/apis.py modified: biocompute/selectors.py modified: search/apis.py modified: tests/fixtures/testing_bcos.py modified: tests/test_apis/test_biocompute/test_objects_drafts_create.py

Changes to be committed: modified: authentication/apis.py modified: authentication/services.py modified: authentication/urls.py modified: biocompute/apis.py modified: biocompute/services.py modified: config/urls.py modified: prefix/services.py modified: tests/test_apis/test_biocompute/test_objects_drafts_publish.py

Changes to be committed: modified: prefix/apis.py

On branch docs Your branch is up to date with 'origin/docs'.


gitguardian[bot] commented 1 month ago

⚠️ GitGuardian has uncovered 3 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [4444555](https://dashboard.gitguardian.com/workspace/296511/incidents/4444555?occurrence=135415605) | Triggered | Django Secret Key | 2c4e0d2fb8e81b9ce565acea0fdd03aa5747aa70 | bcodb/settings.py | [View secret](https://github.com/biocompute-objects/bco_api/commit/2c4e0d2fb8e81b9ce565acea0fdd03aa5747aa70#diff-c4a824e95739c0ba1d2330805f827804a8ab331feffec49e953b98db5529b129L37) | | [4444564](https://dashboard.gitguardian.com/workspace/296511/incidents/4444564?occurrence=135415604) | Triggered | Generic High Entropy Secret | 2c4e0d2fb8e81b9ce565acea0fdd03aa5747aa70 | authentication/services.py | [View secret](https://github.com/biocompute-objects/bco_api/commit/2c4e0d2fb8e81b9ce565acea0fdd03aa5747aa70#diff-0ef1b5e13092797bfc2644cc86859739a86650a75d9410c01934fc66200a4d77L29) | | [4444557](https://dashboard.gitguardian.com/workspace/296511/incidents/4444557?occurrence=135415606) | Triggered | Generic High Entropy Secret | 2c4e0d2fb8e81b9ce565acea0fdd03aa5747aa70 | api/views.py | [View secret](https://github.com/biocompute-objects/bco_api/commit/2c4e0d2fb8e81b9ce565acea0fdd03aa5747aa70#diff-7fb412808754eb12ee1b172c34c44eb9ce58b3bba43d62ffcb986ad7917588a8L537) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secrets safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/secrets-detection-engine/detectors/specifics/secret_key_in_django_config#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation.

🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.