Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-7677

Relationships can be edited to have multiple instruments

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Edit system
    • None

      The fix from MBS-1377 only splits "add relationship" edits, but it is still possible to edit an existing relationship into having multiple instruments/vocals: https://beta.musicbrainz.org/edit/28102382

          [MBS-7677] Relationships can be edited to have multiple instruments

          yvanzo added a comment - - edited

          This behaviour is used as a workaround for artist-artist relationships where relationships with multiple instruments/vocals might make sense, see linked MBS-9213. Edit: And this is bad!

          yvanzo added a comment - - edited This behaviour is used as a workaround for artist-artist relationships where relationships with multiple instruments/vocals might make sense, see linked MBS-9213 . Edit: And this is bad!

          The reason I left this behavior out at the time is because I thought it would be confusing, but I could be wrong about that.

          `try_and_edit` would no longer map to just edit operations, it would also have to enter add-edits and possibly remove-edits depending on how it's implemented. For example, if someone replaces all the instruments on a relationship with different ones, we could either remove the existing one and add all new ones, or edit the existing one to have just one of the new instruments (which one would be arbitrary) and then add the rest.

          And if you only add new instruments to a relationship, I wasn't sure if it should just enter the ones you added separately, or also enter edits to split the existing one (which would map to either a remove + adds, or an edit + adds).

          Michael Wiencek added a comment - The reason I left this behavior out at the time is because I thought it would be confusing, but I could be wrong about that. `try_and_edit` would no longer map to just edit operations, it would also have to enter add-edits and possibly remove-edits depending on how it's implemented. For example, if someone replaces all the instruments on a relationship with different ones, we could either remove the existing one and add all new ones, or edit the existing one to have just one of the new instruments (which one would be arbitrary) and then add the rest. And if you only add new instruments to a relationship, I wasn't sure if it should just enter the ones you added separately, or also enter edits to split the existing one (which would map to either a remove + adds, or an edit + adds).

          Ulrich Klauer added a comment -

          The issue is that only try_and_insert in MB::S::Controller::Role::RelationshipEditor has the code for dealing with multiple instruments/vocals, but not try_and_edit.

          Ulrich Klauer added a comment - The issue is that only try_and_insert in MB::S::Controller::Role::RelationshipEditor has the code for dealing with multiple instruments/vocals, but not try_and_edit .

            Unassigned Unassigned
            chirlu Ulrich Klauer
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Version Package