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

Return privileges as a number in internal editor JSON

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2021-02-15
    • None
    • 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.

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

              Created:
              Updated:
              Resolved:

                Version Package
                2021-02-15