- 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
Description
Description
Details
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T335067 Epic: Wikidata Query Service stabilization | |||
Resolved | Lydia_Pintscher | T314503 rollout of the new Wikibase REST API to Wikidata | |||
Open | None | T316718 Errors in Wikibase REST API | |||
Resolved | Ollie.Shotton_WMDE | T324088 💥️ Improve error reporting for invalid statement data in REST API (missing field or invalid value) | |||
Resolved | Jakob_WMDE | T325182 💥️ Adjust the PatchStatement use case to apply patches using a generic JsonPatcher |
Event Timeline
Comment Actions
Change 868728 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Use generic JsonPatcher in PatchItemStatement
Comment Actions
Change 869189 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Remove unused patch classes
Comment Actions
Change 868728 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Use generic JsonPatcher in PatchItemStatement
Comment Actions
Change 869189 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Remove unused patch classes