Page MenuHomePhabricator

Ensure extensionData can always be combined asynchronously/out-of-order
Open, MediumPublic

Description

See the parent task for the rationale.

Two sub tasks:

  • emit a deprecation warning, and later an exception, if ::setExtensionData is called multiple times with the same key and conflicting values
  • add an ::appendExtensionData method to allow collecting multiple values.

Event Timeline

Change 757938 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Add ParserOutput::appendExtensionData()

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

Change 759728 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] WIP: hard-deprecate ParserOutput::setExtensionData() with conflicting values

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

Change 759784 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/extensions/Wikibase@master] Use ParserOutput::appendExtensionData() for wikibase-entity-usage

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

Change 757938 merged by jenkins-bot:

[mediawiki/core@master] Add ParserOutput::appendExtensionData()

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

Change 759784 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Use ParserOutput::appendExtensionData() for wikibase-entity-usage

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

ssastry triaged this task as Medium priority.Jun 14 2022, 10:38 PM
ssastry added a project: Parsoid-Read-Views.