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

NEW
Unassigned

Status

P3
normal
4 years ago
7 months ago

People

(Reporter: bhearsum, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

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.

Updated

2 years ago
Priority: -- → P3
Component: Release Automation: Other → Release Automation: Updates
You need to log in before you can comment on or make changes to this bug.