Page MenuHomePhabricator

Leveling up: Try new task panel does not display for edits made with source editor
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Edit multiple "Copyedit" edits using the source editor on desktop or mobile with a new user

What happens?:

  • User sees the regular post-edit dialog on the 5th edit

What should have happened instead?:

  • The user should see the "Try new task" panel

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Change 899929 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] Leveling up: always set wgGELevelingUpEnabledForUser

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

Change 899929 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Leveling up: always set wgGELevelingUpEnabledForUser

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

Change 899605 had a related patch set uploaded (by Kosta Harlan; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@wmf/1.40.0-wmf.27] Leveling up: always set wgGELevelingUpEnabledForUser

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

Change 899605 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.40.0-wmf.27] Leveling up: always set wgGELevelingUpEnabledForUser

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

Mentioned in SAL (#wikimedia-operations) [2023-03-16T08:27:42Z] <kharlan@deploy2002> Started scap: Backport for [[gerrit:900126|SuggestedEditSession: Fix handling of post-save data refresh]], [[gerrit:899605|Leveling up: always set wgGELevelingUpEnabledForUser (T332227)]]

Mentioned in SAL (#wikimedia-operations) [2023-03-16T08:29:15Z] <kharlan@deploy2002> kharlan: Backport for [[gerrit:900126|SuggestedEditSession: Fix handling of post-save data refresh]], [[gerrit:899605|Leveling up: always set wgGELevelingUpEnabledForUser (T332227)]] synced to the testservers: mwdebug2002.codfw.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2001.codfw.wmnet, mwdebug1001.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-03-16T08:40:13Z] <kharlan@deploy2002> Finished scap: Backport for [[gerrit:900126|SuggestedEditSession: Fix handling of post-save data refresh]], [[gerrit:899605|Leveling up: always set wgGELevelingUpEnabledForUser (T332227)]] (duration: 12m 30s)

Testing on testwiki wmf.27 - the post-edit dialog is not displayed after the 5th wiki text edit; the Console displays the following warning:

jQuery.Deferred exception: Cannot read properties of null (reading 'indexOf') TypeError: Cannot read properties of null (reading 'indexOf')
    at Object.setupTryNewTaskPanel (<anonymous>:5:803)
    at <anonymous>:9:525
    at mightThrow (https://test.wikipedia.org/w/load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cvue&skin=vector-2022&version=cnj1r:49:881)
    at process (https://test.wikipedia.org/w/load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cvue&skin=vector-2022&version=cnj1r:50:544) undefined

In the addition to the above comment - the scenarios when no post-edit dialog would be displayed (kind of cumbersome to reproduce).

ScenarioPost-edit dialog displayed?Console warning
(1) Five Suggested edits made with wikitext editorthe post-edit dialog is displayed after each of four edits; after the fifth edit - the post-edit dialog is not displayedTypeError: Cannot read properties of null (reading 'indexOf')...
(2) after performing scenario (1) perform a wikitext edit for the same task typeNot displayedthe same
(3) mix of VE edits (the post-edit dialog is displayed after VE edits) and a wikitext edit as the last one (the fifth)Not displayedthe same

Testing notes (to check after the fix):

  • Special:Contributions will not add Newcomer tags for wikitext edits for scenario (2), i.e.
    1. A user makes four wikitext edits for a certain type of SE - correct tags are added
    2. A user make the fifth wikitext edit - the newcomer tags are not added
    3. A user after steps 1-2 makes a VE edit - correct tags are added.

Screen Shot 2023-03-17 at 1.58.33 PM.png (1×1 px, 433 KB)

Testing on testwiki wmf.27 - the post-edit dialog is not displayed after the 5th wiki text edit; the Console displays the following warning:

jQuery.Deferred exception: Cannot read properties of null (reading 'indexOf') TypeError: Cannot read properties of null (reading 'indexOf')
    at Object.setupTryNewTaskPanel (<anonymous>:5:803)
    at <anonymous>:9:525
    at mightThrow (https://test.wikipedia.org/w/load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cvue&skin=vector-2022&version=cnj1r:49:881)
    at process (https://test.wikipedia.org/w/load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cvue&skin=vector-2022&version=cnj1r:50:544) undefined

That appears to be the same issue as T332309: Uncaught TypeError: can't access property "difficulty", this.taskType is undefined.

Change 899929 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] Leveling up: always set wgGELevelingUpEnabledForUser

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

The original issue reported here was fixed by the above patch. The issue @Etonkovidova has documented is tracked in T332309: Uncaught TypeError: can't access property "difficulty", this.taskType is undefined and is already fixed, just awaiting a backport to wmf.27, which I'll do later today.

This change is now in wmf.27, so removing from release blockers. cc @Etonkovidova