Closed Bug 962264 Opened 10 years ago Closed 10 years ago

Switch to native bugzilla API instead of BzAPI Proxy

Categories

(Socorro :: Webapp, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

References

(Blocks 1 open bug)

Details

All cases where we use the old BzAPI Proxy we should switch to the new native REST API.
Has the native REST API already shipped on bmo? I thought it wasn't deployed yet (but if it is, I'd be happy to know as I'd love to convert my own stuff to a more efficient API any time).
(In reply to Robert Kaiser (:kairo@mozilla.com) from comment #1)
> Has the native REST API already shipped on bmo? I thought it wasn't deployed
> yet (but if it is, I'd be happy to know as I'd love to convert my own stuff
> to a more efficient API any time).

Yes! I was pointed to it recently for a different project, and it was mentioned today at the "mozilla dashcon" miniconf. e.g.:
https://bugzilla.mozilla.org/rest/bug/543210
Blocks: 1003236
As a first step, we should just switch to the compat API, which only needs a URL change and nothing else: https://dlawrence.wordpress.com/2014/06/20/bzapi-compatibility-api-has-been-rolled-out-to-production-bmo/

For the longer run, the docs to what we should switch to are at http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Bug.html#search
Thanks :kairo! I totally missed that. However, I think I'll just make the migration directly to the new API straight away. It shouldn't be that hard.
Assignee: nobody → peterbe
Status: NEW → ASSIGNED
Commits pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/5c6c4e3ae9b6af49342cf896b93f1f596f8b1cea
fixes bug 962264 - Switch to native bugzilla API instead of BzAPI Proxy

https://github.com/mozilla/socorro/commit/7fbf08a7a0439889933acc206ad3649ecb5e143d
Merge pull request #2226 from peterbe/bug-962264-switch-to-native-bugzilla-api-instead-of-bzapi-proxy

fixes bug 962264 - Switch to native bugzilla API instead of BzAPI Proxy
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95
You need to log in before you can comment on or make changes to this bug.