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

NEW
Unassigned

Status

Release Engineering
Release Automation
P3
normal
3 years ago
a year ago

People

(Reporter: bhearsum, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
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
You need to log in before you can comment on or make changes to this bug.