-
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-1352 Revamp primary source loading (#19)
- fixing typo in `extract_oranigram_units` (now: `extract_organigram_units`) - remove dependency to `sqlalchemy` - remove `BaseSettings.sqlite_path` - hardcode the stableTargetId of the `mex` primary source to resolve cyclic dependency - remove sqlite-based logic - `insert_primary_source_into_db` function - `seed-mex-db` script - `insert_test_primary_sources_into_db` helper function - `seed_primary_sources_into_db` fixture - because the middle-step of loading the primary sources into sqlite is now cut out - they are read directly from the JSON file in assets where they are maintained - add `BaseSettings.primary_sources_path` to point to the `primary-source.json` file - replace `transform_mex_db_primary_source_to_extracted_primary_source` with `transform_seed_primary_sources_to_extracted_primary_sources` which operates on iterables - add `extracted_primary_sources` fixture that loads all primary sources from `primary_sources_path` and returns a mapping of human-readable identifiers to `ExtractedPrimarySource` objects - this removes the need for creating individual `extracted_foo_primary_source` fixtures
- Loading branch information
1 parent
0cd242b
commit 16cf77f
Showing
38 changed files
with
274 additions
and
1,081 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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[ | ||
{ | ||
"identifier": "mex", | ||
"title": [ | ||
{ | ||
"language": "en", | ||
"value": "Metadata Exchange" | ||
} | ||
] | ||
}, | ||
{ | ||
"identifier": "organigram", | ||
"title": [ | ||
{ | ||
"language": "en", | ||
"value": "Organizational Units" | ||
} | ||
] | ||
}, | ||
{ | ||
"identifier": "ldap", | ||
"title": [ | ||
{ | ||
"language": "en", | ||
"value": "Active Directory" | ||
} | ||
] | ||
}, | ||
{ | ||
"identifier": "wikidata", | ||
"title": [ | ||
{ | ||
"language": "en", | ||
"value": "Wikidata APIs" | ||
} | ||
] | ||
} | ||
] |
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.