-
Notifications
You must be signed in to change notification settings - Fork 14
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-204 source or destination match #83
Conversation
Skipping CI for Draft Pull Request. |
[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 |
3dd5235
to
d67c213
Compare
3f16218
to
92db3ed
Compare
My initial thinking about this task was more to have new filters like "Pods" in the filters list, and that would match both for src and dest pods. So in terms of display you wouldn't have this large box showing Source and Destination and complex filters, you would just have the usual key-value "Pod: foo", and the underlying business logic of the filters would be hidden. WDYT? |
So this "Pods" filter would also be available as a column or just in the filters ? Maybe in that case we can have a "Match any" associated with only two new filters : Source / Destination that contains both |
/hold |
To me, the main use case we want to solve is to filter for a given pod / namespace (or whatever kube object), regardless it's source or destination. Is there another use case you wanted to address?
It should be only a filter (in my initial vision at least)
OK I get your point. I thought at first that we wanted something like So we want somehow, in the "match all" situation, end up with this: |
Let's imagine we want to build a more complex query with more filters, in "match all" mode, eg. with Pod, Namespace and Workload (src+dest), and Port (only dst). The resulting query must be:
So, to extract the rule from there, looks like when a "Src+Dst" filter is in the game, we can run 2 queries: first with all "Src+Dst" fields on "Src", + the non-"Src+Dst" filters, all ANDed; then all "Src+Dst" fields on "Dst", + the non-"Src+Dst" filters, all ANDed This is maybe not super clear (and must be challenged), we can have a call if you want |
Following our slack discussion, let's consider both way and test them.
That's currently working in this PR If you feel groups takes too much room we can remove titles: Let's try the super-columns source/destination way in parallel |
This PR add a query option to
match all Source OR Destination
fieldsI suggest to release that as is to unlock #81 and add an extra
custom match
filter in the future to unlock custom grouping.We can imagine custom grouping using drag and drop on UI side and
match
argument sent to the backend containing group infos (fields, criteria between each value of group / between each group)Or wait for PF query builder patternfly/pf-roadmap#17