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

add study and dataset identifiers to folder schema #332

Merged
merged 24 commits into from
Mar 8, 2022

Conversation

blankdots
Copy link
Contributor

@blankdots blankdots commented Jan 10, 2022

Description

Related issues

Partly Closes #326

Type of change

  • New feature (non-breaking change which adds functionality)

Changes Made

  1. JSON Schemas adjustments
    • introduce keywords required for Metax in doiInfo
    • dataset description and studyabstract are now mandatory
    • small formatting adjustments
  2. create draft DOIs for Study and Datasets
  3. update DOIs info at Datacite when folder is published
  4. multilevel add patch objects to support /extraInfo/datasetIdentifiers/- which needs dot notation for mongodb to work e.g. extraInfo.datasetIdentifiers
  5. allow inserting only one study in folder, there might some race condition if we try to insert at the same time, however i tried to address that, however if anyone has a better idea, I am open to suggestions
  6. integration and unit tests adjustments
  7. some functions don't need to be async and remove additional check for list when create ids when posting a new object

Testing

  • Unit Tests
  • Integration Tests

Mentions

delete DOI will come in a follow-up PR.

@blankdots blankdots self-assigned this Jan 10, 2022
@blankdots blankdots linked an issue Jan 11, 2022 that may be closed by this pull request
@blankdots blankdots force-pushed the feature/doi-workflow branch from 0021331 to 308b958 Compare January 11, 2022 11:05
@blankdots blankdots force-pushed the bugfix/json-messages branch from 1abccca to 7f0ae9d Compare January 12, 2022 16:15
@blankdots blankdots force-pushed the feature/doi-workflow branch from 308b958 to 37990d9 Compare January 12, 2022 16:20
Base automatically changed from bugfix/json-messages to develop January 24, 2022 12:45
@blankdots blankdots force-pushed the feature/doi-workflow branch from 37990d9 to 0d5865a Compare January 25, 2022 08:08
@blankdots blankdots force-pushed the feature/doi-workflow branch 5 times, most recently from d57eac1 to 04d338d Compare February 15, 2022 12:22
@blankdots blankdots force-pushed the feature/doi-workflow branch from a1712fd to f1d89ab Compare February 16, 2022 14:24
@blankdots blankdots changed the base branch from develop to refactor/patch-object-on-save February 16, 2022 14:25
@blankdots blankdots force-pushed the feature/doi-workflow branch 2 times, most recently from f74bb5a to 7c367fb Compare February 16, 2022 14:30
@genie9 genie9 force-pushed the refactor/patch-object-on-save branch from 135af96 to 2b078c9 Compare February 23, 2022 14:22
@genie9 genie9 mentioned this pull request Feb 23, 2022
4 tasks
Base automatically changed from refactor/patch-object-on-save to develop February 28, 2022 08:10
@blankdots blankdots added this to the 0.12.0 milestone Feb 28, 2022
@blankdots blankdots changed the base branch from develop to feature/metax-integration February 28, 2022 16:11
@blankdots blankdots force-pushed the feature/doi-workflow branch from a76b1f9 to a2df37c Compare February 28, 2022 16:11
@blankdots blankdots force-pushed the feature/doi-workflow branch from 0b35a97 to 4a6bf17 Compare March 2, 2022 15:00
blankdots added 14 commits March 7, 2022 08:22
prepare Study and Datasets DOI payload and relationships between them

for now url is omitted till Metax integration is done
we need to use find_one_and_update otherwise the bulkwrite will not be able to accurately catch it.

It is not by far the best solution, and can be improved
restrict one study per folder.
deprecate creating draft when publishing folder
prepare Study and Datasets DOI payload and relationships between them

for now url is omitted till Metax integration is done
we need to use find_one_and_update otherwise the bulkwrite will not be able to accurately catch it.

It is not by far the best solution, and can be improved
checking a set should be faster than checking a list
@blankdots blankdots force-pushed the feature/doi-workflow branch from 4a6bf17 to d386c7d Compare March 7, 2022 07:22
@genie9 genie9 merged commit d386c7d into feature/metax-integration Mar 8, 2022
@genie9 genie9 deleted the feature/doi-workflow branch March 8, 2022 12:36
blankdots added a commit that referenced this pull request Mar 10, 2022
blankdots added a commit that referenced this pull request Mar 10, 2022
genie9 pushed a commit that referenced this pull request Mar 16, 2022
genie9 pushed a commit that referenced this pull request Mar 16, 2022
genie9 pushed a commit that referenced this pull request Mar 17, 2022
genie9 pushed a commit that referenced this pull request Mar 21, 2022
blankdots added a commit that referenced this pull request Mar 22, 2022
genie9 pushed a commit that referenced this pull request Mar 29, 2022
genie9 pushed a commit that referenced this pull request Mar 31, 2022
@blankdots blankdots mentioned this pull request Apr 7, 2022
6 tasks
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.

Adjust DOI information so that it can be integrated with Metax/Etsin
3 participants