Open
Bug 1096251
Opened 11 years ago
Updated 6 years ago
Add the ability to query flag activity by attachment-id
Categories
(bugzilla.mozilla.org :: Extensions, enhancement)
Tracking
()
NEW
People
(Reporter: kgrandon, Unassigned)
References
Details
We have a few cases where it might be useful to surface the last flag requestee on an attachment after a flag is changed. It seems this information is available on the attachment API before the flag is set, but once it's set the info is no longer available.
I realize that you may be able to infer this from the change history of a bug, but I think it may be much easier if the attachment API could surface this for us.
Comment 1•11 years ago
|
||
We would have to change the current code behavior to not clear out the requestee value when a flag is set to + or - from a ?. If we did that we could still show the requestee value but not sure if that would cause confusion to others who are not expecting it. we would need to see what amount of work this would need and what would break.
dkl
Reporter | ||
Comment 2•11 years ago
|
||
Thanks. Preserving the requestee value on flag set would suit my use case. Trying to morph the title into something that more resembles that solution, but feel free to update it to make it more clear if needed.
Summary: Feature request: Provide last flag requestee for attachment API → Feature request: Persist flag requestee for attachment API after flag is set
Comment 3•11 years ago
|
||
This information is already available using the flag history API, which is used for the Review History UI, for instance.
Reporter | ||
Comment 4•11 years ago
|
||
(In reply to Dylan William Hardison [:dylan] from comment #3)
> This information is already available using the flag history API, which is
> used for the Review History UI, for instance.
I see the /rest/bug/<id>/history endpoint, but I don't see the flag history endpoint. Is there another rest endpoint for this? If so - could you point me to it? Thanks!
you can't currently search by attachment-id, however the data is in the table so it shouldn't be difficult to expose it.
unfortunately the issue for finding a home for the docs of BMO specific APIs is still ongoing.
for now i've put our POD docs up on the wiki at https://wiki.mozilla.org/BMO/REST/review#flag_activity
Component: API → Extensions: Review
Summary: Feature request: Persist flag requestee for attachment API after flag is set → Add the ability to query flag activity by attachment-id
Reporter | ||
Comment 6•10 years ago
|
||
David/Dylan - Do you guys have any suggestions about next steps here? It seems that the flag history API is a bit buggy (see bug 1106904), so ideally I would like to see if we can persist the requestee field for flags.
Flags: needinfo?(dylan)
Flags: needinfo?(dkl)
Comment 7•10 years ago
|
||
I've commented in bug 1106904 comment #1 with the suggestion to inline the generate_history function that the review history UI uses, which may be more generally useful. I think we could allow searching by attachment id as well.
Flags: needinfo?(dylan)
Updated•10 years ago
|
Flags: needinfo?(dkl)
Reporter | ||
Updated•10 years ago
|
No longer blocks: gaia-autoland
Updated•6 years ago
|
Component: Extensions: Review → Extensions
You need to log in
before you can comment on or make changes to this bug.
Description
•