Skip to content

fix(dashboards): use spans dataset in default overview dashboard backend#108682

Merged
nikkikapadia merged 4 commits intomasterfrom
nikki/fix/default-overview-to-spans
Feb 20, 2026
Merged

fix(dashboards): use spans dataset in default overview dashboard backend#108682
nikkikapadia merged 4 commits intomasterfrom
nikki/fix/default-overview-to-spans

Conversation

@nikkikapadia
Copy link
Copy Markdown
Member

when we deprecated the spans dataset in the dashboard/widget templates we forgot to do the default overview backend endpoint 🤩

Closes DAIN-1197

@linear
Copy link
Copy Markdown

linear bot commented Feb 20, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 20, 2026
@nikkikapadia nikkikapadia marked this pull request as ready for review February 20, 2026 15:18
@nikkikapadia nikkikapadia requested a review from a team as a code owner February 20, 2026 15:19
Comment on lines +2212 to +2213
response = self.do_request("put", self.url(slug), data=data)
assert response.status_code == 400, response.data
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wait, can we confirm if we actually do PUT against the default-overview dashboard? I would have thought that we should trigger a POST with the new dashboard to create something new because.. we can't update this, unless the code detects it and spits out a new dashboard 🤔

It might be a bug in the frontend then if we don't try to post. Which now that I think of feels like it could be the case.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If that's the case, I don't think this test is necessary because we shouldn't ever be trying to update this hardcoded dashboard

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

so basically the way it works is when you go to update the default-overview dashboard it will delete the dashboard and create a new custom dashboard BUT that default overview dashboard will create a DashboardTombstone so that's what these PUT tests were testing. For this test in particular I was making sure it didn't accept the PUT with a transactions widget being passed in.

def get_prebuilt_dashboards(organization, user) -> list[dict[str, Any]]:
error_events_type = DashboardWidgetTypes.get_type_name(DashboardWidgetTypes.ERROR_EVENTS)
transaction_type = DashboardWidgetTypes.get_type_name(DashboardWidgetTypes.TRANSACTION_LIKE)
transaction_type = (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we also need to update the query condition for the transaction widget to include is_segment:True or something? because otherwise it's aggregating spans and the counts would be for spans and not necessarily transactions

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

oh true good point! i'll update that

@nikkikapadia nikkikapadia merged commit c56bd7c into master Feb 20, 2026
80 of 82 checks passed
@nikkikapadia nikkikapadia deleted the nikki/fix/default-overview-to-spans branch February 20, 2026 16:30
priscilawebdev pushed a commit that referenced this pull request Feb 24, 2026
…end (#108682)

when we deprecated the spans dataset in the dashboard/widget templates
we forgot to do the default overview backend endpoint 🤩

Closes
[DAIN-1197](https://linear.app/getsentry/issue/DAIN-1197/cannot-add-a-widget-to-a-dashboard)
mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
…end (#108682)

when we deprecated the spans dataset in the dashboard/widget templates
we forgot to do the default overview backend endpoint 🤩

Closes
[DAIN-1197](https://linear.app/getsentry/issue/DAIN-1197/cannot-add-a-widget-to-a-dashboard)
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

claude-code-assisted 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