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

Multiple include: Fields & Metadata #1091

Conversation

gtk-grafana
Copy link
Contributor

@gtk-grafana gtk-grafana commented Feb 20, 2025

Adding support for multiple includes in the value breakdown UI.
Parent branch: #1074

image

@gtk-grafana gtk-grafana changed the base branch from gtk-grafana/multiple-include-ui__levels to main February 20, 2025 19:25
@gtk-grafana gtk-grafana changed the base branch from main to gtk-grafana/multiple-include-ui__levels February 20, 2025 19:25
@gtk-grafana gtk-grafana added this to the 1.0.9 milestone Feb 20, 2025
@gtk-grafana gtk-grafana self-assigned this Feb 21, 2025
@gtk-grafana gtk-grafana added the enhancement New feature or request label Feb 21, 2025
@gtk-grafana gtk-grafana marked this pull request as ready for review February 21, 2025 20:55
@gtk-grafana gtk-grafana requested a review from a team as a code owner February 21, 2025 20:55
Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great so far. A few things that I noticed:

  • Going to the fields/labels breakdown triggers an unnecessary logsPanelQuery, just by opening the tab. It's the first query that is being executed.
Reload.mov
  • The active state of filters in Log Details in inconsistent. Sometimes it shows as an active filter, other it doesnt. When clicked, it seems to remove filters but never add.

imagen

imagen

  • When filtering for detected_level, applies the filter and selects the time series in Logs Volume, but it doesn't show in the top section.

imagen

  • Removed the detected_level filter from log details, but it stayed in the top filters.

imagen

  • It's not parsing multiple filters when coming from Explore
Explore.mov

gtk-grafana and others added 3 commits February 24, 2025 07:11
@gtk-grafana
Copy link
Contributor Author

gtk-grafana commented Feb 24, 2025

Thanks for taking a look @matyax, good catches all around.

  • Going to the fields/labels breakdown triggers an unnecessary logsPanelQuery, just by opening the tab. It's the first query that is being executed.

Yeah the logs panel query is not manually executed yet, it runs on every route/variable update in main right now as well.

Good catch with the logs panel filters, I'll take a look at this and the table filters as well here this morning.

It's not parsing multiple filters when coming from Explore

#1053
Yeah, right now there's no way to specify an or relation in field/line filters in the UI

Sorry just waking up, we added the or relation for positive filters in this PR lol, it's just or exclusion filters that would need UI support. That 1053 issue should be the next thing I work on and should probably go out on the same release as this PR.

@matyax
Copy link
Contributor

matyax commented Feb 24, 2025

Yeah the logs panel query is not manually executed yet, it runs on every route/variable update in main right now as well.

Not sure I follow. The logsPanelQuery ran to get the logs, but it will be executed again just by going to a tab. Is that needed for something?

@gtk-grafana
Copy link
Contributor Author

gtk-grafana commented Feb 24, 2025

I think (?) it's tech debt at this point from when we were parsing the labels/labelTypes from the log panel query, but it's possible those are still being used somewhere. I'll create an issue to convert that query runner to manually execute and we can investigate if that dataframe is still being used in the other scenes.

Created #1097 to track

@gtk-grafana
Copy link
Contributor Author

@matyax logs panel should be fixed in ce0d515. I also fixed a bug where all negative filters were being generated with the "or" syntax (test coverage in 69b777f)

Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic 👌

@matyax
Copy link
Contributor

matyax commented Feb 24, 2025

Saw the !level btw, it's okay for now, and more importantly, it works.

@gtk-grafana gtk-grafana merged commit df09c78 into gtk-grafana/multiple-include-ui__levels Feb 24, 2025
3 checks passed
@gtk-grafana gtk-grafana added the ux label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants