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

NETOBSERV-387 UI: filter "NOT" #333

Merged
merged 2 commits into from
Jul 10, 2023
Merged

Conversation

jpinsonneau
Copy link
Contributor

@jpinsonneau jpinsonneau commented May 24, 2023

This PR implement equal / not equal dropdown between filter key and value:
image

Clicking directly in the compare symbol switch from one to another
image
image

Once the proper comparaison is selected, you can type your filter as usual and see the result:
image

Solve #328

@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Merging #333 (98dd766) into main (99b3a5f) will decrease coverage by 2.69%.
The diff coverage is 51.51%.

@@            Coverage Diff             @@
##             main     #333      +/-   ##
==========================================
- Coverage   58.08%   55.39%   -2.69%     
==========================================
  Files         149       29     -120     
  Lines        6615     1753    -4862     
  Branches      792        0     -792     
==========================================
- Hits         3842      971    -2871     
+ Misses       2556      694    -1862     
+ Partials      217       88     -129     
Flag Coverage Δ
uitests ?
unittests 55.39% <51.51%> (-0.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/plugin-backend.go 0.00% <0.00%> (ø)
pkg/kubernetes/client/client.go 0.00% <0.00%> (ø)
pkg/kubernetes/auth/check_auth.go 85.24% <100.00%> (-0.24%) ⬇️

... and 123 files with indirect coverage changes

@jpinsonneau jpinsonneau requested a review from eranra May 24, 2023 12:13
@jpinsonneau
Copy link
Contributor Author

@eranra @kfirtoledo

@kfirtoledo
Copy link

Looks good

@eranra
Copy link
Contributor

eranra commented May 28, 2023

@jpinsonneau, this looks very good. Thanks for getting this done so quickly.

BTW: with regards to adding the word Not in the box: I think that this is better than using the ! sign, but it might be still confusing as it feels like this is part of the text Common Namespace - any chance to use a different format; maybe bold, or change the color so it will be more highlighted?

@jpinsonneau
Copy link
Contributor Author

BTW: with regards to adding the word Not in the box: I think that this is better than using the ! sign, but it might be still confusing as it feels like this is part of the text Common Namespace - any chance to use a different format; maybe bold, or change the color so it will be more highlighted?

The Not mention is currently used with quick filters but I agree we can improve that.

I feel icons could do the job:
image

Or custom ones:
equal
is-not-equal-to

@eranra
Copy link
Contributor

eranra commented May 30, 2023

BTW: with regards to adding the word Not in the box: I think that this is better than using the ! sign, but it might be still confusing as it feels like this is part of the text Common Namespace - any chance to use a different format; maybe bold, or change the color so it will be more highlighted?

The Not mention is currently used with quick filters but I agree we can improve that.

I feel icons could do the job: image

Or custom ones: equal is-not-equal-to

Yes :-) This will look really good :+1

eranra
eranra previously approved these changes May 30, 2023
@jpinsonneau
Copy link
Contributor Author

Created a followup for custom icons
https://issues.redhat.com/browse/NETOBSERV-1071

@jotak
Copy link
Member

jotak commented Jun 21, 2023

two small comments, else this lgtm

@jotak
Copy link
Member

jotak commented Jul 10, 2023

/lgtm
thanks @jpinsonneau !

@jpinsonneau
Copy link
Contributor Author

merging this as we discussed today in sprint planning

@jpinsonneau
Copy link
Contributor Author

/approve

@openshift-ci
Copy link

openshift-ci bot commented Jul 10, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jpinsonneau

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 3fb1b15 into netobserv:main Jul 10, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants