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

Relationships should only be loaded where necessary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2014-09-15
    • Component/s: None
    • Labels:
      None

      Description

      I noticed a few problems in our controller code:

      • Edit pages only allow editing relationships where the source entity cardinality is 0, but we load all relationships anyway (which can be very slow on some classical artists).
      • The tabs for aliases, tags, details, etc. only display URL relationships in the sidebar, but in some cases we're still loading all relationships for the entity on those tabs.
      • Entities that use Controller::Role::Relationship load URL relationships twice on the edit page.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bitmap Michael Wiencek
              Reporter:
              bitmap Michael Wiencek
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2014-09-15