Voting queue: Exclude recording-URL relationship edits

I have several edit review/vote search bookmarks in my browser.

But usually the only one I use is my (release collection) subscription voting queue URL link with a few tweaks.

Recently I have more and more recording-URL edits in my queue, that I don’t care about, and simply want to ignore, to save some time to try to review the remaining edits.

But I was not able to filter them out.
I think it’s a bug, but I’m wondering if there is some explanation behind the problem, and maybe it’s not possible to fix?

For example, my current unmodified subscription open edit review has 396 edits (from my subscribed release collection).¹

If I refine the search and add Relationship type is [all recording-URL relationship types checked], I get 231 edits.¹

By what I want is to hide them so, now I change to Relationship type is not [all recording-URL relationship types checked], I get only 2 edits.¹ So where are my 165 (396-231) edits?!
Maybe it retains only relationship edits, or something… :thinking:

¹ These URL won’t show you my subscriptions, but your own subscriptions.

3 Likes

Have you tried filtering edits by URL via regexp?

No, maybe good idea, I don’t know this.
But your URL is same as my Relationship type is [all recording-URL relationship types checked] (231 edits) URL. A copy/paste mistake?

Yes and I have too many subscriptions so it always times out.

But I’m not looking for URL edits.

I would like all my subscription open unvoted edits of all types, minus the recording-URL relationship edits.

A workaround is to use that 231 recording-URL relationship search to vote Abstain on all of these recording stream/purchase/download links, and then review the remaining 165 edits I’m interested in, with the non filtered search.

But the problem is that Abstaining adds me as a watcher of those 231 recording stream/purchase/download edits.

1 Like

Oh I posted wrong searches! :roll_eyes:
It doesn’t change my problem, though, but I posted the all edits searches, not only open/votable edits:

@jesus2099 I was also close to asking this same question. Thank you for making this thread…

I am totally in the same boat. It is boring scrolling through page after page of “can be streamed on” links which I can’t\won’t check. If someone finds a way of blocking these you will save my sanity.

My morning search is “show me my subscribed edits in the last 36 hours”. In the past weeks these are so flooded with “stream from URLs” that I am close to giving up on bothering checking edits any more.

3 Likes

Most of these edits are supposed to be auto-edits precisely so you don’t have them appearing in the voting queue. If there are editors entering a high-volume of these as votable that’s the problem

2 Likes

Like @jesus2099 I check all edits on my subscribed list, not just the voteable ones. It is not just about the stuff that is voteable, but data changes in general.

That is my morning scroll through. The streaming URLs, especially when added in with certain noisy scripts, lead to a lot of extra scrolling. I just want a way of dropping URL relationship from that search.

1 Like

I see these edits have the same edit notes:

ISRC Scout* v2026.10.11 by majkinetor - musicbrainz-userscripts/userscripts/isrc_scout/README.md at main · majkinetor/musicbrainz-userscripts · GitHub
Release: https://musicbrainz.org/release/63b429af-1375-4e7e-849f-a96b55f97b64
Added 255 streaming links: Apple Music (58), Deezer (41), Qobuz (66), Spotify (42), Tidal (48)

I cannot exclude Edit notes that contain ‘‘ISRC Scout’’ because I do want to see the ISRC edits in my owned release edit reviews.

But, wait! What!?

Added 255 streaming links: Apple Music (58), Deezer (41), Qobuz (66), Spotify (42), Tidal (48)

For just 1 release!?

Do we really need 255 streaming links for 1 release?

One can stream album recordings with the release streaming links already (5), no need for all bogus/redundant and cluttering recording links (255), that already can be discovered with release links.

I did some research:

@reosarevok
Do we even need streaming links on each recording, at all?
Couldn’t we remove these useless (IMO) relationships from MB structure?
We’re talking of millions relationships, at this rate.
Links at release level are more than enough, already.

There are already not many reviewers, so if our difficult task of checking our scope of recent edits (not only open edits) is flooded by these thousands of IMO irrelevant edits, no one can ever cope with the peer validation anymore.

3 Likes

I already provided the solution earlier. Use URL “does not match”:
image

Examples:

1 Like

For the curious:

I didn’t understand your first post. :grinning_face_with_smiling_eyes:

I’ll try this, but I’m not sure I can exclude boys edits without losing good edits from my (very simple) review queue. I will tell and thank you.

I actually do review my subscriptions, so I am basically only subscribed to my owned release collection:

jesus2099 is subscribed to:

  • 29 artists
  • 1 collection
  • 89 [deleted] editors
  • 37 series

It would not be possible to review more subscriptions, especially for stuff not in my hands.

Sorry, misunderstood that first reply. Adding that option now seems to do what I want. I guess this also drops all links including to Discogs etc. A small price to pay for sanity as that reduced the last 24 hours from 11 pages to 2.

Thank You.

Those Majkinetor edits notes are too cryptic to make sense of, but I think this is an edit note at Release level. So those 255 links are spready across 76 tracks on one release. Not as insane as it first looks. I assume the links are being added so some people can use MusicBrainz as a player to discover music in their online subscriptions.

I can see the logic of that, but this is data that will change over time. I fear the day a bot will come steaming through to update them all :laughing:

Yes I understood that. That’s still 255 bogus links, IMO.
Release level links are more than enough.

As it is a compilation, the tracks appear on other compilations. Which is why they get the URLs applied at recording level too. Especially as those online stores just make up new compilations in a playlist style to promote the music for more plays. Compilations shuffle, recordings stay the same.

That release you linked is painful to look at. The photo has the Union Flag upside down, which is usually taken as a distress signal.

1 Like

I think only the recordings from the official artists release should be entered. None from compilations (unless it’s the only place the recording appears). If maybe we could get this in the guidelines it might help.

It seems there is indeed a bug if AI analysis can be trusted:

Summary

Jesus’s suspicion is 100% correct: the search condition “Relationship type is not” strictly retains only relationship edits, completely discarding all non-relationship edits.


Root Cause Analysis

The bug is located in lib/MusicBrainz/Server/EditSearch/Predicate/RelationshipType.pm:

sub combine_with_query {
    my ($self, $query) = @_;

    my $and_condition = $self->operator eq '!=' ? 'AND NOT' : 'AND';
    $query->add_where([
        "type IN ($EDIT_RELATIONSHIP_CREATE, $EDIT_RELATIONSHIP_EDIT, $EDIT_RELATIONSHIP_DELETE, $EDIT_RELATIONSHIPS_REORDER)
         $and_condition (? && array_remove(ARRAY[
                                   (data#>>'{link_type,id}')::int,
                                   (data#>>'{link,link_type,id}')::int,
                                   (data#>>'{old,link_type,id}')::int,
                                   (data#>>'{new,link_type,id}')::int,
                                   (data#>>'{relationship,link,type,id}')::int
                               ], NULL))",
        [ $self->sql_arguments ],
    ]);
}

What happens in SQL:

  1. When operator is = (“is”):

    type IN (90, 91, 92, 99)
    AND (? && array_remove(ARRAY[...], NULL))
    

    Matches edits that are relationship edits AND match one of the selected link types.

  2. When operator is != (“is not”):

    type IN (90, 91, 92, 99)
    AND NOT (? && array_remove(ARRAY[...], NULL))
    

    Notice that type IN (90, 91, 92, 99) is unconditionally required.

    • For any non-relationship edit (e.g., Add Release, Edit Release, Edit Artist, Add Medium, etc.), type IN (90, 91, 92, 99) evaluates to FALSE.
    • Because of FALSE AND NOT (...), every non-relationship edit evaluates to FALSE and is immediately eliminated.
    • The query only matches edits that are relationship edits, but whose relationship type is not one of the excluded types.

In Jesus’s scenario (38 open subscribed edits / 396 total edits):

  • 18 edits (or 231 total) were relationship edits matching those recording-URL link types.
  • 2 edits were relationship edits of other types (e.g. artist-artist or release-work relationships).
  • The remaining 18 edits (or 163 total) were regular entity edits (Release, Artist, Recording, etc.).
  • When adding Relationship type != [recording-URL types]:
    • The 18 recording-URL edits were excluded by AND NOT (? && ...).
    • The 18 non-relationship edits were excluded by type IN (90, 91, 92, 99).
    • Only the 2 other relationship edits survived, instead of the expected 20 (or 165) edits.

How this happened

Support for != (“is not”) was introduced in commit 16bad991ccc (MBS-11185, following MBS-9172).

The implementation assumed that negating the condition was simply changing AND to AND NOT:

  • Original: A AND B (is relationship edit AND has link type X)
  • Implemented negation: A AND NOT B (is relationship edit AND does not have link type X)
  • Intended negation: NOT (A AND B) (is not a relationship edit of link type X)

There is a setting to disable abstain mails:

2 Likes

Seriously!?? Wow!! @nikki, come back, please!
:slight_smile: She was waiting for this, so much.