Page MenuHomePhabricator

Add an image: add "confirm_reject_suggestion" action
Closed, ResolvedPublic

Description

This will make skipping and rejection follow a consistent format.

When the user skips a suggestion and confirms it, confirm_skip_suggestion action is sent. However, for rejection, close action with rejection_dialog active interface is sent with acceptance_state="skipped" in the action data (to distinguish it from the user cancelling from the rejection dialog).

Event Timeline

Change 765351 had a related patch set uploaded (by MewOphaswongse; author: MewOphaswongse):

[schemas/event/secondary@master] Add an image: add confirm_reject_suggestion action

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

Change 765352 had a related patch set uploaded (by MewOphaswongse; author: MewOphaswongse):

[mediawiki/extensions/GrowthExperiments@master] Add an image: add \"confirm_reject_suggestion\" action

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

Sample event:

event: {
  "action": "confirm_reject_suggestion",
  "action_data": "filename=Thanatotheristes.jpg;recommendation_source=wikipedia;recommendation_source_projects=ptwiki,cswiki;series_number=1;total_suggestions=1;rejection_reasons=foreignlanguage;acceptance_state=rejected",
  "is_mobile": false,
  "active_interface": "rejection_dialog",
  "newcomer_task_token": "jq1lr2d2tg8ddb2oaek3o7rcokm3qljh",
  "page_id": 1803,
  "page_title": "Thanatotheristes",
  "homepage_pageview_token": "9l0hfj6k2fjv4bulnhlhtt1c6l4v40t0",
  "$schema": "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.3.0",
  "meta": {
    "stream": "mediawiki.structured_task.article.image_suggestion_interaction",
    "domain": "localhost",
    "id": "fda38bfc-f52b-489f-b2bd-6917eb48b1b3",
    "dt": "2022-02-23T23:26:35.347Z",
    "request_id": "0aaf4500-9500-11ec-833a-d1a8dc78de7f"
  },
  "dt": "2022-02-23T23:26:34.339Z",
  "http": {
    "request_headers": {
      "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"
    },
    "client_ip": "127.0.0.1"
  }
}

Change 765351 merged by jenkins-bot:

[schemas/event/secondary@master] Add an image: add confirm_reject_suggestion action

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

Change 765352 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Add an image: add \"confirm_reject_suggestion\" action

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

Etonkovidova subscribed.

Confirmed on testwiki wmf.24:

{action: 'confirm_reject_suggestion', action_data: 'filename=Octave_Mirbeau.jpg;recommendation_source=…ns=1;rejection_reasons=;acceptance_state=rejected', is_mobile: false, active_interface: 'rejection_dialog', newcomer_task_token: 'cf3q02hjvsajjsav4vic8gegb1dlkeit', …}
$schema: "/analytics/mediawiki/structured_task/article/image_suggestion_interaction/1.3.0"
action: "confirm_reject_suggestion"
action_data: "filename=Octave_Mirbeau.jpg;recommendation_source=wikipedia;recommendation_source_projects=frwiki;series_number=1;total_suggestions=1;rejection_reasons=;acceptance_state=rejected"
active_interface: "rejection_dialog"
dt: "2022-03-02T00:03:07.928Z"
homepage_pageview_token: "ra5pq2rplp1nu7mce72f71c0io9hosm9"
is_mobile: false
meta: {stream: 'mediawiki.structured_task.article.image_suggestion_interaction', domain: 'test.wikipedia.org'}
newcomer_task_token: "cf3q02hjvsajjsav4vic8gegb1dlkeit"
page_id: 122152
page_title: "Combats littéraires"