Page MenuHomePhabricator

Leveling up: Ensure "Try a new task" dialog appears if user edits page multiple times without reload
Closed, ResolvedPublic

Description

With VisualEditor, a user can make e.g. multiple copyedits to a page. We want to make sure the "Show try new task dialog on every Nth edit" rule is adhered to in this case.

We export to the client-side the count of edits by the user for each task type on page load, so we could keep track of how many edits happen in the suggested edit session, then show the dialog on the Nth edit.

This is approach is probably more straightforward than using the getnextsuggestedtasktype endpoint, because we'd have to make sure the timings are correct between saving an edit, re-generating user impact data.

Event Timeline

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

[mediawiki/extensions/GrowthExperiments@master] postedit: Show try new task dialog after multiple edits without page reload

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

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

[mediawiki/extensions/GrowthExperiments@master] trynewtask: Implement instrumentation requirements

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

Change 893476 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] postedit: Show try new task dialog after multiple edits without page reload

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

Change 893735 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] trynewtask: Implement instrumentation requirements

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