Page MenuHomePhabricator

[Regression] Broken workflow after closing the "Add a citation" dialog prompted from a check and then trying to save the edit
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Open any page on Beta cluster to edit using VE.
  2. Add a paragraph that would activate the Reference Check.
  3. Once the check is presented click on "Yes"
  4. After that step, when the add a citation context menu appears close it out
  5. Click on "Publish Changes" button again.

Observed Result:
The editing state transitions to the pre-save mode without any check. (The check actually appears very briefly for a second but then it disappears leaving the editor in this empty state).

Expected Result:
The check should be presented just like the first time upon clicking on "Publish Changes" button.

Screenshot/Screen capture:

Screenshot 2025-03-24 at 6.16.46 PM.png (1×2 px, 335 KB)

Browser: Chrome

Wiki: en

Environment: beta cluster.

Event Timeline

I can't actually persuade it not-reopening to happen for me, so there might be something fiddly about that. I do see issues with the sidebar disappearing when it shouldn't, though -- spillover from the mid-edit mobile stuff.

Change #1130778 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] Edit check: don't close the sidebar on context change on desktop

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

Change #1130778 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Edit check: don't close the sidebar on context change on desktop

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

Change #1131004 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@wmf/1.44.0-wmf.22] Edit check: don't close the sidebar on context change on desktop

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

Change #1131004 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.44.0-wmf.22] Edit check: don't close the sidebar on context change on desktop

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

Mentioned in SAL (#wikimedia-operations) [2025-03-25T14:43:46Z] <kemayo@deploy1003> Started scap sync-world: Backport for [[gerrit:1131003|Edit check: add editcheck-references-shown to the allowed tags list (T373949)]], [[gerrit:1131004|Edit check: don't close the sidebar on context change on desktop (T389906)]]

Mentioned in SAL (#wikimedia-operations) [2025-03-25T14:50:18Z] <kemayo@deploy1003> kemayo: Backport for [[gerrit:1131003|Edit check: add editcheck-references-shown to the allowed tags list (T373949)]], [[gerrit:1131004|Edit check: don't close the sidebar on context change on desktop (T389906)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-03-25T15:01:16Z] <kemayo@deploy1003> Finished scap sync-world: Backport for [[gerrit:1131003|Edit check: add editcheck-references-shown to the allowed tags list (T373949)]], [[gerrit:1131004|Edit check: don't close the sidebar on context change on desktop (T389906)]] (duration: 17m 30s)

DLynch added a project: Editing QA.

Looks good to me on beta (and group0), if you can confirm.

Looks good to me on beta (and group0), if you can confirm.

It is fixed for the scenario mentioned in the task yes. But, it still happens when you click on the "Back" button while the "Add a citation" dialog is open in the pre-save mode and then again click on "Publish Changes" button.

Ah, weirdly enough, that one is actually a variant of T389904. The patches for that one will fix it.

Change #1131126 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] Edit check: in single action mode the fixed sidebar isn't allowed null offset

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

Change #1131126 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Edit check: in single action mode the fixed sidebar isn't allowed null offset

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

Change #1131361 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@wmf/1.44.0-wmf.22] Edit check: in single action mode the fixed sidebar isn't allowed null offset

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

Change #1131361 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.44.0-wmf.22] Edit check: in single action mode the fixed sidebar isn't allowed null offset

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

Mentioned in SAL (#wikimedia-operations) [2025-03-26T20:11:22Z] <spiderpig@deploy1003> Started scap sync-world: Backport for [[gerrit:1131361|Edit check: in single action mode the fixed sidebar isn't allowed null offset (T389906)]]

Mentioned in SAL (#wikimedia-operations) [2025-03-26T20:16:05Z] <spiderpig@deploy1003> spiderpig, kemayo: Backport for [[gerrit:1131361|Edit check: in single action mode the fixed sidebar isn't allowed null offset (T389906)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-03-26T20:26:25Z] <spiderpig@deploy1003> Finished scap sync-world: Backport for [[gerrit:1131361|Edit check: in single action mode the fixed sidebar isn't allowed null offset (T389906)]] (duration: 15m 03s)

Mentioned in SAL (#wikimedia-operations) [2025-03-26T20:33:37Z] <spiderpig@deploy1003> Started scap sync-world: Backport for [[gerrit:1131361|Edit check: in single action mode the fixed sidebar isn't allowed null offset (T389906)]]

Mentioned in SAL (#wikimedia-operations) [2025-03-26T20:38:20Z] <spiderpig@deploy1003> kemayo, spiderpig: Backport for [[gerrit:1131361|Edit check: in single action mode the fixed sidebar isn't allowed null offset (T389906)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-03-26T20:45:33Z] <spiderpig@deploy1003> Finished scap sync-world: Backport for [[gerrit:1131361|Edit check: in single action mode the fixed sidebar isn't allowed null offset (T389906)]] (duration: 11m 55s)