-
Notifications
You must be signed in to change notification settings - Fork 5
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
added sparql queries and mapping files for metadata normaliser #32
Conversation
Codecov Report
@@ Coverage Diff @@
## main #32 +/- ##
==========================================
- Coverage 97.18% 96.87% -0.32%
==========================================
Files 34 37 +3
Lines 1103 1153 +50
==========================================
+ Hits 1072 1117 +45
- Misses 31 36 +5
Continue to review full report at Codecov.
|
@@ -197,7 +197,8 @@ prod-dotenv-file: guard-VAULT_ADDR guard-VAULT_TOKEN vault-installed | |||
@ vault kv get -format="json" ted-prod/airflow | jq -r ".data.data | keys[] as \$$k | \"\(\$$k)=\(.[\$$k])\"" >> .env | |||
@ vault kv get -format="json" ted-prod/mongo-db | jq -r ".data.data | keys[] as \$$k | \"\(\$$k)=\(.[\$$k])\"" >> .env | |||
|
|||
|
|||
refresh-normaliser-mapping-files: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a solution as well!
You will, however, need to take into account the location of those resources.
import json | ||
|
||
try: | ||
import importlib.resources as pkg_resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good practice
return json.loads(path.read_bytes()) | ||
|
||
|
||
RESOURCES_PATH = pathlib.Path(__file__).parent.resolve() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice setup
No description provided.