Page MenuHomePhabricator

Bring basic reference functionality into VisualEditor standalone
Open, Needs TriagePublic

Description

At present, basic reference functionality is defined in the Cite extension, but there are many pieces of underlying functionality in VisualEditor standalone. These pieces cannot be understood or modified effectively without understanding how Cite goes on to use them, making the codebase harder to maintain.

This task will define a ve.dm.ReferenceNode class in VE standalone, and move and adapt basic functionality from ve.dm.MWReferenceNode in Cite so that it can be effectively understood, tested and operated from within VisualEditor standalone. This should improve code legibility and development simplicity. It should also simplify coordination between VE core functionality and the sub-references project work occuring within Cite.

Done

This task will be considered "done" when basic reference logic can be understood, tested and operated within VisualEditor standalone's data model using the ve.dm.ReferenceNode in VE standalone, and when ve.dm.MWReferenceNode in Cite inherits that logic. A working UI for reference manipulation in VE standalone is not part of the definition of "done".

Related Objects

Event Timeline

Change #1180551 had a related patch set uploaded (by Divec; author: Divec):

[VisualEditor/VisualEditor@master] Add a minimal ve.dm.ReferenceNode class

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

Change #1180551 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Add a minimal ve.dm.ReferenceNode class

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

Change #1184623 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (4f51b5f65)

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

Change #1184623 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (4f51b5f65)

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

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

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.17] Update VE core submodule to master (a5bd08c8b)

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

Change #1185982 abandoned by DLynch:

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.17] Update VE core submodule to master (a5bd08c8b)

Reason:

Would need to do the subrepo backport anyway

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

Change #1185982 restored by DLynch:

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.17] Update VE core submodule to master (a5bd08c8b)

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

Change #1185982 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.17] Update VE core submodule to master (a5bd08c8b)

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

Mentioned in SAL (#wikimedia-operations) [2025-09-08T20:11:02Z] <kemayo@deploy1003> kemayo, esanders: Backport for [[gerrit:1185991|Enable DT thanks at mediawikiwiki (T400849)]], [[gerrit:1185982|Update VE core submodule to master (a5bd08c8b) (T302413 T391521 T397145 T401890 T402392 T397518 T402717 T403741 T403745)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-09-08T20:17:50Z] <kemayo@deploy1003> Finished scap sync-world: Backport for [[gerrit:1185991|Enable DT thanks at mediawikiwiki (T400849)]], [[gerrit:1185982|Update VE core submodule to master (a5bd08c8b) (T302413 T391521 T397145 T401890 T402392 T397518 T402717 T403741 T403745)]] (duration: 13m 05s)

dchan updated the task description. (Show Details)