-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/pdct 1350 ingest events (#211)
* Validate import_id and family_import_id before saving documents * Make fmaily_document_import_id optional on ingest events * Ingest events * Validate import id when saving events * Validate family_import_id when saving events * Do not generate an import_id when savin gevents if one is already provided * Validate event type against corpus taxonomy * Move collection validation logic to a separate service * Move family validation logic to a separate service * Move document validation logic to a separate service * Move event validation logci to a separate service * Switch to using validation service when ingesting collections * Switch to using validation service when ingesting families * Use validation service when ingesting documents * Use validation service when ingesting events * Tidy up tests * More tidy up of test data * Tiny refactor * Return better error on Exception * Bump minor version * Fix mocks in unit tests + tidy up * Add missing docstrings to validation service * Add missing doctypes and tighten return types * Update docstrings * Make test filenames more meaningful * Reference correct test files after rename * Update docstrings, again... * Update tests/integration_tests/ingest/test_ingest.py Co-authored-by: Katy Baulch <[email protected]> * Update tests/integration_tests/ingest/test_ingest.py Co-authored-by: Katy Baulch <[email protected]> * Update tests/integration_tests/ingest/test_ingest.py Co-authored-by: Katy Baulch <[email protected]> * Update tests/unit_tests/routers/ingest/test_ingest.py Co-authored-by: Katy Baulch <[email protected]> * Update tests/unit_tests/routers/ingest/test_ingest.py Co-authored-by: Katy Baulch <[email protected]> * Update tests/integration_tests/ingest/test_ingest.py Co-authored-by: Katy Baulch <[email protected]> * Add missing imports and params in docstrings for validation --------- Co-authored-by: Katy Baulch <[email protected]>
- Loading branch information
1 parent
7b658e3
commit 1d42fd9
Showing
21 changed files
with
747 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.