feat(dashboards): Add onlyPrebuilt filter to dashboards endpoint#110465
Merged
DominikB2014 merged 1 commit intomasterfrom Mar 11, 2026
Conversation
Add a new 'onlyPrebuilt' filter option to the organization dashboards list endpoint, which returns only dashboards with a prebuilt_id. This is the counterpart to the existing 'excludePrebuilt' filter and will be used by the upcoming 'Sentry Built' secondary nav item. Also adds onlyPrebuilt to HIDE_PREBUILT_FILTERS so the default General dashboard template is not injected when filtering. Refs BROWSE-429 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
edwardgou-sentry
approved these changes
Mar 11, 2026
DominikB2014
added a commit
that referenced
this pull request
Mar 12, 2026
#110468) Adds a "Sentry Built" item to the dashboards secondary navigation sidebar, gated behind the `dashboards-prebuilt-insights-dashboards` feature flag. Clicking it navigates to the dashboards manage page with `?filter=onlyPrebuilt`, which filters the API response to only prebuilt dashboards. Removes the "Show Sentry Built Dashboards" toggle from the manage page header since the dedicated sidebar nav item replaces this functionality. When viewing "Sentry Built": - Page title and document title update to "Sentry Built" - Tooltip describes prebuilt dashboards - "My Dashboards" sort option is hidden (prebuilt dashboards are not user-owned) <img width="1316" height="189" alt="image" src="https://github.com/user-attachments/assets/90511339-42dc-41ac-b27f-36b11938c549" /> Depends on #110465 for the backend `onlyPrebuilt` filter. Refs BROWSE-429 --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Claude Opus 4.6 <noreply@example.com>
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.
Adds a new
onlyPrebuiltfilter option to the organization dashboards list endpoint (GET /api/0/organizations/{org}/dashboards/?filter=onlyPrebuilt). This is the counterpart to the existingexcludePrebuiltfilter and returns only dashboards that have aprebuilt_idset.This will be used by the upcoming "Sentry Built" secondary nav item (BROWSE-429) to show a filtered view of only sentry-built dashboards.
Also adds
onlyPrebuilttoHIDE_PREBUILT_FILTERSso the default General dashboard template isn't injected into the response when this filter is active.Refs BROWSE-429