Skip to content

Conversation

katerinachinnappan
Copy link
Collaborator

@katerinachinnappan katerinachinnappan commented Sep 15, 2025

References

JIRA: https://mozilla-hub.atlassian.net/browse/HNT-667

Description

Implement auto-takedown of reported content & alert editorial team

Recommendations will not recommend items if report_count / impression_count > threshold, where threshold is a configurable, to-be-determined value.

An error is logged when an item is excluded by breaching the above threshold.

Sentry is configured to send this error to the Slack channel #fx-curation-station that is monitored by our editorial team.

To safe-guard against a group of users maliciously reporting all items, Merino will only allow a certain fraction of all available recommendations to be taken down automatically.

PR Review Checklist

Put an x in the boxes that apply

  • This PR conforms to the Contribution Guidelines
  • The PR title starts with the JIRA issue reference, format example [DISCO-####], and has the same title (if applicable)
  • [load test: (abort|skip|warn)] keywords are applied to the last commit message (if applicable)
  • Documentation has been updated (if applicable)
  • Functional and performance test coverage has been expanded and maintained (if applicable)

┆Issue is synchronized with this Jira Task

Copy link
Collaborator

@mmiermans mmiermans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I think this does what intended. I only have some Python style suggestions.

"threshold": report_ratio_threshold,
"region": region,
},
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Sending a dedicated Sentry message gives us better context. 👍

@katerinachinnappan katerinachinnappan added this pull request to the merge queue Sep 24, 2025
Merged via the queue into main with commit a4e15f4 Sep 24, 2025
23 of 24 checks passed
@katerinachinnappan katerinachinnappan deleted the katerina/HNT-667-remove-reported-content branch September 24, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants