-
Notifications
You must be signed in to change notification settings - Fork 87
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
metadata: auto-populate publication_date
on new versions
#1616
base: master
Are you sure you want to change the base?
Conversation
slint
commented
Nov 28, 2023
•
edited
Loading
edited
- Closes https://github.com/zenodo/rdm-project/issues/588
@@ -19,6 +20,9 @@ class MetadataComponent(ServiceComponent): | |||
|
|||
field = "metadata" | |||
new_version_skip_fields = ["publication_date", "version"] | |||
new_version_generated_fields = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: why not removing publication_date
from new_version_skip_fields
? It would simply import the previous version's publication date and then the user could modify it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered that initially, but this is how we had it in legacy and is the reason we ended up with many records that just had the exact same publication_date
across all versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are failing, otherwise LGTM :)
Co-authored-by: Sam Arbid <[email protected]>
This PR was automatically marked as stale. |
This PR was automatically marked as stale. |