kumahq / kuma-gui

🐻 A GUI built on Vue.js for use with Kuma.
https://kuma.io/
Apache License 2.0
38 stars 20 forks source link

Improve list view filters #1415

Open kleinfreund opened 10 months ago

kleinfreund commented 10 months ago

Description

Improve the list view filters

johncowen commented 10 months ago

It would be nice if we could allow people to search just using kuma.io/service: service also. I found it interesting that this is the first thing that @lahabana did naturally. If thats what our users do naturally then it would be good if the filtering worked like that also.

lahabana commented 8 months ago

Might be worth following: https://kong-aip.netlify.app/aip/160/

johncowen commented 8 months ago

Summary of sync discussion:

As we can 'guess' information based on whether a search term has a : in it or not (due to DNS) we can say:

  1. If the search term doesn't have a : in it, then it is a name search.
  2. If the search term has a : in it then we either:
    • Apply any "special" rules we have hardcoded into the frontend, a.k.a. "shortcut expansion" such as zone: > kuma.io/zone:
    • Assume that the search term is looking for a tag i.e. version: 1 (which would be a "shortcut" for tag: "version: 1")
  3. If a user wants to specifically search for the tag zone (not as a shortcut for kuma.io/zone:) they would have to use tag: "zone: zone.name" specifically.

How this would work in practice:


We also discussed but discarded:

For "shortcut expansion" we could have used both the original tag shortcut and the expanded shortcut, i.e.

kleinfreund commented 8 months ago
  • Apply any "special" rules we have hardcoded into the frontend, a.k.a. "shortcut expansion" such as zone: > kuma.io/zone:

Small correction: the expansion is from zone:... to tag: 'kuma.io/zone:...' (i.e. a tag filter).

johncowen commented 8 months ago

Progress happening on this one over here https://github.com/kumahq/kuma-gui/pull/1721

github-actions[bot] commented 2 months ago

This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. If you think this issue is still relevant, please comment on it or attend the next triage meeting.