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

LB-1411: Add mediums to release group metadata cache #2684

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

amCap1712
Copy link
Member

Store mediums in release group metadata cache so that tracklists for releases with multiple discs are displayed properly.

@pep8speaks
Copy link

pep8speaks commented Dec 27, 2023

Hello @amCap1712! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 334:131: E501 line too long (135 > 130 characters)
Line 354:131: E501 line too long (151 > 130 characters)

Comment last updated at 2024-01-06 12:41:35 UTC

ujson.dumps({"release_mbid": str(row["recordings_release_mbid"]), "recordings": recordings}))
ujson.dumps({
"release_mbid": str(row["recordings_release_mbid"]),
"recordings": all_recordings,
Copy link
Member Author

Choose a reason for hiding this comment

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

recordings are stored twice in release group metadata cache at the moment for backward compatibility, this can be removed as soon as this PR is deployed to production.

@amCap1712 amCap1712 force-pushed the release-group-listeners-fix branch from 2ab9b51 to 4b40671 Compare December 27, 2023 14:11
@amCap1712 amCap1712 force-pushed the add-medium-to-release-group-cache branch 2 times, most recently from 7fef108 to 2a1208f Compare December 27, 2023 19:48
Base automatically changed from release-group-listeners-fix to master December 29, 2023 11:31
@amCap1712 amCap1712 force-pushed the add-medium-to-release-group-cache branch 2 times, most recently from 9959dc5 to 1818e2e Compare January 1, 2024 19:11
@amCap1712 amCap1712 requested review from mayhem and MonkeyDo January 2, 2024 18:28
Copy link
Member

@MonkeyDo MonkeyDo left a comment

Choose a reason for hiding this comment

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

Front-end parts look good!
I haven't run this locally, perhaps at the appropriate moment we can deploy it to test.LB to check with some live data

Store mediums in release group metadata cache so that tracklists for
releases with multiple discs are displayed properly.
@amCap1712 amCap1712 force-pushed the add-medium-to-release-group-cache branch from 1818e2e to 1636c37 Compare January 6, 2024 12:41
@amCap1712 amCap1712 merged commit 7c2d1f2 into master Jan 6, 2024
3 checks passed
@amCap1712 amCap1712 deleted the add-medium-to-release-group-cache branch January 6, 2024 12:44
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.

3 participants