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

[ENG-6655] Peer-review DOI will not save on created or edited preprint #10974

Conversation

opaduchak
Copy link
Contributor

Purpose

Changes

QA Notes

Please make verification statements inspired by your code and what your code touches.

  • Verify
  • Verify

What are the areas of risk?

Any concerns/considerations/questions that development raised?

Documentation

Side Effects

Ticket

Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

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

Verified locally that preprints creation, version creation, preprint edit all work as expected.

  • Please update PR description and add link to the ticket

@@ -113,7 +113,7 @@ class PreprintSerializer(TaxonomizableSerializerMixin, MetricsSerializerMixin, J
date_published = VersionedDateTimeField(read_only=True)
original_publication_date = VersionedDateTimeField(required=False, allow_null=True)
custom_publication_citation = ser.CharField(required=False, allow_blank=True, allow_null=True)
doi = ser.CharField(source='article_doi', required=False, allow_null=True)
doi = ser.CharField(source='article_doi', required=False, allow_null=True, allow_blank=True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, something I learned today, blank is validation which doesn't need migration if changed, while null is DB related which needs migration if changed.

@brianjgeiger brianjgeiger merged commit d0ba2f9 into CenterForOpenScience:feature/b-and-i-25-01 Feb 13, 2025
6 checks passed
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.

3 participants