Skip to content

ref: inline getExtrapolateFromLocation and remove helper#115445

Merged
ryan953 merged 1 commit into
masterfrom
cursor/inline-get-extrapolate-from-location-73dc
May 13, 2026
Merged

ref: inline getExtrapolateFromLocation and remove helper#115445
ryan953 merged 1 commit into
masterfrom
cursor/inline-get-extrapolate-from-location-73dc

Conversation

@ryan953
Copy link
Copy Markdown
Member

@ryan953 ryan953 commented May 12, 2026

The function getExtrapolateFromLocation had exactly one callsite and wrapped a single expression. This PR inlines it directly at that callsite and deletes the now-empty extrapolate.ts file.

Changes:

  • static/app/views/explore/spans/spansQueryParams.tsx: replace getExtrapolateFromLocation(location, SPANS_EXTRAPOLATE_KEY) with decodeScalar(location.query?.[SPANS_EXTRAPOLATE_KEY], '1') === '1'; swap the extrapolate import for a decodeScalar import
  • static/app/views/explore/queryParams/extrapolate.ts: deleted
Open in Web Open in Cursor 

Co-authored-by: Ryan Albrecht <ryan@ryanalbrecht.ca>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 12, 2026
@ryan953 ryan953 requested a review from a team May 12, 2026 22:11
@ryan953 ryan953 marked this pull request as ready for review May 12, 2026 22:11
@ryan953 ryan953 requested a review from a team as a code owner May 12, 2026 22:11
@github-actions
Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

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

@ryan953 ryan953 changed the title inline getExtrapolateFromLocation and remove helper ref: inline getExtrapolateFromLocation and remove helper May 12, 2026
@ryan953 ryan953 enabled auto-merge (squash) May 13, 2026 16:03
@ryan953 ryan953 merged commit 94e2890 into master May 13, 2026
77 checks passed
@ryan953 ryan953 deleted the cursor/inline-get-extrapolate-from-location-73dc branch May 13, 2026 16:03
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.

3 participants