testkube icon indicating copy to clipboard operation
testkube copied to clipboard

UI: autocomplete for test filter labels

Open gberche-orange opened this issue 2 years ago • 7 comments

Describe the enhancement you'd like to see

As a test kube user In order to regularly use the test filters with label name and value I need autocompletion of label names and label values from history

Additional context

As of 1.12.8 , no autocomplete is proposed

filter-autocomplete-2

gberche-orange avatar Jun 14 '23 06:06 gberche-orange

@vsukhin, do we have API to get the list of labels?

rangoo94 avatar Aug 30 '23 10:08 rangoo94

No, it was a low priority till now, up to @TheBrunoLopes to make it a bit more important

vsukhin avatar Aug 30 '23 10:08 vsukhin

looks good to me, bumped it to high

TheBrunoLopes avatar Aug 30 '23 10:08 TheBrunoLopes

ok, will work after template crd

vsukhin avatar Aug 30 '23 11:08 vsukhin

Looks like there is already an API endpoint to get the list of labels:

curl https://demo.testkube.io/results/v1/labels

So it's strictly front-end task. Marking as "Ready" to do.

rangoo94 avatar Sep 01 '23 11:09 rangoo94

@fivenp I remember we wanted to refactor this labels filter to reuse UI component we have. Do you have some ideas according it?

pavloburchak avatar Sep 04 '23 06:09 pavloburchak

I think for this first iteration we can just allow to autocomplete the key and the value.

I think the initial behaviour will be -> a user can select a key but when they type a value they will see all available values (it is not bound to the key context)

fivenp avatar Sep 04 '23 08:09 fivenp

implemented

vsukhin avatar Jun 21 '24 17:06 vsukhin