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

JSON webservice doesn't send relationship attributes

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2013-01-28
    • None
    • Web service
    • None

      The example I used to test is http://musicbrainz.org/artist/2176a230-eee0-4a42-9d6d-1b69acf855a8/relationships

      http://musicbrainz.org/ws/2/artist/2176a230-eee0-4a42-9d6d-1b69acf855a8?inc=artist-rels includes the 'ended' status and end date, but http://musicbrainz.org/ws/2/artist/2176a230-eee0-4a42-9d6d-1b69acf855a8?inc=artist-rels&fmt=json does not.

      In addition, attributes like the 'additional' status on 'member of band' relationships is not returned.

          [MBS-5609] JSON webservice doesn't send relationship attributes

          Oliver Charles made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Beta Testing [ 10002 ] New: Closed [ 6 ]
          Kuno Woudt made changes -
          Fix Version/s New: 2013-01-28 [ 10170 ]
          Fix Version/s Original: Schema change, 2013-05-15 [ 10155 ]
          Kuno Woudt made changes -
          Fix Version/s New: Schema change, 2013-05-15 [ 10155 ]
          Fix Version/s Original: 2013-01-28 [ 10170 ]
          Kuno Woudt made changes -
          Fix Version/s New: 2013-01-28 [ 10170 ]
          Kuno Woudt made changes -
          Status Original: Reopened [ 4 ] New: In Beta Testing [ 10002 ]
          Kuno Woudt made changes -
          Status Original: Review Submitted [ 5 ] New: Reopened [ 4 ]

          Kuno Woudt added a comment -

          Kuno Woudt added a comment - add tests. http://codereview.musicbrainz.org/r/2470/
          Kuno Woudt made changes -
          Status Original: Open [ 1 ] New: Review Submitted [ 5 ]

          Calvin Walton added a comment -

          To simplify parsing, it would be nice if the relationship dates would be formatted in the same 'life-span' format as e.g. artist dates, perhaps like this:

          {
          
              "direction": "backward",
              "artist": {
                  "disambiguation": "",
                  "sort-name": "Nishioka, Yukiko",
                  "name": "西岡由紀子",
                  "id": "65d1fa92-ed86-47b0-ab4f-7b7d46abf095"
              },
              "type": "member of band",
              "life-span": {
                  "begin": null,
                  "end": "1994-04",
                  "ended": true
              }
          
          },
          

          Calvin Walton added a comment - To simplify parsing, it would be nice if the relationship dates would be formatted in the same 'life-span' format as e.g. artist dates, perhaps like this: { "direction": "backward", "artist": { "disambiguation": "", "sort-name": "Nishioka, Yukiko", "name": "西岡由紀子", "id": "65d1fa92-ed86-47b0-ab4f-7b7d46abf095" }, "type": "member of band", "life-span": { "begin": null, "end": "1994-04", "ended": true } },
          Freso made changes -
          Link New: This issue is related to MBS-3072 [ MBS-3072 ]

            warp Kuno Woudt
            kepstin Calvin Walton
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2013-01-28