-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/mx-1649 add preview models and api method (#347)
### PR Context - prep for robert-koch-institut/mex-editor#192 - preview models don't care about required fields and length limits for lists - they will be used by the editor to be able to search even for potentially "broken" items - also includes some clean-up of the `mex.common.models` module (imports, exports and docs) ### Added - add preview models for merged items without cardinality validation - BREAKING: preview models are now part of all `mex.common.fields` lookups - add `BackendApiConnector.fetch_preview_items` for fetching previews ### Deprecated - stop using `ExtractedData`, use `AnyExtractedModel` instead - stop using `MergedItem`, use `AnyMergedModel` instead - stop using `AdditiveRule`, use `AnyAdditiveRule` instead - stop using `SubtractiveRule`, use `AnySubtractiveRule` instead - stop using `PreventiveRule`, use `AnyPreventiveRule` instead - stop using `BaseEntity`, use a concrete union instead ### Removed - removed deprecated `BulkInsertResponse` as alias for `IdentifiersResponse` - removed unused module export of `mex.common.models.generate_entity_filter_schema` - removed unused module export of `mex.common.models.generate_mapping_schema` - drop export `models.ExtractedPrimarySourceIdentifier`, import from `types` instead - drop export `models.MergedPrimarySourceIdentifier`, import from `types` instead
- Loading branch information
1 parent
eb9ed5f
commit 04aea46
Showing
28 changed files
with
364 additions
and
69 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
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.