Page MenuHomePhabricator

[Refactor] Changed main content should be saved back to Wikitext sub-ref node without relying on a main node
Closed, ResolvedPublic

Description

Context

We want to move away from synthetic LDRs. So instead on depending on (main) ve.dm.MWReferenceNode to be part of the document we want to retrieve content and ve.dm.InternalItemNode directly from the InternalList.

When converting back to Wikitext we need to make sure that ve.dm.MWReferenceNode.toDomElements and ve.dm.MWReferencesListNode.toDomElements make sure that the content is converted so that Parsoid can parse it correctly.

Task
  • Look into ve.dm.MWReferenceNode.toDomElements and figure out where synthetic LDR's are used and get rid of that dependency
  • Look into ve.dm.MWReferenceNode.toDomElements and make sure content is retrieved correctly where needed ( might be not needed here )
  • Look into ve.dm.MWReferencesListNode.toDomElements and figure out where synthetic LDR's are used and get rid of that dependency
  • Look into ve.dm.MWReferencesListNode.toDomElements and make sure content is retrieved correctly to render the updated references list
Notes

Event Timeline

Change #1251819 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/Cite@master] QUnit: Use fixtures for tests around the main content

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

Change #1251819 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] QUnit: Use fixtures for shouldGetMainContent test

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

Change #1272703 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/Cite@master] VE: Use ReflistStructure to build references for converter

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

Split into subtasks, parked for now.

Change #1272703 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] VE: Use ReflistStructure to build references for converter

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