MBS-8212: Edit data sent by the release editor should exclude unchanged fields
mwiencek
Branch: mwiencek/musicbrainz-server:mbs-8212
Branch: metabrainz/musicbrainz-server:beta
Merged
Merged pull request
Merge branch 'mbs-8212' into beta
Merge branch 'mbs-8212' into beta
This addresses the general problem of the release editor sending unchanged data along with the request, so that it doesn't override other edits entered in the meantime. I guess it's not an incredibly common occurrence if there weren't more tickets about it sooner, but still wrong and annoying. :/
The main change was just adding a
removeEqual
function similar to the oneEdit::WithDifferences
uses on the server. It accepts a list of fields to always include, used for entity ids here.