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

metadata: auto-populate publication_date on new versions #1616

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

slint
Copy link
Member

@slint slint commented Nov 28, 2023

@@ -19,6 +20,9 @@ class MetadataComponent(ServiceComponent):

field = "metadata"
new_version_skip_fields = ["publication_date", "version"]
new_version_generated_fields = {
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

@alejandromumo alejandromumo left a 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 :)

Copy link
Contributor

This PR was automatically marked as stale.

@github-actions github-actions bot added the stale label Feb 11, 2024
@Samk13 Samk13 removed the stale label Feb 11, 2024
Copy link
Contributor

This PR was automatically marked as stale.

@github-actions github-actions bot added the stale label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants