sync enforcement actions from Cinder for policies#23161
Merged
eviljeff merged 2 commits intomozilla:masterfrom Mar 14, 2025
Merged
sync enforcement actions from Cinder for policies#23161eviljeff merged 2 commits intomozilla:masterfrom
eviljeff merged 2 commits intomozilla:masterfrom
Conversation
Member
|
When resolving a report in reviewer tools, I got: Which is worrying considering tests are shown as passing ? |
Member
|
Ah, the CI bug strikes again. There are actually some failures: |
Member
Author
yeah, my usual workflow of "test obvious places and then trust CI to highlight anything I missed" has been really impacted by that bug - I'll rebase. |
5be1c17 to
6e2846b
Compare
diox
approved these changes
Mar 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: mozilla/addons#15421
Description
Adds support for the cinder policy sync to import and store enforcement actions too; and then replaces the single (admin manually defined)
default_cinder_actionwith a list ofenforcement_actions.Context
At the current time this doesn't really "fix" anything, but it's needed for https://mozilla-hub.atlassian.net/browse/AMOENG-672 and would have negated the need for https://mozilla-hub.atlassian.net/browse/ADDONSOPS-810. (That there was reviewer tools functionality that implicitly depended on manual admin settings, after an automatic sync, always felt like a footgun to me, and I wanted to resolve it).
Testing
default_cinder_actionset on them.enforcement_actionsprefilled with the default cinder action you chose.enforcement_actionsdefined. *(not actually all - the parent policies don't have them, for example)Checklist
#ISSUENUMat the top of your PR to an existing open issue in the mozilla/addons repository.