thunderbird / addons-server

🕶 addons.thunderbird.net Django app and API, forked from addons.mozilla.org 🎉
https://addons.thunderbird.net
BSD 3-Clause "New" or "Revised" License
18 stars 17 forks source link

Add a command and associated task to clean up old outgoing urls #227

Closed MelissaAutumn closed 1 year ago

MelissaAutumn commented 1 year ago

Fixes #203

There was an upstream fix, but it wouldn't really work since we want to remove the url, not change the url. Easier to just re-clean them. We can adjust the fields we want to clean, and I'm also not fixed on the stats, so we can nix those too if you'd like.

I ran this against 2000~ test addons locally, and the tasks run pretty much instantly. (Granted both my test machines are pretty beefy.) This needs a staging qa check, and we'll need to empty/none out any lingering REDIRECT_URL settings before running this.

Also I'm not impressed with whoever decided not to have a matching meta_type or type field on the translations table. :smile: