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

Infer individual-to-group relationship direction when adding new artist

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2024-01-08
    • None
    • Relationship editor
    • None

      MBS-2604 tracked inferring the direction of individual-to-group relationships (member of, conductor for, etc.) based on artist type, but it only works when adding a relationship between two entities that already exist in the database.

      If you're adding a new group and try to add a member-of relationship to an existing person, the relationship still defaults to the wrong direction (group is member of person). This happens because the source entity passed to inferLinkDirection doesn't have a type assigned to it yet.

      It seems like it would be straightforward to improve this to typically do what the editor wants. If the source's type is null, the direction of these relationships can still be inferred based on the target's type.

      I'll upload a PR to do this soon.

            derat derat
            derat derat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2024-01-08