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

datamodel: add non-issue fields based on zenodo/datacite #21

Merged
merged 19 commits into from
Oct 30, 2019

Conversation

ppanero
Copy link
Member

@ppanero ppanero commented Oct 25, 2019

Fields:

  • Resource type
  • additional titles
  • additional descriptions
  • dates (Following Zenodo implementation, not DataCite)
  • publication date
  • embargo date
  • language: Using ISO 639-3 (as Zenodo) instead of 639-1 (as DataCite). It's newer and uses 3 letters instead of 2.
  • version
  • rights_list

Validation:

  • All lang attributes be validated and follow the ISO 639-3
  • All enums are validated against their list of values in Marshmallow instead of the JSON Schema. This allows to define configurable control vocabularies.

Addreses part of #18

@ppanero ppanero added this to In progress in InvenioRDM October Board via automation Oct 25, 2019
@ppanero ppanero changed the title WIP: datamodel: add new fields WIP: datamodel: add new fields based on zenodo/datacite Oct 25, 2019
@ppanero ppanero self-assigned this Oct 25, 2019
@ppanero ppanero force-pushed the zenodo branch 6 times, most recently from 2188524 to 3cb2349 Compare October 25, 2019 11:27
@ppanero ppanero changed the title WIP: datamodel: add new fields based on zenodo/datacite datamodel: add non-issue fields based on zenodo/datacite Oct 29, 2019
@ppanero ppanero requested a review from fenekku October 29, 2019 14:08
@ppanero ppanero moved this from In progress to In Review in InvenioRDM October Board Oct 29, 2019
Copy link
Contributor

@fenekku fenekku left a comment

Choose a reason for hiding this comment

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

That was huge :) . Assume the non-minor marked comments are "normal". The main thing is getting the jsonschema right. The mappings and marshmallow schemas follow well from that.

invenio_rdm_records/data/objecttypes.json Show resolved Hide resolved
tests/unit/test_schemas_json_load.py Show resolved Hide resolved
invenio_rdm_records/marshmallow/json.py Outdated Show resolved Hide resolved
invenio_rdm_records/marshmallow/json.py Show resolved Hide resolved
invenio_rdm_records/marshmallow/utils.py Show resolved Hide resolved
invenio_rdm_records/models.py Outdated Show resolved Hide resolved
invenio_rdm_records/models.py Show resolved Hide resolved
Pablo Panero added 2 commits October 30, 2019 15:13
- Remove OpenAire related subtypes
- Make resource_type subtype required
- Fix typo in tests description
- Minor style improvements
Copy link
Contributor

@fenekku fenekku left a comment

Choose a reason for hiding this comment

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

Future Approved

Copy link
Contributor

@tmorrell tmorrell left a comment

Choose a reason for hiding this comment

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

Looks like a good start. I assume the enums will come later.

@fenekku fenekku merged commit 8fea2cc into inveniosoftware:master Oct 30, 2019
InvenioRDM October Board automation moved this from In Review to Done Oct 30, 2019
@ppanero ppanero deleted the zenodo branch February 20, 2020 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants