Repository navigation
Support filter clear directives - #1306
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| Protect, | ||
| /// Remove previously applied protection, allowing deletion when matched. | ||
| Risk, | ||
| /// Clear previously defined filter rules for the affected transfer sides. | ||
| Clear, |
There was a problem hiding this comment.
Handle new
Clear variant across filter program
Adding FilterAction::Clear here breaks existing matches that only covered Include | Exclude and Protect | Risk (e.g. FilterSegment::push_rule and the protect/risk loop in crates/engine/src/local_copy.rs). After this commit the crate no longer compiles because those matches are now non‑exhaustive. Extend the engine’s match statements to handle Clear (and implement the clearing behaviour) before merging.
Useful? React with 👍 / 👎.
Summary
Testing