[go: up one dir, main page]

Page MenuHomePhabricator

[regression-wmf.28] mobile - link recommendation task cannot load editor
Closed, ResolvedPublic

Description

Steps:

  1. On mobile testwiki wmf.28 select "Add links between articles - Machine suggestions" task type
  2. Go to any suggested article - the editor (the se surface) is not loading - see the gif below

prod_mobile_notLoading.gif (853×525 px, 214 KB)

Note:

  • Add link task works on Desktop as expected
  • could it be similar to T377783?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I can reproduce the problem on testwiki, unsure what the cause is. When I try to edit another article, I get an "Editnotice links" pop-up:

image.png (610×436 px, 56 KB)

Is that supposed to be there? If it is unexpected, could that be what colliding with our UI?

Mh, no. Even when I clicked this popup away beforehand, I still get this error.

could it be similar to T377783?

Unlikely. The problem in T377783 was triggered by the main namespace being excluded in the HelpPanel configuration in both reading and editing mode. As far as I can tell, that is not the case on https://test.wikipedia.org/wiki/Special:CommunityConfiguration/HelpPanel

I'm noticing that the editor keeps making the same two VisualEditor requests:

image.png (149×767 px, 33 KB)

But their responses _look_ fine to me at first glance. Though I have no idea they are supposed to look like.

I tried it on dewiki and there the mobile interface works. I looked for the API GET-request above and compared them to test-wiki, and so only difference that looks maybe meaningful is that testwiki has a notice with key editnotice-0, and dewiki as a notice with key flaggedrevs_editnotice. Are we maybe handling flaggedrevs_editnotice but not editnotice-0 or something?

Michael triaged this task as High priority.Wed, Oct 23, 9:49 AM

The editnotice seems to be a red herring. It exists on mobile already for at least half a year (see T312587: Show edit notices within mobile editing interfaces), and the respective page on testwiki was last edited 2019: https://test.wikipedia.org/w/index.php?title=MediaWiki:Editnotice-0&action=history

I'm not actually sure how to investigate this further at this point. I'm marking it as a trainblocker, and will be highlighting it to the web team (because mobile) and editing team (because VisualEditor).

Any ideas welcome.

Aklapper renamed this task from [regression-wmf.28] mobile - link recommendation task cannot load editor to [regression-wmf.28] mobile - link recommendation task cannot load editor.Wed, Oct 23, 10:45 AM

I can reproduce locally, seems related to the mobile editor initialization. Apparently loadVisualEditorMaybe() is being called "recursively". The latest router changes could be the culprit as I see the history state accumulating re-loads of the same URL/hash.

Screenshot 2024-10-23 at 13.35.04.png (2×3 px, 1 MB)

Maybe @Esanders can help us understand what changed.

Change #1082472 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/GrowthExperiments@master] StructuredTaskMobileArticleTarget: Fix history hacks to avoid firing events

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

Sgs moved this task from Incoming to QA on the Growth-Team (Current Sprint) board.

Thank you for investigating and fixing Ed

I can reproduce the problem on testwiki, unsure what the cause is. When I try to edit another article, I get an "Editnotice links" pop-up:

image.png (610×436 px, 56 KB)

Is that supposed to be there? If it is unexpected, could that be what colliding with our UI?

Yes, that Edit notice popup (the popup varies in how it looks) is kind of curios. It's not new, and seems to be present only testwiki.

Change #1082472 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] StructuredTaskMobileArticleTarget: Fix history hacks to avoid firing events

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

@Esanders Is a cherry-pick of https://gerrit.wikimedia.org/r/1082472 to wmf/1.43.0-wmf.28 sufficient to unblock the train?

Change #1082503 had a related patch set uploaded (by Urbanecm; author: Esanders):

[mediawiki/extensions/GrowthExperiments@wmf/1.43.0-wmf.28] StructuredTaskMobileArticleTarget: Fix history hacks to avoid firing events

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

@Esanders Is a cherry-pick of https://gerrit.wikimedia.org/r/1082472 to wmf/1.43.0-wmf.28 sufficient to unblock the train?

I believe so. Things appear to be working on beta labs again.

Change #1082503 merged by Urbanecm:

[mediawiki/extensions/GrowthExperiments@wmf/1.43.0-wmf.28] StructuredTaskMobileArticleTarget: Fix history hacks to avoid firing events

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

Mentioned in SAL (#wikimedia-operations) [2024-10-23T17:31:18Z] <urbanecm@deploy2002> Started scap sync-world: Backport for [[gerrit:1082503|StructuredTaskMobileArticleTarget: Fix history hacks to avoid firing events (T377907)]]

Mentioned in SAL (#wikimedia-operations) [2024-10-23T17:33:52Z] <urbanecm@deploy2002> urbanecm: Backport for [[gerrit:1082503|StructuredTaskMobileArticleTarget: Fix history hacks to avoid firing events (T377907)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Tested at testwiki while backporting this, seems to work there as well. Should land within a couple of minutes!

Mentioned in SAL (#wikimedia-operations) [2024-10-23T17:43:15Z] <urbanecm@deploy2002> Finished scap sync-world: Backport for [[gerrit:1082503|StructuredTaskMobileArticleTarget: Fix history hacks to avoid firing events (T377907)]] (duration: 11m 56s)

Tested at testwiki while backporting this, seems to work there as well. Should land within a couple of minutes!

Confirmed - Add link mobile (and desktop) works as usual on testwiki wmf.28.

Etonkovidova claimed this task.