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

Filter by multiple labels #7283

Closed
smunteankestra opened this issue Feb 10, 2025 · 12 comments · Fixed by #7544
Closed

Filter by multiple labels #7283

smunteankestra opened this issue Feb 10, 2025 · 12 comments · Fixed by #7544
Assignees
Labels
area/frontend Needs frontend code changes bug Something isn't working

Comments

@smunteankestra
Copy link
Contributor

Feature description

@anna-geller would you approve adding filtering by multiple Labels on flows? (thinking customers might filter by 2-5 or more labels) currently we support just one label
has a brief chat with @aeSouid he said where a re some technical difcutiles with this - he will add some details, if you approve this
if this is not needed please close it

@smunteankestra smunteankestra added area/backend Needs backend code changes area/frontend Needs frontend code changes enhancement New feature or request labels Feb 10, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Issues Feb 10, 2025
@aeSouid
Copy link
Contributor

aeSouid commented Feb 10, 2025

@anna-geller @smunteankestra If we want to add the labels with the "IN" or the "NOT IN" operations, we need to carefully design the UI since it is not a standard select input but rather a text input with a specific (key: value) format

@Piyush-r-bhaskar
Copy link
Contributor

Piyush-r-bhaskar commented Feb 11, 2025

@anna-geller @smunteankestra If we want to add the labels with the "IN" or the "NOT IN" operations, we need to carefully design the UI since it is not a standard select input but rather a text input with a specific (key: value) format

Sorry it might be weird but maybe we can remove labels filtering option from KestraFliter and instead allowing users to add the key:value to filter by clicking on labels directly from the tables. this way multiple labels can be added.

@yuri1969
Copy link
Contributor

@Piyush-r-bhaskar IMO users must be able to filter even by label(s) currently not being present on a table.

Table pages are limited to 100 records but hundreds of thousands of records might exist in total. This makes navigating to a particular label to click on nearly impossible.

@smunteankestra Right, filtering by more than a single label is crucial 🙂

E.g. label = "country:Italy" AND label = "type:invoice" AND label = "status:pending"

@anna-geller anna-geller added bug Something isn't working and removed area/backend Needs backend code changes enhancement New feature or request labels Feb 24, 2025
@anna-geller anna-geller assigned MilosPaunovic and unassigned aeSouid Feb 24, 2025
@anna-geller
Copy link
Member

next steps:

  • remove the check + background active to make it possible to click another time on the Labels
  • follow the GitHub label filter approach

image

new:
image

ideally, would be great to show existing label keys:

image

@MilosPaunovic
Copy link
Member

Are we certain that fetching all available labels from executions isn't too costly operation? Maybe @brian-mulier-p could give his opinion on it.

@brian-mulier-p
Copy link
Member

As of now I'm not sure we have what's needed to query for distinct label keys, we need to change our way to store it to query them more easily and in a less costly way I think (cc @loicmathieu)

@yuri1969
Copy link
Contributor

Note the possibly high cardinality of existing execution labels. This brings UI/UX implications.

E.g. one of our environments contains 10+ unique label keys each holding tens to hundreds (with a prospect of reaching thousands) of unique values.

@anna-geller
Copy link
Member

To clarify: that "ideally" meant more "a nice to have bonus" 😉 totally makes sense to skip that, was a quick comment added during a call

@MilosPaunovic
Copy link
Member

MilosPaunovic commented Feb 25, 2025

As @aeSouid already made some progress on this and shown us in the call this morning, I'll assign the issue to him.

@aeSouid aeSouid linked a pull request Feb 25, 2025 that will close this issue
@aeSouid aeSouid moved this from Backlog to In progress in Issues Feb 25, 2025
@aeSouid aeSouid moved this from In progress to Done in Issues Feb 25, 2025
@aeSouid aeSouid closed this as completed by moving to Done in Issues Feb 25, 2025
@aeSouid
Copy link
Contributor

aeSouid commented Feb 25, 2025

merged in develop

labels.mp4

@anna-geller
Copy link
Member

remove the check + background active

@aeSouid the comment above made clear that the check and active grey background needs to be removed 😢

image

@aeSouid
Copy link
Contributor

aeSouid commented Feb 26, 2025

@anna-geller as discussed yesterday with the frontend team and Nico, we will test it like this on the preview env and then decide whether to remove the check icon and the background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Needs frontend code changes bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

7 participants