Skip to content
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

Enable AddCondition to add negated conditions #205

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

kelnage
Copy link
Contributor

@kelnage kelnage commented Mar 26, 2024

The AddConditionTransformation currently allows the addition of rule conditions that are required to be true to a rule, but cannot be used to add conditions that are negated (e.g., filters).

This adds a "negated" attribute to the transformation, which, if set, puts a "not" in front of the condition to enable this functionality.

The AddConditionTransformation currently allows the addition of rule
conditions that are required to be true to a rule, but cannot be used to
add conditions that are negated (e.g., filters).

This adds a "negated" attribute to the transformation, which, if set,
puts a "not" in front of the condition to enable this functionality.
@thomaspatzke
Copy link
Member

Thanks for the PR! Can you please also add a test for it?

@kelnage
Copy link
Contributor Author

kelnage commented Mar 27, 2024

@thomaspatzke Absolutely, hopefully fixed in e4ea838

@thomaspatzke thomaspatzke merged commit 4858a71 into SigmaHQ:main Mar 28, 2024
12 checks passed
@thomaspatzke
Copy link
Member

Perfect! Thanks a lot! 🚀

@kelnage kelnage deleted the add-negated-condition branch April 12, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants