Page MenuHomePhabricator

[Epic] Fix VisualDiff for incompatibilities with sub-references
Open, Needs TriagePublic

Description

We introduced subreferences to references. The Visual Editor diff view behaves badly when subreferences are present. Lets check for issues and list them in the document and as subtasks.

There is some technical background to how the visual diff handles references—some logic was included to override the actual before-and-after numbering and to suppress some of the numbering differences, in order to handle the problem of one added ref causing a numbering ripple throughout the document.

Document with findings

Event Timeline

lilients_WMDE renamed this task from Investigation: check VisualDiff for compatability issues with subreferences to Investigate VisualDiff for incompatibilities with subreferences.Sep 16 2025, 3:35 PM
lilients_WMDE updated the task description. (Show Details)

Re-opening because we found another one. I create a subticket for that.

lilients_WMDE renamed this task from Investigate VisualDiff for incompatibilities with subreferences to Fix VisualDiff for incompatibilities with subreferences.Apr 23 2026, 3:03 PM
awight renamed this task from Fix VisualDiff for incompatibilities with subreferences to Fix visual diff for incompatibilities with subreferences.Apr 24 2026, 6:38 AM
awight updated the task description. (Show Details)
awight added a project: VisualEditor.
awight updated the task description. (Show Details)
awight updated the task description. (Show Details)
thiemowmde renamed this task from Fix visual diff for incompatibilities with subreferences to [Epic] Fix VisualDiff for incompatibilities with sub-references.Apr 27 2026, 9:22 AM

Change #1288831 had a related patch set uploaded (by Awight; author: Awight):

[VisualEditor/VisualEditor@master] [POC] Visual diff becomes aware of sub-references

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

Change #1288852 had a related patch set uploaded (by Awight; author: Awight):

[VisualEditor/VisualEditor@master] [WIP] Render visual diff items with actual number

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

Change #1289165 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[VisualEditor/VisualEditor@master] Code cleanups in ve.DiffMatchPatch

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

Change #1289271 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[VisualEditor/VisualEditor@master] Mark private VisualDiff methods as @private

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

Change #1289165 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Code cleanups in ve.DiffMatchPatch

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

Change #1295877 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (35c6564c9)

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

Change #1295877 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (35c6564c9)

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