Page MenuHomePhabricator

GrowthExperiments homepage mentor dialog breaks when help panel is disabled
Closed, ResolvedPublic

Description

Steps to reproduce:

  • Enable "Display newcomer homepage" and disable "Enable the editor help panel" in preferences
  • Go to Special:Homepage
  • Click "Ask your mentor a question"

Results in fallback behavior (the mentor's talk page is opened for editing) with

VM218 load.php:2 TypeError: Cannot read property 'name' of null
    at helpPanelProcessDialog.HelpPanelProcessDialog.configureAskScreen (VM224 load.php:15)
    at new helpPanelProcessDialog (VM224 load.php:12)
    at attachButton (VM224 load.php:59)
    at VM224 load.php:57
    at homepage/ext.growthExperiments.Homepage.Mentorship.js (VM224 load.php:57)
    at runScript (VM218 load.php:13)
    at execute (VM218 load.php:14)
    at doPropagation (VM218 load.php:7)

Rproducible in beta but not in production.

Event Timeline

Broken by rEGRE7bbdc4714229: Fix help panel ask screen wording which unified configuration logic for homepage and help panel mentor questions, and always used the variable provided by HelpPanelHooks (which does work on the homepage, but only if the help panel is enabled).

Change 618053 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/extensions/GrowthExperiments@master] Fix homepage mentorship module

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

Change 618053 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Fix homepage mentorship module

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