Investigate and fix relationships with wrong entity types

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: None
    • Component/s: Reports
    • None

      Currently, some entities have a relationship of a to the wrong type of entities. An example:
      https://beta.bookbrainz.org/work/3fb95f66-3083-44cb-b64d-0f3c84024443 has 5 "Edition contains Work" relationships (type 10) to 5 Edition Group entities.

      This can cause some weird issues with fetching the related entity, and ends up malformed on the front-end. Front-end code should be reliant in case this happens, but the relationships should also be fixed.

      An SQL query can be constructed to fetch all relationships with a mismatch of entity type on either end, and perhaps even to fix said relationships automatically. However, how do you choose which relationship replacement to choose?
      ie: for a relationship type 10 ('Edition contains Work') that points to an Edition Group, what EditionGroup <-> Work relationship do you select as a replacement. Perhaps they are better fixed manually.

            Assignee:
            Unassigned
            Reporter:
            Monkey
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package