Commit 301693a
authored
Biocompute model (#284)
* Remove API app
Changes to be committed:
deleted: api/__init__.py
deleted: api/admin.py
deleted: api/apps.py
deleted: api/fixtures/bootstrap.json
deleted: api/fixtures/metafixtures
deleted: api/fixtures/metafixtures.json
deleted: api/keys.sh
deleted: api/migrations/0001_initial.py
deleted: api/migrations/0002_auto_20220124_2356.py
deleted: api/migrations/0003_rename_meta_table_prefix_table.py
deleted: api/migrations/0004_rename_group_info_groupinfo.py
deleted: api/migrations/0005_rename_prefixes_prefix.py
deleted: api/migrations/0006_delete_new_users.py
deleted: api/migrations/__init__.py
deleted: api/model/__init__.py
deleted: api/model/groups.py
deleted: api/model/prefix.py
deleted: api/models.py
deleted: api/permissions.py
deleted: api/rdb.sh
deleted: api/request_definitions/GET.schema
deleted: api/request_definitions/POST.schema
deleted: api/request_definitions/templates/DELETE_delete_object_by_id.schema
deleted: api/request_definitions/templates/GET_activate_account.schema
deleted: api/request_definitions/templates/GET_get_object_by_id.schema
deleted: api/request_definitions/templates/GET_retrieve_available_schema.schema
deleted: api/request_definitions/templates/POST_convert_existing_object_between_schemas.schema
deleted: api/request_definitions/templates/POST_convert_payload_to_schema.schema
deleted: api/request_definitions/templates/POST_new_account.schema
deleted: api/request_definitions/templates/POST_object_listing_by_token.schema
deleted: api/request_definitions/templates/POST_objects_draft.schema
deleted: api/request_definitions/templates/POST_objects_publish.schema
deleted: api/request_definitions/templates/POST_read_object.schema
deleted: api/request_definitions/templates/POST_validate_payload_against_schema.schema
deleted: api/scripts/__init__.py
deleted: api/scripts/method_specific/GET_draft_object_by_id.py
deleted: api/scripts/method_specific/GET_published_object_by_id.py
deleted: api/scripts/method_specific/GET_published_object_by_id_with_version.py
deleted: api/scripts/method_specific/GET_retrieve_available_schema.py
deleted: api/scripts/method_specific/POST_api_objects_drafts_create.py
deleted: api/scripts/method_specific/POST_api_objects_drafts_delete.py
deleted: api/scripts/method_specific/POST_api_objects_drafts_modify.py
deleted: api/scripts/method_specific/POST_api_objects_drafts_permissions.py
deleted: api/scripts/method_specific/POST_api_objects_drafts_permissions_set.py
deleted: api/scripts/method_specific/POST_api_objects_drafts_publish.py
deleted: api/scripts/method_specific/POST_api_objects_drafts_read.py
deleted: api/scripts/method_specific/POST_api_objects_drafts_token.py
deleted: api/scripts/method_specific/POST_api_objects_publish.py
deleted: api/scripts/method_specific/POST_api_objects_published.py
deleted: api/scripts/method_specific/POST_api_objects_search.py
deleted: api/scripts/method_specific/POST_api_objects_token.py
deleted: api/scripts/method_specific/POST_validate_payload_against_schema.py
deleted: api/scripts/method_specific/__init__.py
deleted: api/scripts/utilities/DbUtils.py
deleted: api/scripts/utilities/FileUtils.py
deleted: api/scripts/utilities/JsonUtils.py
deleted: api/scripts/utilities/RequestUtils.py
deleted: api/scripts/utilities/ResponseUtils.py
deleted: api/scripts/utilities/SettingsUtils.py
deleted: api/scripts/utilities/UserUtils.py
deleted: api/scripts/utilities/__init__.py
deleted: api/serializers.py
deleted: api/signals.py
deleted: api/templates/api/account_activation_message.html
deleted: api/urls.py
deleted: api/validation_definitions/IEEE/2791object.json
deleted: api/validation_definitions/IEEE/description_domain.json
deleted: api/validation_definitions/IEEE/error_domain.json
deleted: api/validation_definitions/IEEE/execution_domain.json
deleted: api/validation_definitions/IEEE/io_domain.json
deleted: api/validation_definitions/IEEE/parametric_domain.json
deleted: api/validation_definitions/IEEE/provenance_domain.json
deleted: api/validation_definitions/IEEE/usability_domain.json
deleted: api/validation_definitions/IEEE_sub/IEEE2791-2020.schema
deleted: api/validation_definitions/IEEE_sub/domains/description_domain.json
deleted: api/validation_definitions/IEEE_sub/domains/error_domain.json
deleted: api/validation_definitions/IEEE_sub/domains/execution_domain.json
deleted: api/validation_definitions/IEEE_sub/domains/io_domain.json
deleted: api/validation_definitions/IEEE_sub/domains/parametric_domain.json
deleted: api/validation_definitions/IEEE_sub/domains/provenance_domain.json
deleted: api/validation_definitions/IEEE_sub/domains/usability_domain.json
deleted: api/validation_definitions/uri_external
deleted: api/views.py
new file: config/settings.py
modified: config/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
* Framework for BioCompute model
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
* Added files for Prefix model
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
* Tests for authentication
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
* Move Swagger files and implement BCO draft create
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
* Doc fix in Bco.models
Changes to be committed:
modified: biocompute/models.py
* Updated biocompute.model and prefix.model
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.py1 parent 5103418 commit 301693a
File tree
8 files changed
+304
-47
lines changed- biocompute
- config
- prefix
- tests
- fixtures
- test_views
8 files changed
+304
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | | - | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | | - | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
83 | | - | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
87 | | - | |
88 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
89 | 109 | | |
90 | 110 | | |
91 | | - | |
92 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
93 | 121 | | |
94 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
95 | 129 | | |
96 | 130 | | |
97 | 131 | | |
98 | 132 | | |
99 | 133 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
| |||
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
46 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
47 | 58 | | |
48 | 59 | | |
| 60 | + | |
49 | 61 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
59 | 70 | | |
60 | | - | |
| 71 | + | |
61 | 72 | | |
| 73 | + | |
| 74 | + | |
62 | 75 | | |
63 | 76 | | |
64 | 77 | | |
65 | 78 | | |
66 | 79 | | |
67 | 80 | | |
68 | 81 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 82 | + | |
| 83 | + | |
72 | 84 | | |
73 | 85 | | |
74 | | - | |
75 | | - | |
| 86 | + | |
76 | 87 | | |
77 | 88 | | |
78 | 89 | | |
| |||
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | | - | |
14 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
15 | 31 | | |
16 | 32 | | |
17 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
| 858 | + | |
| 859 | + | |
859 | 860 | | |
860 | 861 | | |
861 | 862 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
| 858 | + | |
| 859 | + | |
859 | 860 | | |
860 | 861 | | |
861 | 862 | | |
0 commit comments