Skip to content

chore(alerts): Dont use legacy alerts endpoint in metric issue details#117482

Open
ceorourke wants to merge 1 commit into
masterfrom
ceorourke/ISWF-2854
Open

chore(alerts): Dont use legacy alerts endpoint in metric issue details#117482
ceorourke wants to merge 1 commit into
masterfrom
ceorourke/ISWF-2854

Conversation

@ceorourke

@ceorourke ceorourke commented Jun 11, 2026

Copy link
Copy Markdown
Member

As we are going to increase the brownout on the legacy alerts endpoints Kyle found that we are still using this legacy rules endpoint on the metric issue details page. This PR attempts (by attempts I mean I clauded my way to this and don't often write front end code so forgive my sins) to remove the fallback and replace the usage with a detector endpoint.

@linear-code

linear-code Bot commented Jun 11, 2026

Copy link
Copy Markdown

ISWF-2854

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

Metric Before After Delta
Coverage 93.70% 93.70% ±0%
Typed 132,917 132,920 🟢 +3
Untyped 8,936 8,936 ±0
🔍 1 new type safety issue introduced

Type assertions (as) (1 new)

File Line Detail
static/app/views/issueDetails/metricIssues/utils.tsx 47 as TimeWindow(timeWindow / 60) as TimeWindow

This is informational only and does not block the PR.

expect(await screen.findByText('Correlated Transactions')).toBeInTheDocument();
});

it('renders nothing and never hits the legacy alert-rules endpoint without a metric detector', () => {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

idk how necessary this test is 🤔

@ceorourke ceorourke requested a review from malwilley June 11, 2026 22:45
@ceorourke ceorourke marked this pull request as ready for review June 11, 2026 23:05
@ceorourke ceorourke requested a review from a team as a code owner June 11, 2026 23:05
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