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.

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

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.

@cscott: Removing task assignee as this open task has been assigned for more than two years - see the email sent to all task assignees on 2024-04-15.
Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome! :)
If this task has been resolved in the meantime, or should not be worked on by anybody ("declined"), please update its task status via "Add Action… 🡒 Change Status".
Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator. Thanks!

Change #759728 abandoned by Hashar:

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

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

Change #759728 restored by Thcipriani:

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

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