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

DM-29218: Add provenance to header fix up #50

Merged
merged 1 commit into from Mar 17, 2021
Merged

DM-29218: Add provenance to header fix up #50

merged 1 commit into from Mar 17, 2021

Conversation

timj
Copy link
Member

@timj timj commented Mar 15, 2021

Adds some new keys indicating that the fixup was done
and the version of the software that did it.

Adds some new keys indicating that the fixup was done
and the version of the software that did it.
return modified or translator_modified
was_modified = (corrections_file is not None) or translator_modified

# Always add a sentinel even if we nothing was updated

Choose a reason for hiding this comment

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

I understand the desire to save a little time by not re-scanning, but adding cards (even ones with a deliberately obscure names) seems confusing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Are you against the entire concept of this ticket or against adding provenance when the check decided that nothing was needed? Assuming the latter, I was on the fence a bit. On the one hand a new version of metadata fixup would now refuse to fix the header even if it was supposed to (although we could overcome that by checking the value of the MODIFIED header and continue if it was False and the versions differed). On the other hand this does at least record which version of the software decided that no fix up was required.

Choose a reason for hiding this comment

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

Oh, just adding a key when it wasn't modified. But I don't feel strongly.

@timj timj merged commit 66a92fc into master Mar 17, 2021
@timj timj deleted the tickets/DM-29218 branch March 17, 2021 15:51
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.

None yet

2 participants