Closed Bug 1153319 Opened 10 years ago Closed 2 years ago

make balrog submitter tools use JSON in request bodies instead of multipart form data

Categories

(Release Engineering :: Release Automation, enhancement, P3)

x86_64
Linux
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Unassigned)

Details

The new Balrog UI talks to the backend with requests that submit data in JSON format rather than form encoding. However, our command line tools still use form encoding, which means the backend needs to support both. We should switch the command line tools to JSON and drop support for form encoding. Looking at Requests' API it looks like this may be extremely simple: data – the body to attach to the request. If a dictionary is provided, form-encoding will take place. json – json for the body to attach to the request (if data is not specified). If we s/data/json/ a few places in https://github.com/mozilla/build-tools/blob/master/lib/python/balrog/submitter/api.py it may all just work...need to do some testing though.
Priority: -- → P3
Component: Release Automation: Other → Release Automation: Updates
Severity: normal → N/A
Type: defect → enhancement

AFAICT this is done.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Component: Release Automation: Updates → Release Automation
You need to log in before you can comment on or make changes to this bug.