Open
Bug 2081860
Opened 6 days ago
Updated 6 days ago
Migrate Bug REST resource to native Mojo API: bug objects (get, search, create, update, possible_duplicates, history)
Categories
(bugzilla.mozilla.org :: API, task)
Tracking
()
UNCONFIRMED
People
(Reporter: xavier.lhour, Unassigned)
References
(Depends on 2 open bugs, Blocks 1 open bug)
Details
Part of bug 2081819
Port the bug object endpoints of the legacy Bug REST resource to a native Mojo controller, Bugzilla::API::V1::Bug.
Endpoints:
GET /rest/bugPOST /rest/bugGET /rest/bug/<id_or_alias>PUT /rest/bug/<id_or_alias>GET /rest/bug/possible_duplicatesGET /rest/bug/<id_or_alias>/history
Scope:
- Port the six methods (
get,search,create,update,possible_duplicates,history), keeping request parameters and response format unchanged. - Keep the
webservice_bug_gethook working (used by JiraWebhookSync). - They are called by the web UI (BugModal CC and flag changes, guided bug entry, duplicate search on bug entry and instant search), so the native endpoints must match those calls exactly.
/rest/bug/<id_or_alias>must not capture/rest/bug/possible_duplicates,/rest/bug/comment/...or/rest/bug/attachment/....
Final cleanup (last of the Bug sub-tasks):
- Delete
Bugzilla::WebService::BugandBugzilla::WebService::Server::REST::Resources::Bug. This includesupdate_see_also, which has no REST route and has been unreachable since the JSON-RPC/XML-RPC removal. - Remove the Bug entries from
WS_DISPATCH(Bugzilla/WebService/Constants.pm),Bugzilla/WebService/Server/REST.pmand the POD ofBugzilla/WebService.pm. extensions/MyDashboard/lib/WebService.pminherits fromBugzilla::WebService::Bugand calls itscomments(), so it must stop depending on it first.
| Reporter | ||
Updated•6 days ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•