kubernetic icon indicating copy to clipboard operation
kubernetic copied to clipboard

Make filter persistent

Open vasili439 opened this issue 4 years ago • 6 comments

Hi! When I try to filter some resources by the name in Search field it becomes always empty when I switch to another resource. In previous version I can set permanent filter in Labels field. Could you please return back permanent filter functionality?

vasili439 avatar Dec 29 '20 10:12 vasili439

Hi,

You can add a permanent filter on the top right search box. Documentation explains it in detail.

dkapanidis avatar Dec 29 '20 13:12 dkapanidis

No. Since the last version I can choose only from labels list but I can't set "custname" for example. Previous version wasn't affected with this bug

vasili439 avatar Dec 29 '20 15:12 vasili439

Is this really a useful scenario? If "custname" is a name that is delegated between other resources, wouldn't it make sense to exist a label that groups them together so that you can perform cross-section actions?

e.g. if you install a helm app with multiple resources, they should be grouped together under labels which you can then use to filter them out and perform cross-section actions.

I'll reopen it, let's see first if there are more users interested in it.

dkapanidis avatar Dec 29 '20 15:12 dkapanidis

it useful. we have something like this: someapp someapp-backoffice someapp-backoffice-front and I want to filter everything what is related to "someapp" or we have several pods which is providing streaming service from different providers and I want to filter everything what is related to "stream"

vasili439 avatar Dec 29 '20 15:12 vasili439

Doing some mining on the issues there are some conflicting expectations:

  • #48 expects search to be reset
  • this, #181: expects search to be persistent

That's also the reasoning for splitting to two text boxes (global and page specific):

  • A user may want to quickly search something on a page, but wants to continue working on all resources
  • A user may want to filter by label (or by text as noted here) and keep that cross-section.

dkapanidis avatar Dec 29 '20 15:12 dkapanidis

I think both points can be reached if you return the same behavior as it was in previous version: label field could be custom and cross-section and search field reset when you switch between sections

vasili439 avatar Dec 30 '20 05:12 vasili439