-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
22.07 #141
22.07 #141
Conversation
modified: api/scripts/method_specific/POST_validate_payload_against_schema.py modified: api/urls.py renamed: api/validation_definitions/IEEE/IEEE2791-2020.schema -> api/validation_definitions/IEEE/2791object.json modified: api/views.py
modified: bco_api/api/scripts/method_specific/POST_validate_payload_against_schema.py modified: bco_api/api/views.py
* Add bulk validation endpoint modified: api/scripts/method_specific/POST_validate_payload_against_schema.py modified: api/urls.py renamed: api/validation_definitions/IEEE/IEEE2791-2020.schema -> api/validation_definitions/IEEE/2791object.json modified: api/views.py * Completed Bulk BCO validation modified: bco_api/api/scripts/method_specific/POST_validate_payload_against_schema.py modified: bco_api/api/views.py * Update configs for debug testing Changes to be committed: modified: api/urls.py modified: bco_api/settings.py modified: server.conf
* prefix and prefix table tests * WIP: run at testing the API via the Client library; so far not working although its not explicitly failing the unit tests * WIP: Added in initial tet for group post API; needs asserts still. * WIP: Group API Calls, being implemented; currently the delete test doesn't have appropriate permissions, but test is implemented * WIP: Fixed permission, but issue with missing bulk param. * Changed delete in groups slightly; test now works; added additional error handling in groups.py * fix so doesn't pass as string (pass as dict) * changes for testing Co-authored-by: John Torcivia <[email protected]> Co-authored-by: John Torcivia <[email protected]>
Changes to be committed: modified: apitests.py modified: apitests_new.py modified: bco_api/api/apps.py modified: bco_api/api/migrations/0001_initial.py modified: bco_api/api/migrations/0002_auto_20220124_2356.py modified: bco_api/api/migrations/0003_rename_meta_table_prefix_table.py modified: bco_api/api/migrations/0004_rename_group_info_groupinfo.py modified: bco_api/api/migrations/0005_rename_prefixes_prefix.py modified: bco_api/api/model/groups.py modified: bco_api/api/model/prefix.py modified: bco_api/api/models.py modified: bco_api/api/permissions.py modified: bco_api/api/scripts/method_specific/GET_activate_account.py modified: bco_api/api/scripts/method_specific/GET_draft_object_by_id.py modified: bco_api/api/scripts/method_specific/GET_published_object_by_id.py modified: bco_api/api/scripts/method_specific/GET_published_object_by_id_with_version.py modified: bco_api/api/scripts/method_specific/GET_retrieve_available_schema.py modified: bco_api/api/scripts/method_specific/POST_api_accounts_describe.py modified: bco_api/api/scripts/method_specific/POST_api_accounts_new.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_create.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_delete.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_modify.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_permissions.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_permissions_set.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_publish.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_read.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_token.py modified: bco_api/api/scripts/method_specific/POST_api_objects_publish.py modified: bco_api/api/scripts/method_specific/POST_api_objects_published.py modified: bco_api/api/scripts/method_specific/POST_api_objects_search.py modified: bco_api/api/scripts/method_specific/POST_api_objects_token.py modified: bco_api/api/scripts/method_specific/POST_validate_payload_against_schema.py modified: bco_api/api/scripts/utilities/DbUtils.py modified: bco_api/api/scripts/utilities/FileUtils.py modified: bco_api/api/scripts/utilities/JsonUtils.py modified: bco_api/api/scripts/utilities/RequestUtils.py modified: bco_api/api/scripts/utilities/ResponseUtils.py modified: bco_api/api/scripts/utilities/SettingsUtils.py modified: bco_api/api/scripts/utilities/UserUtils.py modified: bco_api/api/serializers.py modified: bco_api/api/signals.py modified: bco_api/api/tests/test_forms.py modified: bco_api/api/tests/test_group_post_api.py modified: bco_api/api/tests/test_model_bco.py modified: bco_api/api/tests/test_model_groups.py modified: bco_api/api/tests/test_model_new_user.py modified: bco_api/api/tests/test_model_prefix.py modified: bco_api/api/tests/test_prefix_post_api.py modified: bco_api/api/tests/test_views.py modified: bco_api/api/tests_automated.py modified: bco_api/api/urls.py modified: bco_api/api/views.py modified: bco_api/bco_api/asgi.py modified: bco_api/bco_api/settings.py modified: bco_api/bco_api/urls.py modified: bco_api/bco_api/wsgi.py modified: bco_api/manage.py
Update user utils and unit test to fix failing tests Changes to be committed: modified: api/model/prefix.py modified: api/scripts/utilities/UserUtils.py modified: api/tests/test_group_post_api.py modified: api/tests/test_prefix_post_api.py
Changes to be committed: modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_create.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_publish.py modified: bco_api/api/tests/test_group_post_api.py
207 response means invalid object in payload, 200 means all valid. Changes to be committed: modified: bco_api/api/scripts/method_specific/POST_validate_payload_against_schema.py
Changes to be committed: modified: admin_only/db.sqlite3.dev modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_publish.py modified: bco_api/api/scripts/utilities/DbUtils.py
Changes to be committed: modified: api/scripts/method_specific/POST_validate_payload_against_schema.py modified: api/scripts/utilities/UserUtils.py modified: api/tests/test_bcos.json modified: api/tests/test_model_groups.py deleted: api/tests/test_model_new_user.py modified: api/tests/test_model_prefix.py new file: api/tests/test_model_user.py modified: api/views.py
Changes to be committed: modified: ../admin_only/db.sqlite3.dev
* Enabled the direct publish API endpoint Changes to be committed: modified: admin_only/db.sqlite3.dev modified: bco_api/api/model/prefix.py modified: bco_api/api/scripts/method_specific/POST_api_objects_publish.py modified: bco_api/api/scripts/method_specific/POST_validate_payload_against_schema.py modified: bco_api/api/scripts/utilities/DbUtils.py modified: bco_api/api/scripts/utilities/UserUtils.py modified: bco_api/api/views.py modified: requirements.txt * Publish direct (#135) * Enabled the direct publish API endpoint Changes to be committed: modified: admin_only/db.sqlite3.dev modified: bco_api/api/model/prefix.py modified: bco_api/api/scripts/method_specific/POST_api_objects_publish.py modified: bco_api/api/scripts/method_specific/POST_validate_payload_against_schema.py modified: bco_api/api/scripts/utilities/DbUtils.py modified: bco_api/api/scripts/utilities/UserUtils.py modified: bco_api/api/views.py modified: requirements.txt * Enable DRAFT direct publish enabled the use of a predetermined object_id for the draft Changes to be committed: modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_create.py modified: bco_api/api/scripts/method_specific/POST_api_objects_publish.py * Fix user_name in prefix.py Changes to be committed: modified: api/model/prefix.py * Fix name at prefix.py, line 346 Changes to be committed: modified: api/model/prefix.py
Changes to be committed: modified: api/scripts/method_specific/POST_api_objects_search.py modified: api/tests/test_prefix_post_api.py
Changes to be committed: modified: api/model/prefix.py modified: api/scripts/method_specific/POST_api_objects_drafts_create.py modified: api/scripts/method_specific/POST_api_objects_publish.py modified: api/scripts/method_specific/POST_validate_payload_against_schema.py modified: api/scripts/utilities/JsonUtils.py modified: api/views.py
Changes to be committed: modified: api/scripts/utilities/DbUtils.py modified: api/scripts/utilities/UserUtils.py
any_failed = True | ||
|
||
if any_failed: | ||
return Response(status=status.HTTP_207_MULTI_STATUS, data=returning) | ||
|
||
return Response(status = status.HTTP_200_OK, data = returning) | ||
return Response(status=status.HTTP_200_OK, data=returning) |
Check warning
Code scanning / CodeQL
Reflected server-side cross-site scripting
return Response(status=status.HTTP_403_FORBIDDEN, data=returning) | ||
else: | ||
return Response(status=status.HTTP_300_MULTIPLE_CHOICES, data=returning) | ||
if any_failed and len(returning) > 1: | ||
return Response(status=status.HTTP_300_MULTIPLE_CHOICES, data=returning) | ||
else: | ||
return Response(status = status.HTTP_200_OK, data = returning) | ||
return Response(status=status.HTTP_200_OK, data=returning) |
Check warning
Code scanning / CodeQL
Reflected server-side cross-site scripting
status=status.HTTP_200_OK, | ||
data=returning | ||
) | ||
return Response(status=status.HTTP_300_MULTIPLE_CHOICES, data=returning) |
Check warning
Code scanning / CodeQL
Reflected server-side cross-site scripting
data=returning | ||
) | ||
return Response(status=status.HTTP_300_MULTIPLE_CHOICES, data=returning) | ||
return Response(status=status.HTTP_200_OK, data=returning) |
Check warning
Code scanning / CodeQL
Reflected server-side cross-site scripting
No description provided.