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

PICARD-1437: Fix any deleted tags in new metadata mark file as changed #1066

Merged
merged 1 commit into from Dec 11, 2018

Conversation

phw
Copy link
Member

@phw phw commented Dec 10, 2018

Summary

Saved files showed up as changed after release reload

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

When saving a file and reloading the matched release Picard 2.1.0dev2 will show the file as changed again. Previous versions showed a checkmark icon in this case.

Solution

The cause was the check for any deleted tags in new_metadata: Usually empty values in new_metadata are ignored on comparison, since the will be filled with original metadata value. But the check introduced with #1035 also considered the tag changed if it was empty and new_metadata contained any deleted tags.

Fixed this by checking only if the currently tested tag is marked as deleted in new_metadata

Action

@phw phw merged commit 7d9b859 into metabrainz:master Dec 11, 2018
@phw phw deleted the PICARD-1437 branch December 11, 2018 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants