You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref(metrics): Convert more shared code for metric issue details to hooks (#85385)
Requires #85377
Adds a util file to a new directory to pull out some shared logic for
the correlated section and the metrics graph. Will also make it a bit
easier to read through both files.
For the new `useMetricAlertId` hook, it mimics a pattern for cron/uptime
([example](https://github.com/getsentry/sentry/blob/cdd59af574fedd32005429827aefc06cdceab811/static/app/views/issueDetails/streamline/issueCronCheckTimeline.tsx#L36))
where by we fetch any event in 90d to have the best shot of finding a
`alert_rule_id` ctx key since they are identical across all events. That
way, even if a user picks small date range, or bad query, we don't
unload the graph when the event isn't found.
All this refactoring is to make it more reviewable as I take a look at
changing the graph design
0 commit comments