rm PROMOTED_GROUP_CHOICES#25106
Conversation
WIP TODO: filters.py changes are lacking - need way to replicate badged
657bb5d to
16a4768
Compare
16a4768 to
8c43966
Compare
21c7d2a to
ed8041a
Compare
| STATIC_THEMES_REVIEW = AclPermission('Addons', 'ThemeReview') | ||
| # Can review recommend(ed|able) add-ons | ||
| ADDONS_RECOMMENDED_REVIEW = AclPermission('Addons', 'RecommendedReview') | ||
| # Can triage (and therefore see in the queues) add-ons with a temporary delay |
There was a problem hiding this comment.
Just out of curiosity, is there no need for an equivalent to this (can review add-ons with promotions), or is that going to just fall to admins only?
There was a problem hiding this comment.
Some of the groups are admin_review=True, but the others are any reviewer (not that there's a differentiation at the moment - all reviewers are admin reviewers). This drops Recommended as a being a special group with a dedicated permission
|
|
||
|
|
||
| class TestPromotedGroup(TestCase): | ||
| def test_deactived_group_ids_raise(self): |
There was a problem hiding this comment.
Since active is still a field on the model, I don't think this test should be removed wholesale
There was a problem hiding this comment.
was active supposed to be just for the sponsored and verified groups? I assumed it was more generic than that. If it's just for those groups we can drop the model field too.
Fixes mozilla/addons#15976
Description
Removes PROMOTED_GROUP_CHOICES from live and test code. Also drops
Addons:RecommendedReviewpermission.Context
Almost the last part of removing all constants relating to Promoted groups - with the aim that PromotedGroups can be added and edited freely in production without code changes or migrations.
Almost, because we still need to know what
badgedgroup means, without the database; and addons-frontend still has some hard-coded constants controlling the behavior of the groups it knows about.I made the changes in code, and had claude update the tests.
Testing
Checklist
#ISSUENUMat the top of your PR to an existing open issue in the mozilla/addons repository.