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-13870: Add filter for recordings unlinked to works #3443

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

reosarevok
Copy link
Member

Implement MBS-13870

Description

This allows filtering an artist's recording list by whether the recordings have at least one work linked to them, or they have none.

This is admittedly mostly useful for editing, but it can be very useful for that, allowing users to easily find recordings that still need work relationships - it would make it much easier to improve the discographies of prolific classical performers, such as orchestras and conductors, and probably be of use also for popular music.

I did consider making it more complicated (to allow filtering by writer of the linked works, for example) but that's a lot more work and I was afraid that it would get crazy and unwieldy anyway for something like the Berliner Philharmoniker (which is the kind of artist where it could theoretically be useful). So for now, this is a simple "has linked works / has no linked works", which I'd love to use to clean stuff up.

Testing

Manually first, and added tests for this to the sprawling Filtering test.

@reosarevok reosarevok added the New feature Non urgent new stuff label Jan 7, 2025
Copy link
Member

@mwiencek mwiencek left a comment

Choose a reason for hiding this comment

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

Tested locally, works for me.

Comment on lines 53 to 54
{ value => 1, label => l('Linked to works') },
{ value => 2, label => l('Not linked to works') },
Copy link
Member

Choose a reason for hiding this comment

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

I was wondering if we should use "Related to works" instead (the name of the button in the relationship editor is "Add related work," for example), though we are probably inconsistent about that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair point, made the change.

This allows filtering an artist's recording list by whether the recordings
have at least one work related to them, or they have none.

This is admittedly mostly useful for editing, but it can be *very* useful
for that, allowing users to easily find recordings that still need work
relationships - it would make it much easier to improve the discographies
of prolific classical performers, such as orchestras and conductors,
and probably be of use also for popular music.
@reosarevok reosarevok merged commit 712d84f into metabrainz:master Jan 9, 2025
2 checks passed
@reosarevok reosarevok deleted the MBS-13870 branch January 9, 2025 09:15
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.

2 participants