Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBS-12792: Hide ratings by spammer users #2786

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

reosarevok
Copy link
Member

@reosarevok reosarevok commented Dec 19, 2022

Implement MBS-12792

Problem

While we block seeing the profiles of spammer users, their ratings are still visible. For cases where the user was specifically spamming ratings, this makes marking them as spammers kinda useless.

We also use the spammer ratings in the calculation of the average community rating, which is not ideal.

Solution

Sadly, it turns out we will need a schema change (MBS-12794) to stop using spammer ratings (and tags) when calculating community results.

For now, this at least hides links to spammer profiles from the ratings page and makes it clear to users viewing from that page that the ratings might be dodgy. There's no indication of that on the sidebar, sadly, but it's something, and it probably doesn't make sense to write code to check for spammer ratings on all pages with sidebars if we plan to stop using them in calculations later on anyway.

Testing

Tested manually. To test, you can use /artist/9a694506-85b4-4610-ae05-f20934b9aabc/ratings - to test with "legit" ratings too, when using pink, just temporarily add your own rating from mb.org.

I didn't add a more formal test since this is meant as a temporary hack.

@reosarevok reosarevok added the QoL Non-urgent quality of life improvements label Dec 19, 2022
@reosarevok
Copy link
Member Author

@brainzbot, retest this please

1 similar comment
@reosarevok
Copy link
Member Author

@brainzbot, retest this please

To deal better with spammer tags and ratings will need a
schema change (MBS-12794), but for now we can at least hide links
to spammer profiles from the ratings page and make it clear to users
that the ratings might be dodgy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QoL Non-urgent quality of life improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant