Skip to content

ref(explore): Break data browsing dependency cycles - #127245

Merged
TkDodo merged 8 commits into
masterfrom
tkdodo/ref/explore-dependency-cycles
Oct 15, 2026
Merged

TkDodo merged 8 commits into
masterfrom
tkdodo/ref/explore-dependency-cycles

Conversation

@TkDodo

@TkDodo TkDodo commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Break the circular imports reported by 22 no-circular-dependencies issues across Explore, Discover, trace details, and performance transaction summaries.

This touches more files and codeowners than I wanted to, but my agent tried to work around this with re-exports to keep the import paths the way they are, but that’s worse.

Sentry Issues

Fixes CODING-CONVENTIONS-8Z5
Fixes CODING-CONVENTIONS-8Z6
Fixes CODING-CONVENTIONS-905
Fixes CODING-CONVENTIONS-90Q
Fixes CODING-CONVENTIONS-90R
Fixes CODING-CONVENTIONS-91B
Fixes CODING-CONVENTIONS-91H
Fixes CODING-CONVENTIONS-91J
Fixes CODING-CONVENTIONS-922
Fixes CODING-CONVENTIONS-92G
Fixes CODING-CONVENTIONS-92Q
Fixes CODING-CONVENTIONS-97H
Fixes CODING-CONVENTIONS-9BT
Fixes CODING-CONVENTIONS-9G2
Fixes CODING-CONVENTIONS-9GH
Fixes CODING-CONVENTIONS-9GM
Fixes CODING-CONVENTIONS-9GS
Fixes CODING-CONVENTIONS-9GW
Fixes CODING-CONVENTIONS-9MD
Fixes CODING-CONVENTIONS-9ME
Fixes CODING-CONVENTIONS-9MG
Fixes CODING-CONVENTIONS-9MH

Move shared definitions into dedicated modules and import them directly.
Remove the 22 reported Explore and data browsing circular dependency groups.

Fixes CODING-CONVENTIONS-8Z5
Fixes CODING-CONVENTIONS-8Z6
Fixes CODING-CONVENTIONS-905
Fixes CODING-CONVENTIONS-90Q
Fixes CODING-CONVENTIONS-90R
Fixes CODING-CONVENTIONS-91B
Fixes CODING-CONVENTIONS-91H
Fixes CODING-CONVENTIONS-91J
Fixes CODING-CONVENTIONS-922
Fixes CODING-CONVENTIONS-92G
Fixes CODING-CONVENTIONS-92Q
Fixes CODING-CONVENTIONS-97H
Fixes CODING-CONVENTIONS-9BT
Fixes CODING-CONVENTIONS-9G2
Fixes CODING-CONVENTIONS-9GH
Fixes CODING-CONVENTIONS-9GM
Fixes CODING-CONVENTIONS-9GS
Fixes CODING-CONVENTIONS-9GW
Fixes CODING-CONVENTIONS-9MD
Fixes CODING-CONVENTIONS-9ME
Fixes CODING-CONVENTIONS-9MG
Fixes CODING-CONVENTIONS-9MH
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

Metric Before After Delta
Coverage 95.72% 95.72% ±0%
Typed 142,212 142,216 🟢 +4
Untyped 6,363 6,363 ±0
🔍 7 new type safety issues introduced

any-typed symbols (1 new)

File Line Detail
static/app/components/searchQueryBuilder/tokens/filter/getOperatorInfo.tsx 87 opLabel (var)

Non-null assertions (!) (4 new)

File Line Detail
static/app/components/searchQueryBuilder/tokens/filter/filterValueText.tsx 216 items[0]!
static/app/components/searchQueryBuilder/tokens/filter/filterValueText.tsx 219 items[0]!
static/app/components/searchQueryBuilder/tokens/filter/filterValueText.tsx 232 item.value!
static/app/views/performance/traceDetails/traceModels/makeExampleTraceData.ts 23 root.children[root.children.length - 1]!

Type assertions (as) (2 new)

File Line Detail
static/app/views/discover/savedQuery/datasets.ts 12 as DiscoverDatasets — dataset as DiscoverDatasets
static/app/views/discover/savedQuery/datasets.ts 33 as SavedQueryDatasets — savedQueryDataset as SavedQueryDatasets

This is informational only and does not block the PR.

@TkDodo
TkDodo marked this pull request as ready for review October 14, 2026 10:53
@TkDodo
TkDodo requested review from a team as code owners October 14, 2026 10:53
@JoshuaKGoldberg

Copy link
Copy Markdown
Member

but my agent tried to work around this with re-exports

Mine did that too when I last did this kind of thing! So annoying!!

@TkDodo

TkDodo commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

Mine did that too when I last did this kind of thing! So annoying!!

@JoshuaKGoldberg should we forbid re-exports with a lint rule and then maybe have exceptions for our barrels (until we get rid of barrels altogether), e.g. by disallowing re-exports in files that are not only re-exports ?

# Conflicts:
#	static/app/utils/discover/arrayValue.tsx
#	static/app/utils/discover/eventView.tsx
#	static/app/utils/discover/fieldRenderers.tsx
#	static/app/views/explore/tables/fieldRenderer.tsx
@JoshuaKGoldberg

Copy link
Copy Markdown
Member

💯 yes!

# Conflicts:
#	static/app/views/discover/results.tsx
@TkDodo
TkDodo enabled auto-merge (squash) October 15, 2026 07:12
@TkDodo
TkDodo merged commit 6544401 into master Oct 15, 2026
79 checks passed
@TkDodo
TkDodo deleted the tkdodo/ref/explore-dependency-cycles branch October 15, 2026 07:13

This branch was successfully deployed

1 active deployment
Preview — e390e800 Deployed Oct 15, 2026 by vercel[bot]
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