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: Levels & Labels #1074

Merged
merged 36 commits into from
Feb 25, 2025

Conversation

gtk-grafana
Copy link
Contributor

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

Providing the ability to add multiple include filters in a value breakdown.

image

Related:

@gtk-grafana gtk-grafana changed the title Multiple include: Levels Multiple include: Levels & Labels Feb 19, 2025
@gtk-grafana gtk-grafana self-assigned this Feb 19, 2025
@gtk-grafana gtk-grafana added the enhancement New feature or request label Feb 19, 2025
@gtk-grafana gtk-grafana marked this pull request as ready for review February 19, 2025 14:36
@gtk-grafana gtk-grafana requested a review from a team as a code owner February 19, 2025 14:36
// We need at least one inclusive filter
if (this.options.type === 'indexed') {
if (filteredFilters.length < 1) {
filteredFilters = filters;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

So if we have multiple include filters containing the exclude key, we would run the query with all of them. Maybe this is a reason to exclude the "primary" filter from breakdown views so we know that we're never excluding the only include filter.

But folks might want write a regex include e.g. cluster=~"us-.+", and then want to exclude stuff in the UI... but right now I believe this will behave as the current version, including will hide all other options, and excluding will remove that panel from the view (if they have no other inclusion label filters).

@gtk-grafana

This comment was marked as outdated.

@gtk-grafana gtk-grafana added this to the 1.0.9 milestone Feb 21, 2025
gtk-grafana and others added 2 commits February 21, 2025 15:05
* feat: multiple field includes

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
matyax
matyax previously approved these changes Feb 24, 2025
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.

Great work! I'd appreciate if you can address/respond to the open comments before merging. Thanks!

@gtk-grafana gtk-grafana requested a review from matyax February 24, 2025 20:56
@gtk-grafana gtk-grafana dismissed matyax’s stale review February 24, 2025 20:57

Made significant changes to how it works.

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.

Tested the usual happy paths and looks ready to go 👌

@gtk-grafana gtk-grafana merged commit 92072fa into main Feb 25, 2025
4 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