Page MenuHomePhabricator

VE plugin fails to load on desktop article target
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

  • on desktop, start at Special:Homepage
  • click on a link-recommendation task

Actual Results:

  • the AddLink plugin does not load

Expected Results:

  • the AddLink plugin loads

On MinveraNeue this doesn't seem to be a problem.

Event Timeline

mewoph added subscribers: Tgr, mewoph.

Per discussions in Slack with @kostajh and @Tgr, this seems to be a timing issue introduced by opening the VisualEditor automatically (T276508) upon loading the page via veaction=edit query param (VisualEditor modules might be loaded before SuggestedEdits.Guidance.js is loaded so addPlugin is called but doesn't do anything. For now, I'll make a change to open edit mode from JS instead of upon page load (via query params).

Change 672560 had a related patch set uploaded (by MewOphaswongse; owner: MewOphaswongse):
[mediawiki/extensions/GrowthExperiments@master] Add a Link: Open edit mode from JS

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

I forgot about this yesterday, but the timing issue also affects reloading the editor (e.g. the user pressing F5) so we should probably fix it fully before going live. This change is still useful as reloading issues do not hinder development and QA but unreliability of opening the task would.

I forgot about this yesterday, but the timing issue also affects reloading the editor (e.g. the user pressing F5) so we should probably fix it fully before going live. This change is still useful as reloading issues do not hinder development and QA but unreliability of opening the task would.

I've +2'ed the patch but as @Tgr mentioned, we should handle page reloads – when the user reloads the page they should be back in the editor with the add link plugin open.

Change 672560 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Add a Link: Open edit mode from JS

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