Ensure we clear stashes when uploading new blocklist filters #23039
+441
−816
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#15294
Description
BlockListAction
enum to define specific upload actionsContext
Why add
actions
. The reason two fold. 1) This is very readable and makes it clear what we expectupload_filter
to do. 2) In a future where we want a more granular or sophisticated set of actions to perform, we can add them without greatly interrupting the existing set of code. This will make further improvements simpler and easier to review.Testing
In a nutshell, use all of these scenarios excepting:
You can follow setup instructions here
Note
You won't need to set
enable-soft-blocking
any more as that switch is removed in this patchChecklist
#ISSUENUM
at the top of your PR to an existing open issue in the mozilla/addons repository.