Issue Details (XML | Word | Printable)

Key: MBS-2963
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Oliver Charles
Reporter: Paul Taylor
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

Support 'release-groups' inc parameter for /ws/2/release browsing

Created: 06/Jul/11 11:36 AM   Updated: 03/Oct/11 01:55 PM   Resolved: 03/Oct/11 01:54 PM
Component/s: Web service
Affects Version/s: None
Fix Version/s: Bug fixes, 2011-09-26


 Description  « Hide

Surely an oversight

http://musicbrainz.org/ws/2/release?recording=4c70d157-6a4c-4d34-9970-61a3721f9542&inc=labels+artist-credits&type=album

would expect to include

<release-group type="Album"/>

and from http://wiki.musicbrainz.org/XMLWebService

Any query which includes release-groups in the results can be filtered to only include release groups of a certain type. Any query which includes releases in the results can be filtered to only include releases of a certain type and/or status



Sort Order: Ascending order - Click to sort in descending order
Oliver Charles added a comment - 10/Aug/11 03:04 PM

I think this should allow inc=release-groups. Allowing that gives the following XML:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">
<release-list count="2">
<release id="1658d88b-6012-34d5-ab1e-5fbfdac1b59b">
<title>King</title>
<status>Official</status>
<quality>normal</quality>
<text-representation>
<language>eng</language>
<script>Latn</script>
</text-representation>
<artist-credit>
<name-credit>
<artist id="c118bc97-11a7-41dc-a55e-48c3bcf22ac2">
<name>Belly</name>
<sort-name>Belly</sort-name>
</artist>
</name-credit>
</artist-credit>
<release-group type="Album" id="30b7b861-cb40-3355-8723-223581cb8efd">
<title>King</title>
<first-release-date>1995-02-14</first-release-date>
<artist-credit>
<name-credit>
<artist id="c118bc97-11a7-41dc-a55e-48c3bcf22ac2">
<name>Belly</name>
<sort-name>Belly</sort-name>
</artist>
</name-credit>
</artist-credit>
</release-group>
<date>1995-02-14</date>
<country>US</country>
<barcode>093624583325</barcode>
<asin>B000002MW4</asin>
<label-info-list count="1">
<label-info>
<catalog-number>945833-2</catalog-number>
<label id="be0fec81-5c18-4494-8bbf-0d81dec006bf">
<name>Sire Records</name>
<sort-name>Sire Records</sort-name>
<label-code>3228</label-code>
</label>
</label-info>
</label-info-list>
</release>
<release id="3ca2da9e-6cdc-477c-be51-f0507b78746d">
<title>King</title>
<status>Official</status>
<quality>normal</quality>
<text-representation>
<language>eng</language>
<script>Latn</script>
</text-representation>
<artist-credit>
<name-credit>
<artist id="c118bc97-11a7-41dc-a55e-48c3bcf22ac2">
<name>Belly</name>
<sort-name>Belly</sort-name>
</artist>
</name-credit>
</artist-credit>
<release-group type="Album" id="30b7b861-cb40-3355-8723-223581cb8efd">
<title>King</title>
<first-release-date>1995-02-14</first-release-date>
<artist-credit>
<name-credit>
<artist id="c118bc97-11a7-41dc-a55e-48c3bcf22ac2">
<name>Belly</name>
<sort-name>Belly</sort-name>
</artist>
</name-credit>
</artist-credit>
</release-group>
<date>1995-02-14</date>
<country>US</country>
<label-info-list count="1">
<label-info>
<catalog-number>D 108122</catalog-number>
<label id="be0fec81-5c18-4494-8bbf-0d81dec006bf">
<name>Sire Records</name>
<sort-name>Sire Records</sort-name>
<label-code>3228</label-code>
</label>
</label-info>
</label-info-list>
</release>
</release-list>
</metadata>

Which I think is acceptable


Oliver Charles added a comment - 27/Sep/11 12:36 PM

Paul, please comment on if you think the above would work for you


Paul Taylor added a comment - 27/Sep/11 12:40 PM

Yes, thats fine thanks.


Oliver Charles added a comment - 03/Oct/11 01:54 PM

Fixed in c0b436a