Closed Bug 946457 Opened 10 years ago Closed 10 years ago

Add Ember.attachments API that includes possible flag values

Categories

(bugzilla.mozilla.org :: API, defect)

Development
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: erik.bryn, Assigned: dkl)

Details

When a user wants to edit an attachment, I need a list of all the posssible flags for an attachment. Currently the only way I have to get this information is from the `flags` field in Ember.show. I'm thinking we could create an Ember.attachments API that wraps Bug.attachments but also includes a `values` array of all the possible flag types.
Assignee: nobody → dkl
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Added Ember.attachments to bugzilla-dev.allizom.org for testing/feedback. Possible entry points are:

https://bugzilla-dev.allizom.org/rest/ember/bug/1/attachments?exclude_fields=data (bug id)

or

https://bugzilla-dev.allizom.org/rest/ember/bug/attachments/1?exclude_fields=data (attachment id)

Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bmo/4.2-dev
modified extensions/Ember/lib/WebService.pm
Committed revision 8607. 

dkl
Flags: needinfo?(erik.bryn)
Looks good, thanks!

Can we get this code deployed to production?
Flags: needinfo?(erik.bryn)
I believe we'll be doing a push to prod on Sunday night.
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bmo/4.2
modified extensions/Ember/lib/WebService.pm
Committed revision 9184.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
this is now live.
You need to log in before you can comment on or make changes to this bug.