feat(dashboards): Support multiple filters on dashboards list endpoint#109973
Merged
DominikB2014 merged 1 commit intomasterfrom Mar 6, 2026
Conversation
Replace the single-value `filter` query param with `getlist("filter")`
so the same param accepts multiple values. Filters are applied
sequentially (AND logic), enabling combinations like
`?filter=owned&filter=excludePrebuilt`.
Backwards compatible — a single `?filter=owned` behaves identically.
Refs DAIN-1284
Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Author
|
@sentry review |
edwardgou-sentry
approved these changes
Mar 5, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support multiple
filterquery params on the dashboards list endpoint so we can toggle prebuilt dashboards while also filtering by other fields like owned or shared.Previously
filteronly accepted a single value via an if/elif chain, making combinations like?filter=owned&filter=excludePrebuiltimpossible. This switches fromquery_params.get("filter")toquery_params.getlist("filter")and applies each filter sequentially (AND logic). A single?filter=ownedbehaves identically to before, so this is fully backwards compatible.Refs DAIN-1284