-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure we clear stashes when uploading new blocklist filters (#23039)
* Refactor Blocklist MLBF Upload Logic with Explicit Actions and coupling both filter types to a single control flow This commit introduces a more explicit and flexible approach to managing blocklist filter uploads by: - Adding a new `BlockListAction` enum to define specific upload actions - Refactoring "upload_filter" to accept a programmable set of "actions" simplifying the underlying logic and making future modifications to how and what we upload easier to control from the cron - Change business logic in "upload_mlbf_to_remote_settings" to upload either both filters if either filter exceeds the replace threshold, simplifying the cleanup logic for stashes in "upload_filter" The changes provide a more straightforward mechanism for handling blocklist filter and stash uploads, making the code more maintainable and easier to understand. * Remove Waffle Switch for Soft Blocking and Simplify MLBF Logic This commit removes the Waffle switch for soft blocking and updates the MLBF (Machine Learning Bloom Filter) logic to always process soft-blocked items. Key changes include: - Removed all references to the 'enable-soft-blocking' Waffle switch - Simplified test cases to remove conditional logic based on the switch - Updated MLBF generation and stash creation to always include soft-blocked items - Removed conditional checks in cron and MLBF processing that were dependent on the switch The changes streamline the blocklist filter generation process and remove unnecessary complexity around soft blocking configuration.
- Loading branch information
Showing
7 changed files
with
441 additions
and
816 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.