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

Return privileges as a number in internal editor JSON

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2021-02-15
    • Component/s: Refactoring
    • Labels:
      None

      Description

      Right now we return every bit field of editor privileges as a separate property in our internal JSON format: https://github.com/metabrainz/musicbrainz-server/blob/a275738/lib/MusicBrainz/Server/Entity/Editor.pm#L310-L321

      It'd simplify and reduce the size of the format (as in less fields to keep track of, and smaller JSON payloads for pages that deal with a lot of editor objects) if we sent the privileges as a number and calculated the fields in JS.

        Attachments

          Activity

            People

            Assignee:
            reosarevok Nicolás Tamargo
            Reporter:
            bitmap Michael Wiencek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                2021-02-15