jesus2099 / konami-command

power‐ups for various web sites
122 stars 26 forks source link

Mimic MBS edit note validation and warnings #712

Closed thomasboehm closed 2 years ago

thomasboehm commented 2 years ago

When merging release groups, I get the warning about the destructive edit and after clicking OK it goes back and the edit note field is highlighted in red. What am I doing wrong?

Selection_077

Firefox 105.0.3 Greasemonkey 4.11 Kubuntu 22.04

jesus2099 commented 2 years ago

You have forgot to write an edit note for the edit reviewers and for history.

It's the same if you don't use the userscript.

image

Merging entities is a destructive edit. You must know what you are doing and you must explain it in the edit history, why you are merging, why you think they are the same.

I will change my scripts (MERGE HELPOR 2 and MASS MERGE RECORDINGS) to mimic MBS, using the same error messages and styling.

jesus2099 commented 2 years ago

Ah sorry, I see that you did write an edit note:

duplicate release group

My scripts are validating edit notes and they think this one is not enough. 🤣 I will maybe lower the threshold of validation.

Didn't my script explain this?

Merging entities is a destructive edit that is impossible to undo without losing ISRCs, AcoustIDs, edit histories, etc. Please make sure your edit note makes it clear why you are sure that these entities are exactly the same versions, mixes, cuts, etc.

Did you see this warning?

jesus2099 commented 2 years ago

Notes to myself:

https://github.com/metabrainz/musicbrainz-server/blob/769a6e36d30f7529ed836f83b3ce7e5615700a96/lib/MusicBrainz/Server/Form/Role/EditNote.pm#L19-L29

https://github.com/metabrainz/musicbrainz-server/blob/769a6e36d30f7529ed836f83b3ce7e5615700a96/lib/MusicBrainz/Server/Validation.pm#L303-L316

https://github.com/metabrainz/musicbrainz-server/blob/769a6e36d30f7529ed836f83b3ce7e5615700a96/root/static/scripts/release-editor/init.js#L285-L291

thomasboehm commented 2 years ago

Maybe you could lower the threshold for release groups only. Two release groups with the same name are very rarely correct.

In the last few weeks/month I see a lot of new users using some scripts to scan their music collection and adding release groups even if there is already one.

In my example the band 10cc had their last release 27 years ago, yet some newbie thought he should add each album with a new release group.

https://musicbrainz.org/artist/f37c537b-3557-4031-bfd6-ab63ced32854

Maybe Musicbrainz should make it much harder for new users to create release groups.