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-13781: Support browsing genres by collection in the API #3394

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

reosarevok
Copy link
Member

Implement MBS-13781

Description

We added the feature in the last schema change but I completely forgot the WS side of it. This implements it, plus some tests.

Testing

Manually, and I added BrowseGenres tests. AFAICT this is the only collection browse JSON test, too.

We added the feature in the last schema change but I completely forgot
the WS side of it. This implements it, plus some tests.

I had to move genre_all to be the last one defined so that Catalyst
would choose it first and avoid breaking genre lists, apparently;
see https://metacpan.org/dist/Catalyst-Runtime/view/lib/Catalyst/RouteMatching.pod
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.

@reosarevok reosarevok merged commit 4a3fe68 into metabrainz:master Jan 8, 2025
1 of 2 checks passed
@reosarevok reosarevok deleted the MBS-13781 branch January 8, 2025 10:12
reosarevok added a commit that referenced this pull request Jan 13, 2025
* master:
  Update POT files using the production database
  Merge pull request #3447 from reosarevok/MBS-13866
  Convert Wikimedia classes to components (#3407)
  MBS-13897: Display "Account admin" under user types on profile
  Link to bot docs from user types list
  Link to beginner docs from user types list
  MBS-13896: Fix anchor links for editor types
  Merge pull request #3443 from reosarevok/MBS-13870
  Merge pull request #3445 from reosarevok/MBS-13895
  MBS-13857: Block unicode Tags block in usernames
  MBS-13893: Block invisible characters (Hangul, Braille) in usernames
  MBS-13886: Don't crash on wrong link_type for paged rels (#3434)
  MBS-13781: Support browsing genres by collection in the API (#3394)
  Preserve the selected AC filter in more cases
  Fix untranslatable statistics label
  Don't force new vote names to be translated twice
  Clean broken enter_votes code
  MBS-13770: Allow admins to auto-approve and auto-reject any edit
  MBS-13770: Add new Admin approval/rejection votes
  Keep filter when navigating with ArtistIndex footer
  MBS-11950: Allow filtering VA RGs for artist
  MBS-8186: Allow filtering unofficial RG list
  Split and document Data::Alias test
  MBS-13564: Correctly override primary on alias locale change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API New feature Non urgent new stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants