-
Notifications
You must be signed in to change notification settings - Fork 600
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
Fixed logic to choose whether to use filter or filters for a trigger #7286
Fixed logic to choose whether to use filter or filters for a trigger #7286
Conversation
Signed-off-by: Calum Murray <cmurray@redhat.com>
Skipping CI for Draft Pull Request. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #7286 +/- ##
==========================================
+ Coverage 77.54% 77.59% +0.04%
==========================================
Files 249 249
Lines 13407 13404 -3
==========================================
+ Hits 10397 10401 +4
+ Misses 2485 2479 -6
+ Partials 525 524 -1
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Cali0707,
thanks for working on this. Could we add a test, to prevent this in future?
Signed-off-by: Calum Murray <cmurray@redhat.com>
/cc @creydr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, creydr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Currently, the logic to select whether to use the
trigger.Spec.Filter
vs.trigger.Spec.Filters
is not correct. If I have provided atrigger.Spec.Filter
, and notrigger.Spec.Filters
, then currently we would still apply thetrigger.Spec.Filters
and returnfilter.NoFilter
, instead of applying mytrigger.Spec.Filter
. This leads to incorrect event processing.Proposed Changes
Pre-review Checklist
Release Note
Docs