Closed Bug 1085588 Opened 10 years ago Closed 10 years ago

allow rules to be retrieved in JSON

Categories

(Release Engineering Graveyard :: Applications: Balrog (backend), defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Assigned: bhearsum)

References

Details

Attachments

(1 file)

Right now, /rules/:id only returns HTML for the purpose of building up the UI. We should rip that out eventually (after the new UI is complete), but for now we need to support both. bug 1083326 needs the data in a parseable format.

This patch should be pretty straightforward. We're already doing this exact thing for /releases/:name - https://github.com/mozilla/balrog/blob/master/auslib/admin/views/releases.py#L230
Attachment #8508174 - Flags: review?(rail)
Attachment #8508174 - Flags: review?(rail) → review+
Comment on attachment 8508174 [details] [diff] [review]
return json if Accept-Encoding is set right

Landed. Will get it pushed to prod tomorrow most likely.
Attachment #8508174 - Flags: checked-in+
Depends on: 1086565
This looks to be working in production.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Release Engineering → Release Engineering Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: