unfortunately there are duplicate releasegroups. The concrete cases are:
and
Both releasegroups are albums of the American band 3 Doors Down.
I know that this is not totally avoidable, but if this happens, how does MusicBrainz deal with that? Is the duplicate releasegroup removed or somehow marked as duplicate?
Normally when we editors run across duplicate release groups, we merge them. Thereâs no flagging to be done; you can just dive in and enter the merge edit.
Ok, thanks for the quick answers. If a remove takes place, the case is clear. But I couldnât get from the docs what happens after the merge with the old database record. Will it be removed or will something else happen?
The reason I ask this is that in my app users can add information linked to releasegroups in my database (in this case if they already have bought that particular release). If the release group id is lost, then my record also doesnât make any sense. In this case I could simply remove my db record.
Get confirmation on this, but as I understand it Merging keeps old IDs alive. That is the difference between Merging and Deleting and why Merging is usually the way forward.
Mhm, but this wouldnât solve the base problem, would it? Why merge when the merged object survives? How can I see which of the releasegroups is the âmainâ one? Currently I have the problem that in the list of an artists media I have many times the same album
After the merge, thereâs only one Release Group object, but it now has two RG IDâs. Also, any relationships that reference either of the merged groups will now reference the resulting group.
I only get release-group objects with one single ID. Do you have an example for the case you mention here? In the case of the band 3 Doors down, I get multiple releasegroups with each of them having one single ID. Are the RGs not merged, yet?
Both the old and new idâs still exist in the database and can be queried after you merge entries.
If you query the old entry it will return the same information as if you query the new id.
The output from the site and web service includes the current id of that entry and if you care you can compare the id returned is different to the id you queried the entries have been merged.
You can see which release group is the oldest one by clicking on each of the release groupsâ âediting historyâ and comparing the dates of the oldest entries. Additionally, you can use a userscript called MERGE HELPOR 2 from @jesus2099 that will automatically highlight and select the oldest MBID and also provide this info automatically in an edit note which looks like this: https://musicbrainz.org/edit/48631168.
If you query the api you will only get the new release group.
The old release group exists only as a pointer to the new entry and does not show up unless you specifically know it exists.
If you have tagged your music with the old entries the next time you tag them they will be changed to the new idâs.
Ah ok, I think now I understood So if someone marked some releasegroup in my app as âownedâ, and this releasegroup gets merged, it doesnât appear in the releasegroups anymore retrieved by the release-group endpoint using the GET parameter âartistâ. So hence, all I would have to do is to remove the âorphansâ in my database linking to a release group with an id not being output by the releasegroup endpoint used as described above.
The only thing that is unsolved is that (at least to my knowledge) thereâs no flag or something in the data that I get from the api when I lookup some merged release group by id. Thereâs no way to see in this info that Iâm currently looking at a merged record, right? If this info was there, I could migrate my data to the new record.
What I would need is:
record 1 and record 2 are duplicates
record 1 is merged into record 2 -> record 2 is the primary one that survives, record 1 is the âoldâ merged one
when looking up record 2 by id thereâs a field called âisMergeOfâ that contains the id of record 1
If this is not possible, would it be possible to add that functionality in the future?
At first thanks for your time ;)! Really appreciate it.
Just to sum it up: You say that, if a release group has been merged into another one, then the release group id in the api response is different from whatâs in the url?
Anyway querying all release groups occasionally is not an option because of the hard 1 request/second rate limit in musicbrainz db I can only do it on demand if the request is done anyway.
You could always create a ticket for this. I donât know what the database impact is for such a query, but being able to request merged IDs in a WS request sounds useful.
Not saying it would be high priority, of course.
Where do I create tickets like this (that are indeed read )? But in fact I would need the info in the search endpoint of releasegroup, else itâs useless (at least in my usecase).