Skip to content

feat(preprod): Use structured search#106961

Merged
NicoHinderling merged 2 commits intomasterfrom
chromy/2026-01-26-use-structured-search
Jan 27, 2026
Merged

feat(preprod): Use structured search#106961
NicoHinderling merged 2 commits intomasterfrom
chromy/2026-01-26-use-structured-search

Conversation

@chromy
Copy link
Contributor

@chromy chromy commented Jan 26, 2026

No description provided.

@chromy chromy requested a review from a team as a code owner January 26, 2026 13:26
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 26, 2026
@chromy chromy force-pushed the chromy/2026-01-26-use-structured-search branch 2 times, most recently from fafaf19 to 4855d5c Compare January 26, 2026 16:06
@chromy chromy requested a review from a team as a code owner January 26, 2026 16:06
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

projects={[Number(projectId)]}
onChange={handleSearch}
onDisplayChange={handleDisplayChange}
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Search bar won't sync with external URL changes

Medium Severity

The migration from SearchBar (controlled with query prop) to SearchQueryBuilder (uncontrolled with initialQuery prop) breaks synchronization when the URL changes externally. The old SearchBar had a useEffect that synced internal state with prop changes, but SearchQueryBuilder only uses initialQuery for initialization. When users navigate via browser back/forward buttons or receive a shared URL, the API will fetch the correct results but the search bar will display the stale query text, causing a confusing UI/data mismatch.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link
Contributor

@NicoHinderling NicoHinderling Jan 27, 2026

Choose a reason for hiding this comment

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

the URL parsing is working but admittedly the URL looks super weird

https://sentry-2ji6yy0i9.sentry.dev/explore/releases/?query=app_id%3A%EF%80%8DContains%EF%80%8Dcom.emergetools.hackernews&tab=mobile-builds

Image

lol not sure why that would happen

edit: tried to see if I could do a quick fix and i think we should just leave this as is 👍

@NicoHinderling
Copy link
Contributor

did some testing and the component is really nice! the only regression i found was https://linear.app/getsentry/issue/EME-752/add-specific-build-id-support-to-list-builds-endpoint no longer works (something I landed 4 days ago) but i bet we could add support for it again

projects={[Number(projectId)]}
onChange={handleSearch}
onDisplayChange={handleDisplayChange}
/>
Copy link
Contributor

@NicoHinderling NicoHinderling Jan 27, 2026

Choose a reason for hiding this comment

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

the URL parsing is working but admittedly the URL looks super weird

https://sentry-2ji6yy0i9.sentry.dev/explore/releases/?query=app_id%3A%EF%80%8DContains%EF%80%8Dcom.emergetools.hackernews&tab=mobile-builds

Image

lol not sure why that would happen

edit: tried to see if I could do a quick fix and i think we should just leave this as is 👍

@NicoHinderling NicoHinderling merged commit 626913a into master Jan 27, 2026
53 checks passed
@NicoHinderling NicoHinderling deleted the chromy/2026-01-26-use-structured-search branch January 27, 2026 22:25
@NicoHinderling
Copy link
Contributor

did some testing and the component is really nice! the only regression i found was https://linear.app/getsentry/issue/EME-752/add-specific-build-id-support-to-list-builds-endpoint no longer works (something I landed 4 days ago) but i bet we could add support for it again

fixed this #107118

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