[Task]: Add new illegal_category field in abuse reports (original) (raw)

As part of https://mozilla-hub.atlassian.net/browse/AMOENG-683, we need to add a new illegal_category field in the feedback form. The first step is to make it available in the API, which this issue is about.

The possible values for this new fields are:

Though, we'll want to have constants in the API.

This new field should be sent to Cinder, in the illegal_category field of the AMO Report entity. Each value sent should be normalized to look like one of the following:

Now given that we won't have the frontend work done yet, the only way to send this new field is to use the API directly, e.g. with HTTPie:

 http --json POST 'https://addons-dev.allizom.org/api/v5/abuse/report/user/?lang=en-US' --raw '{"user":12345,"message":"test","reason":"illegal","reporter_email":null,"reporter_name":null,"lang":"en-US","illegal_category":"animal_welfare"}'

┆Issue is synchronized with this Jira Task