mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.18k stars 913 forks source link

Move waffle switches into the admin #15157

Open stevejalim opened 1 week ago

stevejalim commented 1 week ago

Description

Now that we're using a centralised DB again, we can move our waffle-switch approach away from a separate repo (the waffle_configs directory in momeao/www-config and instead use the Django admin on the CMS deployment to manage them.

The admin on the CMS deployment is connected to the primary DB, and waffle config changes will be flowed down to the replicas for the web pods effectively immediately, which will be faster than the current process, which reads from www-config a most every five minutes.

Whether we go (back?) to https://waffle.readthedocs.io/en/stable/ or use something else, we'll need to decide on an approach and also migrate existing switches from www-config into the Bedrock primary DB for Dev, Stage and Prod (as these all appear to have waffle configs in www-config.


Success Criteria

janbrasna commented 3 days ago

@stevejalim FYI I've been cleaning up the switches to only keep the ones in use for #14092 — so after https://github.com/mozmeao/www-config/pull/582 this should be all — and only those used live will remain, not having to migrate junk.

stevejalim commented 3 days ago

Thanks @janbrasna - FYI @robhudson