-
-
Notifications
You must be signed in to change notification settings - Fork 285
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-11599: Allow adding URL relationships to genre pages #2497
Conversation
Not implementing a full relationship editor yet since that has no easy React implementation and mwiencek is working on that for all entities, by which point it should be trivial to also extend it to genres. In the meantime, being able to link genres to Wikidata, Rate Your Music and whatnot seems like a great first step. We do need a "mock" relationship editor section for hidden inputs to be attached to, though, so one is added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new URL editing features worked fine for me when I had tested this locally while adding the fixup commits (which should be squashed before merging).
Co-authored-by: Michael Wiencek <mwtuea@gmail.com>
@brainzbot, retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Editing entity of other type with external link is not working anymore locally.
What I tried, using a local server, with a sample database, logged in as relationship editor:
- Adding an external link to a genre ✔️
- create a “test” Genre-URL relationship type
- edit the genre “classical”
- add the URL “
https://www.wikidata.org/wiki/Q1143752
” as external link - check the edit has been successfully entered in edits history
- Adding an external link to an artist ❌
- edit the artist “Zachary Abels” (who has one artist relationship)
- add the URL “
https://www.wikidata.org/wiki/Q1143752
” as external link too - check the edit has unfortunately not been entered in edits history
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Editing the artist works now, editing the genre keeps working too. 🚢 Merge it squashed!
* master: Update POT files using the production database Update translations from Transifex Rewrite "Test X" test names (#2575) Bump Flow to 0.181.1 MBS-12458: Error if trying to load annotation for wrong entity (#2568) MBS-11599: Allow adding URL relationships to genre pages (#2497) Fix the hydrate div name for AliasEditForm (#2490) Extend useful Controller::Ratings tests to other entities Document and standardize Controller::Tags tests
* beta: Update POT files using the production database Update translations from Transifex MBS-12484: Hide genre alias edit links if limited (#2581) Update POT files using the production database Update translations from Transifex MBS-12459. Mimic native tooltip position offset (#2567) MBS-12472: Show genre edit history links for all users (#2574) Fix warning when displaying blank annotation text (#2578) Improve SQL formatting for language queries Add stat label for null language works MBS-12470: Fix work language query for null MBS-12470: Also list language = null in the stats page MBS-12470: Fix release language query for null Remove misleadingly-placed TODO MBS-12479: Add aliases for genres to the website MBS-12464: Also display event-work rels in Related Works (#2573) Remove seemingly useless test sql files (#2571) MBS-12474: Display Wikipedia extracts for genres (#2576) MBS-12475: Add autoselect for RYM genre URLs MBS-12475: Add autoselect for Wikidata genre URLs Update POT files using the production database Update translations from Transifex Rewrite "Test X" test names (#2575) Bump Flow to 0.181.1 MBS-12458: Error if trying to load annotation for wrong entity (#2568) MBS-11599: Allow adding URL relationships to genre pages (#2497) Fix the hydrate div name for AliasEditForm (#2490) Extend useful Controller::Ratings tests to other entities Document and standardize Controller::Tags tests
Implement MBS-11599
Not implementing a full relationship editor yet since that has no easy React implementation and mwiencek is working on that for all entities, by which point it should be trivial to also extend it to genres. In the meantime, being able to link genres to Wikidata, Rate Your Music and whatnot seems like a great first step.
We do need a "mock" relationship editor section for hidden inputs to be attached to, though, so one is added.
On top of #2492