Page MenuHomePhabricator

🟥️ Create RemoveItemStatementRouteHandler
Closed, ResolvedPublic

Description

Create route handler for the DELETE /entries/items/{item_id}/statements/{statement_id} route
Same as T312551 but with additional error cases:

  • 400 for invalid item_id
  • 404 for item_id not found

Event Timeline

Change 817792 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Create RemoveItemStatementRouteHandler

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

817792 +2ed
Precondition middleware is missing but assuming that will be handled in another patch. =)

Change 817792 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Create RemoveItemStatementRouteHandler

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

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

[mediawiki/extensions/Wikibase@master] REST: Add missing RemoveItemStatement middleware

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

Change 820735 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Add missing RemoveItemStatement middleware

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

@Silvan_WMDE: Assuming this task is resolved. Thus setting resolved task status. Please reopen and add an active project tag if that is not the case. Thanks.