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

JSON WS serializes ratings for Release

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2017-03-13
    • Component/s: Web service
    • Labels:
      None

      Description

      A release lookup allows "(user-)ratings" as part of its "inc" parameter, presumably to be used in conjunction with "release-groups" to get the ratings for the releases' RG.

      For example: https://beta.musicbrainz.org/ws/2/release/63591e68-a1f5-41f6-977a-4db4ba056fd7?inc=ratings+release-groups

      In the XML serializer, no ratings elements are produced under the release for such a request, so requesting only ratings is effectively a no-op:

      https://beta.musicbrainz.org/ws/2/release/63591e68-a1f5-41f6-977a-4db4ba056fd7?inc=ratings

      However, with JSON output, a rating is erroneously included:

      https://beta.musicbrainz.org/ws/2/release/63591e68-a1f5-41f6-977a-4db4ba056fd7?inc=ratings&fmt=json

      In addition, when the release group info is requested as well, that does NOT get a rating added:

      https://beta.musicbrainz.org/ws/2/release/63591e68-a1f5-41f6-977a-4db4ba056fd7?inc=ratings+release-groups&fmt=json

        Attachments

          Activity

            People

            • Assignee:
              zastai Tim Van Holder
              Reporter:
              zastai Tim Van Holder
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: