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

Factor out lists of entities in the code

    XMLWordPrintable

    Details

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

      Description

      There are a number of places in the code where we have a list of entities. That means when things change, we have to update a lot of places, inevitably miss some and then we have bugs.

      Fixing this is a bit complicated, since the list tends to vary depending on what exactly should be included and how "release group" should be written, but presumably something like a hash of data in the constants file with some functions for returning a matching list would work.

      The ones I've found so far:

      things with annotations

      things with MBIDs

      things with ratings

      things with tags

      things with subscriptions

      core entities

        Attachments

          Activity

            People

            • Assignee:
              ianmcorvidae Ian McEwen
              Reporter:
              nikki nikki
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2014-06-09