Page MenuHomePhabricator

💥️ Adjust the PatchStatement use case to apply patches using a generic JsonPatcher
Closed, ResolvedPublic

Description

  • make use of the generic StatemenPatcher created via T325179
  • solution is outlined in a proof-of-concept, but without a separate patcher:
    • serialize the statement
    • apply the patch (and catch Exceptions)
    • validate the patched statement and return ErrorResponse if not successful

Event Timeline

Silvan_WMDE renamed this task from 💥️ Adjust the PatchStatemtent use case to apply patches using a generic JsonPatcher to 💥️ Adjust the PatchStatement use case to apply patches using a generic JsonPatcher.Dec 14 2022, 4:12 PM

Change 868728 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Use generic JsonPatcher in PatchItemStatement

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

Change 869189 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Remove unused patch classes

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

Change 868728 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use generic JsonPatcher in PatchItemStatement

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

Change 869189 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Remove unused patch classes

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