normandy/normandy
bors[bot] b048cb2d2b
Merge #2116
2116: Remove more aliases r=mythmon a=glasserc

Refs #1863. 

This PR is mostly structured as individual commits which remove one property at a time, converting existing uses to be either `.approved_revision` or `.latest_revision` based on my best guess about what is appropriate in each case.

The main point of contention here is the serializers, which use these properties more-or-less explicitly. The v1 serializers are mostly used for signed/enabled recipes, so the cleanest way to fix this would be to restrict their use to that. However, the tests indicate that the v1 API can be/still is used with non-enabled recipes. I'm not expert enough in Django/DRF to figure out how to remove that stuff surgically, so instead this PR takes the approach of moving the existing `current_revision` logic (i.e. `approved_revision or latest_revision`) into the RecipeSerializer on the assumption that it's only used in read-only circumstances so it's probably fine. The `MinimalRecipeSerializer` is converted to only use `approved_revision` as it is mostly intended for signed recipes which must be approved. These changes are perhaps not the cleanest possible approach but I thought changing the v1 API was outside the scope of the changes I wanted to make (these changes already being substantial).

Co-authored-by: Ethan Glasser-Camp <ethan@betacantrips.com>
2020-03-12 20:31:52 +00:00
..
base Add a YAML formatter for convenient browsing 2020-02-11 16:46:01 -08:00
capabilities Remove capabilities property 2020-02-27 17:10:52 -05:00
health Format code with Black 2018-06-28 14:00:58 -07:00
recipes Merge #2116 2020-03-12 20:31:52 +00:00
selfrepair Increase cache on deprecated self-repair to one week 2018-10-04 11:24:15 -07:00
studies Merge branch `master` 2019-04-04 23:19:35 -04:00
__init__.py Cancel the monorepo, and make recipe-server the sole project 2018-04-26 11:25:24 -07:00
conftest.py Don't fetch a geoip db during CI 2020-01-09 14:49:48 -08:00
schema.py Schema for all apps 2019-03-28 16:10:04 -04:00
settings.py Add a YAML formatter for convenient browsing 2020-02-11 16:46:01 -08:00
urls.py Add API endpoint that lists known capabilities 2019-10-03 11:26:45 -07:00
wsgi.py Format code with Black 2018-06-28 14:00:58 -07:00