-
Notifications
You must be signed in to change notification settings - Fork 14
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
Service selection: Label selection UI #881
Service selection: Label selection UI #881
Conversation
… aggregation update
…election-manual-panel-queries
…election-manual-panel-queries__combobox
…election-manual-panel-queries
…o gtk-grafana/service-selection-manual-panel-queries__combobox
…election-manual-panel-queries
…o gtk-grafana/service-selection-manual-panel-queries__combobox
…election-manual-panel-queries__combobox
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2024-11-15.at.15.44.26.mov
The counter in the tabs doesn't seem to update accordingly.
Left a few nits, but overall it's working great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This state doesn't reset correctly.
Screen.Recording.2024-11-15.at.16.26.49.mov
So it looks like allowing multiple includes in the UI conflicts with the tab counts. Since there's not an un-confusing way to let users know that the counts used in the tabs/dropdowns are only applicable before any filters are applied, we decided to remove the counts for now, which admittedly sucks, but is arguably better then confusing users with incorrect counts. :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks and works perfectly, really nice work! Left a few minor comments around.
Just one thing that happened to me, that might happen to other people. When I clicked the "add to filters" buttons, I was confused for a minute expecting something to happen in the top section. Even with context about this feature, I was used to seeing filters being appended to the top, and the only change was the button becoming primary and enabled.
Teset.mov
For a follow up, can we consider adding the current filters as text, or at least as a tooltip in the button to make it more evident that you're about to show logs for the selected filters?
} | ||
|
||
return { | ||
isIncluded: filterInSelectedFilters.operator === FilterOp.Equal, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can something be included and excluded at the same time? If not, I would recommend changing this to a boolean or enum.
Can also be included: boolean | null
. null === no state, included true, excluded false.
@matyax yeah that's my bad, I had forgot to push my most recent commit which addressed exactly this, you've got aggregated metrics enabled, and we don't currently support more then a single label filter with agg metrics. We removed all those buttons when agg metrics is enabled. |
Oh, right. I'll disable it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…election-manual-panel-queries__combobox__service-selection-labels
Third step of breaking #841 into more manageable chunks.
Adds combobox to index (service selection) so users can select multiple indexed labels without requiring navigation to breakdowns.
Note: When aggregated metrics feature is enabled and toggled, the new "combobox" and new filter buttons will not display in the UI as only a single include filter is currently supported for aggregated metrics.
TODO:
should add a new e2e test for adding multiple include filters on service selection