-
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.
Refactor Blocklist MLBF Upload Logic with Explicit Actions and coupli…
…ng 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.
- Loading branch information
Showing
5 changed files
with
395 additions
and
695 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
Oops, something went wrong.