Skip to content

chore(explore): Extract and re-use search sorting logic#115194

Merged
nsdeschenes merged 4 commits into
masterfrom
nd/chore-explore-extract-and-re-use-search-sorting-logic
May 11, 2026
Merged

chore(explore): Extract and re-use search sorting logic#115194
nsdeschenes merged 4 commits into
masterfrom
nd/chore-explore-extract-and-re-use-search-sorting-logic

Conversation

@nsdeschenes
Copy link
Copy Markdown
Contributor

@nsdeschenes nsdeschenes commented May 8, 2026

Continue the work from #115032, and extend it to the visualize dropdown, and column editors.

Expose the field definition type union so callers can share typed field definition inputs without deriving it from the function signature.
Share attribute sorting for Explore selector options and search results so known fields rank ahead of arbitrary tags while keeping substring matching behavior.
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.47%

Clarify when to use the searched and known attribute sorting helpers in Explore field pickers.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@nsdeschenes
Copy link
Copy Markdown
Contributor Author

@sentry review

Copy link
Copy Markdown
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.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e1c618d. Configure here.

Comment thread static/app/views/explore/components/toolbar/toolbarVisualize/index.tsx Outdated
Allow the shared visualize dropdown to receive the field definition type used for search scoring. Pass log definitions from the logs toolbar so known-field boosts use the correct dataset.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@nsdeschenes nsdeschenes marked this pull request as ready for review May 8, 2026 17:30
@nsdeschenes nsdeschenes requested review from a team as code owners May 8, 2026 17:30
@nsdeschenes nsdeschenes merged commit 52fcfc6 into master May 11, 2026
73 checks passed
@nsdeschenes nsdeschenes deleted the nd/chore-explore-extract-and-re-use-search-sorting-logic branch May 11, 2026 10:15
dashed pushed a commit that referenced this pull request May 11, 2026
Continue the work from #115032, and extend it to the visualize dropdown,
and column editors.

---------

Co-authored-by: OpenAI Codex <noreply@openai.com>
nikkikapadia pushed a commit that referenced this pull request May 12, 2026
Continue the work from #115032, and extend it to the visualize dropdown,
and column editors.

---------

Co-authored-by: OpenAI Codex <noreply@openai.com>
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