Skip to content

ref(trends): remove v1 trends endpoint callers and dead code#112770

Draft
cvxluo wants to merge 1 commit intomasterfrom
cvxluo/remove-v1-trends-endpoint-callers-and-dead-code
Draft

ref(trends): remove v1 trends endpoint callers and dead code#112770
cvxluo wants to merge 1 commit intomasterfrom
cvxluo/remove-v1-trends-endpoint-callers-and-dead-code

Conversation

@cvxluo
Copy link
Copy Markdown
Contributor

@cvxluo cvxluo commented Apr 13, 2026

Complete the v1 trends endpoint deprecation started by PR #111146:

  • Always route to v2 (events-trends-statsv2) in TrendsDiscoverQuery, removing the withBreakpoint ternary
  • Delete TrendsEventsDiscoverQuery (v1 events-only endpoint caller)
  • Remove withBreakpoint prop threading through trendChart components (charts.tsx, trendChart/index.tsx, trendChart/content.tsx)
  • Remove 'Trending Regressions' and 'Trending Improvements' dropdown options from releases overview page (sole v1 consumer)
  • Remove renderTrendsTable/isTrend from TransactionsList component
  • Simplify dead trendsWidget.tsx (always use v2 filters/trendType)
  • Update test mocks and assertions for v2 endpoint

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 13, 2026
@cvxluo cvxluo force-pushed the cvxluo/remove-v1-trends-endpoint-callers-and-dead-code branch from 4741290 to e3d571e Compare April 13, 2026 17:22
The v1 events-trends-stats endpoint is no longer called by any frontend
code path. Always route to events-trends-statsv2 in TrendsDiscoverQuery,
remove the withBreakpoint prop from trendChart components, and simplify
the dead trendsWidget to always use v2 filters.

Co-authored-by: Claude <noreply@anthropic.com>
@cvxluo cvxluo force-pushed the cvxluo/remove-v1-trends-endpoint-callers-and-dead-code branch from e3d571e to e4791b1 Compare April 13, 2026 17:36
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.

1 participant