Commit Graph

389 Commits

Author SHA1 Message Date
Nawaz Dhandala
ae6e49da8f feat: add allAlertsResolvedAt and allIncidentsResolvedAt fields for resolve delay calculations 2026-02-10 13:08:42 +00:00
Nawaz Dhandala
098a18005f feat(ResolveInactiveEpisodes): implement inactivity timeout logic based on incident grouping rules 2026-02-09 22:20:42 +00:00
Nawaz Dhandala
6dbcd69ecd feat(AutoResolve): implement resolve delay logic based on incident grouping rules 2026-02-09 21:49:49 +00:00
Nawaz Dhandala
8d6ef5a277 Refactor alert and incident number display formatting
- Updated multiple components and worker jobs to improve the formatting of alert and incident numbers.
- Ensured consistent use of conditional rendering for alert and incident numbers with prefixes.
- Enhanced readability by using multiline return statements for JSX elements.
2026-02-06 20:27:35 +00:00
Nawaz Dhandala
5b01743e74 Add alertNumberWithPrefix support to AlertOwners Worker notification files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 19:53:01 +00:00
Nawaz Dhandala
0976df1bee feat: Add custom prefixes for alert, incident, and scheduled maintenance numbers
- Implemented functionality to allow users to set custom prefixes for alert numbers and alert episode numbers in the AlertMoreSettings component.
- Added similar functionality for incident numbers and incident episode numbers in the IncidentMoreSettings component.
- Introduced custom prefixes for scheduled maintenance numbers in the ScheduledMaintenanceMoreSettings component.
- Updated various notification jobs to utilize the new prefix settings for alert, incident, and scheduled maintenance numbers.
- Ensured backward compatibility by maintaining the default '#' prefix when no custom prefix is provided.
2026-02-06 19:43:11 +00:00
Nawaz Dhandala
b05d1652e1 Implement logic to mark episode public notes and state timelines as Skipped for subscriber notifications 2026-02-05 12:52:55 +00:00
Nawaz Dhandala
f2f3900506 Refactor notification templates and job scripts to replace "Episode" with "Incident" for consistency across the application. 2026-02-04 20:26:49 +00:00
Nawaz Dhandala
4c8b92144c Refactor code for improved readability and consistency: adjust formatting, enhance type annotations, and streamline notification logging in various files. 2026-02-04 20:20:08 +00:00
Nawaz Dhandala
849882d868 Add notification jobs for incident episode public notes and state timelines
- Implemented SendNotificationToSubscribers job for IncidentEpisodePublicNote to notify subscribers about new public notes added to episodes.
- Implemented SendNotificationToSubscribers job for IncidentEpisodeStateTimeline to notify subscribers about state changes of episodes.
- Both jobs include logic for fetching relevant episodes, monitors, and subscribers, and sending notifications via email, SMS, Slack, and Microsoft Teams.
- Added error handling and logging for better traceability of notification processes.
2026-02-04 19:11:44 +00:00
Nawaz Dhandala
0158271e6a feat: Add monitorId support across notification services and logs, and implement Notification Logs page 2026-02-02 17:44:25 +00:00
Nawaz Dhandala
847c019aea feat: Add canAssignMultipleUsers field to IncidentRole and update related components for multi-user assignment 2026-01-30 19:55:13 +00:00
Nawaz Dhandala
31d3ce949d Refactor and clean up code across multiple files
- Added missing commas in migration index.
- Improved type annotations for dynamic imports in IncidentService and IncidentSlaRuleService.
- Simplified logger debug messages in IncidentSlaService and IncidentSlaRuleService.
- Cleaned up JSX formatting in IconPicker, NotificationBellDropdown, RoleLabel, and Header components.
- Enhanced readability by restructuring long lines and removing unnecessary line breaks in various components.
- Updated error handling in fetch functions within DashboardHeader to use concise catch blocks.
- Refactored UserSettings and Incident routes for better readability.
- Improved code consistency and formatting in CheckSlaBreaches job.
2026-01-30 13:50:50 +00:00
Nawaz Dhandala
71ea76ee62 feat: Implement Incident SLA Management System
- Added IncidentSlaStatus enum to define SLA status values.
- Created IncidentSlaRulesPage component for managing SLA rules, including documentation and configuration options.
- Developed IncidentViewSla component to display SLA status and deadlines for incidents.
- Implemented CheckSlaBreaches job to monitor SLA breaches and send notifications.
- Created SendNoteReminders job to automate internal and public note reminders based on SLA rules.
2026-01-30 13:03:48 +00:00
Nawaz Dhandala
e9a2167484 feat: Rename icon to roleIcon in IncidentRole model and update references in IncidentRoles and CustomFields components 2026-01-30 11:59:03 +00:00
Nawaz Dhandala
a090ec2747 feat: Enhance migration and service files for incident roles and alert grouping
- Updated migration file to include new tables and constraints for incident roles and grouping rules.
- Refactored alert grouping engine service for improved readability.
- Adjusted incident episode role member service for better error logging and code clarity.
- Modified data migration to streamline imports and enhance maintainability.
2026-01-29 22:09:38 +00:00
Nawaz Dhandala
33fdabaea3 feat: Add migration to assign default incident roles to existing projects 2026-01-29 21:41:30 +00:00
Nawaz Dhandala
35deea863b feat: Refactor incident member role assignment and improve code readability across components 2026-01-29 21:39:29 +00:00
Nawaz Dhandala
4b30274915 feat: Add incident member notification system with email and WhatsApp templates 2026-01-29 21:09:44 +00:00
Nawaz Dhandala
8b9023d93d feat: Add incident episode auto-resolution and notification jobs
- Implemented AutoResolve job to automatically resolve inactive incident episodes.
- Created ResolveInactiveEpisodes job to resolve episodes inactive for over 24 hours.
- Added SendCreatedResourceNotification job to notify owners of newly created incident episodes.
- Developed SendNotePostedNotification job to inform owners when a note is posted on an incident episode.
- Introduced SendOwnerAddedNotification job to notify users when they are added as owners of an incident episode.
- Implemented SendStateChangeNotification job to alert owners of state changes in incident episodes.
2026-01-28 18:30:45 +00:00
Nawaz Dhandala
767db415d2 fix: conditionally include incidentNumber in notification payloads 2026-01-27 21:11:50 +00:00
Nawaz Dhandala
2a7d076407 chore: bump version to 9.4.9 2026-01-27 13:33:00 +00:00
Nawaz Dhandala
0e82b17f6b refactor: format code for better readability in notification handling 2026-01-27 13:30:37 +00:00
Nawaz Dhandala
0aa7838fc5 feat: include alert numbers in push notification titles and bodies for note and state change updates 2026-01-27 13:29:52 +00:00
Nawaz Dhandala
b1d243896f feat: update alert episode notification templates to include episode numbers 2026-01-27 13:26:42 +00:00
Nawaz Dhandala
ab70c2c041 Enhance notification templates and services to include alert and incident numbers
- Updated email templates for alerts and incidents to include alertNumber and incidentNumber in the subject and body.
- Modified PushNotificationUtil to incorporate alert and incident numbers in notification titles and messages.
- Adjusted UserNotificationRuleService to pass alertNumber and incidentNumber for notifications.
- Enhanced SendCreatedResourceNotification, SendNotePostedNotification, SendOwnerAddedNotification, and SendStateChangeNotification jobs to include alert and incident numbers in subjects and messages.
- Updated ScheduledMaintenance notification jobs to reflect scheduledMaintenanceNumber in relevant notifications.
2026-01-27 13:19:12 +00:00
simlarsen
4a7f27a372 chore: npm audit fix 2026-01-27 02:04:49 +00:00
Nawaz Dhandala
a808913049 feat: add support for alert episode handling in user on-call logs and notifications 2026-01-26 23:06:20 +00:00
Nawaz Dhandala
09d5ce0e1a feat: add support for triggeredByAlertEpisodeId in on-call duty policy execution and related services 2026-01-26 22:36:15 +00:00
Nawaz Dhandala
a3e25723af fix: update sorting and resolve logic in AlertEpisodeService; improve clarity in auto-resolve comments 2026-01-26 22:15:14 +00:00
Simon Larsen
3af9121d6a Merge pull request #2238 from OneUptime/alert-episode
Alert episode
2026-01-26 19:24:18 +00:00
Nawaz Dhandala
7f84f5c34d feat(migrations): add episodeDescriptionTemplate to AlertGroupingRule and update OnCallDutyPolicyScheduleLayer defaults
refactor(AlertEpisodeService): change variable declaration from let to const for users

refactor(AlertGroupingEngineService): improve code readability with comments and formatting

fix(WhatsAppTemplateUtil): format long lines for better readability

refactor(MicrosoftTeamsAlertEpisodeActions): format code for consistency and readability

refactor(MicrosoftTeams): improve readability by formatting conditional statements

refactor(SlackAlertEpisodeActions): format code for better readability

refactor(AlertEpisodeMemberService.test): improve imports and formatting for clarity

refactor(AlertEpisodeService.test): enhance readability with consistent formatting

refactor(AlertGroupingEngineService.test): improve code readability and formatting

refactor(MarkdownViewer): format imports and improve readability

refactor(BaseModelTable): format helpContent type definition for clarity

refactor(OrderedStatesList): format JSX for better readability

fix(AlertEpisodeDocs): format descriptions for consistency

fix(AlertGroupingRules): format helpContent description for clarity

fix(UserSettingsRoutes): format route path for better readability

fix(ResolveInactiveEpisodes): format conditional statements for clarity

fix(SendCreatedResourceNotification): format code for better readability

fix(SendNotePostedNotification): format code for consistency

fix(SendStateChangeNotification): format code for better readability
2026-01-24 11:50:16 +00:00
simlarsen
1928244a8e chore: npm audit fix 2026-01-24 01:54:38 +00:00
Nawaz Dhandala
1f162461ad feat: Add alert episode owner notifications and related email templates
- Implemented findOwners method in AlertEpisodeService to retrieve user and team owners for alert episodes.
- Added new email templates for alert episode owner notifications: AlertEpisodeOwnerAdded, AlertEpisodeOwnerStateChanged, AlertEpisodeOwnerNotePosted, and AlertEpisodeOwnerResourceCreated.
- Created jobs for sending notifications when an owner is added, a note is posted, and when the state of an alert episode changes.
- Updated routes to include new jobs for alert episode owner notifications.
2026-01-23 14:17:32 +00:00
Nawaz Dhandala
69c91a2c41 Merge branch 'master' into alert-episode 2026-01-23 12:04:34 +00:00
Nawaz Dhandala
402ccf01d0 feat: add Data Retention settings page and integrate with global configuration 2026-01-23 11:55:37 +00:00
Nawaz Dhandala
529e5954d4 feat(AlertEpisodes): add resolve delay, reopen window, and inactivity timeout features 2026-01-22 23:45:48 +00:00
Nawaz Dhandala
6d352c8579 Merge branch 'master' into alert-episode 2026-01-22 22:28:57 +00:00
simlarsen
d3d0dedfee chore: npm audit fix 2026-01-21 02:01:12 +00:00
Nawaz Dhandala
46635f4251 refactor: improve type safety with type aliases for dynamically imported services 2026-01-20 21:09:37 +00:00
Nawaz Dhandala
1068a5d96e refactor: add type annotations for improved type safety and clarity in service imports 2026-01-20 21:00:36 +00:00
Nawaz Dhandala
d1e200a54f Refactor code for improved readability and consistency
- Added missing comma in schema migrations index.
- Reformatted long lines in AlertEpisodeFeedService and AlertEpisodeMemberService for better readability.
- Improved formatting in AlertEpisodeService for destructured variables.
- Enhanced readability in AlertGroupingEngineService by restructuring filter and map functions.
- Cleaned up permission descriptions in Permission.ts for consistency.
- Standardized description formatting in ChangeState and AlertGroupingRules components.
- Improved formatting in Episodes and AlertView components for better readability.
- Added comments for clarity in AutoResolve and BreakInactive jobs.
2026-01-20 20:50:09 +00:00
Nawaz Dhandala
6e6d989be4 feat: Add Alert Episode Management Features
- Implemented AlertEpisodeViewLayout for displaying episode details.
- Created Owners component to manage team and user ownership of episodes.
- Added RootCause component for documenting the root cause of episodes.
- Developed SideMenu for navigation within the episode view.
- Introduced StateTimeline component to track the status timeline of episodes.
- Created EpisodesPage for listing all alert episodes.
- Added AlertGroupingRulesPage for managing alert grouping rules.
- Implemented UnresolvedEpisodesPage to display active (unresolved) episodes.
- Developed AutoResolve job to automatically resolve episodes based on alert status.
- Created BreakInactive job to resolve inactive episodes after a specified timeout.
2026-01-20 19:35:31 +00:00
simlarsen
79b36c5b27 chore: npm audit fix 2026-01-15 01:57:09 +00:00
Nawaz Dhandala
821cda573a refactor: Clean up comments and formatting in various files for better readability 2026-01-14 15:32:10 +00:00
Nawaz Dhandala
7ed8372c4f feat: Refactor IncomingEmailMonitor to check online status and update documentation link 2026-01-14 09:17:47 +00:00
Nawaz Dhandala
e9d53a9e3b feat: Add IncomingEmailMonitor heartbeat check functionality 2026-01-14 09:14:41 +00:00
Nawaz Dhandala
abd9741337 refactor: Format comments in MoveTelemetryServiceTokenToTelemetryIngestionKey migration for clarity 2026-01-10 09:29:27 +00:00
Nawaz Dhandala
54b1a74dc2 refactor: Update telemetry service references to use ServiceService in AddTelemetryServiceColor migration 2026-01-10 09:28:59 +00:00
Nawaz Dhandala
e7089e9e85 Refactor TelemetryService to Service across the application
- Replaced all instances of TelemetryService with Service in components, pages, and utilities.
- Updated related imports and state management to reflect the new Service model.
- Removed the TelemetryServices view and associated routes, as it is no longer needed.
- Adjusted breadcrumb and route mappings to remove references to Telemetry Services.
- Ensured that all relevant functionality, such as logs and metrics, now utilize the Service model.
2026-01-09 15:49:52 +00:00