Page MenuHomePhabricator

Make the wbsearchentities api return a "nice" error when a fed props exception happens
Closed, ResolvedPublic

Description

Make the wbsearchentities api return a "nice" error response (similar to wbsetclaim in the last hike T254998)

  • The PHP API is repo/includes/Api/SearchEntities.php
  • The pattern used to do this should be the same as done in setclaim in T254998

Event Timeline

Change 607538 had a related patch set uploaded (by Tobias Andersson; owner: Tobias Andersson):
[mediawiki/extensions/Wikibase@master] FP: SearchEntities handles exceptions

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

Change 607801 had a related patch set uploaded (by Tobias Andersson; owner: Tobias Andersson):
[mediawiki/extensions/WikibaseCirrusSearch@master] FP: Update SearchEntities constructor

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

Change 607801 merged by jenkins-bot:
[mediawiki/extensions/WikibaseCirrusSearch@master] FP: SearchEntities constructor changed

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikibaseCirrusSearch/ /607801

Change 607538 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] FP: SearchEntities handles exceptions

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

Addshore closed this task as Resolved.Jul 15 2020, 8:17 AM