-
Notifications
You must be signed in to change notification settings - Fork 24
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
NETOBSERV-1692: allow KEEP filtering logic #740
Conversation
@jotak: This pull request references NETOBSERV-1692 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New image: It will expire after two weeks. To deploy this build, run from the operator repo, assuming the operator is running: USER=netobserv VERSION=bfe17ed make set-flp-image |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #740 +/- ##
==========================================
+ Coverage 64.95% 65.16% +0.20%
==========================================
Files 110 111 +1
Lines 8436 8526 +90
==========================================
+ Hits 5480 5556 +76
- Misses 2638 2648 +10
- Partials 318 322 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
docs/api.md
Outdated
@@ -161,6 +161,7 @@ Following is the supported API format for filter transformations: | |||
remove_entry_if_equal: removes the entry if the field value equals specified value | |||
remove_entry_if_not_equal: removes the entry if the field value does not equal specified value | |||
remove_entry_all_satisfied: removes the entry if all of the defined rules are satisfied | |||
keep_entry: keeps the entry if the set of rules are all satisfied |
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.
keep_entry: keeps the entry if the set of rules are all satisfied | |
keep_entry_all_satisfied: keeps the entry if the set of rules are all satisfied |
For consistency
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.
I used a simpler name because there's only 1 "keep entry" rule, as opposed to "remove entry" where there are a bunch of different ones which need to be distinguished from each other.
And I don't think there's any plan to have more "keep entry" rules later because they can all be expressed within that one.
So .. I don't know, between simplicity or consistency, what to prefer ....
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.
ok, changed to your suggestion: 417769d
e8e8a4c
to
417769d
Compare
Move prom-encode predicates filtering code to its own package and share it with "keep_entry" transforms
76131e0
to
f701321
Compare
Description
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.