When a user is reporting a false-positive Revise Tone task, then we do not want to keep showing that task to users.
Also, when we encounter an error when requesting the data from DataGateway/Cassandra, e.g. because the data is for an old revision and the page was only just edited, then we also want to remove that article from circulation for the moment.
How a false positive would be reported:
In these cases, we need to clear the weighted tag for the Revise Tone task from that page. See LinkRecommendationHelper::deleteLinkRecommendation for how to do that.
In addition to clearing the weighted tag, we also want to log this information to the data-lake, so that we can query it and see which pages come up unusually often. (How to do that?)
In the case where there is an issue with DataGateway/Cassandra, we should also log a warning to logstash, so that we can notice this faster and investigate as needed.
Acceptance criteria
- if the user marks a Revise Tone Check as a false positive, then the weighted tag for that article is cleared, and this is logged to the Data Lake
- if the data from DataGateway/Cassandra for an article is missing or out of date, then the weighted tag for that articles is cleared, and this is logged to the Data Lake, and a warning is logged to logstash
Note
- Take inspiration from EventGateImageSuggestionFeedbackUpdater, and GrowthExperimentsInteractionLogger with https://gerrit.wikimedia.org/g/operations/mediawiki-config/+/562ac484dc0ab3806174b4d1770ec9375bd2b7c5/wmf-config/ext-EventStreamConfig.php#3282
