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

MBS-13597: Add release filter to label index pages #3450

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

Conversation

reosarevok
Copy link
Member

Implement MBS-13597

Problem

We have very useful filter tools for all sort of artist pages that have long and unwieldy tables. Another thing that is long and unwieldy: label pages with sometimes thousands of releases. And we cannot filter those.

Solution

This extends the release filter from the artist releases page to label index pages, which have very similar lists. Most of the code can be reused, so I moved some into roles.

The only real difference with the artist forms are that ACs are taken for all the releases in the label and that "no label exists" is not a filter option for labels, for obvious reasons.

Testing

Tests added, with very small changes from the artist release ones.

While testing this locally I saw we were getting a warning due to the new code to keep ACs when moving around in filters, so I deal with that in the small first commit.

This was always trying to compare, leading to "argument isn't numeric"
warnings.
This extends the release filter from the artist releases page to label index
pages, which have very similar lists. Most of the code can be reused,
so I moved some into roles.

The only real difference with the artist forms are that ACs are taken
for all the releases in the label and that "no label exists" is not a filter
option for labels, for obvious reasons.

Tests added, with very small changes from the artist release ones.
@reosarevok reosarevok added the New feature Non urgent new stuff label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New feature Non urgent new stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant