console icon indicating copy to clipboard operation
console copied to clipboard

Prioritize exact maches in ListDropdown filter

Open h3rmanj opened this issue 2 years ago • 7 comments

Hi!

It would be nice if the ListDropdown filter would prioritize exact matches.

For example, in Create RoleBinding UI, when I search the Role list for edit, I get these results; image

And I actually have to scroll down to find the role named edit. image

I'm not sure how this would be implemented though. I found fuzzysearch was used for dropdown filtering, which doesn't really support this. It might be possible to do a sort or find on the fuzzysearch results, where all we look for is an exact match to show first?

h3rmanj avatar Mar 01 '22 09:03 h3rmanj

We could look at switching to a library like https://github.com/farzher/fuzzysort to give a weighted sort.

cc @alimobrem @jhadvig

spadgett avatar Mar 17 '22 17:03 spadgett

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Jun 15 '22 18:06 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Jul 15 '22 19:07 openshift-bot

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar Aug 15 '22 00:08 openshift-bot

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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 kubernetes/test-infra repository.

openshift-ci[bot] avatar Aug 15 '22 00:08 openshift-ci[bot]

/reopen

h3rmanj avatar Aug 15 '22 07:08 h3rmanj

@h3rmanj: Reopened this issue.

In response to this:

/reopen

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 kubernetes/test-infra repository.

openshift-ci[bot] avatar Aug 15 '22 07:08 openshift-ci[bot]

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar Sep 14 '22 08:09 openshift-bot

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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 kubernetes/test-infra repository.

openshift-ci[bot] avatar Sep 14 '22 08:09 openshift-ci[bot]

/reopen

h3rmanj avatar Sep 14 '22 08:09 h3rmanj

@h3rmanj: Reopened this issue.

In response to this:

/reopen

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 kubernetes/test-infra repository.

openshift-ci[bot] avatar Sep 14 '22 08:09 openshift-ci[bot]

/remove-lifecycle rotten

h3rmanj avatar Sep 14 '22 08:09 h3rmanj

/lifecycle frozen

h3rmanj avatar Sep 14 '22 08:09 h3rmanj