Skip to content
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

[#118] Zenodo migration #196

Merged
merged 3 commits into from
Oct 30, 2023
Merged

[#118] Zenodo migration #196

merged 3 commits into from
Oct 30, 2023

Conversation

Maurier
Copy link
Member

@Maurier Maurier commented Oct 27, 2023

  • Adds a script that can be used to fetch Zenodo's licenses controlled vocabulary and apply changes to our schema file.
  • Updates Zenodo schema with new licenses as part of their recent migration.

@github-actions
Copy link

github-actions bot commented Oct 27, 2023

✅ Result of Pytest Coverage

---------- coverage: platform linux, python 3.10.13-final-0 ----------

Name Stmts Miss Cover
dspback/init.py 0 0 100%
dspback/api.py 41 2 95%
dspback/config/init.py 88 1 99%
dspback/database/init.py 0 0 100%
dspback/database/procedures.py 17 1 94%
dspback/dependencies.py 127 29 77%
dspback/main.py 26 26 0%
dspback/pydantic_schemas.py 245 9 96%
dspback/routers/init.py 0 0 100%
dspback/routers/authentication.py 63 30 52%
dspback/routers/discovery.py 175 142 19%
dspback/routers/earthchem.py 90 52 42%
dspback/routers/external.py 38 1 97%
dspback/routers/hydroshare.py 116 75 35%
dspback/routers/metadata_class.py 47 11 77%
dspback/routers/repository_authorization.py 42 6 86%
dspback/routers/submissions.py 39 3 92%
dspback/routers/zenodo.py 82 44 46%
dspback/scheduler.py 38 17 55%
dspback/schemas/init.py 0 0 100%
dspback/schemas/discovery.py 67 1 99%
dspback/schemas/earthchem/init.py 0 0 100%
dspback/schemas/earthchem/model.py 207 0 100%
dspback/schemas/external/model.py 103 0 100%
dspback/schemas/hydroshare/model.py 115 0 100%
dspback/schemas/jsonld_conversion.py 22 22 0%
dspback/schemas/zenodo/init.py 0 0 100%
dspback/schemas/zenodo/model.py 90 0 100%
dspback/triggers.py 56 56 0%
dspback/utils/jsonld/clusters.py 16 0 100%
dspback/utils/jsonld/formatter.py 58 13 78%
dspback/utils/jsonld/scraper.py 35 25 29%
TOTAL 2043 566 72%
================== 69 passed, 3

@Maurier Maurier requested a review from sblack-usu October 27, 2023 20:20

# Override the file
with open("../schemas/zenodo/schema.json", "w") as f:
f.write(json.dumps(schema, indent=2))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the updated zenodo/schema.json file is the result from running this script?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

@Maurier Maurier merged commit 9b174ad into develop Oct 30, 2023
@Maurier Maurier deleted the 118-zenodo-migration branch August 21, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants