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

Fix suspend_metadata_images_update being assigned to in CoverArtBox #2513

Merged

Conversation

phw
Copy link
Member

@phw phw commented Jun 14, 2024

Summary

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

Problem

  • JIRA ticket (optional): PICARD-XXX

MetadataItem.suspend_metadata_images_update is a context since #2500 and must not be assigned directly.

Solution

If metadata update notifications should be disabled for a list of objects use a contextlib.ExitStack to handle holding and freeing the context for all of them.

MetadataItem.suspend_metadata_images_update is now a context and must not
be assigned directly.
@phw phw requested a review from zas June 14, 2024 15:38
Copy link
Collaborator

@zas zas left a comment

Choose a reason for hiding this comment

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

LGTM

@phw phw merged commit 614330d into metabrainz:master Jun 14, 2024
45 checks passed
@phw phw deleted the fix-suspend_metadata_images_update-context branch June 14, 2024 16:58
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.

2 participants