Skip to content

feat(dashboards): Add onlyPrebuilt filter to dashboards endpoint#110465

Merged
DominikB2014 merged 1 commit intomasterfrom
dominikbuszowiecki/browse-430-support-onlyprebuilt-filter-in-dashboards-backend
Mar 11, 2026
Merged

feat(dashboards): Add onlyPrebuilt filter to dashboards endpoint#110465
DominikB2014 merged 1 commit intomasterfrom
dominikbuszowiecki/browse-430-support-onlyprebuilt-filter-in-dashboards-backend

Conversation

@DominikB2014
Copy link
Contributor

Adds a new onlyPrebuilt filter option to the organization dashboards list endpoint (GET /api/0/organizations/{org}/dashboards/?filter=onlyPrebuilt). This is the counterpart to the existing excludePrebuilt filter and returns only dashboards that have a prebuilt_id set.

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 onlyPrebuilt to HIDE_PREBUILT_FILTERS so the default General dashboard template isn't injected into the response when this filter is active.

Refs BROWSE-429

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>
@linear-code
Copy link

linear-code bot commented Mar 11, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 11, 2026
@DominikB2014 DominikB2014 marked this pull request as ready for review March 11, 2026 19:04
@DominikB2014 DominikB2014 requested a review from a team as a code owner March 11, 2026 19:04
@DominikB2014 DominikB2014 enabled auto-merge (squash) March 11, 2026 19:07
@DominikB2014 DominikB2014 merged commit 55631c5 into master Mar 11, 2026
59 checks passed
@DominikB2014 DominikB2014 deleted the dominikbuszowiecki/browse-430-support-onlyprebuilt-filter-in-dashboards-backend branch March 11, 2026 19:26
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants