Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task/DES-2623: Add Pydantic models and integration tests for entity m…
…etadata (#1137) * Add Pydantic models and integration tests for entity metadata * linting * Default to null values for fields we plan to deprecate * Add utils for constructing graphs from projects/pubs * refactor to use constants for entity names * add paths to publication graph constructor * add utils for converting legacy data * improve conciseness of update_file_tag_paths method * Update BaseProject to use the new facility model * validate dropdown options as id/name pairs for type Other * consolidate dropdown values in Experiments * clean up code for handling dropdowns * improve types and add post-validator for fields in base project metadata * Represent all dropdown value fields as id/name pairs * update alias for experimental facility * store string-type award numbers under 'number' instead of 'name * construct graphs for all pubs. TODO: handle file tags when no path is provided. * Fix bugs in file tag transforms * factor out models/validators and populate publication graph with user list * consolidate fields and parse keywords as array * Publish Other metadata as a child node for consistent versioning. * Factor out method for constructing entity paths * move projects_v2 into the designsafe api module * add deduplication for published paths * add version information to pub graphs * add leading slash to published base paths * Add database model and ingest workflow for project metadata * add database-enforced uniqueness constraint for project IDs. * update project model and migration scripts * add utilities for updating metadata and graphs * consolidate migrations and add tests for project metadata init * fix type ambiguities in schema models * Refactor and add more unit tests for operations * improve re-ordering algo * formatting * bugfixes and tests for file/tag association --------- Co-authored-by: Jake Rosenberg <[email protected]> Co-authored-by: Jake Rosenberg <[email protected]> Co-authored-by: Jake Rosenberg <[email protected]> Co-authored-by: Jake Rosenberg <[email protected]>
- Loading branch information