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
feat(crons): Add billing seat management for detector validators (#102995)
Implements billing seat management for cron monitor detectors via the
MonitorIncidentDetectorValidator. This ensures that cron monitors
created through the detector API properly handle seat assignment,
validation, and removal.
Changes:
- Add validate_enabled() to check seat availability before enabling
- Modify create() to assign seats with graceful degradation when no
seats are available (detector created but disabled)
- Modify update() to handle enable/disable transitions with seat
operations and race condition handling
- Add delete() to remove seats immediately when detector is deleted
- Add comprehensive test coverage for all seat management scenarios
Uses generic seat APIs (assign_seat, check_assign_seat, disable_seat,
remove_seat) with DataCategory.MONITOR following the same pattern as
uptime monitors.
Fixes [NEW-619: Ensure CRUD / enable+disable Cron Detectors in new UI
handles assigning / unassigning
seats](https://linear.app/getsentry/issue/NEW-619/ensure-crud-enabledisable-cron-detectors-in-new-ui-handles-assigning)
0 commit comments