Skip to content

fix(insights): handle nullable sentry.normalized_description#110186

Merged
gggritso merged 1 commit intomasterfrom
georgegritsouk/dain-1290-sqlish-fails-to-parse-some-queries
Mar 9, 2026
Merged

fix(insights): handle nullable sentry.normalized_description#110186
gggritso merged 1 commit intomasterfrom
georgegritsouk/dain-1290-sqlish-fails-to-parse-some-queries

Conversation

@gggritso
Copy link
Member

@gggritso gggritso commented Mar 8, 2026

sentry.normalized_description can be null from the backend, but the SpanResponseRaw type previously typed it as string. This caused runtime errors when the value was null — most notably, the SQLish parser was being called with null input, causing a TypeError that was being captured as a Sentry error.

This PR updates the type to correctly reflect that sentry.normalized_description is nullable, and adds ?? '' fallbacks at all call sites that pass it to components expecting a non-null string.

Fixes DAIN-1290

…types

`sentry.normalized_description` can be `null` from the backend. Update
the `SpanResponseRaw` type to reflect this and add `?? ''` fallbacks at
all call sites that pass it to components expecting a `string`.
@linear-code
Copy link

linear-code bot commented Mar 8, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 8, 2026
@gggritso gggritso marked this pull request as ready for review March 8, 2026 19:14
@gggritso gggritso requested a review from a team as a code owner March 8, 2026 19:14
@gggritso gggritso merged commit 9cfaa85 into master Mar 9, 2026
63 checks passed
@gggritso gggritso deleted the georgegritsouk/dain-1290-sqlish-fails-to-parse-some-queries branch March 9, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants