-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support uploading stash/filter from multiple block types #22884
Conversation
53e94aa
to
7c7e5b5
Compare
7c7e5b5
to
80d0bb9
Compare
80d0bb9
to
0684796
Compare
Screen.Recording.2024-11-22.at.17.01.37.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I noticed a bug with the deletion of previous records but apart from that, this is looking solid.
Co-authored-by: William Durand <will+git@drnd.me>
400fa6f
to
d8f6551
Compare
… config_keys before completing the session.. if any error raises we have updated config keys, but not updated files in remote settings which could be a critical bug
d8f6551
to
5c9e6f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nits, and a suggestion to compute the oldest base ID. The rest looks good, thanks.
2488f60
to
9efc622
Compare
Co-authored-by: William Durand <will+git@drnd.me>
9efc622
to
256e667
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+wc, thank you!
Co-authored-by: William Durand <will+git@drnd.me>
* Support uploading stash/filter from multiple block types * Apply suggestions from code review Co-authored-by: William Durand <will+git@drnd.me> * Fix ordering of complete_session: (this has a new bug that we set the config_keys before completing the session.. if any error raises we have updated config keys, but not updated files in remote settings which could be a critical bug * Better, more explicit tests and then make them all pass * Apply suggestions from code review Co-authored-by: William Durand <will+git@drnd.me> * Apply suggestions from code review Co-authored-by: William Durand <will+git@drnd.me> --------- Co-authored-by: William Durand <will+git@drnd.me>
Relates to: mozilla/addons#15014
Description
Adds support for uploading filters and stashes simultaneously as well as supporting soft/hard filters.
Context
Supporting #22828
Testing
Setup
enable-soft-blocking
andblocklist_mlbf_submit
waffle switchsrc/olympia/constants/blocklist.py
See the test scenarios
Now you can call the
_blocked_addon
method to create an addon with block/version of the specified type.Ex:
This PR will not change any of the existing behavior so you expect to see a new stash record if >0Replace threshold changes, also if new filter expect previous stashes to be deleted.
Force recreate
First force recreate the filter
Expect only an attachment record, regardless of what was there before.
Create a stash
Create one new block
Expect a stash record uploaded
Repeat, expect another stash record
Repeat, now expect a new filter and all stashes deleted.
You can create as many soft blocks at any point in this flow and it should have zero impact.
Checklist
#ISSUENUM
at the top of your PR to an existing open issue in the mozilla/addons repository.