Return privileges as a number in internal editor JSON

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Normal
    • 2021-02-15
    • Affects Version/s: None
    • Component/s: None

      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.

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

              Created:
              Updated:
              Resolved:

                Version Package
                2021-02-15