Skip to content

Conversation

@evanpurkhiser
Copy link
Member

When muting/unmuting or deleting a cron monitor environment from the detector details page, the parent detector state wasn't being refreshed, causing stale data to display.

Added onEnvironmentUpdated callback to DetailsTimeline component that invalidates the detector query when environment status changes, ensuring the UI stays in sync with the backend state.

Fixes NEW-592: Muting cron environment does not refresh detector

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner November 11, 2025 22:08
@evanpurkhiser evanpurkhiser requested review from a team and removed request for a team November 11, 2025 22:08
@linear
Copy link

linear bot commented Nov 11, 2025

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 11, 2025
@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #103186      +/-   ##
===========================================
- Coverage   80.67%    80.67%   -0.01%     
===========================================
  Files        9241      9241              
  Lines      393630    393629       -1     
  Branches    25053     25053              
===========================================
- Hits       317546    317545       -1     
  Misses      75622     75622              
  Partials      462       462              

Fixed [NEW-592: Muting cron environment does not refresh detector](https://linear.app/getsentry/issue/NEW-592/muting-cron-environment-does-not-refresh-detector)

When muting/unmuting or deleting a cron monitor environment from the
detector details page, the parent detector state wasn't being refreshed,
causing stale data to display.

Added onEnvironmentUpdated callback to DetailsTimeline component that
invalidates the detector query when environment status changes, ensuring
the UI stays in sync with the backend state.
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-crons-refresh-detector-when-environment-is-muted-unmuted branch from 474193e to dc133f6 Compare November 12, 2025 17:53
@evanpurkhiser evanpurkhiser enabled auto-merge (squash) November 12, 2025 17:56
@evanpurkhiser evanpurkhiser merged commit b2b37b8 into master Nov 12, 2025
48 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-crons-refresh-detector-when-environment-is-muted-unmuted branch November 12, 2025 18:04
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
When muting/unmuting or deleting a cron monitor environment from the
detector details page, the parent detector state wasn't being refreshed,
causing stale data to display.

Added onEnvironmentUpdated callback to DetailsTimeline component that
invalidates the detector query when environment status changes, ensuring
the UI stays in sync with the backend state.

Fixes [NEW-592: Muting cron environment does not refresh
detector](https://linear.app/getsentry/issue/NEW-592/muting-cron-environment-does-not-refresh-detector)
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