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

HP-1071 fix: resourceType and resourceTypeGeneral #193

Merged
merged 6 commits into from
Aug 9, 2023

Conversation

mfshao
Copy link
Contributor

@mfshao mfshao commented Aug 9, 2023

Jira Ticket: HP-1071

Improvements

  • DOI: doi_type now is a truly free-text field

Bug Fixes

  • DOI: rename doi_type to doi_type_general to correctly indicate that is a enum field instead of free-text field
  • DOI: fixed the default value for description_type

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

@mfshao mfshao requested a review from Avantol13 August 9, 2023 16:54
@@ -979,7 +996,7 @@ def __init__(self, description, description_type=TYPE_ABSTRACT):
f"Provided description_type '{description_type}' is NOT in {allowed_types}. "
f"Defaulting to '{DigitalObjectIdentifierDescription.TYPE_ABSTRACT}'."
)
description_type = DigitalObjectIdentifierDescription.NAME_TYPE_PERSON
description_type = DigitalObjectIdentifierDescription.TYPE_ABSTRACT
Copy link
Contributor

Choose a reason for hiding this comment

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

nice catch

@mfshao mfshao merged commit 36105c1 into master Aug 9, 2023
@mfshao mfshao deleted the feat/free-text-resource-type branch August 9, 2023 18:20
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