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

fix(edfs): filter only when type matches #805

Merged
merged 6 commits into from
May 20, 2024

Conversation

StarpTech
Copy link
Collaborator

@StarpTech StarpTech commented May 18, 2024

This PR ensures that we respect the value type when comparing the argument value with the event payload. Before this PR, we treated "1" as 1 and vice versa, as well as "true" = true.

Changes in a nutshell: When we have one segment we can extract the type. If we have more than one it will always result in a byte value comparison. In case of array values, we can always get the type and compare it with the argument type.

@StarpTech StarpTech changed the title fix(edfs): filter only when typr matches fix(edfs): filter only when type matches May 18, 2024
@StarpTech StarpTech marked this pull request as draft May 18, 2024 17:43
@StarpTech StarpTech marked this pull request as ready for review May 18, 2024 20:17
@StarpTech StarpTech requested review from jensneuse, Aenimus and devsergiy and removed request for jensneuse May 18, 2024 20:17
v2/pkg/engine/resolve/inputtemplate.go Outdated Show resolved Hide resolved
@StarpTech StarpTech merged commit 9037e4c into master May 20, 2024
8 checks passed
@StarpTech StarpTech deleted the dustin/validate-type-subscription-filter branch May 20, 2024 10:47
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.

None yet

2 participants