Page MenuHomePhabricator

Write GrowthExperiments image recommendation user feedback to EventGate
Closed, ResolvedPublicFeature

Description

When a user reviews an image recommendation in GrowthExperiments, the search pipeline might need to be updated to not recommend that image anymore. This data flow will be handled via EventGate (see T302925: [SPIKE] Investigate and Decide on Solution for Image Suggestions Feedback); GrowthExperiments needs to send the appropriate event (see T302925: [SPIKE] Investigate and Decide on Solution for Image Suggestions Feedback) when a review is submitted in the Add Image workflow.

Schema: https://schema.wikimedia.org/repositories/secondary/jsonschema/mediawiki/page/image-suggestions-feedback/current.yaml

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
kostajh subscribed.

I think this is ready for us to work on, but we should update the task description with some details first.

Change 809014 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/EventBus@master] EventFactory: Add helper for image suggestion feedback

https://gerrit.wikimedia.org/r/809014

Change 809016 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/GrowthExperiments@master] AddImage: Send event when image suggestion is accepted/rejected

https://gerrit.wikimedia.org/r/809016

Change 809150 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[schemas/event/secondary@master] image-suggestions-feedback: Make dt field non-required, adjust docs

https://gerrit.wikimedia.org/r/809150

Change 809014 abandoned by Kosta Harlan:

[mediawiki/extensions/EventBus@master] EventFactory: Add helper for image suggestion feedback

Reason:

https://gerrit.wikimedia.org/r/809014

I still haven't completed the patches for this task, which makes me wonder if it is really needed.

@Cparle is it correct that you would make use of these events to exclude articles from the search pipeline?

Yes, we're using the events directly atm

Change 853239 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/GrowthExperiments@master] AddImage: Rework suggestion feedback to use Serializer pattern from EventBus

https://gerrit.wikimedia.org/r/853239

Yes, we're using the events directly atm

Sorry, could you please clarify which events, and how you are using or intend to use them?

The patch above will generate image-suggestion-feedback events. AFAIK, there is not yet any production code generating those events at the moment.

Change 853239 abandoned by Kosta Harlan:

[mediawiki/extensions/GrowthExperiments@master] AddImage: Rework suggestion feedback to use Serializer pattern from EventBus

Reason:

I've implemented the deferred update for sending in the parent patch, and am abandoning this one.

https://gerrit.wikimedia.org/r/853239

Change 888019 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/Wikibase@master] GlobalStateFactoryMethodsResourceTest: Allow mocked factory to return mock MultiHttpClient

https://gerrit.wikimedia.org/r/888019

Change 888019 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] GlobalStateFactoryMethodsResourceTest: Allow mocked factory to return mock MultiHttpClient

https://gerrit.wikimedia.org/r/888019

Change 809150 merged by jenkins-bot:

[schemas/event/secondary@master] image-suggestions-feedback: Bump to version 2.0.0

https://gerrit.wikimedia.org/r/809150

Change 888642 had a related patch set uploaded (by Aqu; author: Aqu):

[schemas/event/secondary@master] Fix typo in image suggestion schema

https://gerrit.wikimedia.org/r/888642

Change 888642 merged by Milimetric:

[schemas/event/secondary@master] Fix typo in image suggestion schema

https://gerrit.wikimedia.org/r/888642

Change 809016 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] AddImage: Send event when user accepts/rejects/invalidates suggestion

https://gerrit.wikimedia.org/r/809016