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-11599: Allow adding URL relationships to genre pages #2497

Merged
merged 9 commits into from
Jun 27, 2022

Conversation

reosarevok
Copy link
Member

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

@yvanzo yvanzo marked this pull request as draft June 14, 2022 19:51
reosarevok and others added 7 commits June 14, 2022 22:58
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.
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.

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).

root/types/relationship.js Outdated Show resolved Hide resolved
@reosarevok reosarevok marked this pull request as ready for review June 15, 2022 08:35
Co-authored-by: Michael Wiencek <mwtuea@gmail.com>
@reosarevok
Copy link
Member Author

@brainzbot, retest this please

Copy link
Contributor

@yvanzo yvanzo left a 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:

  1. 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
  2. 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

Copy link
Contributor

@yvanzo yvanzo left a 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!

@reosarevok reosarevok merged commit bf8367e into metabrainz:master Jun 27, 2022
@reosarevok reosarevok deleted the MBS-11599 branch June 27, 2022 18:52
reosarevok added a commit that referenced this pull request Jun 28, 2022
* 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
reosarevok added a commit that referenced this pull request Jul 3, 2022
* 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
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.

3 participants