Fixes #19927 - Drop and readd rules when importing filters
This is a change to the way we handle filter rules. Basically, there is no way to ensure uniqueness among filter rules so updating rules isn't possible. The package filter rule has a unique check but it simply checks ALL fields to see if the rule exists already. This doesn't really allow for matching though since any field change would constitute a new rule. Since we're importing/updating filters and not rules, I think dropping the rules and recreating them is the best way to handle updates.
Related issues
Bug #19927: Hammer csv import package rules doesn't handle rules with the same name
Fixes #19927 - Drop and readd rules when importing filters
This is a change to the way we handle filter rules. Basically, there is
no way to ensure uniqueness among filter rules so updating rules isn't
possible. The package filter rule has a unique check but it simply
checks ALL fields to see if the rule exists already. This doesn't really
allow for matching though since any field change would constitute a new
rule. Since we're importing/updating filters and not rules, I think
dropping the rules and recreating them is the best way to handle
updates.