Page MenuHomePhabricator

🚨 Modify ReplaceItemStatement
Closed, ResolvedPublic

Description

  • Modify use case to use exceptions instead of response objects.
  • Modify validators by:
    • Move the validation logic into the validator, in a new method assertValidRequest.
    • Throw a UseCaseException inside the new method.
  • Since there is now only one response for use cases (the SuccessResponse), we will rename it to just Response.
  • Modify related tests.

Event Timeline

I subscribed.
This comment was removed by I.

Oops, sorry, I didn't read the title properly, they were too close.

Change 890839 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Modify ReplaceItemStatement to use exceptions

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

Change 890839 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Modify ReplaceItemStatement to use exceptions

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