Page MenuHomePhabricator

[wmf.5-regression] Help panel displays "growthexperiments-help-panel-suggested-edits-switch-editor-to-undefined"
Closed, ResolvedPublic

Description

Found when verifying T281716: [BUG] Add a link: Help panel incorrectly detects that user is in the source editor. The issue is in production - testwiki wmf.5.

(1)

  1. A user with a default option for an editor ("Remember my last editor") selects any task type (except Add link).
  2. A user goes to an article and switches to "Edit source". The Help panel will display a label, not a message:

Screen Shot 2021-05-13 at 9.53.02 AM.png (1×818 px, 167 KB)

wmf.4 displays the message correctly:

Screen Shot 2021-05-13 at 10.34.19 AM.png (1×786 px, 140 KB)

(2) mobile only for suggested Add link task

<div class="suggested-edits-panel-switch-editor-panel"><p>⧼growthexperiments-help-panel-suggested-edits-switch-editor-to-machineSuggestions⧽</p></div>

Screen Shot 2021-05-13 at 2.24.55 PM.png (1×734 px, 136 KB)

Event Timeline

Etonkovidova renamed this task from [betalabs-regression] Help panel displays messages as "growthexperiments-help-panel-suggested-edits-switch-editor-to-undefined" to [wmf.5-regression] Help panel displays messages as "growthexperiments-help-panel-suggested-edits-switch-editor-to-undefined".May 13 2021, 5:32 PM
Etonkovidova updated the task description. (Show Details)
Etonkovidova renamed this task from [wmf.5-regression] Help panel displays messages as "growthexperiments-help-panel-suggested-edits-switch-editor-to-undefined" to [wmf.5-regression] Help panel displays "growthexperiments-help-panel-suggested-edits-switch-editor-to-undefined".May 13 2021, 5:35 PM
Etonkovidova updated the task description. (Show Details)

There are two issues here:

  1. The values for GENewcomerTasksTaskTypeHandlers can now be template-based, link-recommendation or null. When SuggestedEditsPanel is constructed, preferredEditor is using the task type as the key name. This works for link recommendation since the task type is the same as the task type handler ID, but for other task types, the handler ID is template-based.
  2. For mobile, currentEditor is visualeditor while preferredEditor is machineSuggestions. SwichEditorPanel shouldn't be shown in this case since machineSuggestions is a mode of visual editor.

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

[mediawiki/extensions/GrowthExperiments@master] Help panel: fixes of SwitchEditorPanel

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

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

[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.6] Help panel: SwitchEditorPanel fixes

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

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

[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.7] Help panel: SwitchEditorPanel fixes

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

Change 691276 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Help panel: SwitchEditorPanel fixes

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

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

[mediawiki/extensions/GrowthExperiments@master] Avoid session loading when loading task types in help panel RL data

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

Change 696329 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Avoid session loading when loading task types in help panel RL data

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

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

[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.6] Avoid session loading when loading task types in help panel RL data

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

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

[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.7] Avoid session loading when loading task types in help panel RL data

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

Change 695833 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.6] Help panel: SwitchEditorPanel fixes

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

Change 695841 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.6] Avoid session loading when loading task types in help panel RL data

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

Change 695834 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.7] Help panel: SwitchEditorPanel fixes

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

Change 695842 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.7] Avoid session loading when loading task types in help panel RL data

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

Mentioned in SAL (#wikimedia-operations) [2021-05-27T18:49:04Z] <tgr@deploy1002> Synchronized php-1.37.0-wmf.7/extensions/GrowthExperiments: Backport: [[gerrit:695834|Help panel: SwitchEditorPanel fixes (T282800)]] [[gerrit:695842|Avoid session loading when loading task types in help panel RL data (T282800)]] [[gerrit:696527|Add Link: Fix homepage PV token and newcomer task token logging (T283765)]] (duration: 01m 06s)

Mentioned in SAL (#wikimedia-operations) [2021-05-27T19:03:22Z] <tgr@deploy1002> Synchronized php-1.37.0-wmf.6/extensions/GrowthExperiments: Backport: [[gerrit:695833|Help panel: SwitchEditorPanel fixes (T282800)]] [[gerrit:695841|Avoid session loading when loading task types in help panel RL data (T282800)]] [[gerrit:696530|Add Link: Fix homepage PV token and newcomer task token logging (T283765)]] (duration: 01m 05s)

Checked in wmf.7 - the issue is fixed.