Closed
Bug 969630
Opened 11 years ago
Closed 10 years ago
Return comment tags when requesting comments via ?include_fields=comments
Categories
(bugzilla.mozilla.org :: Extensions, defect)
bugzilla.mozilla.org
Extensions
Tracking
()
VERIFIED
FIXED
People
(Reporter: miketaylr, Unassigned)
References
Details
Right now in order to see comment tags I can't just request that info for a bug via "?include_fields=comments", e.g.,
<https://api-dev.bugzilla.mozilla.org/latest/bug/969521?include_fields=comments,url,summary,whiteboard>
Instead, I have to make another request,e.g. <https://api-dev.bugzilla.mozilla.org/latest/bug/969521/comment>
Would it be possible to return the tags array in the former case as well?
Updated•11 years ago
|
Assignee: nobody → webservice
Component: API → WebService
OS: Mac OS X → All
Product: bugzilla.mozilla.org → Bugzilla
QA Contact: default-qa
Hardware: x86 → All
Version: Production → unspecified
Comment 1•11 years ago
|
||
BzAPI is BMO only (hence moving back). Looks like implementing bug 540818 upstream might enable adding this for BzAPI so that bug needs to happen first (hence depending).
Assignee: webservice → nobody
Component: WebService → Extensions: BzAPI Compatibility
Depends on: 540818
Product: Bugzilla → bugzilla.mozilla.org
QA Contact: default-qa
Version: unspecified → Production
Comment 2•11 years ago
|
||
Hmm, I missed the URL. For BzAPI, _all is a simple workaround.
https://api-dev.bugzilla.mozilla.org/latest/bug/350001?include_fields=_all&content-type=application/json
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
(In reply to Mike Taylor [:miketaylr] from comment #0)
> Right now in order to see comment tags I can't just request that info for a
> bug via "?include_fields=comments", e.g.,
>
> <https://api-dev.bugzilla.mozilla.org/latest/bug/
> 969521?include_fields=comments,url,summary,whiteboard>
>
> Instead, I have to make another request,e.g.
> <https://api-dev.bugzilla.mozilla.org/latest/bug/969521/comment>
>
> Would it be possible to return the tags array in the former case as well?
I do not see that it is possible to get the tag information from the BzAPI proxy. You can get the tags through the native REST API in Bugzilla but not with all bug attributes, only with the comments specific call.
All fields exceptcomments:
https://bugzilla.mozilla.org/rest/bug/969521
Just comments:
https://bugzilla.mozilla.org/rest/bug/969521/comment
And then you can combine the data.
I am working on an extension to BMO to allow BzAPI compatibility on the same server in bug 880669 which will allow you to get comments along with all other fields together. Hope to be done with that soon.
dkl
Updated•11 years ago
|
Reporter | ||
Comment 5•11 years ago
|
||
(In reply to David Lawrence [:dkl] from comment #4)
> I do not see that it is possible to get the tag information from the BzAPI
> proxy. You can get the tags through the native REST API in Bugzilla but not
> with all bug attributes, only with the comments specific call.
>
> All fields exceptcomments:
> https://bugzilla.mozilla.org/rest/bug/969521
>
> Just comments:
> https://bugzilla.mozilla.org/rest/bug/969521/comment
>
> And then you can combine the data.
Yeah, that's my current workaround.
>
> I am working on an extension to BMO to allow BzAPI compatibility on the same
> server in bug 880669 which will allow you to get comments along with all
> other fields together. Hope to be done with that soon.
Cool. Looking forward to it.
as the compatibility shim will mirror bzapi's functionality exactly, it first needs to happen in the bzapi proxy itself, moving.
Assignee: nobody → gerv
Component: Extensions: BzAPI Compatibility → BzAPI
Product: bugzilla.mozilla.org → Webtools
Version: Production → other
Comment 7•11 years ago
|
||
BzAPI is not going to add this function, as it is feature-frozen. It may be added to the shim at some point in a backwardly-compatible way. Or it may not - but that's the only way it's going to happen. Moving back.
Gerv
Assignee: gerv → nobody
Component: BzAPI → Extensions: BzAPI Compatibility
Product: Webtools → bugzilla.mozilla.org
https://bugzilla.mozilla.org/bzapi/bug/969521/comment includes comment tags.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Component: Extensions: BzAPI Compatibility → Extensions
You need to log in
before you can comment on or make changes to this bug.
Description
•