Issue Details (XML | Word | Printable)

Key: MBS-7694
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: nikki
Reporter: yeeeargh
Votes: 1
Watchers: 2
Operations

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

link areas to other entities in the webservice

Created: 23/Jun/14 04:16 PM   Updated: 07/Jul/14 07:54 PM  Due: 07/Jul/14   Resolved: 07/Jul/14 07:54 PM
Component/s: Web service
Affects Version/s: None
Fix Version/s: 2014-07-07

Issue Links:
Relates
 


 Description  « Hide

I just stumbled over a nice use case for the webservice [1]
It would be quite nice to get a list of artists which are linked to a specific area. In this example a list of all artists from "Washington, D.C.". Ideally that would cover the "area" field as well as "begin area" and "end area". Like the list you get on the page of that area [2]

According to the documentation [3] you can't get such a list via the webservice yet. Neither via a lookup [4] nor a browse [5]. The only way I could achieve this was via the search server [6]. But that isn't really a nice and clean way to do so.

[1] https://twitter.com/MattBailey0/status/472056502501789696
[2] https://www.musicbrainz.org/area/af59135f-38b5-4ea4-b4e2-dd28c5f0bad7/artists
[3] https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2
[4] http://musicbrainz.org/ws/2/area/af59135f-38b5-4ea4-b4e2-dd28c5f0bad7?inc=artists
[5] http://musicbrainz.org/ws/2/artist?area=af59135f-38b5-4ea4-b4e2-dd28c5f0bad7
[6] http://musicbrainz.org/ws/2/artist/?query=area:%22Washington,%20D.C.%22%20OR%20beginarea:%22Washington,%20D.C.%22%20OR%20endarea:%22Washington,%20D.C.%22



Sort Order: Ascending order - Click to sort in descending order
Ulrich Klauer added a comment - 23/Jun/14 04:22 PM

I don't think this would be resolved by MBS-7546, because the artist area/begin area/end area fields aren't ARs.



yeeeargh added a comment - 24/Jun/14 08:40 PM

that was quick! didn't expect that. had a quick look at your sandbox links and it's looking good. is there a reason that you didn't implement the lookup with subqueries like http://musicbrainz.org/ws/2/area/af59135f-38b5-4ea4-b4e2-dd28c5f0bad7?inc=artists for example?


Ulrich Klauer added a comment - 24/Jun/14 09:05 PM

From the pull request: "I also didn't do anything for lookups, as those are linked to 25 results which seems pointless." (I assume s/linked/limited/.)


nikki added a comment - 24/Jun/14 09:14 PM

Heh, yes, I did mean "limited".


yeeeargh added a comment - 24/Jun/14 10:42 PM

I see, nevermind then. I thought you missed it ... but as it turns out I'm blind and missed that part in the pull request.