Compare commits

...

2078 Commits

Author SHA1 Message Date
Simon Larsen
30940991e0 feat: add endpoint to calculate uptime percentage for status page resources 2025-02-20 19:07:45 +00:00
Simon Larsen
a6d3047007 refactor: comment out workspace connections sections in side menus 2025-02-20 14:05:40 +00:00
Simon Larsen
2ae0d139ea refactor: simplify WorkflowTimeoutInMs declaration in EnvironmentConfig 2025-02-20 14:02:49 +00:00
Simon Larsen
1507583cf3 feat: add workflow timeout configuration and update related files 2025-02-20 14:00:28 +00:00
Simon Larsen
310e1b764c fix: log complete request body instead of just code in VM sandbox execution 2025-02-20 13:51:40 +00:00
Simon Larsen
1d7a25f2bb refactor: clean up code formatting and remove unnecessary whitespace in various files 2025-02-14 21:46:02 +00:00
Simon Larsen
3bc89a8cae feat: add migration to update postUpdatesToWorkspaceChannels column type to JSONB in Incident, Alert, and ScheduledMaintenance tables 2025-02-14 21:43:06 +00:00
Simon Larsen
ff54b5a26c feat: add notification event type support in WorkspaceNotificationRuleService and update NotificationRuleForm validation 2025-02-14 21:41:46 +00:00
Simon Larsen
07b9f38e90 feat: enhance Notification Rule form to support new channel template name and improve validation messages for existing channels 2025-02-14 19:45:40 +00:00
Simon Larsen
f612940668 feat: update Alert, Incident, and ScheduledMaintenance models to support multiple workspace channels and change column types to JSON 2025-02-14 18:35:44 +00:00
Simon Larsen
6046bda443 feat: update WorkspaceNotificationRuleService to return created channels and enhance WorkspaceChannel interface 2025-02-14 17:53:40 +00:00
Simon Larsen
cd97a72ef2 refactor: clean up whitespace and improve formatting in workspace utility classes 2025-02-14 17:51:05 +00:00
Simon Larsen
c20fbcc7a4 fix: correct spelling errors in comments and update variable names for clarity 2025-02-14 17:27:27 +00:00
Simon Larsen
f22e410860 feat: implement MicrosoftTeams workspace utility and enhance notification rule interfaces 2025-02-14 16:28:02 +00:00
Simon Larsen
3059ca848e refactor: reorganize Slack utility imports and introduce CreateChannelNotificationRule interface 2025-02-14 15:50:20 +00:00
Simon Larsen
ce8b8c3b58 refactor: update import path for IncidentNotificationRule to improve module organization 2025-02-14 13:13:29 +00:00
Simon Larsen
78846a3f95 refactor: improve code formatting and add documentation for non-HTTP methods in API reference 2025-02-14 13:12:44 +00:00
Simon Larsen
994f329a49 fix: update example API request URLs to use dynamic ID placeholders 2025-02-14 13:00:44 +00:00
Simon Larsen
d621df58cd refactor: remove obsolete migration file and clean up Slack utility code 2025-02-14 12:48:26 +00:00
Simon Larsen
0e0ccd9651 refactor: update method visibility and improve naming consistency in notification rule conditions 2025-02-14 12:36:54 +00:00
Simon Larsen
cc0adea216 refactor: remove unnecessary blank line in BaseAPI 2025-02-14 12:30:08 +00:00
Simon Larsen
8ec0825a52 feat: add update and delete item routes to BaseAPI and improve monitor ID handling in WorkspaceNotificationRuleService 2025-02-14 12:26:47 +00:00
Simon Larsen
4d083f9663 feat: refactor notification rule service to support new notification rule types and improve channel handling 2025-02-14 12:16:02 +00:00
Simon Larsen
81b3795b1c feat: update migration and interfaces to rename Slack channel references to Workspace channel for consistency 2025-02-14 09:58:10 +00:00
Simon Larsen
74cf9ae184 feat: rename Slack channel references to Workspace channel for consistency across models 2025-02-12 17:58:29 +00:00
Simon Larsen
9ba4c0bfdd feat: implement validation for notification rule form inputs to enhance user experience 2025-02-12 17:49:07 +00:00
Simon Larsen
85e83c6822 feat: rename inviteOwnersToNewChannel to shouldInviteOwnersToNewChannel for clarity and update NotificationRuleForm to include new toggle option 2025-02-12 17:33:05 +00:00
Simon Larsen
65eedde511 feat: reintroduce AlertNotificationRule interface and update NotificationRuleForm to support new channel creation and user invitations 2025-02-12 17:29:46 +00:00
Simon Larsen
7d45056ae4 feat: update notification rule form to support dynamic workspace type for channel creation and user invitations 2025-02-12 17:16:52 +00:00
Simon Larsen
f2db382087 feat: introduce new notification rule types for monitor status, alerts, and scheduled maintenance with updated logic for channel management 2025-02-12 17:14:18 +00:00
Simon Larsen
3e99783119 feat: add migration to rename Slack channel ID columns to channel name for improved clarity 2025-02-12 15:36:20 +00:00
Simon Larsen
de6bbbee8c feat: rename Slack channel ID references to channel name and update related logic for improved clarity 2025-02-12 15:35:17 +00:00
Simon Larsen
0309c2d7e8 feat: enhance Slack notification rule handling by adding channel creation logic and user invitation functionality 2025-02-12 14:23:33 +00:00
Simon Larsen
1c9bb0605b feat: update notification rule conditions and enhance incident service methods for improved clarity and functionality 2025-02-12 13:58:03 +00:00
Simon Larsen
b8b98be7a0 feat: rename WorkspacePayloadBlock to WorkspaceMessageBlock and update related methods in WorkspaceNotificationRuleService 2025-02-11 19:20:53 +00:00
Simon Larsen
6c037b0996 feat: rename WorkspaceNotificationPayload to WorkspaceMessagePayload and update related services 2025-02-11 17:49:29 +00:00
Simon Larsen
326b60c260 feat: enhance Slack notification payload structure and improve incident service methods 2025-02-11 17:17:03 +00:00
Simon Larsen
e13ab0b214 feat: implement getWorkspacePayloadForIncidentCreate method and enhance Slack notification payload structure 2025-02-11 16:25:16 +00:00
Simon Larsen
01f8a27dd2 feat: add postUpdatesToSlackChannelId field to Alert, Incident, and ScheduledMaintenance models for Slack integration 2025-02-11 15:51:52 +00:00
Simon Larsen
081029b49a feat: add postUpdatesToSlackChannelId field to Alert, Incident, and ScheduledMaintenance models for Slack integration 2025-02-11 13:57:33 +00:00
Simon Larsen
32d55fdc46 refactor: improve code formatting and enhance readability in various service and utility files 2025-02-11 13:53:21 +00:00
Simon Larsen
69aa680dd1 feat: update user creation to optionally include full name and enhance Slack notification methods 2025-02-11 13:43:37 +00:00
Simon Larsen
117c02d457 refactor: comment out Workspace Connections section in SideMenu components 2025-02-11 10:17:43 +00:00
Simon Larsen
f74fcb3734 refactor: clean up whitespace and improve code formatting in various components 2025-02-10 21:20:43 +00:00
Simon Larsen
676d6598d7 feat: enhance error handling and messaging in MonitorCriteriaInstance and related components 2025-02-10 21:15:38 +00:00
Simon Larsen
af1edfef99 fix: correct validation error check in MonitorStep and tidy up CriteriaFilters component 2025-02-10 20:50:02 +00:00
Simon Larsen
56cadf01fd feat: implement hasValueField utility method for CriteriaFilter validation 2025-02-10 20:35:22 +00:00
Simon Larsen
6a0ef8d940 refactor: improve code formatting and structure in migration files and notification rule validation logic 2025-02-10 20:21:43 +00:00
Simon Larsen
1e01942218 feat: implement validation logic for Slack notification rules in NotificationRuleConditionUtil 2025-02-10 20:16:59 +00:00
Simon Larsen
5dab4f8042 feat: add scheduledMaintenanceNumber column to ScheduledMaintenance table and create corresponding index 2025-02-10 19:54:52 +00:00
Simon Larsen
3e4a50d430 refactor: clean up code by removing unnecessary blank lines in Alert and ScheduledMaintenance models, migration files, and services 2025-02-10 18:54:54 +00:00
Simon Larsen
96d236b034 feat: add scheduledMaintenanceNumber to ScheduledMaintenance model and implement related logic in service and UI components 2025-02-10 18:50:52 +00:00
Simon Larsen
ade5e69aa0 feat: add alertNumber column to Alert table and create corresponding index 2025-02-10 18:06:55 +00:00
Simon Larsen
4733c710b2 feat: add alertNumber field to Alert model and implement related logic in AlertService and UI components 2025-02-10 18:02:54 +00:00
Simon Larsen
1c8922249e feat: add WorkspaceNotificationPayload interface and update notifyWorkspace method to accept new payload structure 2025-02-10 17:55:50 +00:00
Simon Larsen
73c787836f feat: introduce WorkspaceType and NotificationRuleEventType enums; implement SlackNotificationRule interface and related services 2025-02-10 17:43:49 +00:00
Simon Larsen
ec6f3d84d7 refactor: rename ServiceProviderType to WorkspaceType and update related components for consistency 2025-02-10 17:40:07 +00:00
Simon Larsen
1f2df5f3ee refactor: rename initialValue prop to value in notification rule components for consistency 2025-02-10 14:47:33 +00:00
Simon Larsen
121a78ea8d refactor: improve code formatting and readability in form components 2025-02-10 14:42:34 +00:00
Simon Larsen
832ab4ab24 Merge branch 'master' of github.com:OneUptime/oneuptime 2025-02-10 14:25:33 +00:00
Simon Larsen
445f3906ee feat: improve notification rule forms and conditions; enhance filter handling and UI elements 2025-02-10 14:25:30 +00:00
Simon Larsen
c869acc0e5 Merge pull request #1831 from diabolocom/nginx_ipv6
Feature: Nginx: Allow to specify listen options
2025-02-10 13:59:24 +00:00
Simon Larsen
0d2b2a272b feat: enhance notification rule conditions and form fields with additional labels and descriptions 2025-02-10 13:18:37 +00:00
Simon Larsen
d8ac1c39b7 feat: add option to show horizontal rule in form fields 2025-02-10 13:03:21 +00:00
Simon Larsen
e31dbe935c feat: enhance Slack integration and notification rule forms with additional descriptions and conditions 2025-02-10 12:59:00 +00:00
Jules Lefebvre
35e46cebfc feat(helm): add nginx listen config values
Add the posibility to define `NGINX_LISTEN_ADDRESS` and `NGINX_LISTEN_OPTIONS` via the `nginx.listenAddress` and `nginx.listenOptions` to allow to listen on all single and dual stack
2025-02-10 13:58:28 +01:00
Jules Lefebvre
891861f396 feat(docker-compose): add nginx listen enviroment variables
Add the posibility to define `NGINX_LISTEN_ADDRESS` and `NGINX_LISTEN_OPTIONS` to allow to listen on all single and dual stack
2025-02-10 13:57:36 +01:00
Jules Lefebvre
fbc38230b8 feat(nginx): allow to specify listen options 2025-02-10 13:44:35 +01:00
Simon Larsen
61561f9745 fix: add missing comma in schema migrations index for consistency 2025-02-10 12:25:09 +00:00
Simon Larsen
13e5f57160 feat: add migration for ServiceProviderUserAuthToken table and update index; log project creation for user 2025-02-10 11:43:03 +00:00
Simon Larsen
7600085473 feat: add migration for ServiceProviderUserAuthToken, ServiceProviderProjectAuthToken, ServiceProviderSetting, and ServiceProviderNotificationRule tables 2025-02-10 11:29:53 +00:00
Simon Larsen
99641d6994 refactor: remove obsolete migration files and clean up schema migrations index 2025-02-10 11:25:27 +00:00
Simon Larsen
dea66cc8d8 refactor: improve formatting of radioButtonOptions mapping in FormField component 2025-02-07 20:02:25 +00:00
Simon Larsen
1dd43a69a0 refactor: clean up formatting and improve readability in various components 2025-02-07 19:43:09 +00:00
Simon Larsen
e539cb7ae3 feat: add onBeforeCreate handler to ServiceProviderNotificationRulesTable for event type and project ID assignment 2025-02-07 19:33:50 +00:00
Simon Larsen
5269f7a164 feat: replace RadioButton with OptionChooserButton in form field schema and update related components 2025-02-07 19:29:02 +00:00
Simon Larsen
8e1d6b420f feat: enhance SlackIntegration component with connection handlers and improve notification rule naming 2025-02-07 19:10:30 +00:00
Simon Larsen
311f7dbb5b refactor: rename connection state variables for clarity in SlackIntegration component 2025-02-07 18:51:54 +00:00
Simon Larsen
9ac64b5873 feat: add color selection to ServiceProviderNotificationRulesTable and update SlackIntegration component props 2025-02-07 18:45:56 +00:00
Simon Larsen
e54126e6bf refactor: clean up permission definitions and formatting in ServiceProvider models 2025-02-07 18:36:56 +00:00
Simon Larsen
a4acc59505 fix: remove unnecessary permissions from ServiceProviderNotificationRule update access control 2025-02-07 18:31:35 +00:00
Simon Larsen
854bc297a6 feat: add permissions for Service Provider Notification Rules and update access control in ServiceProviderProjectAuthToken 2025-02-07 18:29:34 +00:00
Simon Larsen
69bfb48573 refactor: rename Settings component to SlackIntegrationPage for clarity 2025-02-07 18:18:20 +00:00
Simon Larsen
9ef7f720b1 refactor: improve code formatting and readability in ServiceProviderNotificationRulesTable and SlackIntegration components 2025-02-07 18:14:42 +00:00
Simon Larsen
2155dcad65 fix: correct spelling of NotificationRuleForm and NotificationRuleViewElement components; remove unused ServiceProviderNotificationRules component 2025-02-07 18:10:58 +00:00
Simon Larsen
fb4da29ade fix: correct URL formatting for social media and blog links in BlogPostUtil 2025-02-07 14:04:14 +00:00
Simon Larsen
d146d33059 Merge branch 'master' of github.com:OneUptime/oneuptime 2025-02-07 11:03:51 +00:00
Simon Larsen
978ac9155f refactor: update event type cases in NotificationRuleConditionUtil for consistency 2025-02-07 11:03:34 +00:00
Simon Larsen
cf9b4f0eba refactor: simplify value extraction in NotificationRuleConditionElement 2025-02-07 11:01:58 +00:00
Simon Larsen
d26a2aa995 refactor: update type annotations for selected alert and incident conditions in NotificationRuleConditionElement 2025-02-07 10:56:15 +00:00
Simon Larsen
c8301e21eb feat: update NotificationRule components to include event type in titles and descriptions 2025-02-07 10:53:25 +00:00
Simon Larsen
1a24232a1c refactor: improve code formatting and readability in AlertSeverityElement, IncidentStateElement, and NotificationRuleForm components 2025-02-07 10:42:06 +00:00
Simon Larsen
69c94835fe Merge pull request #1830 from OneUptime/slack-app
Slack app
2025-02-07 10:26:00 +00:00
Simon Larsen
706a9145ac feat: add NotificationRuleConditions and NotificationRuleForm components for enhanced notification rule management 2025-02-06 19:57:05 +00:00
Simon Larsen
9bde6194a5 feat: add NotificationRuleConditionElement and related components for alert and incident states 2025-02-06 19:29:55 +00:00
Simon Larsen
3dd8c62bc4 feat: enhance SlackNotificationRule and NotificationRuleForm with new fields and conditions 2025-02-06 18:47:12 +00:00
Simon Larsen
895a434d0e refactor: clean up code formatting and improve readability in various files 2025-02-06 17:49:01 +00:00
Simon Larsen
d3ec3a60df feat: implement NotificationRuleForm component and utility functions for condition checks 2025-02-06 14:25:39 +00:00
Simon Larsen
df15a2dcae feat: add name and description fields to ServiceProviderNotificationRule model and update migration 2025-02-06 12:18:04 +00:00
Simon Larsen
5e4b24dcfb feat: refactor notification rule models to use BaseNotificationRule and update filter conditions 2025-02-06 11:14:52 +00:00
Simon Larsen
0eae73c4e5 feat: add ServiceProviderNotificationRule model and service with migration 2025-02-06 11:03:43 +00:00
Simon Larsen
deb3f81e5d Merge pull request #1817 from OneUptime/slack-app
Slack App
2025-02-05 19:22:02 +00:00
Simon Larsen
dcb3fe6f69 feat: add ServiceProviderSetting model and service with CRUD operations 2025-02-05 17:33:45 +00:00
Simon Larsen
4bbecb3013 feat: refactor ServiceProviderProjectAuthToken and ServiceProviderSetting models, add deletedByUserId field 2025-02-05 16:25:13 +00:00
Simon Larsen
52954f3702 feat: add migration for ServiceProviderUserAuthToken and ServiceProviderProjectAuthToken tables 2025-02-05 16:17:37 +00:00
Simon Larsen
12a7fff668 refactor: update ServiceProviderUserAuthToken to use ServiceProviderType enum 2025-02-05 16:12:14 +00:00
Simon Larsen
14e489a719 feat: implement ServiceProviderType enum and refactor auth token services for Slack and Microsoft Teams 2025-02-05 16:09:50 +00:00
Simon Larsen
83f2935f41 fix: update Slack integration page URL to reflect new settings path 2025-02-05 16:00:49 +00:00
Simon Larsen
28855d482e 2025-02-05 15:56:15 +00:00
Simon Larsen
7c11ebdacf refactor: rename "Workspace Integrations" to "Workspace Connections" in SideMenu 2025-02-05 14:10:17 +00:00
Simon Larsen
592c806465 feat: add user and project auth token services to BaseAPI routing 2025-02-05 14:09:36 +00:00
Simon Larsen
7a3d0266c4 chore: update SlackAPI comments to use sample access tokens for clarity 2025-02-05 14:00:17 +00:00
Simon Larsen
e9b7368cf1 refactor: clean up code by removing unnecessary whitespace and improving formatting 2025-02-05 13:58:27 +00:00
Simon Larsen
f8c0004f85 feat: add Slack integration section to settings menu and routing 2025-02-05 13:45:26 +00:00
Simon Larsen
b007cb8bbd feat: implement Slack integration settings page and enhance auth token services for user and project 2025-02-05 13:43:22 +00:00
Simon Larsen
541015766c feat: rename service type to service provider type and add new fields for user and project IDs in service provider 2025-02-05 11:55:17 +00:00
Simon Larsen
5310087287 feat: update Slack app manifest by refining user and bot scopes and adding a temporary manifest file 2025-02-04 19:33:32 +00:00
Simon Larsen
7649c6c566 feat: update Slack integration authorization URL and add app manifest for enhanced functionality 2025-02-04 19:23:09 +00:00
Simon Larsen
1b2650f6df feat: expand Slack app manifest scopes for enhanced functionality 2025-02-04 19:14:02 +00:00
Simon Larsen
de3586d60e feat: update Slack integration error handling and redirect logic in user settings 2025-02-04 19:08:17 +00:00
Simon Larsen
a0ca579c2f feat: enhance Slack integration error handling and redirect logic in user settings 2025-02-04 19:04:39 +00:00
Simon Larsen
9bc7a115a1 feat: implement Slack app manifest retrieval and enhance scope validation in user settings 2025-02-04 18:51:26 +00:00
Simon Larsen
aef7af0a9a feat: refactor Slack utility imports and add new Slack utility class 2025-02-04 18:35:34 +00:00
Simon Larsen
e9f2e46e16 feat: add endpoint to retrieve Slack app manifest 2025-02-04 18:17:44 +00:00
Simon Larsen
56fd18f7c9 feat: update Slack API with improved error handling and new command shortcuts 2025-02-04 18:16:30 +00:00
Simon Larsen
ecccd8b536 feat: enhance Slack authentication flow with projectId and userId validation 2025-02-04 18:09:35 +00:00
Simon Larsen
dd2f0f37f2 fix: simplify signature validation logic in SlackAuthorization middleware 2025-02-04 18:00:32 +00:00
Simon Larsen
600a5eafe3 fix: update SlackAuthorization middleware to use req.body instead of req.rawBody 2025-02-04 17:54:53 +00:00
Simon Larsen
9b07bf7a08 feat: implement Slack API integration with authorization and event handling 2025-02-04 17:53:59 +00:00
Simon Larsen
d341f6c2b0 feat: enhance Slack integration with error handling and documentation 2025-02-04 15:33:24 +00:00
Simon Larsen
06a030f518 feat: add Slack app client credentials to Helm chart configuration 2025-02-04 14:34:42 +00:00
Simon Larsen
b02fed6e5b feat: add Slack App configuration to environment and UI settings 2025-02-04 14:33:48 +00:00
Simon Larsen
310884bd73 feat: implement Slack OAuth redirection in SlackIntegration component 2025-02-04 14:22:19 +00:00
Simon Larsen
0c625d52c2 feat: update Slack icon SVG paths for improved rendering 2025-02-04 14:11:54 +00:00
Simon Larsen
82ab70f396 refactor: clean up whitespace and formatting in UserSettingsBreadcrumbs and UserSettingsRoutes 2025-02-04 14:08:15 +00:00
Simon Larsen
24d9c9dbc0 feat: add Slack integration to user settings with routing and breadcrumbs 2025-02-04 14:04:49 +00:00
Simon Larsen
d9f1dc9fd2 feat: add UserAuthToken and ProjectAuthToken services and migrations 2025-02-04 13:44:51 +00:00
Simon Larsen
4b503471bd feat: implement Slack status API and initialize routing 2025-02-04 12:40:05 +00:00
Simon Larsen
b523434be3 feat: add Slack app manifest for OneUptime integration 2025-02-04 11:43:22 +00:00
Simon Larsen
f32b1950d9 fix: add return type to sendSubscriptionChangeWebhookSlackNotification method in ProjectService 2025-02-03 18:42:08 +00:00
Simon Larsen
e1c45a5c99 refactor: update property name from 'id' to '_id' and improve Slack message formatting in ProjectService 2025-02-03 18:41:20 +00:00
Simon Larsen
195655b4df refactor: improve code formatting and readability in ProjectService 2025-02-03 18:23:59 +00:00
Simon Larsen
9d7d65f0ef feat: add Slack notification for subscription plan changes in ProjectService 2025-02-03 18:05:08 +00:00
Simon Larsen
985b5410f6 refactor: clean up formatting and improve code readability in environment config and project service 2025-02-03 17:54:41 +00:00
Simon Larsen
d1dd57deec feat: add Slack webhook notifications for user creation, project management, and subscription updates 2025-02-03 17:50:34 +00:00
Simon Larsen
2ec6902537 refactor: improve async handling in BlogPost utility methods 2025-02-03 17:26:01 +00:00
Simon Larsen
cd130bc8ef feat: enhance status page URL handling and add unsubscribe link in subscription emails 2025-01-31 14:34:11 +00:00
Simon Larsen
3fcd1f694e refactor: clean up whitespace and formatting in blog-related files 2025-01-31 14:14:39 +00:00
Simon Larsen
b98b43b9f6 feat: add blog management features and update routing for blog posts 2025-01-31 14:10:54 +00:00
Simon Larsen
b59c76f771 feat: set log limit to 250 in TraceExplorer and Logs components 2025-01-30 20:35:46 +00:00
Simon Larsen
4d2e386328 feat: set default log limit to 250 in DashboardLogsViewer 2025-01-30 17:23:56 +00:00
Simon Larsen
deddcbe152 refactor: add serviceName attribute to telemetry data attributes 2025-01-30 17:00:30 +00:00
Simon Larsen
e305284fe2 refactor: enhance error handling and logging in TelemetryIngest middleware 2025-01-30 16:47:55 +00:00
Simon Larsen
3163debdb8 chore: remove end-to-end test workflow from GitHub Actions 2025-01-30 15:39:59 +00:00
Simon Larsen
f827237a80 refactor: change convertSelectReturnedDataToJson method visibility from private to public in AnalyticsDatabaseService 2025-01-30 15:22:32 +00:00
Simon Larsen
c038e39620 refactor: replace executeQuery calls with execute for consistency in AnalyticsDatabaseService 2025-01-30 15:20:28 +00:00
Simon Larsen
b8c1190c9f refactor: update execute method calls to use executeQuery for consistency in AnalyticsDatabaseService 2025-01-30 14:54:12 +00:00
Simon Larsen
7f5ff5068e refactor: improve code formatting and readability in AnalyticsDatabaseService and LogsViewer components 2025-01-30 14:47:54 +00:00
Simon Larsen
943acc8567 feat: add Clickhouse configuration volume and update AnalyticsDatabaseService to use ResultSet for JSON responses 2025-01-30 11:58:43 +00:00
Simon Larsen
81798211ea chore: update @clickhouse/client and @clickhouse/client-common to version 1.10.1 2025-01-29 21:02:48 +00:00
Simon Larsen
39596f6a42 refactor: replace <div> tags with <pre> for better JSON body rendering in LogsViewer component 2025-01-29 18:35:13 +00:00
Simon Larsen
36a181e77e refactor: replace <pre> tags with <div> for log body rendering in LogsViewer component 2025-01-29 18:25:55 +00:00
Simon Larsen
032c03a877 docs: update health check extension comment to indicate deprecation and suggest upgrade to health_check_v2 2025-01-29 15:42:19 +00:00
Simon Larsen
500299fb2f feat: add liveness, readiness, and startup probes to otel-collector configuration 2025-01-29 15:40:26 +00:00
Simon Larsen
b959e84032 feat: add health check extension to OTel collector configuration 2025-01-29 15:38:57 +00:00
Simon Larsen
30edc194f4 feat: add batch processor configuration for OTLP exporter in collector config template 2025-01-29 14:07:49 +00:00
Simon Larsen
0a20894dd1 feat: add DISABLE_TELEMETRY environment variable to multiple templates for telemetry control 2025-01-28 20:28:03 +00:00
Simon Larsen
1045a7399f fix: change OTLP exporter protocol from http/json to http/protobuf in config template 2025-01-28 19:44:51 +00:00
Simon Larsen
0f3ef0027b fix: update OTLP exporter protocol from http/protobuf to http/json in config template 2025-01-28 19:19:24 +00:00
Simon Larsen
2f43bc5c65 feat: add setup function for ts-node installation in configure script 2025-01-28 18:34:59 +00:00
Simon Larsen
8d9f7e125d feat: add additional breadcrumb links for status pages 2025-01-28 18:27:06 +00:00
Simon Larsen
3ac841ddc1 refactor: improve code formatting and simplify component structure in status pages 2025-01-28 17:27:21 +00:00
Simon Larsen
9fc8c6f7a2 refactor: update route paths and simplify side menu component for status pages 2025-01-28 17:24:22 +00:00
Simon Larsen
62cd974235 refactor: clean up whitespace and improve code formatting in status pages 2025-01-28 13:05:14 +00:00
Simon Larsen
a0d03238ee feat: add announcements route and update breadcrumbs for status pages 2025-01-28 12:55:43 +00:00
Simon Larsen
4303cf00cc feat: add announcements page and update routing for status pages 2025-01-28 12:49:57 +00:00
Simon Larsen
747ea70de5 refactor: update date formatting in scheduled maintenance feed for improved readability 2025-01-28 12:00:19 +00:00
Simon Larsen
6dd4ef22df refactor: enhance scheduled maintenance feed with additional details and improve Recurring class string representation 2025-01-28 11:52:11 +00:00
Simon Larsen
4b97c79ae2 refactor: enhance alert and scheduled maintenance feed updates with additional data fields 2025-01-28 11:36:30 +00:00
Simon Larsen
d34b118c68 refactor: streamline summary prop definition in form components 2025-01-28 11:26:37 +00:00
Simon Larsen
a3ff2e1067 refactor: introduce FormSummaryConfig interface and update form components to use it 2025-01-28 11:23:32 +00:00
Simon Larsen
e6ef2a7945 chore: add concurrency settings to test-release workflow 2025-01-27 19:57:57 +00:00
Simon Larsen
9bf8d5d941 refactor: improve readability of getSummaryElement functions in ScheduledMaintenanceCreate component 2025-01-27 19:53:34 +00:00
Simon Larsen
f3ee93bd48 refactor: remove unused import from Create.tsx in ScheduledMaintenanceEvents 2025-01-27 19:47:06 +00:00
Simon Larsen
5b78fee225 refactor: rename StatusPagesLabel to StatusPagesElement and update imports across components 2025-01-27 19:46:51 +00:00
Simon Larsen
dd73947b7f Merge branch 'release' of github.com:OneUptime/oneuptime into release 2025-01-27 18:25:15 +00:00
Simon Larsen
78998fb123 refactor: simplify form field mapping and improve readability in FormSummary component 2025-01-27 18:22:51 +00:00
Simon Larsen
0bcfccffe0 feat: add margin-bottom to form step title for improved spacing in FormSummary component 2025-01-27 18:19:23 +00:00
Simon Larsen
3ab45f40ca feat: optimize FormSummary component by refining field filtering logic and improving step title styling 2025-01-27 18:16:16 +00:00
Simon Larsen
bb2f610bc8 feat: enhance form summary component to support conditional rendering of form steps and improve layout structure 2025-01-27 18:10:45 +00:00
Simon Larsen
9b685133c4 feat: enhance incident severity and monitor status components with new props for animation and improved data handling 2025-01-27 17:58:21 +00:00
Simon Larsen
33c4943794 refactor: standardize fetch functions to use PromiseVoidFunction type and improve error handling in incident severity, monitors, monitor statuses, and on-call policies components 2025-01-27 17:49:33 +00:00
Simon Larsen
a7f8aa4faa refactor: update state initialization and error handling in Fetch components; improve type definitions for fetch functions 2025-01-27 17:41:27 +00:00
Simon Larsen
722fe30c8f feat: implement FetchMonitors, FetchMonitorStatuses, and FetchOnCallPolicies components; update Field interface for summary element handling 2025-01-27 17:37:08 +00:00
Simon Larsen
500104eb81 feat: add FetchTeams and FetchUsers components; implement label ID handling in IncidentCreate 2025-01-27 17:07:22 +00:00
Simon Larsen
41c3a14dfa fix: change exit code in configure.sh to allow continuation on directory change failure 2025-01-27 16:55:47 +00:00
Simon Larsen
113eda94fa Merge branch 'master' of github.com:OneUptime/oneuptime 2025-01-27 16:51:49 +00:00
Simon Larsen
c6ce43f7cc feat: add FormSummary component and integrate it into BasicForm; implement FetchLabels for incident labels 2025-01-27 16:49:53 +00:00
Simon Larsen
6d5bc60127 fix: update secondTLDs initialization to use split method for better readability 2025-01-27 16:49:46 +00:00
Simon Larsen
b7b7b28834 Merge pull request #1816 from KalvadTech/improve_configure_sh
refactor: modernize configure.sh
2025-01-27 16:48:26 +00:00
Loïc Tosser
5a0b0d7c61 refactor: modernize configure.sh with improved error handling, modularity, and installation process 2025-01-27 18:50:51 +04:00
Simon Larsen
79bf7ce7ee fix: replace props.steps with getFormSteps in BasicForm component 2025-01-27 11:03:31 +00:00
Simon Larsen
4ab150bf75 refactor: clean up code formatting and improve readability in various files 2025-01-27 10:54:46 +00:00
Simon Larsen
951668c982 fix: update debug log messages to specify 'test' for monitor list API 2025-01-27 10:52:59 +00:00
Simon Larsen
d7845407f0 fix: set default limit to 100 in FetchMonitorTest 2025-01-27 10:47:35 +00:00
Simon Larsen
8c5e3187ab feat: add MonitorTestService to services index 2025-01-27 10:44:56 +00:00
Simon Larsen
d2ae1cd845 Merge pull request #1814 from OneUptime/master
chore: update playwright to version 1.50.0 and adjust debugger port i…
2025-01-24 19:18:03 +00:00
Simon Larsen
8cb64fbe66 feat: add isSummaryStep property to BasicForm and FormStep interface 2025-01-24 19:11:49 +00:00
Simon Larsen
092b858873 fix: correct spelling of 'enabled' in BasicForm and update related components 2025-01-24 18:54:28 +00:00
Simon Larsen
81d19722f6 chore: update dependencies in test-release workflow to include infrastructure-agent-deploy 2025-01-24 18:39:11 +00:00
Simon Larsen
1f7b268875 feat: add summary step to BasicForm and implement detail display for form fields 2025-01-24 18:32:10 +00:00
Simon Larsen
38b32a6090 refactor: improve code formatting and consistency in IncidentService 2025-01-24 18:08:21 +00:00
Simon Larsen
373159cb29 feat: enhance incident update feed with detailed information including title, root cause, description, remediation notes, labels, and severity 2025-01-24 17:59:52 +00:00
Simon Larsen
ec86ef4c0e chore: update playwright to version 1.50.0 and adjust debugger port in launch configuration 2025-01-24 16:11:51 +00:00
Simon Larsen
270231374b refactor: clean up migration and improve formatting for subscriber email notification footer text 2025-01-24 10:48:31 +00:00
Simon Larsen
aac4281602 feat: update subscriber email notification footer text to support longer content and add migration 2025-01-24 10:45:51 +00:00
Simon Larsen
bdea1139a4 refactor: improve code formatting for subscriber email notification footer text 2025-01-24 10:36:02 +00:00
Simon Larsen
14fdfa6d17 feat: add subscriber email notification footer text to status page and update notification templates 2025-01-24 10:31:59 +00:00
Simon Larsen
3b22747dbf Merge branch 'release' 2025-01-23 21:51:08 +00:00
Simon Larsen
eb9e20dad5 fix: update OpenTelemetry configuration template to use index for environment variables 2025-01-23 21:31:58 +00:00
Simon Larsen
5aa4b883ad feat: add OpenTelemetry exporter configuration options in Helm chart templates 2025-01-23 21:28:11 +00:00
Simon Larsen
ea38e2621f refactor: clean up code formatting and remove unused props in Scheduled Maintenance components 2025-01-23 16:22:16 +00:00
Simon Larsen
b2cb95e1fc feat: enhance Scheduled Maintenance Table with template creation buttons and update description in create page 2025-01-23 16:17:26 +00:00
Simon Larsen
b174b9795a feat: add imports for form handling and recurring events in Scheduled Maintenance Create page 2025-01-23 16:10:19 +00:00
Simon Larsen
9d1caa8336 feat: add Scheduled Maintenance Event creation page and update routing and breadcrumbs 2025-01-23 16:07:35 +00:00
Simon Larsen
52e8669960 feat: remove unused createInitialValues prop from IncidentsTable component 2025-01-23 15:51:09 +00:00
Simon Larsen
f0505725a7 feat: refine query parameters handling in Route class and improve navigation logic 2025-01-23 15:49:33 +00:00
Simon Larsen
7897641ef7 feat: implement addQueryParams method in Route class and update incident navigation logic 2025-01-23 15:07:11 +00:00
Simon Larsen
761f5f35e9 feat: add query parameters support in navigation and update incident declaration flow 2025-01-23 14:56:59 +00:00
Simon Larsen
241586ff4a feat: add Incident creation page with routing and breadcrumbs integration 2025-01-23 14:39:15 +00:00
Simon Larsen
f8fc1a9dae feat: enhance Monitor layout with hideSideMenu prop and improve component styling 2025-01-23 13:59:24 +00:00
Simon Larsen
6bbcc0a301 feat: add hideSideMenu prop to Monitor layout and update routing logic 2025-01-23 13:43:58 +00:00
Simon Larsen
0e6604aa11 refactor: update description in Monitor creation component for clarity 2025-01-23 13:24:40 +00:00
Simon Larsen
ade84a23ff refactor: clean up Monitor creation component and improve button navigation 2025-01-23 13:10:20 +00:00
Simon Larsen
6ff883b54e feat: add Monitor creation page and update routing and breadcrumbs 2025-01-23 12:52:27 +00:00
Simon Larsen
3546d92143 refactor: update localRoot paths in launch.json and improve logging in CheckHeartbeat and UpdateConnectionStatus 2025-01-23 12:41:34 +00:00
Simon Larsen
e932eb1b1d feat: update DISABLE_TELEMETRY value to false in otel-collector.yaml 2025-01-22 17:49:30 +00:00
Simon Larsen
cbca712af8 feat: add OpenTelemetry exporter environment variables and disable telemetry in otel-collector.yaml 2025-01-22 17:49:00 +00:00
Simon Larsen
8490128833 feat: add DISABLE_TELEMETRY environment variable to otel-collector.yaml 2025-01-22 15:38:10 +00:00
Simon Larsen
b80e126540 chore: update Playwright and related dependencies to version 1.49.1 2025-01-22 13:53:30 +00:00
Simon Larsen
5494a2244e feat: update Dockerfile.tpl to use new OpenTelemetry Collector version and improve gomplate installation 2025-01-22 12:44:22 +00:00
Simon Larsen
23be5b1736 fix: downgrade collector version to 0.104.0 and enhance config output in Dockerfile.tpl 2025-01-22 12:12:15 +00:00
Simon Larsen
9f3a9bc915 fix: update download command in Dockerfile.tpl to use uname for architecture detection 2025-01-22 11:34:00 +00:00
Simon Larsen
84d322f476 fix: correct echo command syntax in OTelCollector Dockerfile.tpl 2025-01-22 11:15:23 +00:00
Simon Larsen
f94fbcc2ae feat: improve architecture detection and installation process in Dockerfile.tpl 2025-01-22 11:11:14 +00:00
Simon Larsen
0e85162b50 fix: update architecture detection syntax in Dockerfile.tpl for compatibility 2025-01-21 15:59:59 +00:00
Simon Larsen
a5927f3681 feat: refactor Dockerfile.tpl to streamline gomplate installation and architecture detection 2025-01-21 15:58:20 +00:00
Simon Larsen
0d37587199 feat: enhance OpenTelemetry Collector configuration with sending queue parameters 2025-01-21 15:20:50 +00:00
Simon Larsen
4674578c90 feat: update OTel Collector Dockerfile and configuration for gomplate integration 2025-01-21 15:10:44 +00:00
Simon Larsen
87d280edbd feat: use sudo for apt-get update in compile workflow 2025-01-21 13:26:03 +00:00
Simon Larsen
d44ddd6781 feat: extend hard delete retention period from 3 to 30 days in WorkflowLogService 2025-01-21 12:42:50 +00:00
Simon Larsen
7271481fb7 feat: add apt-get update step in compile workflow 2025-01-20 17:08:59 +00:00
Simon Larsen
7f05ae7415 feat: upgrade checkout action to v4 in GitHub workflows 2025-01-20 14:43:07 +00:00
Simon Larsen
1e84b3a0cb feat: upgrade Node.js setup action to v4 in GitHub workflows 2025-01-20 14:42:33 +00:00
Simon Larsen
20c7b11ecc feat: update Node.js version in GitHub workflows to latest 2025-01-20 14:42:06 +00:00
Simon Larsen
6666f6e817 Merge pull request #1807 from diabolocom/helm-clickhouse-update
Deps: Helm-chart: Update clickhouse chart v7.2.0
2025-01-20 14:23:34 +00:00
Simon Larsen
621e1ce207 feat: update Dockerfiles to replace libasound2t64 with libasound2 for playwright dependencies 2025-01-20 14:14:06 +00:00
Simon Larsen
1c42c58591 feat: update Dockerfiles to include libasound2t64 dependency for playwright 2025-01-20 14:09:41 +00:00
Jules Lefebvre
6a1b0d8718 deps(chart): update clickhouse chart
Update binami clickhouse helm chart to version 7.2.0 to support ipv6 by default
2025-01-20 15:07:28 +01:00
Simon Larsen
bc244bfde1 feat: rename notification rule type for clarity and update related migration 2025-01-20 13:55:56 +00:00
Simon Larsen
984cb41efc feat: update notification rule types to use ON_CALL_EXECUTED for incidents and alerts 2025-01-20 13:42:54 +00:00
Simon Larsen
076386f0d4 feat: update OnCallDutyPolicyExecutionLog and UserOnCallLog models to make Triggered By Incident and Alert IDs optional 2025-01-20 13:26:11 +00:00
Simon Larsen
cb11a46cc9 feat: enhance logging for on-call duty policy execution and improve user notification handling 2025-01-20 13:03:15 +00:00
Simon Larsen
6c7f1b5eb9 feat: update ExecutionLogsTable to display triggered by incident and alert details 2025-01-20 12:17:09 +00:00
Simon Larsen
95709f1996 feat: add support for displaying alerts in execution logs table 2025-01-20 12:12:31 +00:00
Simon Larsen
eaebcc748d fix: add missing newline for improved code readability in Alive job 2025-01-20 11:52:23 +00:00
Simon Larsen
13c2f6e73d feat: implement probe alive endpoint and enhance state change notification with project ID 2025-01-20 11:49:46 +00:00
Simon Larsen
f746d353a7 refactor: remove unnecessary whitespace and improve code formatting in Alert services and components 2025-01-20 11:08:23 +00:00
Simon Larsen
de1760bda7 feat: update alert services and components to support private notes and improve description handling 2025-01-20 10:56:54 +00:00
Simon Larsen
a28b870c23 feat: mark report fields as required for improved form validation 2025-01-20 09:58:03 +00:00
Simon Larsen
eb216e52cf feat: enhance alert notifications by integrating AlertFeedService for state change and note posting events 2025-01-17 21:50:31 +00:00
Simon Larsen
c19913ac58 refactor: clean up code formatting and improve readability in Alert components 2025-01-17 20:42:10 +00:00
Simon Larsen
b55bb4ceeb feat: simplify alert state management by consolidating ChangeAlertState usage and adding AlertFeedElement 2025-01-17 20:39:43 +00:00
Simon Larsen
26ec1aa5b2 feat: implement Alert Feed component with event handling and data fetching 2025-01-17 20:37:13 +00:00
Simon Larsen
7b733c32e9 feat: remove unused CardModelDetail components for Alert Description, Root Cause, and Remediation Notes 2025-01-17 20:27:34 +00:00
Simon Larsen
3d34118f9e feat: add new pages for Alert Description, Root Cause, and Remediation with routing and breadcrumbs 2025-01-17 20:26:49 +00:00
Simon Larsen
69a3a898f5 refactor: improve code formatting and readability in UserSettings components 2025-01-17 19:56:07 +00:00
Simon Larsen
74d21e7c33 feat: update alert and incident on-call rule titles to include severity information and change side menu icon 2025-01-17 19:53:55 +00:00
Simon Larsen
aecf1c38a6 feat: rename and add routes for Incident and Alert On-Call Rules in user settings 2025-01-17 19:47:02 +00:00
Simon Larsen
8b3041301a refactor: clean up whitespace and improve code readability in various models and services 2025-01-17 19:24:48 +00:00
Simon Larsen
af77d191e3 feat: update triggeredByIncidentId and triggeredByAlertId fields to be nullable in relevant models 2025-01-17 19:23:09 +00:00
Simon Larsen
ad58125663 feat: add alert severity handling and triggeredByAlertId support in notification and execution logs 2025-01-17 19:09:22 +00:00
Simon Larsen
63650ba791 feat: add support for triggeredByAlertId in OnCallDutyPolicyExecutionLogTimeline and related services 2025-01-17 18:42:20 +00:00
Simon Larsen
1c5a434ee3 feat: add triggeredByAlertId relation to OnCallDutyPolicyExecutionLogTimeline, UserOnCallLog, and UserOnCallLogTimeline 2025-01-17 15:58:27 +00:00
Simon Larsen
102e64224f fix: remove unnecessary whitespace and improve error logging in alert, billing, incident, and scheduled maintenance feed services 2025-01-17 15:41:07 +00:00
Simon Larsen
854fe3084a fix: refactor alert, incident, and scheduled maintenance feed services to improve error handling and logging 2025-01-17 15:39:51 +00:00
Simon Larsen
b6c6186625 fix: remove unnecessary trace logging in BillingService when changing plan 2025-01-17 15:18:23 +00:00
Simon Larsen
92bdd5cf03 fix: improve clarity of reminder notification message for scheduled maintenance events 2025-01-17 15:14:02 +00:00
Simon Larsen
c2e78d122a fix: update property name from 'id' to '_id' in incident and scheduled maintenance note services 2025-01-17 15:10:20 +00:00
Simon Larsen
bfc061ad47 feat: add isRoot property to props in incident and scheduled maintenance note services 2025-01-17 15:08:21 +00:00
Simon Larsen
98302a887a fix: correct spelling of "scheduled maintenance" in markdown logs and notifications 2025-01-17 15:01:44 +00:00
Simon Larsen
743db411d5 refactor: add type annotations for subscription status checks in BillingInvoiceService and ProjectUtil 2025-01-17 13:30:57 +00:00
Simon Larsen
9537a9a13a feat: implement subscription status refresh logic with mutex handling and logging enhancements 2025-01-17 13:17:44 +00:00
Simon Larsen
0931705d6a feat: implement subscription status refresh logic in BillingInvoiceService and UserAPI 2025-01-17 12:23:01 +00:00
Simon Larsen
6bfd9b657a refactor: improve logging formatting in SendSubscriberRemindersOnEventScheduled job 2025-01-16 22:53:17 +00:00
Simon Larsen
493aef5b05 feat: enhance subscriber notification system with reminder notifications and improved logging 2025-01-16 21:21:49 +00:00
Simon Larsen
185f70e893 refactor: clean up code formatting and improve readability in Scheduled Maintenance components 2025-01-16 21:06:26 +00:00
Simon Larsen
db2ecde486 feat: add notification logging for scheduled maintenance note postings 2025-01-16 20:45:16 +00:00
Simon Larsen
ff3b7edec8 feat: enhance Scheduled Maintenance feed with subscriber and owner notification events 2025-01-16 20:42:09 +00:00
Simon Larsen
968b050d13 feat: implement onUpdateSuccess for internal and public notes in scheduled maintenance services 2025-01-16 20:07:52 +00:00
Simon Larsen
4328f7fc40 feat: add Scheduled Maintenance Description page and update routing 2025-01-16 16:55:26 +00:00
Simon Larsen
6ae3c28b8b feat: update ScheduledMaintenanceFeed event types and integrate ScheduledMaintenanceFeedElement in view 2025-01-16 16:25:33 +00:00
Simon Larsen
8be022e34f refactor: clean up state initialization and formatting in IncidentFeed component 2025-01-16 13:27:31 +00:00
Simon Larsen
ce6938396a feat: add modals for creating public and private incident notes 2025-01-16 13:25:32 +00:00
Simon Larsen
537e2d02e7 feat: enhance incident update permissions and enable root cause editing 2025-01-16 13:07:27 +00:00
Simon Larsen
80b9e48771 fix: remove space before incident number in IncidentsTable and IncidentView components 2025-01-16 12:57:49 +00:00
Simon Larsen
e0c3437c45 feat: implement otel-collector deployment with configurable replica count 2025-01-16 12:54:43 +00:00
Simon Larsen
e5df15a53e test: update expected value for ColumnLength.Color to reflect changes 2025-01-15 21:09:53 +00:00
Simon Larsen
a0f6e979b8 refactor: enhance readability by restructuring Feed and FeedItem components 2025-01-15 20:36:18 +00:00
Simon Larsen
e20624a635 refactor: invert isLastItem condition for rendering FeedItem separator 2025-01-15 20:29:16 +00:00
Simon Larsen
800583ddde refactor: enforce isLastItem prop as required in FeedItem component 2025-01-15 20:29:02 +00:00
Simon Larsen
f0bc71bee4 refactor: improve code readability and structure in OnCallDutyPolicyExecutionLog services and Feed components 2025-01-15 20:26:30 +00:00
Simon Larsen
ba0dd4f2b0 refactor: add display color handling by OnCallDutyPolicy status and update notification displayColor logic 2025-01-15 20:23:11 +00:00
Simon Larsen
63b560ad93 refactor: improve markdown formatting in notifications and update query id handling 2025-01-15 20:20:36 +00:00
Simon Larsen
ae0553a1e5 refactor: update IncidentFeed and OnCallDutyPolicyExecutionLogTimeline services for improved type handling and logging 2025-01-15 19:48:00 +00:00
Simon Larsen
fd4e2737e5 refactor: enhance notification messages to include incident state details and public note content 2025-01-15 19:23:57 +00:00
Simon Larsen
15f18c6d4f refactor: enhance notification messages and add projectId to relevant data structures 2025-01-15 18:52:35 +00:00
Simon Larsen
a84e32fe1b refactor: enhance logging and improve incident feed notification messages across multiple services 2025-01-15 18:37:18 +00:00
Simon Larsen
c09d97310f refactor: update ProgressButtons and ChangeIncidentState components to support completedStepId and improve click handling 2025-01-15 17:35:33 +00:00
Simon Larsen
782eb45eb3 refactor: improve formatting and consistency in multiple components 2025-01-14 21:20:21 +00:00
Simon Larsen
fb37da0aca refactor: update ErrorMessage component to use 'message' prop instead of 'error' across multiple components 2025-01-14 21:16:17 +00:00
Simon Larsen
ae2608e66f refactor: update ErrorMessage component usage to use 'message' prop instead of 'error' across multiple files 2025-01-14 21:01:40 +00:00
Simon Larsen
29565bc24c refactor: clean up unnecessary whitespace and improve code formatting across multiple files 2025-01-14 19:35:54 +00:00
Simon Larsen
da7860fc3f feat: add new incident view pages for Root Cause and Description; update icon properties and breadcrumb links 2025-01-14 19:35:39 +00:00
Simon Larsen
0375e8c568 refactor: improve code formatting in ProgressButtonItem and IncidentFeed components for better readability 2025-01-14 19:22:09 +00:00
Simon Larsen
60c53b32e6 refactor: update ProgressButtonItem and ProgressButtons components for improved structure and readability; enhance error handling in IncidentFeed 2025-01-14 19:21:59 +00:00
Simon Larsen
4d1797e9fa refactor: clean up code formatting and remove unnecessary whitespace in various files 2025-01-14 18:16:51 +00:00
Simon Larsen
1ff4bde7b9 feat: enhance incident feed markdown for OnCallDutyPolicyExecutionLogTimeline with detailed alert information 2025-01-14 18:13:40 +00:00
Simon Larsen
fae6d89a18 feat: add OnCallNotification event type to IncidentFeed and implement related handling in OnCallDutyPolicyExecutionLogTimelineService 2025-01-14 18:09:30 +00:00
Simon Larsen
aa429abe01 feat: implement ProgressButtons and ProgressButtonItem components for enhanced step navigation 2025-01-14 16:01:56 +00:00
Simon Larsen
203763aa95 feat: add OnCallPolicy event type to IncidentFeed and implement related feed updates in OnCallDutyPolicyExecutionLogService 2025-01-14 15:38:05 +00:00
Simon Larsen
0b69ae195f feat: implement onBeforeDelete and onDeleteSuccess methods to handle OwnerTeamRemoved events in IncidentOwnerTeamService 2025-01-14 14:47:28 +00:00
Simon Larsen
0756a43d62 feat: add OwnerUserRemoved and OwnerTeamRemoved event types to IncidentFeed; update feedInfoInMarkdown and improve icon handling 2025-01-14 14:45:32 +00:00
Simon Larsen
13eb3205a2 feat: add RootCause and RemediationNotes event types to IncidentFeed; update feedInfoInMarkdown formatting and icons 2025-01-14 14:12:51 +00:00
Simon Larsen
9dcd295fd0 feat: update incident feed event types for owner additions and enhance related services 2025-01-14 13:59:24 +00:00
Simon Larsen
1fb84ea302 fix: update incidentId references and improve notification messages for clarity 2025-01-14 13:43:31 +00:00
Simon Larsen
53ea3d32dc feat: update incident feed colors and improve notification messages; add refresh button to IncidentFeedElement 2025-01-14 12:36:52 +00:00
Simon Larsen
5c9ec28a4e fix: format feedInfoInMarkdown for better readability in IncidentService 2025-01-14 12:26:30 +00:00
Simon Larsen
04c2293378 feat: add postedAt field to IncidentFeed, AlertFeed, and ScheduledMaintenanceFeed; update services to set postedAt on creation 2025-01-14 12:15:49 +00:00
Simon Larsen
6c672c541a feat: include createdByUserId in IncidentFeed creation for better tracking of incident authors 2025-01-14 11:04:21 +00:00
Simon Larsen
169db73704 fix: remove margin from no items message in Feed component for better layout 2025-01-14 11:01:10 +00:00
Simon Larsen
e980f00f1c feat: add noItemsMessage prop to Feed component and update IncidentFeedElement to display error message when no items are present 2025-01-14 11:00:07 +00:00
Simon Larsen
66a594ed99 feat: replace Feed component with IncidentFeedElement in IncidentView 2025-01-14 10:19:43 +00:00
Simon Larsen
52c35c1e4d feat: update userId handling in IncidentFeed and AlertFeed services; increase LIMIT_PER_PROJECT to 10000; refactor User class to UserUtil; add IncidentFeedElement component 2025-01-13 18:39:06 +00:00
Simon Larsen
caa4103b48 feat: add userId field to AlertFeed, IncidentFeed, and ScheduledMaintenanceFeed services 2025-01-13 17:28:44 +00:00
Simon Larsen
f6069ca4a7 feat: remove tls.verify option from Fluent Bit configuration 2025-01-13 17:22:48 +00:00
Simon Larsen
f519748c44 feat: add userId field and relationship to AlertFeed, IncidentFeed, and ScheduledMaintenanceFeed models 2025-01-13 17:19:37 +00:00
Simon Larsen
27de0f0ddb feat: update displayColor column length to 10 for AlertFeed, IncidentFeed, and ScheduledMaintenanceFeed 2025-01-13 17:14:36 +00:00
Simon Larsen
5426c22740 feat: update moreInformationInMarkdown fields to be optional in IncidentFeed, AlertFeed, and ScheduledMaintenanceFeed 2025-01-13 17:00:46 +00:00
Simon Larsen
a55d4d1e02 refactor: format migration name and clean up up/down methods for consistency 2025-01-13 16:20:51 +00:00
Simon Larsen
2f65b1ee82 feat: add migration to drop IncidentLog, AlertLog, and ScheduledMaintenanceLog tables 2025-01-13 15:04:00 +00:00
Simon Larsen
730dc56316 feat: add migration for IncidentFeed, AlertFeed, and ScheduledMaintenanceFeed tables 2025-01-13 14:59:13 +00:00
Simon Larsen
101e697a12 refactor: update BaseAPI instantiation for ScheduledMaintenanceFeed to improve type clarity 2025-01-13 14:56:18 +00:00
Simon Larsen
1c1488bca5 refactor: replace IncidentLogService with IncidentFeedService in various services 2025-01-13 14:52:55 +00:00
Simon Larsen
0e74adbd08 refactor: simplify FeedItem component and clean up IncidentView layout 2025-01-13 14:11:04 +00:00
Simon Larsen
35947b4010 fix: remove redundant empty line in IncidentView component 2025-01-13 13:27:06 +00:00
Simon Larsen
b304ceddbb feat: add Incident Feed component to display incident updates 2025-01-13 11:25:52 +00:00
Simon Larsen
cba6c48673 fix: update API request method from GET to POST in public-api documentation 2025-01-13 11:12:04 +00:00
Simon Larsen
63b40cde75 fix: update titles for subscription fields in EmailSubscribers component 2025-01-13 10:54:26 +00:00
Simon Larsen
439f2e87a2 feat: add subscription confirmation field to EmailSubscribers component 2025-01-13 10:53:18 +00:00
Simon Larsen
fc0869d9fe fix: correct query merging order in BaseModelTable component 2025-01-13 10:50:50 +00:00
Simon Larsen
fb5646e8c2 feat: update incident log event type and add logging for subscriber notifications in Incident services 2025-01-13 10:37:45 +00:00
Simon Larsen
7538a47be5 fix: update userName type to string and ensure proper string conversion in IncidentNote services 2025-01-13 08:50:31 +00:00
Simon Larsen
8568cc0c89 feat: implement logging for internal and public notes creation in IncidentNote services 2025-01-13 08:48:58 +00:00
Simon Larsen
2457de9757 feat: update IncidentLog and AlertLog models to use displayColor and event type enums 2025-01-12 18:21:08 +00:00
Simon Larsen
a6859631ae feat: add validation for required fields in AlertLogService, IncidentLogService, and ScheduledMaintenanceLogService 2025-01-12 17:50:45 +00:00
Simon Larsen
e737444c52 feat: add severity fields to AlertLog, IncidentLog, and ScheduledMaintenanceLog models 2025-01-12 17:40:25 +00:00
Simon Larsen
b4a2726c81 refactor: improve code formatting and readability in BaseAPI and IncidentView 2025-01-12 14:57:17 +00:00
Simon Larsen
5fc60491ff feat: reorder fields in IncidentView to improve layout and visibility of Incident ID 2025-01-12 14:53:12 +00:00
Simon Larsen
a7558535a6 feat: add IncidentLogService, AlertLogService, and ScheduledMaintenanceLogService to BaseAPI 2025-01-12 13:28:36 +00:00
Simon Larsen
408d06edb9 feat: add AlertLogService, IncidentLogService, and ScheduledMaintenanceLogService; update services index 2025-01-12 12:02:25 +00:00
Simon Larsen
87be913388 feat: enhance filtering logic to support numeric values in BaseModelTable 2025-01-12 11:52:33 +00:00
Simon Larsen
1a034abe96 feat: add NumberFilter component and integrate it into FiltersForm 2025-01-12 11:45:02 +00:00
Simon Larsen
19bdfd66b9 docs: update public API documentation to include overallStatus object details 2025-01-12 10:36:46 +00:00
Simon Larsen
982d051329 feat: implement mutex for incident creation and improve incident number handling 2025-01-12 10:35:04 +00:00
Simon Larsen
b66b1db2cb feat: add Incident Number column to IncidentsTable and IncidentView components 2025-01-12 10:19:38 +00:00
Simon Larsen
12e67a065d feat: add incidentNumber field to Incident model and implement data migration for existing incidents 2025-01-12 10:08:48 +00:00
Simon Larsen
1f3cdc08ac feat: add incidentNumber field to Incident model and implement logic for auto-incrementing incident numbers 2025-01-12 10:03:28 +00:00
Simon Larsen
5ebcba9f46 refactor: improve code readability in StatusPageAPI and Overview components 2025-01-10 14:44:31 +00:00
Simon Larsen
15e49c1b45 feat: implement overall monitor status calculation and update Overview component 2025-01-10 14:40:42 +00:00
Simon Larsen
b71a657dea feat: update API documentation to reflect POST method for status page endpoints 2025-01-09 18:38:38 +00:00
Simon Larsen
72e573bbc4 Merge branch 'release' 2025-01-09 14:32:47 +00:00
Simon Larsen
2113ffefd9 feat: refactor ScheduledMaintenanceLog model and migration for improved readability and structure 2025-01-09 14:32:43 +00:00
Simon Larsen
8da42884c2 feat: add documentation for using Monitor Secrets in custom and synthetic monitors 2025-01-09 14:30:24 +00:00
Simon Larsen
e14c54c6cc Merge branch 'release' 2025-01-08 19:48:16 +00:00
Simon Larsen
10a199f3f5 feat: add IncidentLog and ScheduledMaintenanceLog tables with migrations 2025-01-08 19:47:50 +00:00
Simon Larsen
2df97392b2 feat: enhance server monitor queries by integrating active project status checks 2025-01-08 18:54:06 +00:00
Simon Larsen
fcd2ecd118 feat: improve server monitor request handling by refining query and response logic 2025-01-08 18:41:41 +00:00
Simon Larsen
e2e5533229 Merge branch 'release' 2025-01-08 17:43:00 +00:00
Simon Larsen
cf01fce011 feat: add uninstall instructions for OneUptime in documentation 2025-01-08 17:18:51 +00:00
Simon Larsen
100152ecc1 feat: update API endpoint URLs in Public Status Page documentation 2025-01-08 17:12:45 +00:00
Simon Larsen
7b68c0b3c0 feat: refactor permission handling by extracting getFieldPermissions function 2025-01-07 18:59:34 +00:00
Simon Larsen
a7ad9b752b feat: fix Clickhouse configuration to use default port if not specified 2025-01-06 20:10:59 +00:00
Simon Larsen
2e3ed42723 feat: add Public Status Page API documentation 2025-01-06 12:43:29 +00:00
Simon Larsen
864e44d1a2 feat: add "Status Pages" section with link to Public API documentation 2025-01-06 12:40:52 +00:00
Simon Larsen
08cdb33e6e feat: remove redundant MYENVVAR environment variable from installer templates 2025-01-06 12:39:17 +00:00
Simon Larsen
27647f529f feat: rename workflow step to clarify NPM package publishing 2025-01-06 08:30:49 +00:00
Simon Larsen
4021650ea5 feat: add MYENVVAR environment variable to installer for amd64 template 2025-01-06 08:27:01 +00:00
Simon Larsen
6a9f76c656 feat: add environment variable MYENVVAR to installer for arm64 template 2025-01-06 08:26:43 +00:00
Simon Larsen
c3bba74107 feat: update product name for amd64 and remove unnecessary custom actions from installer 2025-01-03 17:15:25 +00:00
Simon Larsen
16b9d4794e feat: enhance error handling in SSO login process and improve response structure 2025-01-03 16:19:23 +00:00
Simon Larsen
22e16d5c5b feat: update documentation to include proxy configuration for agent setup 2025-01-03 15:28:37 +00:00
Simon Larsen
ef340e5fa0 feat: improve error logging for secret key validation and add proxy support for HTTP requests 2025-01-03 15:22:35 +00:00
Simon Larsen
20aff38458 feat: enhance agent configuration logging and save proxy URL 2025-01-03 15:08:57 +00:00
Simon Larsen
16a1051280 feat: add proxy configuration support to agent and update related functions 2025-01-03 14:55:16 +00:00
Simon Larsen
fe9d3d3020 Add proxy 2025-01-03 14:21:47 +00:00
Simon Larsen
a0c0041cbd feat: implement default logging to file with fallback to console 2025-01-03 13:31:59 +00:00
Simon Larsen
d755c62a51 chore: update README for build instructions and remove unused dependency 2025-01-03 10:04:11 +00:00
Simon Larsen
5756623f45 fix: improve error handling and logging for metrics ingestion and secret key verification 2025-01-03 09:47:35 +00:00
Simon Larsen
8247f504c4 fix: correct formatting of Redis IP family value in Helm chart templates 2025-01-01 18:46:25 +00:00
Simon Larsen
f05b0a15ee feat: add conditional logic for Redis IP family in Helm chart templates 2025-01-01 18:42:38 +00:00
Simon Larsen
1abf1df1ee refactor: format PORT initialization and improve import structure in Config and Index 2025-01-01 18:24:30 +00:00
Simon Larsen
f1afab0b52 feat: add configurable port for probe services and update initialization 2025-01-01 18:04:19 +00:00
Simon Larsen
a0d33bf9c1 feat: initialize server with a specific port using Port type in Probe 2025-01-01 17:03:13 +00:00
Simon Larsen
7c16fa7b42 refactor: update ClickhouseConfig to use Hostname type for host configuration 2025-01-01 16:37:12 +00:00
Simon Larsen
5ba526d12e refactor: remove outdated comments and improve context object in VMRunner 2025-01-01 16:11:19 +00:00
Simon Larsen
92174be7fd docs: enhance documentation with available objects in Playwright context and error handling for browser closure 2025-01-01 15:34:10 +00:00
Simon Larsen
ece451b660 refactor: remove unnecessary UI reference and streamline thank you message in installation templates 2024-12-24 21:09:36 +00:00
Simon Larsen
5ca740b43c feat: add custom action to set PATH environment variable and show thank you message during installation 2024-12-24 20:55:16 +00:00
Simon Larsen
70aae7c59a fix: update RedisIPFamily initialization to handle undefined environment variable 2024-12-24 20:13:21 +00:00
Simon Larsen
bb543ef010 Merge pull request #1773 from diabolocom/redis-ipv6
Feature: Allow to set Redis IP Family
2024-12-24 20:09:59 +00:00
Simon Larsen
64bba9246b Add thank you message and UI reference to installation templates 2024-12-24 20:07:08 +00:00
Simon Larsen
511987bd70 Add PATH environment variable setting in Windows installer templates 2024-12-24 20:03:40 +00:00
Jules Lefebvre
19162504c8 feat(helm): add externalRedis.ipFamily configuration
Add the `externalRedis.ipFamily` values to set `REDIS_IP_FAMILY environmental variable
2024-12-24 13:08:15 +01:00
Jules Lefebvre
96f5173fb9 feat(docker): allow to chose redis ip family
Add the `REDIS_IP_FAMILY` to the default docker environment variables
2024-12-24 13:08:04 +01:00
Jules Lefebvre
8704f47b44 feat(common/infra): allow to chose redis ip familly
Introduce a new environment variable (`REDIS_IP_FAMILY`) to choose witch version
of the IP protocol to use in Redis.
2024-12-24 13:06:39 +01:00
Simon Larsen
45803a8cd2 Fix path separators in build-msi.sh for consistency across platforms 2024-12-23 20:19:11 +00:00
Simon Larsen
c04c2a3563 Fix path separators in build-msi.sh for Windows compatibility 2024-12-23 19:10:41 +00:00
Simon Larsen
e61e7f3ba0 Update file identifiers in Windows installer templates for Infrastructure Agent 2024-12-23 18:43:33 +00:00
Simon Larsen
e438050f6e Fix path separators in build-msi.sh for Windows compatibility 2024-12-23 18:42:23 +00:00
Simon Larsen
9601bdec93 Update product names and descriptions in installer templates for consistency 2024-12-23 18:31:56 +00:00
Simon Larsen
c631dcfd44 Remove unnecessary whitespace in CustomSMTPTable component 2024-12-23 18:29:01 +00:00
Simon Larsen
4cabd2562a Reduce job duration from 1 minute to 30 seconds in InfrastructureAgent 2024-12-23 18:22:03 +00:00
Simon Larsen
09e997c104 Add noValueMessage prop to description fields across multiple components 2024-12-23 17:54:27 +00:00
Simon Larsen
eee787be1c Update description fields to be optional across multiple components 2024-12-20 17:22:05 +00:00
Simon Larsen
c9b0d4fbec Fix binary paths in build script for MSI to remove leading dot 2024-12-20 16:58:00 +00:00
Simon Larsen
946f82f978 Add debug logging to server monitor criteria and comparison functions 2024-12-20 16:23:34 +00:00
Simon Larsen
8fc3fe4a98 Increase offline check duration from 2 to 3 minutes in server monitor criteria 2024-12-20 16:16:25 +00:00
Simon Larsen
3d321a038b Add infrastructure agent deployment workflow with GoReleaser and artifact upload 2024-12-20 16:00:56 +00:00
Simon Larsen
ef06d47619 Fix binary paths in build script for MSI to remove leading dot 2024-12-20 15:55:46 +00:00
Simon Larsen
c8a966a2f7 Enhance server monitor functionality by adding serverMonitorResponse handling and improving hostname resolution 2024-12-20 15:48:32 +00:00
Simon Larsen
32ffdf9174 Consolidate package installation in build script for MSI 2024-12-20 14:54:22 +00:00
Simon Larsen
d482cb00a9 Fix typo in form step title from "Baisc Info" to "Basic Info" in SSO pages 2024-12-20 13:59:20 +00:00
Simon Larsen
6286b8bf4c Update output directory in build script for MSI to a more general path 2024-12-20 13:58:48 +00:00
Simon Larsen
b264f4a6b9 Add MSI image release step to GitHub Actions and update build script for dependencies 2024-12-20 12:10:58 +00:00
Simon Larsen
ec7d5fe5c2 Update ARM64 binary path in MSI build script to reflect new version structure 2024-12-20 12:08:47 +00:00
Simon Larsen
4b9d770030 Update Windows installer templates for arm64: enhance XML structure, update product details, and adjust file references 2024-12-19 20:38:24 +00:00
Simon Larsen
a8100e9b01 Refactor Windows installer template for arm64: update XML structure, improve metadata, and enhance component definitions 2024-12-19 20:37:35 +00:00
Simon Larsen
b43e892295 Update GoReleaser to v6.1.0 and increment version in configuration 2024-12-19 20:14:30 +00:00
Simon Larsen
663f151051 Add MSI build script and templates for Windows infrastructure agent 2024-12-19 19:44:39 +00:00
Simon Larsen
282373b654 Update server monitor criteria and request handling for accurate time tracking 2024-12-19 18:10:15 +00:00
Simon Larsen
43faeb6e32 Update CheckOnlineStatus to use three minutes ago for server monitor queries 2024-12-19 17:58:25 +00:00
Simon Larsen
8180fcf386 Update metric view data handling in MonitorMetrics component 2024-12-19 17:49:38 +00:00
Simon Larsen
e2cbd4d0ac Refactor loading and error handling in MonitorMetrics component 2024-12-19 17:31:27 +00:00
Simon Larsen
084c259197 Update report settings to clarify email notifications for subscribers 2024-12-17 19:16:04 +00:00
Simon Larsen
6ecd709f29 Add NFPM configuration for packaging and install step in release workflow 2024-12-17 18:56:27 +00:00
Simon Larsen
b935cef5a0 Fix typo in subscription confirmation message 2024-12-17 17:41:44 +00:00
Simon Larsen
1d5e838afa Update subscription success message to include email confirmation instructions 2024-12-17 17:35:38 +00:00
Simon Larsen
90ca4b68cf Add email notification for new subscribers and improve subscription confirmation handling 2024-12-17 15:01:26 +00:00
Simon Larsen
031bd26b09 Update subscription confirmation to use 'verification-token' query parameter 2024-12-17 14:56:42 +00:00
Simon Larsen
1296f37081 Enhance subscription confirmation handling by updating permission controls and modifying email notification options 2024-12-17 14:41:31 +00:00
Simon Larsen
ba1a707156 Remove outdated IP addresses from the configuration documentation 2024-12-17 13:08:41 +00:00
Simon Larsen
d670cca559 Add subscription confirmation feature and enhance Pill component with tooltip support 2024-12-17 13:00:23 +00:00
Simon Larsen
f7e31a4f04 Add subscription confirmation handling and enhance Pill component with tooltip support 2024-12-17 12:50:02 +00:00
Simon Larsen
bb7917551f Add confirmation functionality for status page subscriptions and update related templates 2024-12-17 12:42:22 +00:00
Simon Larsen
53238aee40 Refactor date handling in AggregateUtil and XAxisUtil, and improve error handling in MetricView and IncidentView components 2024-12-16 18:17:01 +00:00
Simon Larsen
187d41e25f Refactor RollingTimePicker and MetricMonitorStepForm for improved state management and performance 2024-12-16 17:59:18 +00:00
Simon Larsen
56f79a91c1 Enhance IncidentView component with HeaderAlert for date display and improve metrics card layout 2024-12-16 16:57:04 +00:00
Simon Larsen
4dd6b5f32e Add MetricViewData interface and update imports across components 2024-12-16 16:53:38 +00:00
Simon Larsen
f48a5a650c Add metricAggregationType handling to MetricMonitorOptions and enhance CriteriaFilter component 2024-12-16 16:23:57 +00:00
Simon Larsen
09a2a31d2b Refactor evaluation type handling in CompareCriteria and update MetricMonitorOptions interface 2024-12-16 16:14:23 +00:00
Simon Larsen
5fd60094ab Add monitorStep parameter to MetricMonitorCriteria and enhance metric alias handling 2024-12-16 15:59:59 +00:00
Simon Larsen
0cfc9fbb56 Improve data handling and code readability in various components 2024-12-16 15:38:29 +00:00
Simon Larsen
2fc6200c47 Update chartCssClass in MetricMonitor components for consistent styling 2024-12-16 11:11:51 +00:00
Simon Larsen
437e5e7004 Enhance MetricMonitorPreview with rolling time selection and modal for improved user interaction 2024-12-16 11:08:40 +00:00
Simon Larsen
22e2c1f25c Uncomment Metrics monitor type in MonitorTypeHelper for clarity 2024-12-16 10:34:30 +00:00
Simon Larsen
4799ed0434 Fix typo in alert configuration key for consistency in Helm chart 2024-12-16 10:26:18 +00:00
Simon Larsen
0848dfc5d6 Refactor EnvironmentConfig and StatusPageService for improved readability and consistency 2024-12-16 10:25:26 +00:00
Simon Larsen
88cf2c3cb0 Add configuration options to disable automatic alert and incident creation 2024-12-16 09:57:24 +00:00
Simon Larsen
ca3855d109 Remove commented-out Metrics monitor type from MonitorTypeHelper for cleaner code 2024-12-13 15:55:52 +00:00
Simon Larsen
36570f3944 Refactor APIRequestCriteria to improve readability of response code check 2024-12-13 14:09:23 +00:00
Simon Larsen
df10a1900d Update APIRequestCriteria to include responseCode check for ResponseStatusCode validation 2024-12-13 14:06:43 +00:00
Simon Larsen
eca3408598 Update APIResponse interface to allow statusCode to be undefined for better error handling 2024-12-13 14:04:57 +00:00
Simon Larsen
9d1a2c40c7 Refactor MetricMonitorStepForm and MetricView to optimize state management and enhance data handling 2024-12-12 13:57:46 +00:00
Simon Larsen
cd58b72a9c Refactor MetricMonitorStepForm to eliminate unnecessary state management and streamline onChange handling 2024-12-12 13:17:00 +00:00
Simon Larsen
ceead6eaba Refactor StartAndEndDate and CriteriaFilter components for improved readability and consistency in type usage 2024-12-12 13:02:29 +00:00
Simon Larsen
45a665b004 Refactor DateFilter and MetricView components for consistency in value prop usage; improve formatting in various files 2024-12-12 12:58:20 +00:00
Simon Larsen
2dd1cd8453 Update chartCssClass for improved styling in MetricMonitorStepForm 2024-12-12 12:03:54 +00:00
Simon Larsen
8152a7f7ea Add hideCardInCharts prop and chartCssClass for enhanced styling in MetricMonitorStepForm 2024-12-12 12:02:09 +00:00
Simon Larsen
55d962eed7 Add chartCssClass prop to ChartGroup, MetricCharts, and MetricView for customizable styling 2024-12-12 11:55:48 +00:00
Simon Larsen
ebf5c83358 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-12-12 11:28:57 +00:00
Simon Larsen
69e5fba5ff Add monitorStep prop to various components for improved data handling in monitoring forms 2024-12-12 11:15:00 +00:00
Simon Larsen
139ee62106 Add FieldLabelElement for metric selection in MetricMonitorStepForm 2024-12-12 10:36:47 +00:00
Simon Larsen
2d89431dc1 Merge pull request #1765 from ThoSt81/patch-1
Update SubscribedToStatusPage.hbs
2024-12-12 10:29:07 +00:00
ThoSt
d506e658f0 Update SubscribedToStatusPage.hbs
Remove InfoBlock which is identical to EmailTitle and thus messing up the template when send to the new subscriber.
2024-12-11 15:49:42 +01:00
Simon Larsen
180d02c53d Refactor MonitorMetrics and MetricExplorer components to streamline state management with MetricViewData and improve code readability 2024-12-11 14:01:31 +00:00
Simon Larsen
e500886b12 Refactor MetricMonitor components to utilize MetricViewData for improved state management and data handling 2024-12-11 13:57:15 +00:00
Simon Larsen
7f7bcbc0a3 Add FieldLabelElement for time range selection and refactor MetricView data handling in MetricExplorer 2024-12-11 13:51:43 +00:00
Simon Larsen
397231f1df Refactor MetricMonitorCriteria to improve type safety and enhance alias handling in data processing 2024-12-10 22:44:58 +00:00
Simon Larsen
f575afa151 Enhance MetricMonitorCriteria to support metric alias handling and improve data processing logic 2024-12-10 22:38:14 +00:00
Simon Larsen
b26cf4e876 Enhance Metric Monitor functionality by introducing MetricMonitorCriteria, updating MetricMonitorResponse, and refining telemetry monitoring logic 2024-12-10 19:37:24 +00:00
Simon Larsen
450488eb4f Refactor code for improved readability and consistency across Monitor components 2024-12-10 14:37:31 +00:00
Simon Larsen
14d3228786 Add Metric Monitor functionality with Rolling Time selection and preview 2024-12-10 14:32:54 +00:00
Simon Larsen
811fd24cd5 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-12-10 10:25:21 +00:00
Simon Larsen
098fb5be78 Merge branch 'metrics-monitor' 2024-12-10 10:25:10 +00:00
Simon Larsen
837d065b81 Merge pull request #1761 from WillDaSilva/patch-1
Remove trailing whitespace in `fluentbit.md`
2024-12-10 10:16:09 +00:00
Simon Larsen
fe2b001c6d Improve error handling in OTelIngest API to provide clearer feedback on failures 2024-12-09 18:23:17 +00:00
Simon Larsen
b08c047da7 Add early empty success response to prevent timeouts in OTelIngest API 2024-12-09 18:12:50 +00:00
Simon Larsen
79ff8b1f82 Enable debug logging in telemetry configuration for improved diagnostics 2024-12-09 17:59:58 +00:00
Simon Larsen
7da47d6e16 Refactor response handling in OTelIngest API to ensure early success response is sent consistently 2024-12-09 17:08:50 +00:00
Simon Larsen
6e6f3c6c38 Add MetricMonitor support with criteria checks and response type 2024-12-09 17:03:24 +00:00
Simon Larsen
b3b3d9a0b7 Merge branch 'master' into metrics-monitor 2024-12-09 16:19:26 +00:00
Simon Larsen
16f0fe145a Enhance probe monitoring by introducing configurable retry limit and updating logic 2024-12-09 16:18:43 +00:00
Simon Larsen
eea7209aaf Remove unused imports and clean up whitespace in OTelIngest API 2024-12-09 15:38:51 +00:00
Simon Larsen
c4c93f1cc5 Refactor error handling in data processing module for improved clarity and maintainability 2024-12-09 15:34:25 +00:00
Simon Larsen
0d19f56519 Refactor monitor type helper methods and update side menu to reflect changes in metrics handling 2024-12-09 12:58:22 +00:00
Simon Larsen
85d0ded200 Remove commented-out telemetry indexing and billing logic from OTelIngest API 2024-12-09 12:52:27 +00:00
Simon Larsen
c5134f0dd7 Add default value for PROBE_MONITOR_RETRY_LIMIT in probe.yaml and update values.yaml 2024-12-09 10:32:55 +00:00
Simon Larsen
9e117f34d4 Add PROBE_MONITOR_RETRY_LIMIT environment variable and update monitor retry logic 2024-12-09 10:28:22 +00:00
Will Da Silva
72f994d079 Remove trailing whitespace in fluentbit.md 2024-12-06 19:31:16 -05:00
Simon Larsen
4a6edfa660 Enhance logging for mutex acquisition and release in Monitor API 2024-12-06 17:43:52 +00:00
Simon Larsen
a20c05adb2 Merge branch 'master' into release 2024-12-06 17:39:33 +00:00
Simon Larsen
a286aba432 Refactor Semaphore class to streamline lockOptions initialization 2024-12-06 17:39:12 +00:00
Simon Larsen
a3f1302e37 Add lockTimeout and acquireTimeout options in Monitor API semaphore 2024-12-06 17:36:17 +00:00
Simon Larsen
9393388cc5 Add acquireTimeout option and improve lock options in Semaphore class 2024-12-06 17:34:21 +00:00
Simon Larsen
d249fe16d9 Add Fluent Bit integration documentation and image tiles to Telemetry section 2024-12-06 16:33:11 +00:00
Simon Larsen
7f6223f4c8 Remove debugger statement and improve code formatting in telemetry ingestion 2024-12-06 12:04:14 +00:00
Simon Larsen
dc5e2c0d40 Update Fluent Bit documentation and configuration for OneUptime telemetry ingestion 2024-12-06 11:58:40 +00:00
Simon Larsen
26f6a14e93 Update OpenTelemetry configuration in Fluent Bit to use new host and secure settings 2024-12-05 18:21:53 +00:00
Simon Larsen
588de5ad27 Add Fluent Bit documentation and update configuration for telemetry ingestion 2024-12-05 18:06:23 +00:00
Simon Larsen
8734938a82 Enhance telemetry configuration in Fluent Bit and update OpenTelemetry request handling 2024-12-05 17:55:59 +00:00
Simon Larsen
06e7228041 Add HTTP input to Fluent Bit configuration and expose port 8889 for telemetry ingestion 2024-12-05 14:43:39 +00:00
Simon Larsen
38ad431b17 Update Fluent Bit Docker configuration and remove obsolete YAML file 2024-12-04 20:09:16 +00:00
Simon Larsen
e0f5d8f1f2 Add Fluent Bit configuration and update probe intervals in Helm chart 2024-12-04 19:23:59 +00:00
Simon Larsen
e947d21060 Add random sleep interval to FetchList worker to reduce server load 2024-12-04 15:57:02 +00:00
Simon Larsen
41d347a1a7 Increase Node.js memory limit in start script for improved performance 2024-12-04 13:59:32 +00:00
Simon Larsen
5dc6ab6bb2 Update Alert and Incident metric type strings to use hyphens for consistency 2024-12-04 13:23:16 +00:00
Simon Larsen
3492e54a9b Refactor error logging and improve code formatting in AlertStateTimelineService and IncidentService 2024-12-04 13:12:49 +00:00
Simon Larsen
adf92f3dc9 Add Alert and Incident metric types, enhance Metric model, and improve error logging in services 2024-12-04 13:02:17 +00:00
Simon Larsen
02b9f77e7c Add new service types to Metric model and clean up IncidentService 2024-12-04 11:35:25 +00:00
Simon Larsen
396f435755 Add cron jobs to delete incident and alert metrics older than 180 days 2024-12-04 11:16:53 +00:00
Simon Larsen
5796db03f9 Add Incident and Alert service types to Metric model 2024-12-04 11:03:16 +00:00
Simon Larsen
4029d72967 Send early empty success response in OTelIngest to prevent timeouts 2024-12-04 10:39:54 +00:00
Simon Larsen
8d2cf500a0 Update OpenTelemetry endpoint in documentation for accuracy 2024-12-04 10:34:01 +00:00
Simon Larsen
5bfc954076 Refactor isSaving initialization in DashboardToolbar for clearer logic 2024-12-03 18:07:44 +00:00
Simon Larsen
769f468273 Add Loader component to DashboardToolbar for improved saving feedback 2024-12-03 18:04:21 +00:00
Simon Larsen
8d75128603 Add debug logging for updated items in DatabaseService and improve ObjectID equality check 2024-12-03 17:59:16 +00:00
Simon Larsen
ba4795e4b3 Serialize dashboardViewConfig in DashboardViewer for consistent data handling 2024-12-03 17:43:53 +00:00
Simon Larsen
65f9f7c830 Fix key assignment in MoreMenuItem to ensure unique keys for list items 2024-12-03 17:21:28 +00:00
Simon Larsen
99e56f9312 Fix mouse event coordinates in DashboardBaseComponent for accurate positioning 2024-12-03 17:14:36 +00:00
Simon Larsen
b380e6d770 Refactor ConfirmModal and DashboardToolbar for improved code readability and consistency 2024-12-03 16:36:02 +00:00
Simon Larsen
9d0add605d Add closeButtonText prop to modal components; implement confirmation modal for unsaved changes in DashboardToolbar 2024-12-03 16:31:32 +00:00
Simon Larsen
d4737841ce Enhance DashboardChartComponent to improve error handling and display an icon on error; refactor metric query configuration for better readability 2024-12-03 16:25:11 +00:00
Simon Larsen
d6f9971cb6 Refactor DashboardChartComponent and DashboardValueComponent for improved readability; add unit display in DashboardValueComponent 2024-12-03 14:31:22 +00:00
Simon Larsen
8e4733b72f Refactor Dashboard components and BasicForm for improved state management and code readability 2024-12-03 14:18:35 +00:00
Simon Larsen
07c387289a Enhance BasicForm and ArgumentsForm to support dynamic values; update Dashboard components to use ComponentLoader for improved loading state handling 2024-12-03 13:57:05 +00:00
Simon Larsen
956f786d1a Merge branch 'master' of github.com:OneUptime/oneuptime 2024-12-03 13:15:32 +00:00
Simon Larsen
56b2fbfb77 Refactor DashboardTextComponent and DashboardToolbar to improve layout and remove fullscreen state management; enhance DashboardViewer for better fullscreen handling 2024-12-03 13:15:30 +00:00
Simon Larsen
bba67afc36 Merge pull request #1758 from golyalpha/patch-1
Fix alert name links opening invalid/broken page
2024-12-03 13:11:56 +00:00
golyalpha
d1dd0d7774 Update Alert.tsx
Fix route on Alert name link in list of alerts
2024-12-02 21:06:17 +01:00
Simon Larsen
c7c6a54155 Enhance DashboardValueComponent and DashboardTextComponent for improved layout and error handling; add metric query configuration and adjust title height calculation 2024-12-02 18:29:10 +00:00
Simon Larsen
12fc9863d2 Refactor DashboardTextComponent and DashboardValueComponent to use consistent decimal notation for height calculations, improving code clarity 2024-12-02 18:16:49 +00:00
Simon Larsen
4ec718a966 Update DashboardValueComponent to dynamically set font sizes based on component height for improved text display 2024-12-02 18:14:50 +00:00
Simon Larsen
91b2a6e44f Update DashboardTextComponent to adjust text height calculation and apply it as font size for better text display 2024-12-02 18:13:11 +00:00
Simon Larsen
aa2e79bd82 Refactor MetricAlias component layout for improved responsiveness; adjust input widths for better alignment 2024-12-02 18:06:58 +00:00
Simon Larsen
cc62b26002 Refactor DashboardChartComponent and related components for improved code readability and maintainability; add optional title and description properties for enhanced chart configuration 2024-12-02 18:03:38 +00:00
Simon Larsen
6113b10c74 Update DashboardChartComponent to support dynamic legend and legendUnit properties for improved chart configuration 2024-12-02 18:00:57 +00:00
Simon Larsen
52a952f41e Add legendUnit property to DashboardChartComponent and MetricExplorer for enhanced chart configuration 2024-12-02 17:57:34 +00:00
Simon Larsen
257b4283e1 Add legend and legendUnit properties to MetricAliasData; update DashboardChartComponent and related components for legend display and configuration 2024-12-02 17:55:39 +00:00
Simon Larsen
31b4eba73f Update MetricAliasData to allow optional properties; enhance DashboardChartComponent to include chart title and description 2024-12-02 17:46:28 +00:00
Simon Larsen
0dec6255f6 Add optional properties for chart customization in DashboardChartComponent; enhance error handling in Dashboard components 2024-12-02 17:38:00 +00:00
Simon Larsen
baabf84951 Refactor Dashboard components for improved readability; update DashboardTextComponent to dynamically set height and fix formatting in DashboardValueComponent 2024-12-02 17:16:12 +00:00
Simon Larsen
359c36e023 Refactor MetricCharts and LineChart components for improved readability; update DashboardChartComponent to handle dynamic height and adjust DashboardValueComponent for new metric query configuration 2024-12-02 16:37:32 +00:00
Simon Larsen
285fe7f524 Add heightInPx prop to ChartGroup, LineChart, and MetricCharts for dynamic height adjustment 2024-12-02 15:57:50 +00:00
Simon Larsen
093e8e5591 Refactor Dashboard components for improved readability and add hideCard prop to ChartGroup and MetricCharts 2024-12-02 15:42:34 +00:00
Simon Larsen
73ce957b57 Enhance MonitorResourceUtil to include monitorName in attributes and improve error handling in Dashboard components 2024-12-02 15:33:37 +00:00
Simon Larsen
5dbb80457a Fix typos in data retention references across multiple views 2024-11-30 19:02:26 +00:00
Simon Larsen
d53b2d0e1c Add dashboardStartAndEndDate prop to DashboardCanvas and DashboardViewer components 2024-11-29 19:20:53 +00:00
Simon Larsen
c4256a0dea Refactor Dashboard components for improved code consistency and readability 2024-11-29 19:17:47 +00:00
Simon Larsen
b8fc933acb Add start and end date handling to Dashboard components and implement metric result fetching 2024-11-29 19:03:34 +00:00
Simon Larsen
45d447bf2c Add ColorSwatch enum and update Dashboard date range handling 2024-11-29 18:13:58 +00:00
Simon Larsen
a0400be8cd Add start and end date selection functionality to Dashboard components 2024-11-29 17:29:12 +00:00
Simon Larsen
3688381d4a Add max height calculation to DashboardCanvas for improved rendering logic 2024-11-29 13:03:31 +00:00
Simon Larsen
1f5287c2e6 Refactor DuplicateModel component in Settings page for improved readability and consistency 2024-11-29 12:54:17 +00:00
Simon Larsen
3e97d6bba1 Add DuplicateModel component to Settings page for dashboard duplication functionality 2024-11-29 12:50:25 +00:00
Simon Larsen
32c0cbc4ad Add Settings page and update routing and breadcrumbs for dashboard 2024-11-29 12:47:34 +00:00
Simon Larsen
90f267105f Add MetricViewData interface and implement MetricCharts component for enhanced metrics visualization 2024-11-28 21:43:38 +00:00
Simon Larsen
eaa9a5f1a0 Make metricAliasData optional in MetricView component for improved safety and handling 2024-11-28 14:11:13 +00:00
Simon Larsen
70da661041 Update MetricQueryConfigData to make metricAliasData optional and refactor ArgumentsForm and MetricQueryConfig components for improved type handling and conditional rendering 2024-11-28 13:27:31 +00:00
Simon Larsen
b307a74319 Refactor dashboard component argument types and update metrics handling in DashboardCanvas and ComponentSettingsSideOver 2024-11-28 13:16:44 +00:00
Simon Larsen
5c2fa28fff Refactor dashboard components to utilize JSONFunctions for deserialization of dashboard view configurations 2024-11-28 11:50:15 +00:00
Simon Larsen
2f8495e5b5 Add telemetry services loading and filtering to TraceTable component 2024-11-27 13:19:15 +00:00
Simon Larsen
d3d9c46812 Add exception handling to SpanViewer component with detailed display of exceptions 2024-11-27 13:05:59 +00:00
Simon Larsen
9e50d068db Enhance Clickhouse connection handling with improved error responses and status checks 2024-11-27 11:24:30 +00:00
Simon Larsen
7232a3142c Remove unused APIException import from CRUD components for cleaner code 2024-11-27 10:43:19 +00:00
Simon Larsen
a1ca2e3f37 Refactor API component error handling to consistently use errorPort and return detailed error messages 2024-11-27 10:39:40 +00:00
Simon Larsen
a5d993b999 Remove unused load distribution logic in Monitor API 2024-11-27 10:24:36 +00:00
Simon Larsen
854be1ddeb Swap debug ports for OpenTelemetryIngest and Fluent Ingest configurations in launch.json 2024-11-26 17:55:10 +00:00
Simon Larsen
fe5b93f66e Add Project ID field to APIKeyView for enhanced project tracking 2024-11-26 17:09:31 +00:00
Simon Larsen
f259ddecd5 Update TraceTable terminology from "Trace" to "Span" for consistency in terminology 2024-11-26 17:07:52 +00:00
Simon Larsen
680be0e468 Add conditional fetching of aggregated results in MetricView based on hideQueryElements prop 2024-11-26 16:38:49 +00:00
Simon Larsen
488a2b0b57 Add modulo function to QueryHelper and random number generator to NumberUtil for load distribution in monitor fetching 2024-11-26 15:38:00 +00:00
Simon Larsen
e0871e6b16 Remove unnecessary blank lines in QueryHelper class for improved code clarity 2024-11-26 14:05:26 +00:00
Simon Larsen
ab5acdef09 Refactor XAxis precision methods for improved date rounding and remove random sorting method from QueryHelper 2024-11-26 14:04:30 +00:00
Simon Larsen
002c23b2a5 Disable Clickhouse status check in InfrastructureStatus for improved reliability 2024-11-26 13:17:10 +00:00
Simon Larsen
b10134fb30 Add random sorting method to QueryHelper and apply it in Monitor probe fetching 2024-11-26 09:04:19 +00:00
Simon Larsen
93027ec0ae Refactor string to number conversion in AnalyticsDatabaseService for improved readability 2024-11-25 19:10:36 +00:00
Simon Larsen
481b09531f Convert string values to numbers in AnalyticsDatabaseService for aggregate column processing 2024-11-25 19:05:20 +00:00
Simon Larsen
4da1dd3f6b Refactor incomingRequest initialization in CheckHeartbeat for clarity 2024-11-25 18:29:14 +00:00
Simon Larsen
661d44d6b0 Add incomingMonitorRequest to CheckHeartbeat and streamline request initialization 2024-11-25 18:28:30 +00:00
Simon Larsen
d6dacb6493 Update TelemetryException model to use VeryLongText type for message fields and add migration for database schema changes 2024-11-25 16:58:08 +00:00
Simon Larsen
0ad5ee5997 Prevent owner notification for the first monitor status timeline entry 2024-11-25 15:05:01 +00:00
Simon Larsen
5ad8f00388 Refactor validation messages for improved formatting and readability 2024-11-25 14:32:58 +00:00
Simon Larsen
450311de3c Refactor validation messages for improved readability and add visibility check for field validation 2024-11-25 14:32:25 +00:00
Simon Larsen
1bc4f07fa3 Update features table to include new items and adjust existing entries 2024-11-25 14:05:58 +00:00
Simon Larsen
d091c93bfc Increase default navigation timeout for status checks and add new probe ingest tests 2024-11-25 14:00:53 +00:00
Simon Larsen
2ff9b47f1c Refactor retryCount initialization across multiple modules for consistency 2024-11-25 13:53:43 +00:00
Simon Larsen
6b470e671f Implement retry mechanism for infrastructure status checks across multiple modules 2024-11-25 13:49:49 +00:00
Simon Larsen
14c9174e24 Add debug logging for database operations and update feature table with new items 2024-11-25 13:08:47 +00:00
Simon Larsen
e4beb13982 Increase timeoutSeconds for liveness and readiness probes in values.yaml 2024-11-23 07:48:29 +00:00
Simon Larsen
2b006e1765 Update Fluentd configuration with new endpoint and token for production environment 2024-11-22 18:41:37 +00:00
Simon Larsen
f45c7f8d30 Add Nginx location for incoming-request-ingest with proxy settings 2024-11-22 18:24:47 +00:00
Simon Larsen
e3a2f95fc2 Add Nginx locations for fluent-ingest and open-telemetry-ingest with proxy settings 2024-11-22 18:18:11 +00:00
Simon Larsen
d27c161665 Add OFF log level to ConfigLogLevel enum and update documentation in values.yaml 2024-11-22 13:00:06 +00:00
Simon Larsen
b9d6a69f00 Fix typo in upstream block name for incoming requests in Nginx configuration 2024-11-22 12:08:08 +00:00
Simon Larsen
fac334d58a Remove probe port configuration and update related references in Helm chart and Docker setup 2024-11-22 11:37:52 +00:00
Simon Larsen
a4913cc5bf Rename host option to url in ClickhouseConfig for clarity 2024-11-22 10:32:15 +00:00
Simon Larsen
0ad1a34e10 Remove unused import for EJS in FluentIngest index file 2024-11-22 10:28:52 +00:00
Simon Larsen
325fa0eb7a Add SERVER_OPEN_TELEMETRY_INGEST_HOSTNAME to Helm template and update tag replacement in change-release-to-test-tag script 2024-11-22 10:23:56 +00:00
Simon Larsen
c02c1e6808 Update test-release workflow to replace deprecated Docker image deployment step 2024-11-22 10:08:58 +00:00
Simon Larsen
96a4a17320 Remove probe-ingest Docker image deployment steps from test-release workflow 2024-11-21 20:10:19 +00:00
Simon Larsen
23c169c6a3 Update Helm templates to use consistent naming for replicaCount across ingest services 2024-11-21 19:58:47 +00:00
Simon Larsen
6c4a4cad50 Fix replicaCount reference in probe-ingest Helm template 2024-11-21 19:11:27 +00:00
Simon Larsen
34c1af08db Fix import path for FluentIngestAPI in Index.ts 2024-11-21 19:05:12 +00:00
Simon Larsen
128aec9869 Remove protobufjs dependency from ProbeIngest and IncomingRequestIngest; update probe.yaml for consistent service URL structure 2024-11-21 18:13:42 +00:00
Simon Larsen
4fc2029a61 Add backward compatibility for /ingestor route in Nginx and ProbeIngest; update Probe configuration for new URL structure 2024-11-21 17:53:35 +00:00
Simon Larsen
815ae7161d Rename Ingestor to ProbeIngest; update configurations, routes, and Docker support; add new request types and workflows 2024-11-21 17:18:22 +00:00
Simon Larsen
3a1f5c7120 Refactor OpenTelemetry Ingest Dockerfile and configuration; update environment variables and docker-compose for new service integration 2024-11-21 17:08:35 +00:00
Simon Larsen
eec51342de Add configuration files for OpenTelemetry Ingest, including .gitignore, .dockerignore, and nodemon.json; refactor code for consistency and clarity 2024-11-21 16:42:29 +00:00
Simon Larsen
945cef653c Add Incoming Request Ingest service with configuration, Docker support, and tests 2024-11-21 14:41:37 +00:00
Simon Larsen
93154aabc7 Remove FluentIngestAPI from Ingestor routes 2024-11-21 13:36:29 +00:00
Simon Larsen
9244e49e6b Add Fluent Ingest service with configuration, Docker support, and tests 2024-11-21 13:31:11 +00:00
Simon Larsen
74e43f0526 Add debug logging for Clickhouse connection status and fix indentation in nginx.yaml 2024-11-21 12:34:57 +00:00
Simon Larsen
1fba734fd0 Refactor health check configurations to use structured probes in values.yaml and templates 2024-11-21 12:11:17 +00:00
Simon Larsen
197e4e67e0 Merge pull request #1750 from golyalpha/master
Add startupProbe to deployments with healthchecks
2024-11-21 10:56:58 +00:00
Radek Goláň jr.
02afbb19be add startupProbe to deployments with healtchecks 2024-11-21 09:00:27 +01:00
Simon Larsen
972e6cb98f Add logging for infrastructure status checks in Status.ts 2024-11-20 21:33:32 +00:00
Simon Larsen
b14f918d59 Update ClickHouse dependency version to 6.3.2 in Chart.yaml and Chart.lock 2024-11-20 18:58:02 +00:00
Simon Larsen
c05d4a0eea Update live check method in StatusAPI to use liveCheck instead of readyCheck 2024-11-20 18:56:07 +00:00
Simon Larsen
3732a5c95f Remove unnecessary blank line in ProbeAuthorization class 2024-11-20 17:33:40 +00:00
Simon Larsen
1e0f6ff558 Add comment to explain URI encoding in getClusterKey method 2024-11-20 15:29:36 +00:00
Simon Larsen
6a361e5b87 Remove unused cluster key retrieval method from ProbeAuthorization middleware 2024-11-20 15:28:00 +00:00
Simon Larsen
c94ac75a6f Refactor ClusterKeyAuthorization to use class reference for cluster key retrieval 2024-11-20 15:14:34 +00:00
Simon Larsen
b49e40780a Remove unused ObjectID import from ClusterKeyAuthorization middleware 2024-11-20 14:29:48 +00:00
Simon Larsen
dd01fa0a3d Refactor ClusterKeyAuthorization to use a dedicated method for cluster key retrieval and simplify type handling 2024-11-20 14:26:36 +00:00
Simon Larsen
a2218b01d0 Add resourcesPreset configuration to Clickhouse settings in values.yaml 2024-11-20 08:36:35 +00:00
Simon Larsen
8d9d83d679 Downgrade Clickhouse dependency version to 6.1.0 in Chart.yaml and Chart.lock 2024-11-19 17:51:46 +00:00
Simon Larsen
546c74297f Consolidate Clickhouse client imports for improved readability 2024-11-19 17:21:16 +00:00
Simon Larsen
9fc1e73fd3 Add additional Clickhouse service ports for TCP, MySQL, and PostgreSQL 2024-11-19 13:49:32 +00:00
Simon Larsen
64e713f503 Update Clickhouse dependency version to 6.3.2 in Chart.yaml and Chart.lock 2024-11-19 11:26:01 +00:00
Simon Larsen
f254209410 Refactor AnalyticsDatabaseService and ClickhouseDatabase imports for improved clarity 2024-11-18 19:54:30 +00:00
Simon Larsen
2f738f8b58 Refactor Clickhouse configuration imports for improved clarity and type usage 2024-11-18 18:57:36 +00:00
Simon Larsen
e2da9b5bc3 Update @clickhouse/client and @clickhouse/client-common to version 1.8.1 2024-11-18 18:51:45 +00:00
Simon Larsen
04bfaf754a Add health check endpoints for global cache, analytics database, and database 2024-11-18 18:42:31 +00:00
Simon Larsen
ab328b0987 Simplify EmailTitle helper usage in SubscriberIncidentStateChanged template 2024-11-18 15:08:17 +00:00
Simon Larsen
521844a5ff Add liveness and readiness probe configuration options to Helm chart templates 2024-11-18 15:07:51 +00:00
Simon Larsen
c4096e7000 Refactor ArgumentsForm, DashboardView, and DashboardToolbar components for improved readability and consistency 2024-11-15 17:14:56 +00:00
Simon Larsen
8afe8cf7fb Comment out NavBarItem for Dashboards in NavBar component 2024-11-15 17:13:52 +00:00
Simon Larsen
fa8b52fa83 Add DashboardViewConfig type and enhance dashboard saving functionality with loading state 2024-11-15 17:13:18 +00:00
Simon Larsen
a8baa76096 Refactor Dashboard components by renaming and replacing DashboardUnit with BlankDashboardUnit for improved clarity and structure 2024-11-15 14:54:09 +00:00
Simon Larsen
8d5cef72b3 Refactor formatting and spacing in Dashboard components for improved readability 2024-11-15 14:07:51 +00:00
Simon Larsen
ef0f0ffa0b Refactor SideOver and ComponentSettingsSideOver components for improved structure and readability 2024-11-15 14:04:12 +00:00
Simon Larsen
eef4e19dc9 Add component deletion functionality and improve selection handling in Dashboard components 2024-11-15 12:45:04 +00:00
Simon Larsen
5af41891dc Enhance DashboardCanvas and DashboardViewer components with selection handling and state management 2024-11-15 12:08:37 +00:00
Simon Larsen
4539b9d381 Update permissions for ScheduledMaintenanceTemplate to include additional roles for update access 2024-11-15 11:46:32 +00:00
Simon Larsen
c1aadd7ce7 Comment out NavBarItem for "Dashboards" in the DashboardNavbar component 2024-11-14 18:27:06 +00:00
Simon Larsen
3b76b92fcb Refactor interface definitions and formatting for improved consistency and readability 2024-11-14 18:21:55 +00:00
Simon Larsen
fe0dc51bef Add DashboardComponentType enum and refactor dashboard component interfaces for improved type safety 2024-11-14 18:10:03 +00:00
Simon Larsen
e279da47bf Refactor dashboard component interfaces and update argument structures for improved configuration 2024-11-14 17:50:36 +00:00
Simon Larsen
5d93000484 Add new metric-related interfaces and update component props for enhanced metrics configuration 2024-11-14 15:21:26 +00:00
Simon Larsen
b826a78700 Add minimum width and height properties to dashboard components for better layout control 2024-11-14 12:47:48 +00:00
Simon Larsen
eded26d92c Add support for HEAD requests in WebsiteMonitor and update request handling 2024-11-13 16:44:42 +00:00
Simon Larsen
517d00dc9a Integrate Playwright for browser automation and add viewport handling in SyntheticMonitor 2024-11-13 16:13:46 +00:00
Simon Larsen
96752f1473 Update aggregation intervals and refactor MetricView component for improved date handling and performance 2024-11-13 13:04:44 +00:00
Simon Larsen
bbc2e306f4 Add waitUntil option to page.setContent for improved reliability in screenshot capture 2024-11-13 12:14:26 +00:00
Simon Larsen
03e063c35b Merge pull request #1746 from OneUptime/take-screenshot-on-incident-create
Take screenshot on incident create
2024-11-13 12:07:36 +00:00
Simon Larsen
4c6c1381c8 Remove unnecessary blank line in MonitorIncident class for improved code readability 2024-11-13 12:07:12 +00:00
Simon Larsen
4814451277 Remove unused imports and clean up screenshot handling in MonitorResourceUtil 2024-11-13 12:00:51 +00:00
Simon Larsen
0c7b2ead8c Refactor migration files to drop specific indexes and improve code formatting; add keys to MoreMenuItem components in UI 2024-11-13 11:22:23 +00:00
Simon Larsen
6c6b80d3c8 Remove unused index decorators from IncidentStateTimeline and MonitorStatusTimeline models, and add migrations to drop specific indexes 2024-11-12 18:21:06 +00:00
Simon Larsen
76f9537002 Refactor migration files to improve index management and clean up MonitorIncident and MonitorResource utility classes 2024-11-12 17:47:07 +00:00
Simon Larsen
c0994ff055 Remove unused index decorators from Alert and Incident models, and add new migration files to drop specific indexes 2024-11-12 17:43:23 +00:00
Simon Larsen
86694d9627 Add Playwright dependency and update Dockerfile for installation 2024-11-12 15:17:52 +00:00
Simon Larsen
aa95f89b49 Merge pull request #1745 from Hubelia/fix_typo_certificate_provisioning
Fix typo in certificate provisioning
2024-11-12 14:41:27 +00:00
RegisHubelia
628b971dc9 Fix automatically typo in certificate provisioning currently set to automatiucally 2024-11-12 08:25:03 -05:00
Simon Larsen
ae002c0d88 Add validation for start and end date in MetricView to prevent loading without valid dates 2024-11-12 11:42:25 +00:00
Simon Larsen
a98fc6f784 Add Pill component for enabled/disabled status display in Workflow views 2024-11-11 18:43:46 +00:00
Simon Larsen
5c459eede8 Refactor metric handling by removing MonitorMetricsByMinute references, adding service type to metrics, and implementing a job to delete old monitor metrics 2024-11-11 18:06:31 +00:00
Simon Larsen
d9d2b615d2 Refactor code for consistency by standardizing property names and improving formatting across various components 2024-11-11 17:24:05 +00:00
Simon Larsen
86e6bca5e1 Enhance analytics functionality by adding groupBy support in various models and components 2024-11-11 17:01:35 +00:00
Simon Larsen
7cfff4787c Remove unnecessary whitespace and improve formatting in MonitorMetricType utility 2024-11-11 10:16:48 +00:00
Simon Larsen
491a8f05bc Update monitor metric units for consistency and improve metric view legend handling 2024-11-07 18:36:27 +00:00
Simon Larsen
f67f1a64bd Add utility method to determine aggregation type by monitor metric type 2024-11-07 17:48:35 +00:00
Simon Larsen
a31ef122a3 Refactor MetricFilter component for improved readability in metric name dropdown options 2024-11-07 17:45:34 +00:00
Simon Larsen
0a82d940fd Add MetricNameAndUnit interface and implement metrics view in Monitor section 2024-11-07 17:26:31 +00:00
Simon Larsen
6ec658b9a5 Refactor MonitorMetricsElement component for improved code readability 2024-11-07 15:52:05 +00:00
Simon Larsen
4e8de2303f Refactor database service to handle date columns and update monitor metrics querying logic 2024-11-07 14:55:16 +00:00
Simon Larsen
19625d6cef Implement MonitorMetricsElement component for dynamic metric querying and visualization 2024-11-07 13:16:44 +00:00
Simon Larsen
e346b12011 Add MonitorMetrics component and MonitorMetricType enum for enhanced monitoring capabilities 2024-11-06 17:40:16 +00:00
Simon Larsen
2b11f2f2b8 Add MonitorMetricType enum and update monitor metric naming conventions 2024-11-06 16:58:45 +00:00
Simon Larsen
3fb62cb358 Update Metric model description for clarity on service ID usage 2024-11-06 15:26:57 +00:00
Simon Larsen
108dfaccf8 Remove MonitorMetricsByMinute model and related service and job files 2024-11-06 13:42:25 +00:00
Simon Larsen
eb20a3c9a2 Comment out NavBarItem for "Dashboards" in the navigation bar 2024-11-06 12:23:02 +00:00
Simon Larsen
988d828bb6 Refactor Dashboard components for improved readability and consistency in code formatting 2024-11-06 12:20:37 +00:00
Simon Larsen
7fd0000c68 Update documentation for self-hosting OneUptime with clearer endpoint examples 2024-11-06 11:41:41 +00:00
Simon Larsen
6286653dd4 Enhance DashboardBaseComponent to track component position using state and update on dashboard view changes 2024-11-05 19:42:51 +00:00
Simon Larsen
9690a5897b Refactor Dashboard components to use component IDs instead of full component objects for improved performance and clarity 2024-11-05 14:58:42 +00:00
Simon Larsen
eefac8703d Update DashboardBaseComponent to use event.pageX and event.pageY for accurate position calculations 2024-11-01 17:13:54 +00:00
Simon Larsen
077a3aad3b Refactor DashboardBaseComponent to improve coordinate calculation and ensure new positions remain within dashboard bounds 2024-11-01 16:55:17 +00:00
Simon Larsen
3ae72726b8 Fix DashboardBaseComponent position calculations to ensure new coordinates remain within bounds 2024-11-01 14:32:21 +00:00
Simon Larsen
90c0e42eb1 Refactor DashboardCanvas and DashboardBaseComponent to enhance component positioning and sizing logic 2024-11-01 14:22:13 +00:00
Simon Larsen
8877ce6d12 Refactor Dashboard size calculations and update DashboardTextComponent height 2024-11-01 13:15:31 +00:00
Simon Larsen
1af5dae991 Refactor DashboardBaseComponent to use consistent naming conventions for width and height variables 2024-11-01 10:54:31 +00:00
Simon Larsen
ee49f3e6dd Refactor GetHeightOfDashboardComponent and GetWidthOfDashboardComponent functions 2024-10-31 18:31:45 +00:00
Simon Larsen
8d4b8b7881 Refactor DashboardToolbar component to adjust margins and spacing 2024-10-31 17:21:25 +00:00
Simon Larsen
4626520f62 Refactor DashboardBaseComponent to add full screen functionality and adjust styling 2024-10-31 13:26:32 +00:00
Simon Larsen
7c04569a14 Refactor IconProp enum and add new icons: Bold, Italic, and Underline 2024-10-30 18:45:58 +00:00
Simon Larsen
bd8b1ca909 Refactor Dashboard components and add full screen functionality 2024-10-30 17:40:38 +00:00
Simon Larsen
13dddab5e5 Refactor MonitorTestForm component to adjust margins and spacing 2024-10-30 11:56:28 +00:00
Simon Larsen
771b0e4645 Refactor MonitorTestForm component to adjust margins and spacing 2024-10-29 18:11:02 +00:00
Simon Larsen
d99111b2f9 Refactor MonitorTest table to remove "lastMonitoringLog" column and add "monitorStepProbeResponse" and "isInQueue" columns 2024-10-29 18:04:36 +00:00
Simon Larsen
c2bb44f823 Refactor MonitorTestForm component and add test functionality 2024-10-29 17:55:09 +00:00
Simon Larsen
7ece118acd Refactor MonitorTestService and MonitorTest model 2024-10-29 17:43:36 +00:00
Simon Larsen
9b4ef72682 Refactor MonitorTestService and MonitorTest model 2024-10-29 16:59:07 +00:00
Simon Larsen
25ba824d79 Refactor MonitorResourceUtil and CriteriaFilterUtil to add MonitorTest model 2024-10-29 13:43:10 +00:00
Simon Larsen
9b35836dc8 Refactor MonitorResourceUtil to support ExecutionTime metric in synthetic monitors 2024-10-29 13:19:26 +00:00
Simon Larsen
809f9a38bc Refactor MonitorResourceUtil and MonitorChart components 2024-10-28 14:43:54 +00:00
Simon Larsen
df08f2b188 Refactor MonitorResourceUtil and CriteriaFilterUtil to support ExecutionTime metric 2024-10-28 14:41:59 +00:00
Simon Larsen
9512b9d001 Merge branch 'master' into release 2024-10-28 13:46:58 +00:00
Simon Larsen
995026f65f Refactor StatusPageSubscriberService to remove unnecessary code 2024-10-28 13:46:52 +00:00
Simon Larsen
d619d2afff Refactor StatusPageSubscriberService to fix issue with sending notifications for unsubscribed subscribers 2024-10-28 13:44:49 +00:00
Simon Larsen
1affe3cdda Refactor StatusPageSubscriberService to include event type selection 2024-10-28 13:35:33 +00:00
Simon Larsen
0bee18fa63 Refactor SubscriberSettings component to remove unnecessary code 2024-10-28 13:09:26 +00:00
Simon Larsen
2ad7face9a Refactor StatusPageAPI to allow subscribers to choose event types 2024-10-28 12:53:26 +00:00
Simon Larsen
33604bba3c Refactor SubscriberSettings component to allow subscribers to choose event types 2024-10-28 12:46:16 +00:00
Simon Larsen
9d6c34b796 Refactor StatusPageEventType enum to include new event types 2024-10-28 12:41:24 +00:00
Simon Larsen
052c3040fb Merge branch 'master' into release 2024-10-28 11:52:42 +00:00
Simon Larsen
89804ebbd1 Refactor Dashboard components to include component ID in rendered output 2024-10-28 11:52:19 +00:00
Simon Larsen
e21572af6d Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-10-28 11:44:56 +00:00
Simon Larsen
3865f6cb06 Refactor Markdown class to convert tags > and < to &gt; and &lt; 2024-10-28 11:44:26 +00:00
Simon Larsen
296791ed25 Refactor NavBar component to temporarily comment out unused DashboardNavItem 2024-10-28 10:11:05 +00:00
Simon Larsen
017216b8a6 Refactor DashboardBaseComponent to remove unused event parameters in onDragStart and onDragEnd 2024-10-28 10:07:30 +00:00
Simon Larsen
6fb6329356 Refactor DashboardViewConfigUtil to fix lastRowThatHasComponent calculation 2024-10-28 10:05:57 +00:00
Simon Larsen
477da276b2 Refactor Dashboard components and add new dashboard view 2024-10-25 15:18:23 +01:00
Simon Larsen
dbf90bf114 Refactor Dashboard components and add conditional rendering for empty dashboard 2024-10-25 13:12:17 +01:00
Simon Larsen
d6fa9b3905 Refactor DashboardToolbar to remove unused imports and update props usage 2024-10-25 08:48:17 +01:00
Simon Larsen
95573032e7 Refactor DashboardCanvas to render DashboardBaseComponentElement for each component 2024-10-25 07:57:00 +01:00
Simon Larsen
82699e5276 Refactor DashboardChartComponent to remove unused imports and update file name 2024-10-25 07:52:46 +01:00
Simon Larsen
54b95107c3 Refactor DashboardChartComponent and related components 2024-10-25 07:52:21 +01:00
Simon Larsen
e54b337c45 Refactor DashboardSize to calculate total width of dashboard in rem 2024-10-24 19:12:46 +01:00
Simon Larsen
75ab4bd946 Refactor DashboardViewConfig enum to use explicit types for default height and width 2024-10-24 18:34:31 +01:00
Simon Larsen
b31ffab577 Refactor DashboardComponentType enum to fix casing and add missing newline at end of file 2024-10-24 17:23:34 +01:00
Simon Larsen
8f2da2bdc5 Refactor dashboard component types and add chart, text, and value components 2024-10-24 15:38:13 +01:00
Simon Larsen
6ae31ac0da Refactor canvas and row components to use explicit types for default height and width 2024-10-23 14:54:01 +01:00
Simon Larsen
da22f2ef51 Refactor DashboardMode enum to fix formatting and add missing newline at end of file 2024-10-23 14:48:51 +01:00
Simon Larsen
a882507aff Refactor MoreMenu component to use Button instead of Icon 2024-10-23 14:46:24 +01:00
Simon Larsen
04c74de8e3 Merge pull request #1738 from OneUptime/master
Release
2024-10-23 13:45:33 +01:00
Simon Larsen
f13adebc04 Refactor DashboardSize to fix casing of heightInDashboardUnits property 2024-10-23 13:36:31 +01:00
Simon Larsen
5573d1cd6c Refactor NavBar component to uncomment Dashboards item 2024-10-23 13:09:00 +01:00
Simon Larsen
24d15c98ef Refactor NavBar component to comment out unused code 2024-10-23 13:08:37 +01:00
Simon Larsen
97de3ff6c7 Refactor DashboardService to include DashboardViewConfig 2024-10-23 13:07:47 +01:00
Simon Larsen
7bcecd0a1d Update package dependencies 2024-10-23 12:56:34 +01:00
Simon Larsen
b050dfdc1c Refactor CategoryCheckbox component to remove unnecessary array cloning 2024-10-23 12:56:10 +01:00
Simon Larsen
05a2fe6665 Refactor CRUD permissions to include read access 2024-10-23 12:50:02 +01:00
Simon Larsen
986479e8d5 Refactor DashboardViewConfig to use semicolon instead of comma 2024-10-23 12:45:22 +01:00
Simon Larsen
16fad55f9f Refactor Dashboard model to include DashboardViewConfig 2024-10-23 12:18:15 +01:00
Simon Larsen
4f03f448e8 Add new dashboard components and interfaces 2024-10-23 12:15:00 +01:00
Simon Larsen
f3e72a30d3 Delete unused ServiceDelete component 2024-10-23 11:51:38 +01:00
Simon Larsen
cf319c5afb Add new chart types and dashboard component interfaces 2024-10-23 11:24:13 +01:00
Simon Larsen
3afd4ed5b5 Merge pull request #1734 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-RINtg
Improved comments on /App/FeatureSet/Identity/API/StatusPageSSO.ts
2024-10-22 12:51:20 +01:00
Simon Larsen
00a783acca Merge pull request #1732 from OneUptime/snyk-fix-d8042450b0fd7524c713302d42109ccc
[Snyk] Fix for 1 vulnerabilities
2024-10-21 16:23:26 +01:00
Simon Larsen
3733c99b67 Merge pull request #1736 from fzamperin/master
refactor: change tailwind.js from cdn to serve local
2024-10-21 16:22:55 +01:00
Simon Larsen
e9daf776de fix monitor id on alert table 2024-10-21 16:22:03 +01:00
Fernando Penna
aced5f2124 Merge branch 'OneUptime:master' into master 2024-10-18 16:36:29 -03:00
Fernando Augusto Zamperin Penna
74ff0adefe refactor: adding standalone tailwindjs script on pages instead of cdn 2024-10-18 16:35:48 -03:00
Simon Larsen
4cefa756d6 add not notify on default incident state 2024-10-18 16:41:33 +01:00
Simon Larsen
365e44ebf9 add custom code monitor summary 2024-10-18 16:17:52 +01:00
Simon Larsen
b7d34e878f fix typo 2024-10-18 10:29:10 +01:00
OneUptime Copilot
15b2bf2071 Improved comments on /App/FeatureSet/Identity/API/StatusPageSSO.ts 2024-10-17 01:30:49 +00:00
Simon Larsen
5e85e73c0b add do not follow redirect to form 2024-10-16 18:20:03 +01:00
Simon Larsen
b9b5ca3325 switch base image to ecr 2024-10-16 15:54:57 +01:00
Simon Larsen
d89ee302fd turn do not redirect to false 2024-10-16 15:08:56 +01:00
Simon Larsen
a39db4ffc9 fix timeline on monitor chart 2024-10-16 14:59:01 +01:00
Simon Larsen
bbced15076 do not follow redirects when monitoring 2024-10-16 12:50:24 +01:00
Simon Larsen
1b3cde35f3 add filter views to other tables 2024-10-16 12:02:16 +01:00
Simon Larsen
f1dda4a7b3 fix filter settings 2024-10-15 19:20:46 +01:00
snyk-bot
f50120d19a fix: Common/package.json & Common/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-COOKIE-8163060
2024-10-15 06:03:43 +00:00
Simon Larsen
9d50f77908 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-10-14 20:23:23 +01:00
Simon Larsen
f0a3ddbf2e make UI for table filters nicer 2024-10-14 20:23:20 +01:00
Simon Larsen
8a35eb47e6 Merge pull request #1618 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-nJEHb
[OneUptime Copilot] Improve Comments on /App/Index.ts
2024-10-14 15:33:53 +01:00
Simon Larsen
6ccf8961bf Merge pull request #1701 from OneUptime/snyk-fix-2d8a0a8383cb68645721c65394cd6cd7
[Snyk] Security upgrade node from 22.5 to 22.9
2024-10-14 15:33:08 +01:00
Simon Larsen
fab8ca112b Merge pull request #1707 from OneUptime/snyk-fix-6186b78cb9bdefdfbc19f061c3bc0e9c
[Snyk] Security upgrade node from 22.5 to 22.8
2024-10-14 15:32:39 +01:00
Simon Larsen
bb81d4cf27 Merge branch 'master' into snyk-fix-6186b78cb9bdefdfbc19f061c3bc0e9c 2024-10-14 15:32:31 +01:00
Simon Larsen
931999c39f Merge pull request #1703 from OneUptime/snyk-fix-9272f658e87a4afce4e711dde5615427
[Snyk] Security upgrade express from 4.19.2 to 4.20.0
2024-10-14 15:32:09 +01:00
Simon Larsen
2e1e112b42 Merge pull request #1731 from OneUptime/snyk-fix-6dcbd9c940cb1f77c486fe016548c853
[Snyk] Security upgrade express from 4.19.2 to 4.21.1
2024-10-14 15:31:54 +01:00
snyk-bot
3b7a7c3c49 fix: StatusPage/package.json & StatusPage/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-COOKIE-8163060
2024-10-14 05:38:21 +00:00
Simon Larsen
5d9252d1ff refactor: Enable domain editing and make certificate fields optional in StatusPageDelete component 2024-10-10 12:42:18 +01:00
Simon Larsen
7c85fb4ded refactor: Update status page delete message for custom certificates 2024-10-09 21:06:46 +01:00
Simon Larsen
9e45f4cea9 refactor: Add doNotFollowRedirects option to WebsiteRequest and API
This commit adds the `doNotFollowRedirects` option to the `WebsiteRequest` and `API` classes. When set to `true`, the classes will not follow redirects when making HTTP requests. This is achieved by setting the `maxRedirects` property of the `axiosOptions` object to 0. This change allows for more control over the behavior of HTTP requests and ensures that redirects are not automatically followed.
2024-10-09 20:11:15 +01:00
Simon Larsen
f5d2c61a70 refactor: Add logging for writing custom certificates to disk 2024-10-09 19:31:47 +01:00
Simon Larsen
d072a29cf8 refactor: Add WriteCustomCertsToDiskJob to Nginx/Index.ts and update UptimeUtil to round uptime percentage to specified precision
- The WriteCustomCertsToDiskJob has been added to the Nginx/Index.ts file to handle writing custom certificates to disk.
- The UptimeUtil has been updated to round the uptime percentage to the specified precision.
2024-10-09 19:24:17 +01:00
Simon Larsen
0d262429d9 refactor: Remove unused code in OverviewPageBranding and improve code formatting 2024-10-09 12:09:53 +01:00
Simon Larsen
7b1960f00c refactor: Update UptimeUtil to round uptime percentage to specified precision 2024-10-09 11:59:07 +01:00
Simon Larsen
e253be732f refactor: Update UptimeUtil to round uptime percentage to specified precision
The UptimeUtil class in the Common/Utils/Uptime directory has been updated to include a new method called roundToPrecision. This method takes a number and a precision value and rounds the number to the specified precision. This method is used in the calculateUptimePercentage method to round the uptime percentage to the precision specified in the data.group object.

This change ensures that the uptime percentage is displayed with the correct precision, providing more accurate information to users.

Refactor the UptimeUtil class to include the roundToPrecision method and update the calculateUptimePercentage method to use it.

Fixes #123
2024-10-09 11:39:21 +01:00
Simon Larsen
eaf4193cb0 refactor: Remove unused code in UptimeUtil 2024-10-09 11:23:49 +01:00
Simon Larsen
d7f881c468 fix: Add namespace to Semaphore lock in MonitorStatusTimelineService 2024-10-09 10:46:33 +01:00
Simon Larsen
8270934564 refactor: Improve locking mechanism in Semaphore class
- Modify the Semaphore class in Semaphore.ts to include a namespace parameter in the lock method.
- Update the lockTimeout default value from 1000 to 5000 milliseconds.
- Append the namespace to the key when creating a new Mutex instance.
- Add a try-catch block to handle errors when acquiring and releasing the mutex.
2024-10-09 10:23:50 +01:00
Simon Larsen
8590cfa4c0 feat: add note to alert type 2024-10-08 22:04:51 +01:00
Simon Larsen
09196f397e make alert private note work 2024-10-08 21:12:03 +01:00
Simon Larsen
bc714759bc Merge branch 'monitor-alert' 2024-10-08 20:26:12 +01:00
Simon Larsen
06d0dba258 add monitor alert 2024-10-08 20:26:00 +01:00
Simon Larsen
40cd066473 Merge pull request #1727 from OneUptime/monitor-alert
Monitor Alerts
2024-10-04 16:17:05 -07:00
Simon Larsen
7a38a0d9da fix rule in monitor criteria 2024-10-04 15:54:01 -07:00
Simon Larsen
add11806e0 add default alert severity id 2024-10-04 15:44:43 -07:00
Simon Larsen
97bf26ab03 make header alerts work 2024-10-04 15:34:50 -07:00
Simon Larsen
09955a5ba9 add header group 2024-10-04 11:40:38 -07:00
Simon Larsen
30db4e58ff refactor UI of header alerts 2024-10-04 11:01:36 -07:00
Simon Larsen
7eebd75088 add types to header alert 2024-10-04 09:12:13 -07:00
Simon Larsen
d17b687e03 add alert types to model alert 2024-10-04 09:08:00 -07:00
Simon Larsen
f08dbf6e8f fix issue with monitor group 2024-10-04 08:58:58 -07:00
Simon Larsen
4be7675b74 add active alerts to home page 2024-10-04 08:52:42 -07:00
Simon Larsen
6acb0fb486 add alerts page to monitor groups 2024-10-04 08:31:46 -07:00
Simon Larsen
54cd18896a Refactor SideMenu component in Settings page 2024-10-03 17:12:29 -07:00
Simon Larsen
b5596968a5 Refactor NoteTemplate component to AlertNoteTemplateDetail component 2024-10-03 16:51:18 -07:00
Simon Larsen
25f2d527f8 Refactor AlertNoteTemplateView component and create NoteTemplate component 2024-10-03 16:49:09 -07:00
Simon Larsen
7a052d69d0 Refactor AlertNoteTemplateViews component and create AlertNoteTemplateView component 2024-10-03 16:43:28 -07:00
Simon Larsen
b151eaace7 Refactor AlertNoteTemplateView component and create AlertNoteTemplateViews component 2024-10-03 16:43:18 -07:00
Simon Larsen
8e2336f753 Refactor AlertNoteTemplateViews component and create AlertNoteTemplateView component 2024-10-03 16:42:30 -07:00
Simon Larsen
b0a4bcc5fb Refactor AlertNoteTemplateView and AlertNoteTemplateViews components 2024-10-03 16:42:20 -07:00
Simon Larsen
c8d4bea49b Refactor AlertsTable component and update route in DashboardSideMenu 2024-10-03 16:41:45 -07:00
Simon Larsen
facc564616 Refactor MonitorCriteriaInstance to handle null incidents and alerts 2024-10-03 16:22:48 -07:00
Simon Larsen
591b3ab41c Refactor TableView component and fix indentation 2024-10-03 15:45:00 -07:00
Simon Larsen
cfc1fb47be Refactor MonitorPage and TableView components 2024-10-03 15:25:10 -07:00
Simon Larsen
4a7ac0ffab add monitor alerts 2024-10-03 10:51:41 -07:00
Simon Larsen
bb5a019afd enhance alert permissions and add alert routes 2024-10-03 10:35:10 -07:00
Simon Larsen
b624bd49ee add migration for alerts 2024-10-02 23:05:45 +01:00
Simon Larsen
249a9d991c Merge branch 'table-filters' into monitor-alert 2024-10-02 23:02:38 +01:00
Simon Larsen
49a2ee18a1 add alerts to monitor step 2024-10-02 23:00:47 +01:00
Simon Larsen
11a4f3442d add alert jobs in worker 2024-10-02 22:43:04 +01:00
Simon Larsen
f25f7f1f81 add jobs for alerts 2024-10-02 22:10:37 +01:00
Simon Larsen
d60d9c5a80 add alert mail templates 2024-10-02 22:08:41 +01:00
Simon Larsen
56e8c24449 fix lint 2024-10-02 22:03:40 +01:00
Simon Larsen
bf63badd19 add alerts to nav bar 2024-10-02 22:01:10 +01:00
Simon Larsen
cc1d60af11 add alert change state element 2024-10-02 21:58:56 +01:00
Simon Larsen
e6b47d85d6 add breadcrumbs 2024-10-02 21:48:40 +01:00
Simon Larsen
ae79417fbc add rotue paths to alerts 2024-10-02 21:40:36 +01:00
Simon Larsen
eaed1f8b64 add alert api's to index 2024-10-02 21:27:57 +01:00
Simon Larsen
333b06bc8a add alert services to index 2024-10-02 21:18:21 +01:00
Simon Larsen
cb8cf089c0 add alert services 2024-10-02 21:14:48 +01:00
Simon Larsen
22f5633a32 add default alert severity 2024-10-02 21:06:41 +01:00
Simon Larsen
2f47a3e808 add service for alerts 2024-10-02 21:03:11 +01:00
Simon Larsen
c217eea478 add alert custom fields. 2024-10-02 20:42:09 +01:00
Simon Larsen
1c6a242f3b add owner models 2024-10-02 20:35:05 +01:00
Simon Larsen
7a0cf315fc add alert internal note model 2024-10-02 20:26:05 +01:00
Simon Larsen
e5bb7dccc7 add alert models 2024-10-02 20:23:07 +01:00
Simon Larsen
c789438c62 add migration script for table views 2024-10-02 19:52:32 +01:00
Simon Larsen
bc0e8e323f integrate table view filters with base model table 2024-10-02 19:49:22 +01:00
Simon Larsen
fd15e66f83 add table view save settings. 2024-10-02 19:26:40 +01:00
Simon Larsen
c833bcb37a add table filters model 2024-10-02 15:13:37 +01:00
Simon Larsen
7c941da7df add table view table 2024-10-02 15:07:19 +01:00
Simon Larsen
a2e71afd53 Merge branch 'master' into table-filters 2024-10-01 19:17:23 +01:00
Simon Larsen
84fcb265f6 feat: Add logging to API Post component for better debugging 2024-10-01 19:17:15 +01:00
Simon Larsen
ae493aaee7 feat: Add MoreMenu component and related functionality for enhanced UI interactions 2024-10-01 18:37:26 +01:00
Simon Larsen
cc0670c291 Merge pull request #1725 from fzamperin/master
Refactor changing secret values from data to stringData
2024-10-01 16:51:44 +01:00
Simon Larsen
0733c15363 fix: Improve monitor status retrieval logic in Overview component 2024-10-01 16:50:39 +01:00
Fernando Augusto Zamperin Penna
8727914521 Refactor changing secret values from data to stringData 2024-09-30 14:37:31 -03:00
Simon Larsen
32fa57c63b feat: Implement cascading delete for status page resources in MonitorGroupService and MonitorService 2024-09-30 15:12:51 +01:00
Simon Larsen
346891e85d Merge pull request #1710 from OneUptime/snyk-fix-3c58f351c8ea93b844f014a3967bf666
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.7.3-alpine3.18
2024-09-30 14:56:25 +01:00
Simon Larsen
979e58ebf5 Merge pull request #1721 from OneUptime/snyk-fix-54b494d7ed7c85a9dfde1f7d20790746
[Snyk] Security upgrade node from 22.5 to 22.9
2024-09-30 14:56:12 +01:00
Simon Larsen
e9dfe14801 Merge pull request #1723 from OneUptime/snyk-fix-9beef75d5a122cf47203e4cfdf7811d2
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.7.3-alpine3.18
2024-09-30 14:55:58 +01:00
Simon Larsen
3f8c62747a Merge pull request #1722 from fzamperin/master
Fix externalClickhouse password secret
2024-09-30 13:54:36 +01:00
snyk-bot
9a38675676 fix: Workflow/Dockerfile.tpl to reduce vulnerabilities 2024-09-29 10:42:29 +00:00
Fernando Augusto Zamperin Penna
3d7b118e37 Fix externalClickhouse password secret 2024-09-28 20:42:36 -03:00
snyk-bot
c1beb9c0a0 fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-AOM-7197979
- https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855502
- https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855503
- https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855507
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
2024-09-28 05:43:30 +00:00
Simon Larsen
299707f748 Refactor Realtime class; replace BadDataException with no-op for missing tenantId 2024-09-27 16:51:44 +01:00
Simon Larsen
d48b725f6a Refactor UserAuthorization and Realtime; update mock implementation and add validation for tenantId 2024-09-27 14:21:47 +01:00
Simon Larsen
a0d77ac104 Refactor UserAuthorization test; improve formatting of mock setup for clarity 2024-09-26 17:11:18 +01:00
Simon Larsen
20b5e43b26 Refactor ProjectAuthorization test; remove unused AccessTokenService import for clarity 2024-09-26 17:09:36 +01:00
Simon Larsen
a10a83ad32 Refactor Project and User middleware tests; update method names for clarity and improve mock implementations 2024-09-26 16:15:07 +01:00
Simon Larsen
bf01322fbd Refactor ResourceUtil and UserMiddleware; update type definitions and improve method naming for clarity 2024-09-26 15:59:06 +01:00
Simon Larsen
73fc3e3a08 Refactor MonitorResourceUtil; enhance monitor status timeline logic and improve error handling 2024-09-26 15:51:36 +01:00
Simon Larsen
221f3774de Refactor MonitorResourceUtil; improve code formatting and streamline logging statements 2024-09-26 15:23:23 +01:00
Simon Larsen
b79dafc9df Refactor MonitorResourceUtil; improve error handling and streamline logging statements 2024-09-26 15:18:21 +01:00
Simon Larsen
ed7a693966 Refactor imports in Realtime utility and related components; streamline ModelEventType import paths 2024-09-26 15:13:16 +01:00
Simon Larsen
4982febd74 Refactor code for consistency; remove unnecessary whitespace and improve formatting in multiple files 2024-09-26 15:07:02 +01:00
Simon Larsen
98fe5deba7 Refactor AccessTokenService to utilize UserPermissionUtil for permission retrieval; introduce PermissionNamespace enum 2024-09-26 13:59:28 +01:00
Simon Larsen
54e8a4c224 Refactor UserAuthorization middleware; move access token extraction to Realtime utility 2024-09-26 13:49:38 +01:00
Simon Larsen
7465a44690 Refactor ProjectAuthorization middleware to utilize APIKeyAccessPermission; remove AccessTokenService methods 2024-09-26 13:46:34 +01:00
Simon Larsen
dab51a837d Refactor ProjectAuthorization middleware to use APIKeyAccessPermission; increase concurrency in Workflow feature set 2024-09-26 13:22:23 +01:00
Simon Larsen
003fdb4de4 Add Realtime event types and interfaces; refactor imports for consistency 2024-09-26 13:15:35 +01:00
Simon Larsen
2e5ec1df6f Refactor Realtime event handling and permissions management; introduce EnableRealtimeEventsOn interface 2024-09-26 11:59:11 +01:00
Simon Larsen
8afa3810a1 Enhance logging in Realtime utilities and add ping monitoring check in Register service 2024-09-25 21:50:50 +01:00
Simon Larsen
e9b611b19f Merge branch 'realtime' 2024-09-25 21:08:52 +01:00
Simon Larsen
700dbe2a4d Merge branch 'master' of github.com:OneUptime/oneuptime 2024-09-25 21:08:45 +01:00
Simon Larsen
897aa6044d Refactor model type retrieval functions for improved type safety and clarity 2024-09-25 21:08:36 +01:00
Simon Larsen
3220a0ccb8 Merge pull request #1719 from Johncs2d/patch-1
Wrap Host with Quote so we can have wildcard domain
2024-09-25 21:00:04 +01:00
Simon Larsen
dbad05baa6 Add modelId support in Realtime utilities and enhance cookie handling methods 2024-09-25 20:59:14 +01:00
John Albert
63af60967e Wrap Host with Quote so we can have wildcard domain 2024-09-26 03:57:51 +08:00
Simon Larsen
ca7745cfad Refactor refreshToggle type to string and update related components for consistency 2024-09-25 17:20:38 +01:00
Simon Larsen
61a275ee34 Merge branch 'master' into realtime 2024-09-25 12:59:59 +01:00
Simon Larsen
b35122d575 Quote host values in ingress.yaml for improved YAML compliance 2024-09-25 11:59:17 +01:00
Simon Larsen
34a54fbdfc Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-09-24 18:50:37 +01:00
Simon Larsen
e7bfe6ea47 Enhance logging for API responses to include request details and improve traceability 2024-09-24 18:50:08 +01:00
Simon Larsen
211ac4835a Merge pull request #1715 from OneUptime/createdat-date
Createdat date
2024-09-24 17:31:25 +01:00
Simon Larsen
1577f72b87 Refactor error handling in API requests to improve response clarity and reduce ambiguity in failure messages 2024-09-24 17:27:04 +01:00
Simon Larsen
0afa4f4664 Fix formatting in schema migrations and streamline DeleteDateColumn decorator in DatabaseBaseModel 2024-09-24 17:25:49 +01:00
Simon Larsen
08d3bd535d Add migrations to alter createdAt column type to TIMESTAMP WITH TIME ZONE for File and User tables; update DatabaseBaseModel to use ColumnType.Date for date columns 2024-09-24 17:23:40 +01:00
Simon Larsen
b34b92dec7 Merge pull request #1714 from OneUptime/master
Increase retry attempts to 10 for all monitor types and enhance timeo…
2024-09-24 16:45:36 +01:00
Simon Larsen
51334d8a8c Increase retry attempts to 10 for all monitor types and enhance timeout error handling to provide detailed failure reasons 2024-09-24 16:44:01 +01:00
Simon Larsen
1d0e7826f9 Refactor PortMonitor to resolve with PositiveNumber on ping timeout instead of rejecting with UnableToReachServer 2024-09-24 15:22:17 +01:00
Simon Larsen
e5dcec62fc Fix nodeSelector condition in probe.yaml to prioritize local variable over global value 2024-09-24 13:35:11 +01:00
Simon Larsen
7b02c6dd44 Refactor timeout handling in monitor types to return null instead of failure response 2024-09-23 18:44:46 +01:00
Simon Larsen
063b9b3a43 Refactor sorting criteria in IncidentService and MonitorService to use startsAt instead of createdAt; enhance monitor status timeline logic to prevent duplicate entries 2024-09-23 17:25:23 +01:00
Simon Larsen
2c2bc3a7fa Update foreign key constraint in StatusPage model to use SET NULL on delete and adjust migration files 2024-09-23 16:24:35 +01:00
Simon Larsen
d6530cbaf7 Change onDelete behavior to SET NULL for foreign key in StatusPage model and add migration for the update 2024-09-23 16:15:31 +01:00
Simon Larsen
e6bc276d54 Change onDelete behavior from CASCADE to SET NULL in multiple database models 2024-09-23 15:54:08 +01:00
Simon Larsen
ebcb2e8239 Add paymentProviderInvoiceId to selectMoreFields and update filters in Invoices.tsx 2024-09-23 15:22:58 +01:00
Simon Larsen
9784f1f34c Reduce initial delay seconds for health checks in multiple YAML templates from 300 to 60 2024-09-23 12:25:34 +01:00
Simon Larsen
03cb414ae4 Fix formatting issues in Queue.ts, SendReportsToSubscribers.ts, and Routes.ts 2024-09-22 14:57:49 +01:00
Simon Larsen
3809b4585a Refactor queue handling by removing WorkerNotification and updating job configurations in SendReportsToSubscribers 2024-09-22 14:24:29 +01:00
Simon Larsen
9be007cbda Add WorkerNotification queue and update SendReportsToSubscribers job configuration 2024-09-22 14:15:09 +01:00
Simon Larsen
a0031a868a Disable job import for SendReportsToSubscribers in Routes.ts 2024-09-22 13:39:34 +01:00
Simon Larsen
49ce5c3524 Enable job import for SendReportsToSubscribers in Routes.ts for report distribution 2024-09-22 13:08:46 +01:00
Simon Larsen
0aba3d9071 Enable job imports for ServerMonitor and StatusPageCerts in Routes.ts for enhanced monitoring and certification management 2024-09-22 11:46:46 +01:00
snyk-bot
80d0993aff fix: Home/Dockerfile.tpl to reduce vulnerabilities 2024-09-22 10:34:58 +00:00
Simon Larsen
1ec3bbd6b0 Enable job import for CopilotActions in Routes.ts for improved processing management 2024-09-22 11:32:40 +01:00
Simon Larsen
da1afcd921 Enable job imports for MonitorMetrics and Probe in Routes.ts for enhanced monitoring capabilities 2024-09-22 11:14:30 +01:00
Simon Larsen
3b4fb6bff6 Enable previously commented job imports in Routes.ts for telemetry and monitoring 2024-09-21 21:07:12 +01:00
Simon Larsen
fd8b1a9865 Re-enable user notification job imports in Routes.ts for active execution 2024-09-21 20:39:04 +01:00
Simon Larsen
44c0c7564d Update queue inspector route and enable scheduled maintenance job imports in Routes.ts 2024-09-21 20:06:22 +01:00
Simon Larsen
80eb76108b Comment out unused job imports in Routes.ts for better organization and clarity 2024-09-21 17:35:36 +01:00
Simon Larsen
8669de393f Remove unnecessary blank lines in Routes.ts for improved code readability 2024-09-21 17:06:44 +01:00
Simon Larsen
45b00b3116 Disable runOnStartup for various cron jobs to prevent immediate execution on startup 2024-09-21 17:05:05 +01:00
Simon Larsen
85b33f0f64 Reduce initial delay for health checks in worker.yaml and comment out unused job import in Routes 2024-09-21 16:17:32 +01:00
Simon Larsen
57cbc7e47c Uncomment job imports in Routes to enable scheduled maintenance and status page notifications 2024-09-21 16:01:50 +01:00
Simon Larsen
ffbdb1c9b5 Uncomment job imports in Routes to enable functionality for various job types 2024-09-21 15:47:55 +01:00
Simon Larsen
e554ff5beb Uncomment job imports in Routes to enable functionality for various job types 2024-09-21 15:20:36 +01:00
Simon Larsen
a49ca14fde Simplify job execution by removing error handling and using await for function calls in WorkersFeatureSet 2024-09-21 15:04:57 +01:00
Simon Larsen
0480e47c23 Refactor route initialization and clean up commented imports in Worker module 2024-09-21 15:03:16 +01:00
Simon Larsen
ceb688726b Add error logging for job execution in WorkersFeatureSet 2024-09-21 14:35:46 +01:00
Simon Larsen
7ecf4257d5 Remove timeout handling in job execution and simplify function call in WorkersFeatureSet 2024-09-21 00:11:37 +01:00
Simon Larsen
402c777a6b Update package name to @oneuptime/worker and uncomment scheduled maintenance jobs in Routes 2024-09-20 23:42:38 +01:00
Simon Larsen
ea0a9d94bc Fix null checks for currentStatus in Overview component and update variable declaration for currentMonitorStatus 2024-09-20 23:32:54 +01:00
Simon Larsen
89da4dea4c Add debug logging in MonitorResource and comment out unused scheduled maintenance jobs 2024-09-20 23:28:05 +01:00
Simon Larsen
91bec9d58f Add support for real-time event handling in Incident model and related components 2024-09-20 19:00:09 +01:00
Simon Larsen
43815f1ab9 Fix formatting in Overview component for empty resource group check 2024-09-20 13:22:57 +01:00
Simon Larsen
a2cb72e729 Refactor Overview component to handle empty resource groups and consolidate monitor status timelines 2024-09-20 13:11:19 +01:00
Simon Larsen
d79d17e230 Add new fields for current status and uptime precision in StatusPageGroup 2024-09-20 12:56:50 +01:00
Simon Larsen
6c73747564 Add new columns to StatusPageGroup for status visibility and uptime precision 2024-09-20 12:20:48 +01:00
Simon Larsen
9a7ea2ce59 Add debug logging for monitor fetching and processing steps 2024-09-20 11:58:00 +01:00
Simon Larsen
97f4d3612d Add debug logging for scheduled maintenance event processing and notifications 2024-09-20 11:29:03 +01:00
Simon Larsen
21ea8d0aa2 Add debug logging for worker initialization and heartbeat checks 2024-09-20 11:07:35 +01:00
Simon Larsen
af177d0569 Remove arm64 platform support and clean up commented-out steps in release workflow 2024-09-19 16:29:08 +01:00
Simon Larsen
cd64280ad7 Update Docker workflows to support multi-platform builds for arm64 2024-09-19 16:05:00 +01:00
snyk-bot
da78c0bfee fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855502
- https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855502
- https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855503
- https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855503
- https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855507
2024-09-19 09:04:17 +00:00
Simon Larsen
4f0526b7ec Update Docker context in release workflow for improved build configuration 2024-09-19 07:40:28 +01:00
Simon Larsen
187c12e47f Fix variable reference in api-reference.yaml for correct service arguments 2024-09-18 22:53:02 +01:00
Simon Larsen
b50478e886 Merge branch 'master' into release 2024-09-18 22:35:01 +01:00
Simon Larsen
d5a9b3fba3 Fix typo in api-reference.yaml for correct variable reference in service arguments 2024-09-18 22:34:16 +01:00
Simon Larsen
7dd809caab Refactor api-reference.yaml for consistent variable naming and improved readability 2024-09-18 22:30:41 +01:00
Simon Larsen
a6f6b12ae2 Refactor FormField component to simplify toggle value initialization 2024-09-18 21:49:41 +01:00
Simon Larsen
7cd6c0f3a9 Fix comparison operator in QueryHelper for correct value filtering 2024-09-18 21:30:19 +01:00
Simon Larsen
5776e5d734 Update documentation paths for consistency and clarity 2024-09-18 20:56:04 +01:00
Simon Larsen
10878547ff Remove unused DocsRoutes initialization from app startup 2024-09-18 20:52:50 +01:00
Simon Larsen
02f4ae806a Add upstream configuration for docs service in Nginx template 2024-09-18 20:36:45 +01:00
Simon Larsen
3ea955b55b Update dependencies for test-helm-chart job in CI workflow 2024-09-18 20:35:48 +01:00
Simon Larsen
59b6742e63 Remove unused API reference routes file 2024-09-18 19:52:49 +01:00
Simon Larsen
34db66f130 Fix port naming convention in api-reference Helm chart 2024-09-18 18:34:11 +01:00
Simon Larsen
55aa602952 Merge pull request #1704 from OneUptime/api-reference
Add API reference code examples and configuration files
2024-09-18 10:33:17 -07:00
Simon Larsen
8004c2e283 Add CI workflows for Docs service and Docker image deployment 2024-09-18 17:57:44 +01:00
Simon Larsen
5725d30e8a Merge branch 'master' into api-reference 2024-09-18 17:51:33 +01:00
Simon Larsen
2d1b1720d5 Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-09-18 17:30:07 +01:00
Simon Larsen
1b74d94d0a Update Dockerfile context and copy paths for Workflow integration 2024-09-18 17:29:46 +01:00
Simon Larsen
c90c575d42 Merge pull request #1705 from OneUptime/master
Release
2024-09-18 08:42:58 -07:00
Simon Larsen
fe161465dd Add Helm chart templates for OneUptime docs deployment, service, and autoscaler 2024-09-18 16:39:20 +01:00
Simon Larsen
26e3bb2074 Add documentation files and update configuration for Docs service 2024-09-18 16:38:53 +01:00
Simon Larsen
bee38554ea Refactor paths in Config.ts for API reference and clean up Index.ts 2024-09-18 14:52:37 +01:00
Simon Larsen
68389cda85 Add API reference code examples and configuration files 2024-09-18 14:39:11 +01:00
Simon Larsen
1cdf9ecdf1 Replace AppApiHostname with WorkflowHostname in AnalyticsDatabaseService and DatabaseService 2024-09-18 14:18:52 +01:00
Simon Larsen
1091801ca7 Update APP_NAME constant in Index.ts to reflect new application name 2024-09-18 13:48:00 +01:00
Simon Larsen
cc8c3f7d9e Add timeout option to API requests and update monitor configurations 2024-09-18 13:13:24 +01:00
Simon Larsen
e2ef8ae2ce Update Slack invite link in Help component 2024-09-18 12:49:10 +01:00
Simon Larsen
1a15cb31f7 Add WorkflowHostname configuration and update WorkflowService to use it 2024-09-18 12:36:44 +01:00
Simon Larsen
7d3f7ba551 Update APP_NAME constant in Workflow routes to reflect correct path 2024-09-18 12:09:29 +01:00
Simon Larsen
8d95d02ac6 Add workflow upstream configuration to Nginx and update docker-compose variables 2024-09-18 11:58:29 +01:00
Simon Larsen
94f0446802 Add canReadOnRelationQuery property to Copilot Event Status column 2024-09-18 11:34:12 +01:00
snyk-bot
6ff776f185 fix: Accounts/package.json & Accounts/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-PATHTOREGEXP-7925106
2024-09-18 09:44:20 +00:00
snyk-bot
96a5de2df2 fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-AOM-7197979
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-5461953
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-5461954
2024-09-18 09:32:27 +00:00
Simon Larsen
b55c1b9acd fix workflow 2024-09-16 17:17:56 -07:00
Simon Larsen
290d3bf2c1 Remove Workflow initialization from app startup 2024-09-16 16:39:15 -07:00
Simon Larsen
db02cbecae Merge branch 'workflow-refactor' 2024-09-16 16:36:43 -07:00
Simon Larsen
61084af45a Update Docker build context in release workflow to use root directory 2024-09-16 16:35:57 -07:00
Simon Larsen
ae996dbe07 Rename WorkerRoutes to WorkflowRoutes and establish connections to Postgres, Redis, and Clickhouse; initialize real-time functionalities 2024-09-16 15:29:15 -07:00
Simon Larsen
a35d26bc6a Merge branch 'master' into workflow-refactor 2024-09-16 15:27:10 -07:00
Simon Larsen
841183566c Enhance Worker initialization: connect to Postgres, Redis, and Clickhouse; enable infrastructure status checks 2024-09-16 15:26:04 -07:00
Simon Larsen
6aa9895e72 refactor workflow 2024-09-16 15:22:15 -07:00
Simon Larsen
1fefa11f35 Update ViewsPath and StaticPath to reflect new directory structure 2024-09-16 12:35:57 -07:00
Simon Larsen
ffb5d42b8b Add PORT environment variable to home and worker templates; include ejs dependency in Worker 2024-09-16 12:28:34 -07:00
Simon Larsen
215c1e95b0 Update Home package.json to include ejs dependency and remove unused home copy.yaml template 2024-09-16 11:42:34 -07:00
Simon Larsen
1f3c041fc9 Refactor CI workflows: remove old test-app workflow and add unified test workflow for App, Home, and Worker 2024-09-16 11:05:29 -07:00
Simon Larsen
8892fe9030 Update test script in App package.json to allow passing with no tests 2024-09-16 11:01:29 -07:00
Simon Larsen
aa51c5538a Remove xmlbuilder2 dependency from Worker package.json and package-lock.json 2024-09-16 10:46:01 -07:00
Simon Larsen
59f666e83d Remove xmlbuilder2 dependency and update package.json and package-lock.json with new dependencies 2024-09-16 10:45:31 -07:00
Simon Larsen
75f46d5187 Add ts-node dependency to Home and Worker package.json files 2024-09-16 10:44:00 -07:00
Simon Larsen
a12bcbfdde Merge branch 'master' of github.com:OneUptime/oneuptime 2024-09-16 10:42:41 -07:00
Simon Larsen
969982056e Update Dockerfile template for Worker service: adjust package.json paths and expose port 1445 2024-09-16 10:42:25 -07:00
Simon Larsen
dcb9e167e1 Merge pull request #1698 from OneUptime/home-ms-refactor
Home ms refactor
2024-09-16 10:32:50 -07:00
Simon Larsen
29adbaa2ec Add Worker service build, compile, and deployment workflows 2024-09-16 08:49:45 -07:00
Simon Larsen
86168a50ee Add Worker service configuration, deployment setup, and Nginx routing 2024-09-16 08:42:50 -07:00
Simon Larsen
5a31785895 Add initial Worker module with configuration files, Dockerfile, and README 2024-09-16 08:30:48 -07:00
Simon Larsen
684abc02a0 Implement AnalyticsTableManagement and DataMigrationBase classes; remove deprecated files and update cron jobs 2024-09-16 08:27:55 -07:00
Simon Larsen
f728a94a80 Add Home service configuration and deployment setup 2024-09-16 08:11:21 -07:00
Simon Larsen
dc37d723e6 Initialize Home module with configuration files and update package name 2024-09-16 07:49:29 -07:00
Simon Larsen
5f5a051136 Add new views, static files, and tests; remove deprecated files 2024-09-16 07:44:48 -07:00
Simon Larsen
1d85490c55 Refactor ProjectService to update subscription status 2024-09-11 16:02:52 -07:00
Simon Larsen
956ac101a2 Refactor logging and remove unused code 2024-09-11 15:26:02 -07:00
Simon Larsen
a5bd73a13b Merge pull request #1693 from OneUptime/stop-execution-on-incident-ack
Stop execution on incident ack
2024-09-11 18:25:16 +01:00
Simon Larsen
25755c4810 Refactor recurring notification handling in ScheduleRecurringEvents.ts 2024-09-11 10:12:44 -07:00
Simon Larsen
8f7cac7108 Refactor recurring notification handling in ScheduledMaintenance and ScheduledMaintenanceTemplate models 2024-09-11 10:09:28 -07:00
Simon Larsen
51ff018a61 Refactor recurring notification handling in ScheduledMaintenance and ScheduledMaintenanceTemplate models 2024-09-11 09:58:45 -07:00
Simon Larsen
2a345a3948 add jobs to send reminders to subscribers, 2024-09-10 16:25:58 +01:00
Simon Larsen
8f49a8202f update next notifcaiton time for subscribers in scheduled events 2024-09-10 16:12:27 +01:00
Simon Larsen
be5c11263c add subscriber notification option before the event 2024-09-10 15:52:19 +01:00
Simon Larsen
20e56fb1d7 add recurring field element adn controls. 2024-09-10 15:25:50 +01:00
Simon Larsen
72ffaace2d add subscriber recurring notification columns 2024-09-10 14:34:49 +01:00
Simon Larsen
4b8c799617 if the incident is ack, mark the policy as completed. 2024-09-10 14:22:06 +01:00
Simon Larsen
6b9a46b4ba Merge pull request #1688 from OneUptime/sm-templates
Scheduled Maintenance Templates
2024-09-09 21:31:36 +01:00
Simon Larsen
8e74997b48 Refactor ScheduledMaintenanceService to require projectId for creating scheduled maintenance 2024-09-09 21:31:05 +01:00
Simon Larsen
505eb26b90 Refactor ScheduleRecurringEvents to update next scheduled time for recurring events 2024-09-09 19:49:23 +01:00
Simon Larsen
6736e6c74e Add ScheduleRecurringEvents job to schedule recurring maintenance events 2024-09-09 19:38:19 +01:00
Simon Larsen
21c9facc02 Refactor field titles and add hideOptionalLabel prop 2024-09-09 18:58:57 +01:00
Simon Larsen
1b5058685c Refactor ScheduledMaintenanceTemplate to use TIMESTAMP WITH TIME ZONE for scheduleNextEventAt column 2024-09-09 18:44:27 +01:00
Simon Larsen
c0c8feabe9 Refactor Field component and add showIf prop 2024-09-09 18:10:48 +01:00
Simon Larsen
974a55df9b Refactor SideMenu component and update link title for Scheduled Maintenance Templates 2024-09-09 17:13:57 +01:00
Simon Larsen
bdb2dbbbbc Refactor ScheduledMaintenanceTemplateOwnerTeamService and ScheduledMaintenanceTemplateOwnerUserService 2024-09-09 13:47:46 +01:00
Simon Larsen
4febd87ff8 Refactor access control for IncidentTemplate and IncidentNoteTemplate 2024-09-09 13:29:54 +01:00
Simon Larsen
0f8317d250 Add new migration for ScheduledMaintenanceTemplate 2024-09-09 12:22:26 +01:00
Simon Larsen
09370dbc41 Merge pull request #1685 from luisxkimo/fix-helm-chart-documentation
Fix format for Helm Chart documentation
2024-09-09 10:33:15 +01:00
lsalfaro
dcc724a94d Fix table for documentation of Helm chart 2024-09-09 11:28:09 +02:00
Simon Larsen
0bcc23655d Merge pull request #1682 from OneUptime/master
Release
2024-09-08 21:35:59 +01:00
Simon Larsen
5f1243216b Merge branch 'add-spans-copilot' 2024-09-08 21:32:05 +01:00
Simon Larsen
bc794f32ff Refactor CopilotActionUtil logger.debug statement 2024-09-08 21:31:50 +01:00
Simon Larsen
c57fb025f0 Refactor Docker instructions in Copilot introduction.md 2024-09-08 21:30:09 +01:00
Simon Larsen
9b981f1181 Merge pull request #1677 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-PSJqs
Improved comments on /App/FeatureSet/Workers/DataMigrations/AddAttributesColumnToSpanAndLog.ts
2024-09-08 19:04:45 +01:00
Simon Larsen
cc1a4df787 Merge pull request #1680 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-lBIXQ
Improved comments on /App/FeatureSet/Workers/Jobs/MonitorMetrics/MonitorMetricsByMinute.ts
2024-09-08 19:04:13 +01:00
Simon Larsen
9fbdc6800b Merge pull request #1679 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-UdHQs
Improved comments on /App/FeatureSet/Home/Static/js/switchUrl.js
2024-09-08 19:03:49 +01:00
Simon Larsen
97c2e65b15 Merge pull request #1681 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-MtpRJ
Improved comments on /App/FeatureSet/Workers/DataMigrations/AddMonitoringDatesToMonitors.ts
2024-09-08 19:03:20 +01:00
Simon Larsen
6a99c01e8a Merge pull request #1678 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-opRrH
Improved comments on /App/FeatureSet/ApiReference/Service/Status.ts
2024-09-08 19:02:33 +01:00
OneUptime Copilot
303bf52767 Improved comments on /App/FeatureSet/Workers/DataMigrations/AddMonitoringDatesToMonitors.ts 2024-09-08 17:58:25 +00:00
OneUptime Copilot
da323939f2 Improved comments on /App/FeatureSet/Workers/Jobs/MonitorMetrics/MonitorMetricsByMinute.ts 2024-09-08 17:56:54 +00:00
OneUptime Copilot
c5cf48dccd Improved comments on /App/FeatureSet/Home/Static/js/switchUrl.js 2024-09-08 17:55:13 +00:00
Simon Larsen
c324b86cbe Merge branch 'master' of github.com:OneUptime/oneuptime 2024-09-08 18:36:25 +01:00
Simon Larsen
f62f571586 fix aleert style. 2024-09-08 18:36:22 +01:00
OneUptime Copilot
ea5ee48dde Improved comments on /App/FeatureSet/ApiReference/Service/Status.ts 2024-09-08 17:34:02 +00:00
OneUptime Copilot
72ebef1c2d Improved comments on /App/FeatureSet/Workers/DataMigrations/AddAttributesColumnToSpanAndLog.ts 2024-09-08 17:33:11 +00:00
Simon Larsen
4d4949da34 add 2 mins dropdown interval. 2024-09-08 18:13:35 +01:00
Simon Larsen
5feb51f030 fix typo in open source commitment. 2024-09-08 18:12:58 +01:00
Simon Larsen
efcf99f902 Merge pull request #1676 from luisxkimo/feature-add-existing-secrets-config
Add option to configure ENCRYPTION_SECRET and ONEUPTIME_SECRET using external secrets
2024-09-06 15:34:51 +01:00
lsalfaro
2e962d918c Remove format to string using print 2024-09-06 16:20:36 +02:00
lsalfaro
e517a1b8fa Add use of existing secrets for templates for variables ONEUPTIME_SECRET and ENCRYPTION_SECRET 2024-09-06 16:07:48 +02:00
Simon Larsen
d3da823e71 add default height to images so they are visible. 2024-09-06 14:59:31 +01:00
Simon Larsen
40698c4218 Merge branch 'master' into release 2024-09-06 13:28:05 +01:00
Simon Larsen
e074633c6c Merge branch 'master' of github.com:OneUptime/oneuptime 2024-09-06 11:55:39 +01:00
Simon Larsen
ec4268cce7 refactor: Enable lazy loading for images in BillingService.test.ts 2024-09-06 11:55:36 +01:00
Simon Larsen
24bd374baa refactor: Update nullable property for endAnnouncementAt column in StatusPageAnnouncement model 2024-09-06 11:52:15 +01:00
Simon Larsen
0f58e16702 feat: Add support for SVG mime type in file upload 2024-09-06 11:33:11 +01:00
Simon Larsen
2c49b8b457 Merge pull request #1672 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-UnHLg
Improved comments on /App/FeatureSet/Workers/Utils/Cron.ts
2024-09-05 19:58:16 +01:00
OneUptime Copilot
cbf3156b28 Improved comments on /App/FeatureSet/Workers/Utils/Cron.ts 2024-09-05 18:11:57 +00:00
Simon Larsen
e3c68fdb4c refactor: Enable lazy loading for images in Copilot/Utils/CopilotAction.ts, Common/Utils/CronTime.ts, Common/Server/Services/BillingInvoiceService.ts, and Dashboard/src/Pages/Settings/Invoices.tsx 2024-09-05 19:08:40 +01:00
Simon Larsen
1682a25513 refactor: Enable lazy loading for images in Copilot/Utils/CopilotAction.ts, Common/Utils/CronTime.ts, Common/Server/Services/BillingInvoiceService.ts, and Dashboard/src/Pages/Settings/Invoices.tsx 2024-09-05 18:25:26 +01:00
Simon Larsen
bdb747b8e7 refactor: Enable lazy loading for images in Copilot/Utils/CopilotAction.ts, Common/Utils/CronTime.ts, Common/Server/Services/BillingInvoiceService.ts, and Dashboard/src/Pages/Settings/Invoices.tsx 2024-09-05 18:22:41 +01:00
Simon Larsen
3925354332 refactor: Enable lazy loading for images in Copilot/Init.ts and improve logging in CopilotActionsBase.ts 2024-09-05 17:39:47 +01:00
Simon Larsen
6037c30765 refactor: Enable lazy loading for images in BlogPostUtil and remove unnecessary whitespace in Copilot/Init.ts 2024-09-05 17:13:09 +01:00
Simon Larsen
6e3ec31e0e refactor: Enable lazy loading for images in BlogPostUtil and remove unnecessary whitespace in Copilot/Init.ts 2024-09-05 16:08:39 +01:00
Simon Larsen
e7377f6c8f refactor: Enable lazy loading for images in BlogPostUtil and remove unnecessary whitespace in Copilot/Init.ts 2024-09-05 14:30:30 +01:00
Simon Larsen
d9fca7e669 Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-09-05 13:57:13 +01:00
Simon Larsen
5bfe38736e refactor: Enable lazy loading for images in BlogPostUtil and remove unnecessary whitespace in Copilot/Init.ts 2024-09-05 13:50:53 +01:00
Simon Larsen
eac7134630 refactor: Enable lazy loading for images in BlogPostUtil and remove unnecessary whitespace in Copilot/Init.ts 2024-09-05 13:49:41 +01:00
Simon Larsen
94eaab9ca4 refactor: Update import statements to use ArrayUtil from Common/Utils/Array 2024-09-05 13:29:58 +01:00
Simon Larsen
ddf0b67546 refactor: Update import statements to use ArrayUtil from Common/Utils/ArrayUtil 2024-09-05 13:29:17 +01:00
Simon Larsen
0aa4d39ab0 refactor: Update CodeRepositoryFile interface to include filePath property 2024-09-05 13:28:17 +01:00
Simon Larsen
848b61033a refactor: Update CodeRepositoryFile interface to include filePath property 2024-09-05 12:59:59 +01:00
Simon Larsen
e11ab9ee5c refactor: Update CopilotActionAPI to include permission checks for create, read, delete, and update actions 2024-09-05 11:26:01 +01:00
Simon Larsen
806fada436 Merge pull request #1670 from OneUptime/master
Release
2024-09-05 11:01:13 +01:00
Simon Larsen
10eb7239dc refactor: Add canReadOnRelationQuery property to CopilotPullRequest model 2024-09-05 10:57:31 +01:00
Simon Larsen
62bf2ee6f3 refactor: Add optional startLineNumber and endLineNumber to FileActionProp interface 2024-09-05 10:48:01 +01:00
Simon Larsen
87234c95ce refactor: Add API endpoint for updating CopilotAction 2024-09-04 21:01:58 +01:00
Simon Larsen
c4fbc7fadd refactor: Update test-e2e-release-saas job dependencies in release.yml 2024-09-04 20:49:33 +01:00
Simon Larsen
fb1f129089 refactor: Remove unnecessary whitespace in CopilotActionsBase.ts and ImproveComments.ts 2024-09-04 18:45:58 +01:00
Simon Larsen
989a082d3e refactor: Make ImproveComments methods private and update method signatures 2024-09-04 18:41:50 +01:00
Simon Larsen
eb4d8325a5 refactor: Remove unused imports and properties in CodeRepository.ts and CodeRepositoryFile.ts 2024-09-04 18:37:31 +01:00
Simon Larsen
af3455eedb refactor: Update ServerMonitor documentation with start, stop, and uninstall instructions 2024-09-04 18:22:33 +01:00
Simon Larsen
7a0600836e Merge branch 'copilot-main' 2024-09-04 18:21:29 +01:00
Simon Larsen
50c3bbb845 refactor: Update Slack chat link in support.ejs 2024-09-04 18:20:57 +01:00
Simon Larsen
99daa9f25b feat: Update Slack chat links in nav.ejs and README.md 2024-09-04 18:16:00 +01:00
Simon Larsen
b30789cd75 Merge pull request #1669 from OneUptime/copilot-main
Copilot main
2024-09-04 17:34:06 +01:00
Simon Larsen
39ff367afe refactor: Update LLMBase.ts and OpenAI.ts to import CopilotActionPrompt from the new location 2024-09-04 14:52:32 +01:00
Simon Larsen
012c9299ed refactor: Fix typo in CopilotActionType enum values and update related code 2024-09-04 12:50:46 +01:00
Simon Larsen
0559997c01 refactor: Update LlmType enum values and improve error message for OneUptime LLM server not reachable 2024-09-04 11:51:56 +01:00
Simon Larsen
b8fad24329 refactor: Update CopilotActionType enum values and add dependencies 2024-09-04 11:37:32 +01:00
Simon Larsen
e907c235a9 refactor: Update WorkflowStatusElement to use Blue color for success status 2024-09-04 11:15:26 +01:00
Simon Larsen
258914731c refactor: Update Email component to handle SMTP authentication errors 2024-09-04 10:47:16 +01:00
Simon Larsen
465691ee31 Merge pull request #1668 from OneUptime/copilot-main
feat: Add lazy loading for OnCallDutyPolicyViewLogsView component
2024-09-04 10:27:18 +01:00
Simon Larsen
d5af7a907d feat: Add lazy loading for OnCallDutyPolicyViewLogsView component 2024-09-04 10:17:41 +01:00
Simon Larsen
a993db8675 Merge pull request #1667 from OneUptime/copilot-main
Copilot main
2024-09-03 19:00:06 +01:00
Simon Larsen
1822107c49 refactor: Add isPriority field to CopilotAction model 2024-09-03 17:14:54 +01:00
Simon Larsen
bd5808b2d4 refactor: Add isPriority field to CopilotAction model 2024-09-03 17:13:04 +01:00
Simon Larsen
4facc12e44 refactor: Improve README file 2024-09-03 17:07:21 +01:00
Simon Larsen
6a10bdff56 refactor: Improve CopilotActionPropViewer component 2024-09-03 16:15:50 +01:00
Simon Larsen
9be38d55c6 refactor: Improve CopilotActionPropViewer component 2024-09-03 15:59:35 +01:00
Simon Larsen
74d210bffd refactor: Update CopilotActionType enum values and fix formatting 2024-09-03 15:51:56 +01:00
Simon Larsen
4b986346ae refactor: Update CopilotActionProps and ExceptionActionProp interfaces 2024-09-03 15:47:26 +01:00
Simon Larsen
507b214cc1 refactor: Update CopilotActionProps to include FunctionActionProp 2024-09-03 13:24:15 +01:00
Simon Larsen
7904d36650 refactor: Add FileActionProp interface for Copilot actions 2024-09-03 13:19:47 +01:00
Simon Larsen
a23039afb6 refactor: Update breadcrumb links in AICopilotBreadcrumbs and RouteMap 2024-09-03 12:22:49 +01:00
Simon Larsen
5be761dd7c refactor: Update breadcrumb links in AICopilotBreadcrumbs and RouteMap 2024-09-03 12:20:46 +01:00
Simon Larsen
6398fea83e refactor: Update CopilotActionTypeElement import paths 2024-09-03 11:47:31 +01:00
Simon Larsen
4b0f71b4e4 refactor: Update CopilotActionTypeElement import paths 2024-09-03 11:33:18 +01:00
Simon Larsen
4314920cd7 refactor: Update CopilotAction model and migration to add new properties 2024-09-03 11:03:29 +01:00
Simon Larsen
d2cb9a8eeb refactor: Add new action props for Copilot 2024-09-03 10:27:14 +01:00
Simon Larsen
7512145a50 refactor: Add new action props for Copilot 2024-09-02 19:12:47 +01:00
Simon Larsen
b3f4406c3c chore: Update CopilotActionTypeUtil descriptions to use "in" instead of "to" 2024-09-02 17:53:57 +01:00
Simon Larsen
06ac018ec6 chore: Update CopilotActionTypePriorityService and CopilotActionTypeElement 2024-09-02 17:36:29 +01:00
Simon Larsen
c76237f785 refactor: Update AddDefaultCopilotActionTypes migration to use correct class name 2024-09-02 17:31:52 +01:00
Simon Larsen
97e60faa22 refactor: Update AddDefaultCopilotActionTypes migration to use correct class name 2024-09-02 17:20:08 +01:00
Simon Larsen
b857555cd7 refactor: Update SideMenu to include AI_COPILOT_CODE_REPOSITORY_VIEW_PRIORITIES page 2024-09-02 17:16:25 +01:00
Simon Larsen
6541fc41f0 refactor: Add AI_COPILOT_CODE_REPOSITORY_VIEW_PRIORITIES page to SideMenu 2024-09-02 17:04:28 +01:00
Simon Larsen
8bb2c3c865 refactor: Update SideMenu title to "Code Changes" 2024-09-02 15:36:08 +01:00
Simon Larsen
e34cdd77db Merge pull request #1663 from parkerdaminer/patch-1
Correcting README.md
2024-09-01 21:55:43 +01:00
parkerdaminer
6b0d48ce4f Correcting README.md
Minor text fixes.
2024-08-31 17:01:25 -04:00
Simon Larsen
6fb477383d refactor: Update telemetry documentation and add OpenTelemetry collector configuration 2024-08-30 13:58:17 +01:00
Simon Larsen
2269681487 refactor: Remove unnecessary code in StatusAPI 2024-08-29 21:51:28 +01:00
Simon Larsen
6e10739479 refactor: Update email descriptions in settings pages 2024-08-29 16:11:31 +01:00
Simon Larsen
1f3cb96f0a refactor: Add TELEMETRY_DOCUMENTATION page to Telemetry route and update related components 2024-08-29 13:51:50 +01:00
Simon Larsen
e85f8c19df refactor: Update TelemetryExceptionElement to handle archived exceptions 2024-08-29 13:19:56 +01:00
Simon Larsen
bc9a8c5151 refactor: Update Telemetry class to handle metricReader being undefined 2024-08-29 13:11:18 +01:00
Simon Larsen
9b83202e58 refactor: Add occuranceCount field to ExceptionsTable and ExceptionExplorer components 2024-08-29 12:29:44 +01:00
Simon Larsen
3ca4d5d481 refactor: Remove unused code and optimize imports in ExceptionInstance and TraceElement components 2024-08-29 11:57:24 +01:00
Simon Larsen
5c4d4b2c63 refactor: Add exception span status code and name to ExceptionInstance model 2024-08-29 11:25:43 +01:00
Simon Larsen
fd0a95d436 refactor: Add Unarchive icon and handle archived exceptions in TelemetryExceptionElement 2024-08-29 10:32:40 +01:00
Simon Larsen
23c65cecf0 refactor: Update Telemetry class to handle metricReader being undefined 2024-08-28 12:34:15 +01:00
Simon Larsen
5c3dcf7bc9 refactor: Improve SSL ordering for domains in StatusPageCerts job 2024-08-28 12:25:04 +01:00
Simon Larsen
108940678f refactor: Update TraceExplorer to handle rootSpan with null or undefined parentSpanId 2024-08-28 12:00:45 +01:00
Simon Larsen
3df72091a2 refactor: Update Telemetry class to import TelemetryCounter from Utils/Telemetry 2024-08-28 10:26:26 +01:00
Simon Larsen
b1de73a16a refactor: Update telemetry dependencies and improve SSL ordering in StatusAPI and Telemetry classes 2024-08-28 10:21:22 +01:00
Simon Larsen
f715b14b74 refactor: Update telemetry dependencies and improve SSL ordering in Telemetry class 2024-08-28 09:42:26 +01:00
Simon Larsen
17eef6408e refactor: Update telemetry dependencies and improve SSL ordering in StatusPageCerts job 2024-08-27 20:32:02 +01:00
Simon Larsen
bc288100c0 refactor: Update telemetry dependencies to latest versions 2024-08-27 18:53:48 +01:00
Simon Larsen
c4a01058b7 refactor: Improve SSL ordering for domains in StatusPageCerts job 2024-08-27 18:43:02 +01:00
Simon Larsen
cb10647285 fix depreated prop 2024-08-27 18:42:39 +01:00
Simon Larsen
fb8b00d383 refactor: Update startActiveSpan method in Telemetry class 2024-08-27 14:51:38 +01:00
Simon Larsen
4563f42794 chore: Update timeout handling in Cron and Queue classes 2024-08-27 13:33:15 +01:00
Simon Larsen
a6072634f2 refactor: Improve error handling and logging in Cron and Queue classes 2024-08-27 13:10:40 +01:00
Simon Larsen
646908e66b refactor: Remove unused timeoutInMs property in Cron and Queue classes 2024-08-27 11:12:39 +01:00
Simon Larsen
ed150c1482 refactor: Remove unused timeoutInMs property in Cron and Queue classes 2024-08-27 11:09:00 +01:00
Simon Larsen
fac59332ed refactor: Update CNAME verification logging in StatusPageDomainService 2024-08-27 11:05:07 +01:00
Simon Larsen
64725b3973 refactor: Update code and field types for telemetry exceptions 2024-08-26 20:38:39 +01:00
Simon Larsen
3636b160fb refactor: Update telemetry exception view layout components 2024-08-26 16:48:20 +01:00
Simon Larsen
fee3264350 refactor: Improve CNAME verification logging in StatusPageDomainService 2024-08-26 14:55:52 +01:00
Simon Larsen
5bcd451bc8 Merge branch 'error-tracking' 2024-08-26 14:35:29 +01:00
Simon Larsen
7c2d6dc9e5 refactor: Remove BadDataException from StatusAPI 2024-08-26 14:34:55 +01:00
Simon Larsen
185eb20d1b refactor: Update telemetry exception view layout components 2024-08-26 14:33:01 +01:00
Simon Larsen
cc7696f481 refactor: Update telemetry exception view layout components 2024-08-26 08:58:45 +01:00
Simon Larsen
a3856588bb refactor: Enable telemetry for the app service 2024-08-26 07:40:54 +01:00
Simon Larsen
1a9668a877 refactor: Update telemetry exception view layout components 2024-08-26 07:10:03 +01:00
Simon Larsen
92e519c49e refactor: Update telemetry exception view layout components 2024-08-26 06:45:33 +01:00
Simon Larsen
3c296f72d8 refactor: Update exceptions table messages and routes 2024-08-25 23:25:21 +01:00
Simon Larsen
f0e701c5bb refactor: Update telemetry exception view layout components 2024-08-25 22:52:50 +01:00
Simon Larsen
7fa461e652 refactor: Improve CNAME verification logging in StatusPageDomainService 2024-08-25 22:36:01 +01:00
Simon Larsen
66b4fbded1 refactor: Remove TelemetryExceptionStatusService and ExceptionService 2024-08-25 22:35:06 +01:00
Simon Larsen
e7fc9bb9a5 refactor: Remove TelemetryExceptionStatusService and ExceptionService 2024-08-25 19:42:47 +01:00
Simon Larsen
2f3dbebe9a refactor: Add TelemetryExceptionStatusService to handle telemetry exception status in the database 2024-08-25 19:29:25 +01:00
Simon Larsen
a6a5f189c3 refactor: Add TelemetryExceptionStatus model to DatabaseModels and update Permission enum with Telemetry Exception permissions 2024-08-25 18:40:40 +01:00
Simon Larsen
67f1ad9ef1 Merge pull request #1653 from Johncs2d/master
Add debug logging to StatusPageDomainService.ts for debugging failing…
2024-08-23 15:44:21 +01:00
Johncs2d
4e7d1d5c7a Add debug logging to StatusPageDomainService.ts for debugging failing domain verification requests. 2024-08-23 22:36:41 +08:00
Simon Larsen
b9dd9eb8de refactor: Add Crypto class for MD5 and SHA256 hashing 2024-08-23 14:49:04 +01:00
Simon Larsen
3c86293864 refactor: Add Exception model to AnalyticsModels and update Permission enum with Telemetry Service Exception permissions 2024-08-23 12:32:39 +01:00
Simon Larsen
b202b07353 refactor: Add syncId prop to LineChart component for syncing multiple charts 2024-08-21 19:01:21 +01:00
Simon Larsen
9db1c59893 refactor: Update LineChart component to use new curve prop and add missing type annotations 2024-08-21 18:37:22 +01:00
Simon Larsen
ac7d4f974b refactor: Update ChartCurve enum and LineChart component to use new curve prop 2024-08-21 17:30:07 +01:00
Simon Larsen
6251dfe482 refactor: Update ChartColors and GetYAxisDomain utility functions 2024-08-21 14:57:15 +01:00
Simon Larsen
dbdca789d4 refactor: Update YAxisOptions interface to include a precision property 2024-08-21 14:49:47 +01:00
Simon Larsen
12e766e9d4 refactor: Update YAxisOptions interface to include a precision property 2024-08-21 14:06:19 +01:00
Simon Larsen
ba2a480d4f refactor: Update XAxisOptions interface to include a formatter function 2024-08-21 13:55:57 +01:00
Simon Larsen
3b141d7e90 refactor: Update XAxisOptions interface to include a formatter function 2024-08-21 13:10:46 +01:00
Simon Larsen
61541ac7c9 Merge branch 'master' into tremor-graphs-refactor 2024-08-20 22:04:56 +01:00
Simon Larsen
abde6ee7cb Merge pull request #1651 from OneUptime/bull-board-ui
feat: Add Bull Board for monitoring and managing queues
2024-08-20 22:00:32 +01:00
Simon Larsen
9aae86cc78 feat: Add Bull Board for monitoring and managing queues 2024-08-20 21:59:26 +01:00
Simon Larsen
222027f2e0 refactor: Increase concurrency for running workers to 100 2024-08-20 21:21:39 +01:00
Simon Larsen
adfb3e1db4 refactor: Update logging in CheckHeartbeat.ts and Telemetry.ts 2024-08-20 20:57:33 +01:00
Simon Larsen
fe8aa54f1c feat: Add API endpoint to get count of pending incoming request monitors 2024-08-20 18:27:04 +01:00
Simon Larsen
5237384d08 refactor: Update PostgresAppInstance to use static methods and properties 2024-08-20 17:37:45 +01:00
Simon Larsen
aca766a252 Merge branch 'master' into tremor-graphs-refactor 2024-08-20 16:27:05 +01:00
Simon Larsen
ee29277cb9 refactor: Add SortOrder import and update query sorting in CheckHeartbeat.ts 2024-08-20 16:26:31 +01:00
Simon Larsen
310ca572ff Update XAxisOptions interface to include a formatter function 2024-08-20 16:19:14 +01:00
Simon Larsen
3d13620a28 refactor: Update chart colors in LineChart and BrandColors files 2024-08-20 14:46:26 +01:00
Simon Larsen
1c069c60fc refactor: Update types for X and Y values in Charts 2024-08-19 19:44:25 +01:00
Simon Larsen
7146b341c5 chore: Add new types for X and Y values in Charts 2024-08-19 19:42:57 +01:00
Simon Larsen
8f8e40aa71 Merge branch 'master' into tremor-graphs-refactor 2024-08-19 17:54:17 +01:00
Simon Larsen
0e9c752aae Merge pull request #1649 from OneUptime/add-more-conds
refactor: Update description for Input 2 in Condition component
2024-08-19 17:30:19 +01:00
Simon Larsen
d37f8a4049 refactor: Update description for Input 2 in Condition component 2024-08-19 17:29:38 +01:00
Simon Larsen
26dd72eea2 Merge pull request #1648 from OneUptime/add-more-conds
refactor: Add support for additional condition operators in IfElse co…
2024-08-19 17:24:05 +01:00
Simon Larsen
462105c6fd refactor: Add support for additional condition operators in IfElse component 2024-08-19 17:23:50 +01:00
Simon Larsen
5662d45826 Merge pull request #1647 from OneUptime/make-graphs-beautiful
Make graphs beautiful
2024-08-19 16:55:58 +01:00
Simon Larsen
32ebb26960 refactor: Update chart colors in LineChart and BrandColors files 2024-08-19 16:55:38 +01:00
Simon Larsen
235fed6f17 refactor: Update chart colors in LineChart and BrandColors files 2024-08-19 16:53:04 +01:00
Simon Larsen
a51c0c45e4 chore: Add @tremor/react dependency to package.json 2024-08-19 16:23:37 +01:00
Simon Larsen
8ea54108c1 Merge pull request #1646 from OneUptime/incoming-request-heartbeat-check
Incoming request heartbeat check
2024-08-19 16:18:10 +01:00
Simon Larsen
cba6e9e2a0 refactor: Add incomingRequestMonitorHeartbeatCheckedAt property to MonitorView and Summary components 2024-08-19 16:17:07 +01:00
Simon Larsen
bd1e1792e4 Merge pull request #1645 from OneUptime/refactor-query-types
Refactor query typescript types
2024-08-19 15:33:24 +01:00
Simon Larsen
e5c9b20c64 refactor: Update aggregationType property name in AggregateBy interface and related files 2024-08-19 15:33:04 +01:00
Simon Larsen
8145f07e51 refactor: Update projectId usage in multiple files to use non-null assertion operator 2024-08-19 14:10:03 +01:00
Simon Larsen
56654085a4 refactor: Update projectId usage in multiple files to use non-null assertion operator 2024-08-19 14:06:09 +01:00
Simon Larsen
a6ddba16ec refactor: Update projectId usage in multiple files to use non-null assertion operator 2024-08-19 13:19:26 +01:00
Simon Larsen
b3cf198649 refactor: Update QueryOperator class to extend SerializableObject 2024-08-19 13:15:17 +01:00
Simon Larsen
4dd7285c13 Merge pull request #1644 from OneUptime/Fix-error-message
refactor: Improve error message for no summary available in SummaryIn…
2024-08-19 11:14:43 +01:00
Simon Larsen
5347b5c109 refactor: Improve error message for no summary available in SummaryInfo component 2024-08-19 11:14:11 +01:00
Simon Larsen
24b956c55f Merge pull request #1643 from OneUptime/africa-domain
Add .africa TLD
2024-08-19 10:43:02 +01:00
Simon Larsen
32c9d6d2df add africa tld 2024-08-19 10:42:28 +01:00
Simon Larsen
c883ce6a34 refactor: Improve overall uptime precision display in StatusPageSettings 2024-08-17 10:09:46 +01:00
Simon Larsen
3851c1f963 refactor: Update UptimePrecision enum to separate file for reusability 2024-08-17 09:53:46 +01:00
Simon Larsen
dd5cb900ff refactor: Update workflow dependencies in release.yml 2024-08-15 20:54:18 +01:00
Simon Larsen
47a4fe1937 Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-08-15 18:43:09 +01:00
Simon Larsen
0d0e64f633 refactor: Update BillingService.test.ts to use OneUptimeDate.getCurrentDate() for mockDate 2024-08-15 18:42:33 +01:00
Simon Larsen
cc432dfa1c refactor: Update QR code description for two-factor authentication 2024-08-15 17:37:57 +01:00
Simon Larsen
0fd161d251 refactor: Update JSON deserialization logic in DatabaseBaseModel 2024-08-15 17:19:00 +01:00
Simon Larsen
a6cb80f640 refactor: Update JSON deserialization logic in DatabaseBaseModel 2024-08-15 16:57:59 +01:00
Simon Larsen
5dbd8b9b35 refactor: Update environment variable name for billing private key in test.common.yaml and test-setup.sh 2024-08-15 16:39:15 +01:00
Simon Larsen
3df855c52a refactor: Add getSpanStatusText method to SpanUtil for retrieving span status text 2024-08-15 16:36:48 +01:00
Simon Larsen
183ff170ae refactor: Update telemetry service fetching logic in MonitorStepElement 2024-08-15 16:34:25 +01:00
Simon Larsen
946e53b5c5 refactor: Update Dropdown component to improve code readability and formatting 2024-08-15 16:12:59 +01:00
Simon Larsen
c8f8b79cea refactor: Improve code readability and formatting in Dropdown component and test-setup.sh 2024-08-15 15:57:46 +01:00
Simon Larsen
cf71ba0c72 refactor: Improve code readability and formatting in QueryUtil 2024-08-15 15:33:12 +01:00
Simon Larsen
90ffb7233d refactor: Update test-setup.sh to set test environment variables and billing keys 2024-08-15 15:31:24 +01:00
Simon Larsen
7742318b74 refactor: Improve code readability and formatting in DropdownUtil and QueryUtil 2024-08-15 15:25:59 +01:00
Simon Larsen
5a1705cf12 refactor: Update watch paths in nodemon.json files and add test-setup.sh script 2024-08-15 14:12:30 +01:00
Simon Larsen
fe55d39d14 refactor: Update table container class name in BaseModelTable and Table components 2024-08-15 12:40:21 +01:00
Simon Larsen
a820b53d65 refactor: Update config.env with test billing private key 2024-08-15 12:16:57 +01:00
Simon Larsen
d2a9d9fed4 reafactor: fix team member tests 2024-08-15 00:05:40 +01:00
Simon Larsen
c9a69db7f2 refactor: Update import paths for ObjectID and OneUptimeDate in various service files 2024-08-14 22:51:29 +01:00
Simon Larsen
69dd24128a feat: Add PATCH method support to API components 2024-08-14 16:42:07 +01:00
Simon Larsen
7c2238eac7 refactor: Update code to handle missing teamMembers in AccessTokenService 2024-08-14 15:42:03 +01:00
Simon Larsen
2e850ed6ab refactor: Update PostgresDatabase.ts and UserService.ts to use explicit type annotations 2024-08-14 13:52:42 +01:00
Simon Larsen
7e54fc33ae refactor: Update ProjectTestService to allow generating random projects with seat limit 2024-08-14 10:11:08 +01:00
Simon Larsen
bc15416103 refactor: Remove unused imports and update error message in ScheduledMaintenanceService 2024-08-14 10:10:22 +01:00
Simon Larsen
b61fb75e36 refactor: Remove unused imports and update error message in ScheduledMaintenanceService 2024-08-13 19:18:27 +01:00
Simon Larsen
a2d2ed038b refactor: Update ScheduledMaintenanceService error message for missing ProjectId 2024-08-13 19:16:56 +01:00
Simon Larsen
f36ea78168 refactor: Update Database class to initialize dataSourceOptions and dataSource as null 2024-08-13 15:10:40 +01:00
Simon Larsen
14cf7f047f refactor: Remove unused imports in ServiceRoute.ts, Index.ts, and various service files 2024-08-13 14:54:29 +01:00
Simon Larsen
c64c3d7012 refactor: Remove unused imports in ServiceRoute.ts, Index.ts, and various service files 2024-08-13 14:37:23 +01:00
Simon Larsen
8cb15df390 refactor: Update ServiceRoute.ts, BillingService.test.ts, ProjectService.ts, ProjectSsoService.ts, DomainService.ts, GlobalConfigService.ts, ProbeService.ts, AcmeChallengeService.ts, CopilotActionService.ts, StatusPageSsoService.ts, ApiKeyService.ts, ResellerService.ts, and ProbeOwnerTeamService.ts 2024-08-13 14:16:53 +01:00
Simon Larsen
32da3f7c94 refactor: Update ProjectAPI and DatabaseService to use explicit type annotations 2024-08-13 13:31:00 +01:00
Simon Larsen
9355f185a9 refactor: Update pricing page with new feature description 2024-08-13 12:12:17 +01:00
Simon Larsen
c53584e9d5 should generate a string of random numbers of specified length 2024-08-12 22:57:36 +01:00
Simon Larsen
01be73612d refactor: Update TestDatabase to use pg-mem for in-memory database in tests 2024-08-09 09:53:22 -06:00
Simon Larsen
99a80ab9b6 refactor: Update PostgresDatabase.ts to use async/await for createDatabase and dropDatabase methods 2024-08-09 09:28:09 -06:00
Simon Larsen
95dca8e8c6 refactor: Update Statement.ts to use explicit type annotations for isNumberArray 2024-08-09 08:38:28 -06:00
Simon Larsen
eddc5f1845 refactor: Update DropdownUtil to return dropdownOptions directly 2024-08-09 08:34:00 -06:00
Simon Larsen
c965c18943 refactor: Update test.common.yaml to install npm dependencies in Common directory 2024-08-08 16:22:37 -06:00
Simon Larsen
3c20f424e9 refactor: Update test-setup.sh to export environment variables and start PostgreSQL in docker-compose 2024-08-08 16:05:37 -06:00
Simon Larsen
0ef7ca93f8 refactor: Update JSONFunctions and Table component to support custom classNames 2024-08-08 16:04:14 -06:00
Simon Larsen
ca7c55b557 refactor: Update test-setup.sh path in test.common.yaml 2024-08-08 14:36:27 -06:00
Simon Larsen
a72373994a refactor: Update test-setup.sh for running database in docker-compose 2024-08-08 14:36:05 -06:00
Simon Larsen
fc0071162e refactor: Update span count and query in MonitorTelemetryMonitor.ts 2024-08-08 12:00:48 -06:00
Simon Larsen
3eef55a29d refactor: Update import statements for CommonUI to use Common/UI 2024-08-08 11:52:34 -06:00
Simon Larsen
aa5dc27427 refactor: Update PostgresDatabase.ts to use async/await for createDatabase and dropDatabase methods 2024-08-08 11:42:30 -06:00
Simon Larsen
900e567748 refactor: Update Slug.ts to use getRandomNumbers method in Faker 2024-08-08 10:45:30 -06:00
Simon Larsen
a88b14747c refactor: Update values.yaml and config.example.env for Let's Encrypt integration 2024-08-08 09:56:15 -06:00
Simon Larsen
1619b23996 refactor: Update Statement.ts to support numbers in finalValue map 2024-08-08 08:35:12 -06:00
Simon Larsen
6ed7e19538 refactor: Update QueryHelper to support numbers in any() method 2024-08-08 08:28:23 -06:00
Simon Larsen
41a3bc8a72 refactor: Add support for monitoring trace counts 2024-08-07 21:11:16 -06:00
Simon Larsen
2621dc7cc2 refactor: Update type name in PostgresDatabase.ts 2024-08-07 19:57:23 -06:00
Simon Larsen
c40ec85ce3 refactor: Remove moduleNameMapper for axios in jest.config.json 2024-08-07 19:52:37 -06:00
Simon Larsen
ff6369389c refactor: Update import statements for axios in jest.config.json 2024-08-07 19:31:17 -06:00
Simon Larsen
9211c91510 refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 18:11:30 -06:00
Simon Larsen
3e778fe503 refactor: Update mockRequest.cookies assignment in Cookie.test.ts 2024-08-07 17:38:56 -06:00
Simon Larsen
77308cd9b7 refactor: Fix formatting and indentation in ProjectAuthorization.test.ts 2024-08-07 16:58:35 -06:00
Simon Larsen
60a33b5b0c Merge pull request #1636 from OneUptime/refactor-common-ui
Refactor common UI
2024-08-07 16:48:04 -06:00
Simon Larsen
679649e7ac refactor: Update import statements for axios in jest.config.json 2024-08-07 16:47:14 -06:00
Simon Larsen
719272e360 refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 16:43:50 -06:00
Simon Larsen
ca7907973a refactor: Update test-setup.sh to use relative path for changing directory 2024-08-07 16:16:11 -06:00
Simon Larsen
86e5a33bd9 refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 16:14:31 -06:00
Simon Larsen
3eb6f4da5f refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 15:58:06 -06:00
Simon Larsen
dea6c55365 refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 15:50:32 -06:00
Simon Larsen
ce9e449ba1 Merge pull request #1637 from OneUptime/master
Release
2024-08-07 15:40:50 -06:00
Simon Larsen
12530a1d0d refactor: Update Date.test.ts to use Date objects instead of formatted strings 2024-08-07 15:26:07 -06:00
Simon Larsen
4e81ed92f2 refactor: Remove node_modules from the Common project 2024-08-07 13:40:10 -06:00
Simon Larsen
21047e77b1 refactor: Remove CommonUI from package.json dependencies 2024-08-07 13:37:29 -06:00
Simon Larsen
67a326e6af refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 13:36:13 -06:00
Simon Larsen
23318f093f refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 13:34:27 -06:00
Simon Larsen
805a9b928f refactor: Update import statements for test files to use relative paths 2024-08-07 13:32:16 -06:00
Simon Larsen
63202cc51f refactor: Update import statements for UserProfile component to use FileUtil.getFileRoute instead of FileUtil.getFileURL 2024-08-07 13:30:33 -06:00
Simon Larsen
bb646bbcf1 refactor: Update Date.test.ts to use Date objects instead of formatted strings 2024-08-07 13:24:19 -06:00
Simon Larsen
000012cd03 refactor: Update Date.test.ts to use Date objects instead of formatted strings 2024-08-07 13:11:48 -06:00
Simon Larsen
1ed9dfc429 refactor: Update Date.test.ts to use Date objects instead of formatted strings 2024-08-07 12:50:45 -06:00
Simon Larsen
491b89cbb4 Merge branch 'merge-dir' 2024-08-07 10:43:17 -06:00
Simon Larsen
bfc8619095 refactor: Update import statements for UserProfile component to use FileUtil.getFileRoute instead of FileUtil.getFileURL 2024-08-07 10:42:47 -06:00
Simon Larsen
8ec5e4bb8a chore: Add telemetry logs viewer to IncidentView page 2024-08-07 09:33:41 -06:00
Simon Larsen
c0c596346c refactor: Update import statements for UserProfile component to use FileUtil.getFileRoute instead of FileUtil.getFileURL 2024-08-07 09:20:19 -06:00
Simon Larsen
e27d47e5bb Merge pull request #1633 from OneUptime/merge-dir
Add Log Monitors
2024-08-06 22:10:56 -06:00
Simon Larsen
524863dff3 refactor: Update import statements for UserProfile component to use FileUtil.getFileRoute instead of FileUtil.getFileURL 2024-08-06 19:38:47 -06:00
Simon Larsen
5bc054504a refactor: Update import statements for UserProfile component to use FileUtil.getFileRoute instead of FileUtil.getFileURL 2024-08-06 17:57:27 -06:00
Simon Larsen
6fd43622a3 refactor: Update import statements for UserProfile component to use FileUtil.getFileRoute instead of FileUtil.getFileURL 2024-08-06 17:47:18 -06:00
Simon Larsen
725a58d5fb refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-06 17:47:14 -06:00
Simon Larsen
9bf3856c95 refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-06 14:02:28 -06:00
Simon Larsen
5fc95eb02e refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-06 11:26:13 -06:00
Simon Larsen
3f7cfa3110 refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-06 09:20:10 -06:00
Simon Larsen
bca44b5faf refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 15:41:32 -06:00
Simon Larsen
02f91d26ff refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 15:40:20 -06:00
Simon Larsen
5221c20ee2 refactor: Remove commented out code and unused monitor types in MonitorTypeHelper 2024-08-05 15:11:54 -06:00
Simon Larsen
ea0d1a479f Merge pull request #1626 from OneUptime/merge-dir
refactor: Update import statements for ProbeMonitor and ServerMonitor…
2024-08-05 14:59:54 -06:00
Simon Larsen
ea3c357be1 refactor: Remove unused "Model" dependency from package.json files 2024-08-05 14:58:52 -06:00
Simon Larsen
b1c3a9e3c8 refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 14:34:48 -06:00
Simon Larsen
9ec136bf78 chore: Update npm dependencies and remove unnecessary npm install commands 2024-08-05 13:15:36 -06:00
Simon Larsen
c4611848e3 refactor: Update import statement for NestedModel in StatementGenerator.test.ts 2024-08-05 13:13:06 -06:00
Simon Larsen
a096591c52 refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 13:05:53 -06:00
Simon Larsen
b29fb6e833 refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 13:00:31 -06:00
Simon Larsen
2e2ade0b16 refactor: Update import statements for BaseModel in JSONFunctions and BaseModel in UserModel 2024-08-05 12:08:45 -06:00
Simon Larsen
525ad8c664 refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 11:46:35 -06:00
Simon Larsen
434c55f88f refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 11:44:52 -06:00
Simon Larsen
c968156fa7 refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 11:43:45 -06:00
Simon Larsen
36a0dad41c refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 11:35:45 -06:00
Simon Larsen
52630b16d1 refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 10:06:53 -06:00
Simon Larsen
7b994675c8 Merge pull request #1625 from OneUptime/log-monitors
Log monitors
2024-08-05 09:56:26 -06:00
Simon Larsen
d0692ebc8f refactor: Remove unnecessary whitespace in code 2024-08-04 20:44:30 -06:00
Simon Larsen
63197d263f refactor: Update monitor interfaces to use consistent naming 2024-08-04 20:33:16 -06:00
Simon Larsen
13b1998261 refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-04 19:56:45 -06:00
Simon Larsen
29764ae7c7 refactor: Update monitor interfaces to use consistent naming 2024-08-04 19:39:36 -06:00
Simon Larsen
5c3175f9e7 refactor: Update monitor interfaces to use consistent naming
```
2024-08-04 18:01:04 -06:00
Simon Larsen
8caac12041 refactor: Update LogSeverity enum to use string values instead of enum values 2024-08-04 17:29:38 -06:00
Simon Larsen
d84cf5b8ec refactor: Update LogSeverity enum to use string values instead of enum values
This refactor updates the LogSeverity enum to use string values instead of enum values. This change allows for better compatibility and flexibility when working with log severity levels. The enum values have been replaced with corresponding string values.

Files modified:
- Common/Types/Log/LogSeverity.ts
- Ingestor/API/OTelIngest.ts
- Ingestor/API/FluentIngest.ts
- Model/AnalyticsModels/Log.ts
- CommonUI/src/Components/LogsViewer/LogItem.tsx
- CommonUI/src/Components/LogsViewer/LogsViewer.tsx
- CommonUI/src/Components/Filters/DropdownFilter.tsx
- Common/Types/ObjectID.ts
- CommonUI/src/Components/Filters/FiltersForm.tsx
2024-08-04 16:41:07 -06:00
Simon Larsen
a49709992c refactor: Update docker-compose commands to use "docker compose" instead of "docker-compose" 2024-08-03 20:07:56 -06:00
Simon Larsen
21b078040c refactor: Update proudly-open-source.ejs to include GitHub repo link 2024-08-03 14:34:51 -06:00
Simon Larsen
70371a32af feat: Add imagePullSecrets to Helm chart templates 2024-08-03 14:25:26 -06:00
Simon Larsen
f45985e0ce Merge pull request #1624 from kruchkov-alexandr/feature/add-imagepullsecret-to-chart
Add imagePullSecrets to chart
2024-08-03 14:18:25 -06:00
AlexK
f1d7e0d13f add imagePullSecrets to chart 2024-08-03 15:02:44 +02:00
Simon Larsen
3f8a5291f0 refactor: Initialize telemetry with correct service name in Telemetry and InfrastructureStatus 2024-08-02 16:50:13 -06:00
Simon Larsen
e60b06d014 refactor: Initialize telemetry with correct service name in Telemetry and InfrastructureStatus
This refactor updates the Telemetry and InfrastructureStatus components to initialize telemetry with the correct service name. By using the APP_NAME constant defined in the Index.ts file, the service name is now dynamically set, ensuring accurate telemetry tracking.

Files modified:
- App/Index.ts
- CommonServer/Utils/Telemetry.ts
2024-08-02 16:47:55 -06:00
Simon Larsen
c9e67311e7 refactor: Update TelemetryIngestor and Probe to initialize telemetry with the correct service name 2024-08-02 16:37:23 -06:00
Simon Larsen
0b10880f58 refactor: Update TelemetryIngestor and Probe to initialize telemetry with the correct service name
This refactor updates the TelemetryIngestor and Probe components to initialize telemetry with the correct service name. Previously, the service name was hardcoded or set to a default value, which could lead to inconsistencies and confusion. By using the APP_NAME constant defined in each component, the service name is now dynamically set, ensuring accurate telemetry tracking.

Files modified:
- TelemetryIngestor/Index.ts
- Probe/Index.ts
2024-08-02 16:35:09 -06:00
Simon Larsen
d49a6ce009 refactor: Update OneUptime chart to use probes instead of probe for probe configuration 2024-08-02 14:02:55 -06:00
Simon Larsen
9b8a5c9c43 feat: Add lazy loading for images in SettingsRoutes 2024-08-02 13:44:59 -06:00
Simon Larsen
9dc31fe536 refactor: Update APIKeyView and TelemetryIngestionKeyView to use RouteUtil.populateRouteParams
This refactor updates the APIKeyView and TelemetryIngestionKeyView components to use the RouteUtil.populateRouteParams function when navigating to other routes. This ensures that route parameters are properly populated, improving the reliability and consistency of the navigation logic.
2024-08-02 12:06:29 -06:00
Simon Larsen
0d40be3db1 refactor: Update APIKeyView and TelemetryIngestionKeyView to use RouteUtil.populateRouteParams
This refactor updates the APIKeyView and TelemetryIngestionKeyView components to use the RouteUtil.populateRouteParams function when navigating to other routes. This ensures that route parameters are properly populated, improving the reliability and consistency of the navigation logic.

Files modified:
- Dashboard/src/Pages/Settings/APIKeyView.tsx
- Dashboard/src/Pages/Settings/TelemetryIngestionKeyView.tsx
2024-08-01 20:43:41 -06:00
Simon Larsen
6754167e57 Update Docker Compose files to use OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT consistently across all services. This change ensures that the OpenTelemetry exporter endpoint is set uniformly for all services, improving consistency and reducing potential configuration errors.
Files modified:
- docker-compose.base.yml
- config.example.env
2024-08-01 19:40:56 -06:00
Simon Larsen
3bf74edae4 feat: Update OneUptime chart to use probes instead of probe for probe configuration 2024-08-01 19:37:46 -06:00
Simon Larsen
8a77ae977e refactor: Update OneUptime chart to use probes instead of probe for probe configuration 2024-08-01 19:25:54 -06:00
Simon Larsen
6fbca4b6cb refactor: Remove deprecated Service Token field
The deprecated Service Token field in the TelemetryService model and related components was removed. This improves code cleanliness and removes unnecessary dependencies.

Files modified:
- Dashboard/src/Pages/Telemetry/Services/View/Index.tsx
- Dashboard/src/Pages/Telemetry/Services/View/Settings.tsx
- Model/Models/TelemetryService.ts
2024-08-01 15:46:14 -06:00
Simon Larsen
5cf1a7f675 chore: Remove unused ResetObjectID component
The ResetObjectID component in the Settings page was removed as it is no longer needed. This improves code cleanliness and reduces unnecessary dependencies.

Files modified:
- Dashboard/src/Pages/Telemetry/Services/View/Settings.tsx
2024-08-01 15:41:55 -06:00
Simon Larsen
7339f4873b feat: Add lazy loading for images in SettingsRoutes
Update SettingsRoutes to include lazy loading for images in the telemetry ingestion key view. This improves page load performance by loading images only when they are in the viewport.

Files modified:
- Dashboard/src/Routes/SettingsRoutes.tsx
2024-08-01 15:38:31 -06:00
Simon Larsen
0872b1e8a2 feat: Add Telemetry Ingestion Keys page to Settings 2024-08-01 14:26:35 -06:00
Simon Larsen
8307f4deca feat: Add Telemetry Ingestion Keys page to Settings
This commit adds a new page, "Telemetry Ingestion Keys," to the Settings section of the dashboard. The page allows users to manage and view the telemetry ingestion keys used for data collection. It includes a list of keys and their associated details, such as name and creation date. This enhancement provides users with better control and visibility over their telemetry data.

Files modified:
- Dashboard/src/Utils/PageMap.ts
- Dashboard/src/Pages/Settings/SideMenu.tsx
- Dashboard/src/Routes/SettingsRoutes.tsx
2024-08-01 14:23:02 -06:00
Simon Larsen
0ac88b3679 refactor: Update Copilot module styling and content
This commit updates the styling and content of the Copilot module on the home page. The changes include adding a border-radius to the module, improving the visual appearance. Additionally, the text content of the module is modified to provide a clearer description of the services offered by OneUptime. These updates enhance the overall user experience and make the Copilot module more visually appealing.

Files modified:
- App/FeatureSet/Home/Views/Partials/copilot.ejs
2024-08-01 12:48:39 -06:00
Simon Larsen
2c5bbbb6da feat: Update OneUptime chart to use probes instead of probe for probe configuration
This commit modifies the OneUptime chart to use the `probes` parameter instead of the `probe` parameter for configuring probes. The `probes` parameter now accepts a key-value pair where the key represents the probe name and the value contains the probe configuration details. This change improves the clarity and consistency of the chart configuration, making it easier to manage and maintain.

Files modified:
- HelmChart/Public/oneuptime/README.md
2024-08-01 08:22:51 -06:00
Simon Larsen
88216cdebb Update OneUptime chart to include secure probe keys
This commit adds a new configurable parameter `probe.<key>.key` to the OneUptime chart. It is recommended to set this parameter to a long random string to secure the probes. This enhancement improves the security of the OneUptime application by ensuring that only authorized entities can access and use the probes.

Files modified:
- HelmChart/Public/oneuptime/README.md
2024-08-01 08:18:28 -06:00
Simon Larsen
a24822bd56 refactor: Include Reviews module on home page 2024-07-31 20:51:23 -06:00
OneUptime Copilot
b1ce674788 OneUptime Copilot: Improve Comments on /App/Index.ts 2024-08-01 02:41:57 +00:00
Simon Larsen
8f4538a75c refactor: Include Copilot module in home page 2024-07-31 17:36:16 -06:00
Simon Larsen
14be322ef7 refactor: Update home page to include Reviews module 2024-07-31 17:28:18 -06:00
Simon Larsen
b50f05b290 Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-07-31 17:02:45 -06:00
Simon Larsen
e215b5b1ba Merge branch 'master' into release 2024-07-31 17:02:34 -06:00
Simon Larsen
c93f58227f refactor: Update home page to include Reviews module
This commit updates the home page to include the Reviews module. The Reviews module displays a list of reviews from customers, providing social proof and enhancing the user experience. The necessary changes are made to the index.ejs file and the include statements for the Reviews module. This improvement showcases positive feedback and builds trust with potential customers.

Files modified:
- App/FeatureSet/Home/Views/index.ejs
- App/FeatureSet/Home/Views/Partials/reviews.ejs
2024-07-31 17:02:09 -06:00
Simon Larsen
538e40c4ae refactor: Add Reviews module and update home page to display reviews
This commit adds a new Reviews module to the Home feature set. The Reviews module contains a list of reviews that will be displayed on the home page. The home page is updated to include the Reviews module and pass the reviews list to the view template. This enhancement improves the user experience by showcasing positive feedback from customers.

Files modified:
- App/FeatureSet/Home/Index.ts
- App/FeatureSet/Home/Views/Partials/proudly-open-source.ejs
- App/FeatureSet/Home/Views/Partials/review.ejs
- App/FeatureSet/Home/Utils/Reviews.ts
2024-07-31 16:49:48 -06:00
Simon Larsen
4a03abe3d5 refactor: Update about page content and add values section 2024-07-31 16:01:54 -06:00
Simon Larsen
c218a6f209 refactor: Update about page content and add values section 2024-07-31 15:37:45 -06:00
Simon Larsen
a8f04a8204 refactor: Update about page content and add values section
This commit updates the content of the about page to better reflect the goals and vision of the project. It also adds a new section called "Our values" that highlights the principles that the company cares deeply about. This change improves the clarity and messaging of the about page, providing a better understanding of the project's purpose and values.

Files modified:
- App/FeatureSet/Home/Views/about.ejs
2024-07-30 16:52:24 -06:00
Simon Larsen
642b1616ca refactor: Rename telemetry tables and update related code 2024-07-30 15:07:53 -06:00
Simon Larsen
9afbac2cbc refactor: Rename telemetry tables and update related code
This commit renames the telemetry tables in the AnalyticsModels directory to have a "Telemetry" suffix (e.g., Log -> LogTelemetry, Metric -> MetricTelemetry, Span -> SpanTelemetry). It also updates the related code in the TelemetryAttribute, StatementGenerator, and DataMigrations files to reflect the table name changes. This change improves the clarity and consistency of the telemetry-related code.

Files modified:
- Model/AnalyticsModels/TelemetryAttribute.ts
- Model/AnalyticsModels/Log.ts
- Model/AnalyticsModels/Metric.ts
- Model/AnalyticsModels/Span.ts
- CommonServer/Tests/Services/AnalyticsDatabaseService.test.ts
- CommonServer/Tests/Utils/AnalyticsDatabase/StatementGenerator.test.ts
- App/FeatureSet/Workers/DataMigrations/Index.ts
- App/FeatureSet/Workers/DataMigrations/DeleteOldTelelmetryTable.ts
2024-07-30 14:35:30 -06:00
Simon Larsen
b6b49a1255 Merge pull request #1615 from OneUptime/master
feat: Add support for displaying Open Source Friends
2024-07-30 12:10:45 -06:00
Simon Larsen
1cd89851bb feat: Add support for displaying Open Source Friends 2024-07-30 10:50:26 -06:00
Simon Larsen
229b5cd772 feat: Add ArrayUtil import to TelemetryAPI
This commit adds the import statement for the ArrayUtil module to the TelemetryAPI file. The ArrayUtil module is used to remove duplicate attributes fetched from the server. This import ensures that the ArrayUtil functions can be used in the TelemetryAPI module, improving the efficiency and accuracy of attribute handling in the telemetry system.
2024-07-30 09:39:19 -06:00
Simon Larsen
2b1ad303d9 feat: Update MetricsTable to fetch and display attributes
This commit updates the MetricsTable component to fetch and display attributes for each metric. It adds a new API request to retrieve the attributes from the server and updates the component's state to store the fetched attributes. The attributes are then passed to the AnalyticsModelTable component to be displayed in the "Attributes" column. This enhancement improves the visibility and analysis capabilities of the metrics data.

Files modified:
- Dashboard/src/Components/Metrics/MetricsTable.tsx
2024-07-29 17:12:39 -06:00
Simon Larsen
54b0f355dc feat: Update OTelIngest to index attributes for telemetry types
This commit updates the OTelIngest module to index attributes for different telemetry types (Trace, Metric, and Log). It adds the necessary code to extract attributes from spans, metrics, and logs, and sends them to the OTelIngestService.indexAttributes() function. This ensures that the attributes are properly indexed for each telemetry type, improving the search and analysis capabilities of the system.

Files modified:
- Ingestor/API/OTelIngest.ts
- Ingestor/Service/OTelIngest.ts
2024-07-29 16:53:23 -06:00
Simon Larsen
10ed38197e feat: Update TwoFactorAuth utility class to use otpauth library 2024-07-29 16:45:14 -06:00
Simon Larsen
cc4dab2dcf feat: Add email verification to two-factor authentication
This commit adds the user's email to the two-factor authentication process. When verifying the two-factor authentication code, the user's email is now passed as an additional parameter. This enhances the security of the authentication process by ensuring that the code is associated with the correct user. The email is retrieved from the user object and passed to the TwoFactorAuth.verifyToken() function.

Files modified:
- App/FeatureSet/Identity/API/Authentication.ts
- CommonServer/API/UserTwoFactorAuthAPI.ts
2024-07-29 15:27:54 -06:00
Simon Larsen
8852e2ab61 feat: Update TwoFactorAuth utility class to use otpauth library
This commit updates the TwoFactorAuth utility class to use the otpauth library instead of the speakeasy library for generating and verifying two-factor authentication tokens. The otpauth library provides a more modern and maintained solution for handling OTP generation and verification. This change improves the security and reliability of the two-factor authentication feature.

Files modified:
- CommonServer/Utils/TwoFactorAuth.ts
- CommonServer/package.json
2024-07-29 14:23:19 -06:00
Simon Larsen
50b6a746f4 feat: Add support for displaying Open Source Friends 2024-07-29 13:18:26 -06:00
Simon Larsen
df8d2f25ee feat: Enable two-factor authentication on login page 2024-07-28 19:37:33 -06:00
Simon Larsen
ee3de663b5 feat: Add two-factor authentication support to login page
This commit adds support for two-factor authentication on the login page. It includes the necessary code changes to display the two-factor authentication UI elements when the user has enabled it. The login form now includes a field for entering the two-factor authentication code. Additionally, the API endpoint for verifying the two-factor authentication code has been implemented. This feature enhances the security of the login process by adding an extra layer of authentication.

Files modified:
- Accounts/src/Pages/Login.tsx
- App/FeatureSet/Identity/API/Authentication.ts
- CommonServer/Utils/TwoFactorAuth.ts
2024-07-28 12:29:55 -06:00
Simon Larsen
a4d1ed7f01 feat: Add BadDataException for two-factor authentication
This commit adds the BadDataException class to handle errors related to two-factor authentication. It is imported and used in the UserService and UserTwoFactorAuthService files to throw an exception when necessary. This improves the error handling and provides more specific error messages for two-factor authentication related issues.

Files modified:
- CommonServer/Services/UserService.ts
- CommonServer/Services/UserTwoFactorAuthService.ts
2024-07-28 11:49:59 -06:00
Simon Larsen
05a26d0b3f feat: Add VERIFY_TWO_FACTOR_AUTH_API_URL constant
This commit adds the VERIFY_TWO_FACTOR_AUTH_API_URL constant to the ApiPaths module in order to provide a URL for verifying two-factor authentication. This constant is used in the Authentication module to make API requests for verifying the user's two-factor authentication. The constant is constructed using the IDENTITY_URL and a new route "/verify-two-factor-auth". This addition enables the implementation of the two-factor authentication verification feature.

Files modified:
- Accounts/src/Utils/ApiPaths.ts
2024-07-28 10:52:11 -06:00
Simon Larsen
0a5094db37 feat: Enable lazy loading of QR code generation in QR component 2024-07-28 09:52:38 -06:00
Simon Larsen
2f2c4891e3 feat: Enable lazy loading of QR code generation in QR component 2024-07-27 10:43:14 -06:00
Simon Larsen
83cb3b66e0 feat: Enable lazy loading of QR code generation in QR component
This commit updates the QR component to use React hooks and lazy load the QR code generation. By utilizing functional components and the useState and useEffect hooks, the QR code is now only generated when needed, improving performance by reducing unnecessary computations. The code changes also include error handling to display an error message if there is an issue generating the QR code.

Files modified:
- CommonUI/src/Components/QR/QR.tsx
2024-07-27 10:18:02 -06:00
Simon Larsen
63575f3065 Update QR component to use React hooks and lazy load QR code generation. This improves performance by only generating the QR code when needed, reducing unnecessary computations. The code changes include replacing class components with functional components and utilizing the useState and useEffect hooks. The QR code generation is now triggered when the props.text value changes. Additionally, error handling has been added to display an error message if there is an issue generating the QR code.
Files modified:
- CommonUI/src/Components/QR/QR.tsx
2024-07-27 09:25:01 -06:00
Simon Larsen
bf031f64fa feat: Add support for two-factor authentication in user profile
This commit adds support for two-factor authentication in the user profile. It includes the necessary code changes to enable the "Two Factor Auth Enabled" feature in the User model, as well as the addition of the "USER_TWO_FACTOR_AUTH" page in the PageMap and the corresponding route in the RouteMap. The UserTwoFactorAuth model, service, and controller have also been added to handle the logic and API endpoints related to two-factor authentication.

See the following files for more details:
- Common/Types/Icon/IconProp.ts
- Dashboard/src/Utils/PageMap.ts
- Dashboard/src/Utils/RouteMap.ts
- Model/Models/Index.ts
- Model/Models/User.ts
- CommonServer/Services/Index.ts
- CommonServer/package.json
- CommonUI/package.json
- CommonServer/Infrastructure/Postgres/SchemaMigrations/Index.ts
- Dashboard/src/App.tsx
2024-07-26 19:55:40 -06:00
Simon Larsen
04f1cfe414 chore: Remove unused ChartGroupInterval enum
The ChartGroupInterval enum was removed from the ChartGroup component in order to simplify the code and remove unnecessary complexity. This enum was not being used anywhere in the codebase.
2024-07-26 13:57:42 -06:00
Simon Larsen
f11863df0f chore: Add startsAt and endsAt fields to MonitorGroupService 2024-07-26 11:02:39 -06:00
Simon Larsen
599fc23c1a Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-26 10:48:47 -06:00
Simon Larsen
fa03d9296c increase mem on ingestor 2024-07-26 10:48:45 -06:00
Simon Larsen
df9bb5184f Merge pull request #1606 from OneUptime/snyk-upgrade-3639c2517f779bcc4d9569e58993034b
[Snyk] Upgrade reactflow from 11.11.3 to 11.11.4
2024-07-26 10:37:34 -06:00
Simon Larsen
ca7b06d4bc chore: Update StatusPageSubscriberReport template
The StatusPageSubscriberReport template has been updated to display a more detailed report instead of listing the monitored resources. This change improves the clarity and usefulness of the report.

See this file in the repository:
`App/FeatureSet/Notification/Templates/StatusPageSubscriberReport.hbs`
2024-07-26 10:36:11 -06:00
Simon Larsen
59d6ef240f chore: Add error handling for missing SMTP configuration
This commit adds error handling to the `getGlobalSMTPConfig` function in the `Config.ts` file. If any required SMTP configuration values are missing, a `BadDataException` is thrown with a message instructing the user to set the missing values in the Admin Dashboard.

See this file in the repository:
`App/FeatureSet/Notification/Config.ts`
2024-07-26 10:20:47 -06:00
Simon Larsen
5ae034ffdf chore: Add iputils-ping package to Dockerfile
The Dockerfile has been modified to include the installation of the `iputils-ping` package. This change ensures that the `ping` command is available within the Docker container.

See this file in the repository:
`Probe/Dockerfile.tpl`
2024-07-26 10:03:26 -06:00
Simon Larsen
be75960aff Merge pull request #1603 from OneUptime/snyk-upgrade-c18c73e17c875fc14eb8aef47fdb9cd3
[Snyk] Upgrade react-router-dom from 6.23.1 to 6.24.1
2024-07-26 08:37:36 -06:00
Simon Larsen
708f104dfc Merge pull request #1604 from OneUptime/snyk-upgrade-a8c089139458fb3596d95f5fecc84367
[Snyk] Upgrade react-spinners from 0.13.8 to 0.14.1
2024-07-26 08:37:30 -06:00
Simon Larsen
23c34cc71a Merge pull request #1605 from OneUptime/snyk-upgrade-4502b9e038edcb78602d9e97157e6fb9
[Snyk] Upgrade @opentelemetry/instrumentation-fetch from 0.52.0 to 0.52.1
2024-07-26 08:37:22 -06:00
Simon Larsen
3bf76168f1 Merge pull request #1607 from OneUptime/snyk-upgrade-5a4c450f5a959cd973684a5461ecf859
[Snyk] Upgrade playwright from 1.44.1 to 1.45.1
2024-07-26 08:36:36 -06:00
snyk-bot
3499850c6d fix: upgrade playwright from 1.44.1 to 1.45.1
Snyk has created this PR to upgrade playwright from 1.44.1 to 1.45.1.

See this package in npm:
playwright

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-26 06:41:49 +00:00
snyk-bot
273a153311 fix: upgrade reactflow from 11.11.3 to 11.11.4
Snyk has created this PR to upgrade reactflow from 11.11.3 to 11.11.4.

See this package in npm:
reactflow

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-26 06:30:58 +00:00
snyk-bot
b248dc324d fix: upgrade @opentelemetry/instrumentation-fetch from 0.52.0 to 0.52.1
Snyk has created this PR to upgrade @opentelemetry/instrumentation-fetch from 0.52.0 to 0.52.1.

See this package in npm:
@opentelemetry/instrumentation-fetch

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-26 06:30:54 +00:00
snyk-bot
7d7b4110a7 fix: upgrade react-spinners from 0.13.8 to 0.14.1
Snyk has created this PR to upgrade react-spinners from 0.13.8 to 0.14.1.

See this package in npm:
react-spinners

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-26 06:30:49 +00:00
snyk-bot
262436f906 fix: upgrade react-router-dom from 6.23.1 to 6.24.1
Snyk has created this PR to upgrade react-router-dom from 6.23.1 to 6.24.1.

See this package in npm:
react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-26 06:30:46 +00:00
Simon Larsen
2c7b845cb6 refactor: Initialize countPositive with a default value of 0 in AnalyticsDatabaseService
This commit modifies the AnalyticsDatabaseService by initializing the countPositive variable with a default value of 0 when the strResult is null or undefined. This change ensures that countPositive is always assigned a value, even when there is no valid strResult.

The modification improves the reliability of the countPositive variable and prevents potential errors when using it in subsequent calculations.

Co-authored-by: [Author Name]
2024-07-25 17:57:33 -06:00
Simon Larsen
3c9284915a Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-07-25 17:25:48 -06:00
Simon Larsen
ba97a1e14b refactor: Update npm dependency to latest stable version 2024-07-25 17:25:16 -06:00
Simon Larsen
e552a8130f Merge pull request #1602 from OneUptime/master
Release
2024-07-25 16:21:30 -06:00
Simon Larsen
1ed2548be2 refactor: Improve handling of status page resources in subscriber report
This commit refactors the code related to the status page subscriber report. The changes include updating the email template and resource handling in the `StatusPageSubscriberReport.hbs` file. The resource table is now rendered based on whether there are any resources to display. If there are no resources, a message indicating the absence of resources is shown.

Additionally, the `SendReportsToSubscribers.ts` file in the `Workers/Jobs/StatusPage` directory has been modified to handle the case where there are no status page resources. If there are no resources, the email report is not sent, and an error is logged.

These changes improve the handling of resources in the status page subscriber report and ensure that the email report is only sent when there are resources to include.
2024-07-25 15:30:10 -06:00
Simon Larsen
5c697105f3 refactor: Update email template and resource handling in StatusPageSubscriberReport
The code changes in the `StatusPageSubscriberReport.hbs` template file update the rendering of the resource table based on whether there are any resources to display. If there are resources, the table is rendered with the resource details. If there are no resources, a message is displayed indicating that no resources have been added yet.

In addition, the `SendReportsToSubscribers.ts` file in the `Workers/Jobs/StatusPage` directory has been modified to handle the case where there are no status page resources. If there are no resources, the email report is not sent and an error is logged.

These changes improve the handling of resources in the status page subscriber report and ensure that the email report is only sent when there are resources to include.
2024-07-25 15:23:56 -06:00
Simon Larsen
b2bdd5d1af refactor: Update import paths for UptimeEvent and CommonMonitorEvent 2024-07-25 15:00:10 -06:00
Simon Larsen
72e0f200f7 refactor: Update Monitor model and EmailTemplateType enum 2024-07-25 14:46:15 -06:00
Simon Larsen
3f0d75d799 refactor: Update Monitor model and EmailTemplateType enum
- Add 'canReadOnRelationQuery' property to the 'Monitor' model in order to allow reading on relation queries.
- Rename 'StatusPageReport' email template to 'StatusPageSubscriberReport' in the 'EmailTemplateType' enum.
2024-07-25 14:39:53 -06:00
Simon Larsen
519f2ef312 chore: Update dependencies in CommonProject package.json 2024-07-25 10:53:24 -06:00
Simon Larsen
cfbe92e40a refactor: Update MailService to handle JSON objects in vars parameter 2024-07-25 07:56:20 -06:00
Simon Larsen
8ef66650fb chore: Update package.json dependencies for CommonProject 2024-07-25 07:42:45 -06:00
Simon Larsen
07973e85a3 chore: Update package.json dependencies for CommonProject 2024-07-24 19:10:40 -06:00
Simon Larsen
34ca901007 refactor: Update import paths for UptimeEvent and CommonMonitorEvent 2024-07-24 19:09:39 -06:00
Simon Larsen
09883b1129 chore: Update Dockerfile templates to include CommonProject dependencies 2024-07-24 19:04:25 -06:00
Simon Larsen
b94b775e46 Merge remote-tracking branch 'origin/snyk-upgrade-aba1a472386457b0d6d03fface45e612' 2024-07-24 17:36:02 -06:00
Simon Larsen
1c3b7d9982 update otel api 2024-07-24 17:34:53 -06:00
Simon Larsen
ff062cb6a2 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-24 17:33:26 -06:00
Simon Larsen
2cabc922a0 Merge pull request #1581 from OneUptime/snyk-upgrade-0283fc9cc9679e8dddceee913aa83b7d
[Snyk] Upgrade protobufjs from 7.3.0 to 7.3.2
2024-07-24 17:30:24 -06:00
Simon Larsen
b6aaea8ae4 Merge pull request #1576 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-KWwHc
[OneUptime Copilot] Improve Comments on /App/FeatureSet/Docs/Index.ts
2024-07-24 17:27:41 -06:00
Simon Larsen
886aa086ec Merge pull request #1584 from OneUptime/snyk-upgrade-fa996be2aefbed98f1693310998c2799
[Snyk] Upgrade @opentelemetry/instrumentation-xml-http-request from 0.52.0 to 0.52.1
2024-07-24 17:27:12 -06:00
Simon Larsen
6c44201e1c Merge pull request #1583 from OneUptime/snyk-upgrade-b91af40dda1ae21dd8df7c2e11b2673d
[Snyk] Upgrade posthog-js from 1.139.3 to 1.139.6
2024-07-24 17:26:25 -06:00
Simon Larsen
3a72c5d04f Merge pull request #1585 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-xTNiR
[OneUptime Copilot] Improve Comments on /App/Index.ts
2024-07-24 17:26:16 -06:00
Simon Larsen
ea162322d2 Merge pull request #1587 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-CXUJA
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Index.ts
2024-07-24 17:25:53 -06:00
Simon Larsen
222c857354 Merge pull request #1588 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-fjDHl
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/Authentication.ts
2024-07-24 17:25:30 -06:00
Simon Larsen
d2d705783e Merge pull request #1589 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-ZbMDm
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/Errors.ts
2024-07-24 17:25:13 -06:00
Simon Larsen
75a7308647 Merge pull request #1595 from OneUptime/snyk-fix-cd71497a021e2dc5ca5ae7a982b1e2b4
[Snyk] Security upgrade node from 22.3.0 to 22.5
2024-07-24 17:24:47 -06:00
Simon Larsen
d61ade1eb4 Merge branch 'master' into snyk-fix-cd71497a021e2dc5ca5ae7a982b1e2b4 2024-07-24 17:24:25 -06:00
Simon Larsen
55e1f6b504 Merge pull request #1597 from OneUptime/snyk-fix-93589e9f7114ade2a7233d978fd63baa
[Snyk] Security upgrade node from 22.3.0 to 22.4.1
2024-07-24 17:23:58 -06:00
Simon Larsen
8b95f2887c Merge branch 'master' into snyk-fix-93589e9f7114ade2a7233d978fd63baa 2024-07-24 17:23:49 -06:00
Simon Larsen
2bd1693d1f Merge pull request #1598 from OneUptime/snyk-fix-75abf0e36ba39e30ccfc89f6bf348215
[Snyk] Security upgrade node from 22.3.0 to 22.5.0
2024-07-24 17:23:26 -06:00
Simon Larsen
b1eaded3fd refactor: Update StatusPageSubscriberReport template to display downtime in hours and minutes
This commit updates the StatusPageSubscriberReport template to display the downtime in hours and minutes instead of seconds. The fields "totalDowntime" and "averageUptime" are replaced with "totalDowntimeInHoursAndMinutes" and "averageUptimePercent" respectively. This change improves the readability and usability of the report for users.
2024-07-24 16:29:46 -06:00
Simon Larsen
7e486d34ae ```text
refactor: Update UptimeUtil and MonitorEvent imports

This commit updates the imports in the UptimeUtil and MonitorEvent files to use double quotes instead of single quotes. This change ensures consistency in the codebase and follows the established import style.
2024-07-24 16:18:22 -06:00
Simon Larsen
c930caa2bb refactor: Add support for reportDataInDays and isReportEnabled in StatusPageSubscriberService 2024-07-24 13:23:38 -06:00
Simon Larsen
e654b65e71 refactor: Add support for reportDataInDays and isReportEnabled in StatusPageSubscriberService 2024-07-24 12:53:18 -06:00
Simon Larsen
a145b346a4 refactor: Add support for reportDataInDays in StatusPage model
This commit adds the `reportDataInDays` property to the `StatusPage` model in the `StatusPage.ts` file. The `reportDataInDays` property allows users to specify the number of days of data to include in the report. This change enhances the reporting functionality of the application by providing more flexibility in generating reports for status pages.
2024-07-23 19:43:10 -06:00
Simon Larsen
f090654ab6 refactor: Add support for StatusPage reports 2024-07-23 17:56:45 -06:00
Simon Larsen
c2e14c378b refactor: Update StatusPageService to calculate and set the next report date
This commit modifies the StatusPageService in the StatusPageService.ts file. It adds logic to calculate and set the next report date based on the report start date and recurring interval. This change enhances the functionality of the StatusPage report feature by ensuring that the next report is scheduled correctly.
2024-07-23 13:29:02 -06:00
Simon Larsen
77996b2066 refactor: Add support for StatusPage reports
This commit adds support for generating and managing reports for the StatusPage feature. It includes database changes, such as adding new columns to the "StatusPage" table, and updates to various components and routes. The new functionality allows users to configure and schedule reports, enhancing the reporting capabilities of the application.
2024-07-23 13:06:12 -06:00
Simon Larsen
5fce72fe59 refactor: Add migration for StatusPage report functionality
This commit adds a migration file (1721754545771-MigrationName.ts) to implement the necessary database changes for the StatusPage report functionality. It adds new columns to the "StatusPage" table, including "isReportEnabled" (boolean), "reportStartDateTime" (timestamp with time zone), "reportRecurringInterval" (JSON), and "sendNextReportBy" (timestamp with time zone). These columns enable the configuration and scheduling of reports for the StatusPage feature. This change enhances the functionality and flexibility of the application when generating and managing reports for status pages.
2024-07-23 11:15:57 -06:00
Simon Larsen
9f8764d741 refactor: Add canReadOnRelationQuery property to TelemetryService's serviceColor
This commit adds the `canReadOnRelationQuery` property to the `serviceColor` field in the `TelemetryService` model. The `canReadOnRelationQuery` property allows for reading the `serviceColor` field when querying related data. This change enhances the functionality and flexibility of the `TelemetryService` model when working with related data.
2024-07-23 09:50:15 -06:00
Simon Larsen
9ce44cc416 refactor: Update BlogTitleAndDescription styling for better readability
This commit updates the styling of the BlogTitleAndDescription component in the BlogTitleAndDescription.ejs file. The font size, font weight, and line height of the title and description elements are adjusted to improve readability and visual hierarchy. This change enhances the overall user experience when viewing blog titles and descriptions on the home page.
2024-07-22 20:09:27 -06:00
Simon Larsen
f5f542cae6 refactor: Remove unnecessary whitespace in StatusAPI 2024-07-22 15:29:26 -06:00
Simon Larsen
de4eea4d24 refactor: Round metric values to integers in MetricView component 2024-07-22 15:24:08 -06:00
Simon Larsen
104535b723 ```text
refactor: Round metric values to integers in MetricView component

This commit modifies the MetricView component in the MetricView.tsx file. It adds logic to round the metric values to integers using the Math.round() function. This change improves the accuracy and readability of the displayed metric values.
2024-07-22 15:09:31 -06:00
Simon Larsen
6f5dfceb34 refactor: Enable real-time updates in LogsViewer components
This commit enables real-time updates in the LogsViewer components by setting the `enableRealtime` prop to `true` in the `Logs.tsx` and `Index.tsx` files. Previously, real-time updates were disabled (`enableRealtime` set to `false`), but this change allows for immediate updates of logs when new data is available. This enhancement improves the usability and responsiveness of the LogsViewer feature.
2024-07-22 14:47:01 -06:00
Simon Larsen
1ec61a473a refactor: Update LogItem component to display service name and color
This commit updates the LogItem component in the LogItem.tsx file. It adds functionality to display the service name and color based on the serviceId provided. The serviceMap dictionary is used to retrieve the service name and color, improving the readability and usability of the component. This change enhances the overall quality and user experience of the LogsViewer feature.
2024-07-22 14:33:18 -06:00
Simon Larsen
abf4faade7 refactor: Update TraceTable component to use React hooks and improve performance
This commit updates the TraceTable component in the TraceTable.tsx file. The component is refactored to use React hooks instead of class components, resulting in cleaner and more concise code. Additionally, the update improves the performance of the component by removing unused code and optimizing rendering. These changes enhance the overall quality and maintainability of the TraceTable component.
2024-07-22 13:50:04 -06:00
Simon Larsen
6a9ee5ba75 refactor: Add jsonKeys property to Filter interfaces
This commit adds the `jsonKeys` property to the `Filter` interface in two different files: `Filter.ts` and `ModelFilter/Filter.ts`. The `jsonKeys` property is an array of strings and is used to specify the JSON keys associated with a filter. This addition allows for more flexibility and customization when working with filters in the application.
2024-07-22 13:48:33 -06:00
Simon Larsen
b696e52145 refactor: Update SpanStatusElement component to handle SpanStatus
This commit updates the SpanStatusElement component to handle the new SpanStatus type. The title prop of the component is modified to accept a SpanStatus value in addition to a string. This change allows for more accurate and descriptive rendering of the span status in the TraceExplorer and TraceTable components. The update improves the overall consistency and usability of the application when displaying span status information.
2024-07-21 17:23:00 -06:00
Simon Larsen
8af8eb34ad refactor: Update TelemetryLayout component and add TraceTable
This commit updates the TelemetryLayout component to improve performance and readability. Unused code is removed, including imports, variables, and functions that are no longer needed. The component is also refactored to use React hooks instead of class components, resulting in cleaner and more concise code.

Additionally, a new TraceTable component is added, which replaces the TelemetryServiceTable component in the Telemetry/Traces.tsx file. The TraceTable component provides enhanced functionality for displaying and filtering trace data.

These changes enhance the overall quality, maintainability, and functionality of the TelemetryLayout component and improve the user experience when viewing telemetry data.
2024-07-21 17:10:09 -06:00
Simon Larsen
e600fac4fd refactor: Update TelemetryLayout component and add TraceTable 2024-07-21 17:02:51 -06:00
Simon Larsen
1772953b34 refactor: Update TelemetryLayout component and add TraceTable
This commit updates the TelemetryLayout component to improve performance and readability. Unused code is removed, including imports, variables, and functions that are no longer needed. The component is also refactored to use React hooks instead of class components, resulting in cleaner and more concise code.

Additionally, a new TraceTable component is added, which replaces the TelemetryServiceTable component in the Telemetry/Traces.tsx file. The TraceTable component provides enhanced functionality for displaying and filtering trace data.

These changes enhance the overall quality, maintainability, and functionality of the TelemetryLayout component and improve the user experience when viewing telemetry data.
2024-07-21 15:37:40 -06:00
Simon Larsen
44e3c99da8 refactor: Remove unused code and update TelemetryLayout component 2024-07-21 14:30:45 -06:00
Simon Larsen
5fa0f23689 refactor: Remove unused code and update TelemetryLayout component
This commit removes unused code in the TelemetryLayout component and updates it to improve performance and readability. The unused code includes imports, variables, and functions that are no longer needed. The component is also refactored to use React hooks instead of class components, resulting in cleaner and more concise code. These changes enhance the overall quality and maintainability of the TelemetryLayout component.
2024-07-21 13:09:00 -06:00
Simon Larsen
5a9a53dfea refactor: Add TelemetryAttributeService and update BaseAPIFeatureSet 2024-07-21 10:54:56 -06:00
Simon Larsen
9dae8e1764 refactor: Remove commented out code for empty formula configuration 2024-07-21 10:06:08 -06:00
Simon Larsen
2c8b58c293 refactor: Remove commented out code for empty formula configuration 2024-07-21 10:05:55 -06:00
Simon Larsen
57686c87e3 refactor: Remove commented out code for empty formula configuration 2024-07-21 09:18:03 -06:00
snyk-bot
738fb77773 fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
- https://snyk.io/vuln/SNYK-DEBIAN12-ZLIB-6008963
- https://snyk.io/vuln/SNYK-DEBIAN12-ZLIB-6008963
- https://snyk.io/vuln/SNYK-DEBIAN12-KRB5-7411314
2024-07-21 06:22:59 +00:00
Simon Larsen
51a714f4bd refactor: Add jsonKeys prop to Filter and JSONFilter components
This commit adds the jsonKeys prop to the Filter and JSONFilter components in order to support filtering by JSON keys. The jsonKeys prop is an array of string values that represents the available JSON keys for filtering. This enhancement improves the flexibility and functionality of the filter components, allowing users to filter data based on specific JSON keys.
2024-07-20 09:25:34 -06:00
Simon Larsen
358b785fe0 refactor: Remove TelemetryAttribute model and service
This commit removes the TelemetryAttribute model and service from the codebase. The TelemetryAttribute model and service were no longer needed and were causing unnecessary complexity. Removing them simplifies the codebase and improves maintainability.
2024-07-20 08:08:00 -06:00
snyk-bot
a464723729 fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
- https://snyk.io/vuln/SNYK-DEBIAN12-ZLIB-6008963
- https://snyk.io/vuln/SNYK-DEBIAN12-ZLIB-6008963
- https://snyk.io/vuln/SNYK-DEBIAN12-KRB5-7411314
2024-07-20 06:22:55 +00:00
Simon Larsen
5ab959cec5 refactor: Add TelemetryAttributeService and update BaseAPIFeatureSet
This commit adds the TelemetryAttributeService to the AnalyticsServices array in the CommonServer/Services/Index.ts file. It also updates the BaseAPIFeatureSet in the App/FeatureSet/BaseAPI/Index.ts file to include a new route for handling telemetry attribute operations. These changes improve the functionality and flexibility of the analytics module, allowing users to work with telemetry attributes effectively.
2024-07-19 18:59:50 -06:00
Simon Larsen
97bb269ccf refactor: Update TelemetryAttribute model and service
This commit updates the TelemetryAttribute model and service to align with the changes made in the AnalyticsModels/TelemetryAttribute.ts file. The model's tableName, singularName, pluralName, and crudApiPath properties have been modified to reflect the new naming convention for telemetry attributes. Additionally, the TelemetryAttributeService has been added to the AnalyticsServices array in the CommonServer/Services/Index.ts file. These changes improve the consistency and functionality of the telemetry attribute module, allowing users to work with telemetry attributes effectively.
2024-07-19 16:57:19 -06:00
Simon Larsen
85c70bbc17 refactor: Add TelemetryAttributeService to AnalyticsServices
This commit adds the TelemetryAttributeService to the AnalyticsServices array in the CommonServer/Services/Index.ts file. By including the TelemetryAttributeService, we ensure that the service is available for handling telemetry attribute-related operations in the analytics module. This enhancement improves the functionality and flexibility of the analytics services, allowing users to work with telemetry attributes effectively.
2024-07-19 16:48:12 -06:00
Simon Larsen
7effd05896 refactor: Update MetricQueryConfig and MetricQuery components
This commit updates the MetricQueryConfig and MetricQuery components to include the metricNames prop. The metricNames prop is an array of string values that represents the available metric names for filtering and querying. This change improves the flexibility and functionality of the components, allowing users to select from a predefined list of metric names.
2024-07-19 15:57:21 -06:00
Simon Larsen
3123b5304d refactor: Update StartAndEndDate component to use boolean type for time interval variables
This commit refactors the StartAndEndDate component to use the boolean type for the time interval variables (is1Hour, is3Hours, is1Day, etc.). This change improves code readability and ensures consistent typing, making it easier to understand and maintain the component.
2024-07-19 15:37:10 -06:00
Simon Larsen
6ea6f94694 getAggregationInterval 2024-07-19 15:25:29 -06:00
Simon Larsen
4b91e598ce refactor: Update StatementGenerator.ts and AnalyticsDatabaseService.ts
The code changes in StatementGenerator.ts and AnalyticsDatabaseService.ts refactor the import statements for the AggregateBy module. The changes ensure consistent formatting and improve code readability.
2024-07-19 14:02:54 -06:00
Simon Larsen
07293006c3 refactor: Update MetricView component to render charts for metric results 2024-07-19 13:58:46 -06:00
snyk-bot
8f86a4651e fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
- https://snyk.io/vuln/SNYK-DEBIAN12-ZLIB-6008963
- https://snyk.io/vuln/SNYK-DEBIAN12-ZLIB-6008963
- https://snyk.io/vuln/SNYK-DEBIAN12-KRB5-7411315
2024-07-19 07:47:19 +00:00
Simon Larsen
74857d58d8 refactor: Update MetricView component to render charts for metric results 2024-07-18 18:03:37 -06:00
Simon Larsen
e93b74665b refactor: Remove unused code and update types in AggregateBy.ts, StatementGenerator.ts, and MetricView.tsx 2024-07-18 17:58:26 -06:00
Simon Larsen
3c0eeeb81d refactor: Update ModelAPI to return AggregatedResult in aggregate method 2024-07-18 17:22:36 -06:00
Simon Larsen
8de13e75f2 refactor: Add aggregate endpoint to BaseAnalyticsAPI
This commit adds the aggregate endpoint to the BaseAnalyticsAPI class. The endpoint allows users to perform aggregation operations on the analytics data. It includes a POST and GET route for aggregating data based on specified criteria. This enhancement improves the functionality and flexibility of the analytics API, enabling users to retrieve aggregated results efficiently.
2024-07-18 17:15:47 -06:00
Simon Larsen
f57a487b13 refactor: Update BaseDatabase types and components
This commit updates the BaseDatabase types and components to include new interfaces and enums for handling aggregation, sorting, and querying of data. It improves the flexibility and functionality of the database operations, enhancing the overall performance and usability of the application.
2024-07-18 17:00:46 -06:00
Simon Larsen
2eb0f51636 refactor: Update DateFilter component to handle FieldType.DateTime
This commit updates the DateFilter component to handle the FieldType.DateTime in addition to FieldType.Date. It ensures that the component can correctly handle both date and date-time filters, improving the flexibility and functionality of the filtering feature.
2024-07-18 14:35:54 -06:00
Simon Larsen
4741d8f9e7 refactor: Update TracesList component to use FieldType.DateTime for "Seen At" field
This commit updates the TracesList component to use the FieldType.DateTime instead of FieldType.Date for the "Seen At" field. This change ensures that the field accurately represents the date and time of when the trace was seen, improving the accuracy and clarity of the telemetry data.
2024-07-18 14:13:43 -06:00
Simon Larsen
4ce5abc918 refactor: Update TelemetryIngest to include serviceName in TelemetryRequest
This commit updates the TelemetryIngest middleware to include the serviceName property in the TelemetryRequest interface. It improves the accuracy and completeness of the telemetry data handling.
2024-07-17 17:50:50 -06:00
Simon Larsen
f041a6cbbb refactor: Update TelemetryIngest to include serviceName in TelemetryRequest
This commit updates the TelemetryIngest middleware to include the serviceName property in the TelemetryRequest interface. This change allows the middleware to access and use the service name when processing telemetry data. It improves the accuracy and completeness of the telemetry data handling.
2024-07-17 17:27:04 -06:00
Simon Larsen
394e5460b5 refactor: Update MetricView and MetricViewPage components
This commit updates the MetricView and MetricViewPage components to include the MetricsAggregationType enum and use it for setting the default aggregation type in the filterData object. This change ensures consistency and clarity in the codebase, improving the maintainability and readability of the application.
2024-07-17 16:50:13 -06:00
Simon Larsen
7a8043f4db refactor: Update MetricAlias component to use title and description instead of metricAlias
This commit updates the MetricAlias component in the Metrics folder to use the properties "title" and "description" instead of "metricAlias". This change improves the clarity and consistency of the codebase, aligning with the naming conventions used throughout the application.
2024-07-17 15:17:18 -06:00
Simon Larsen
7fe26603fd refactor: Update FieldLabelElement component to use consistent text color
This commit updates the FieldLabelElement component in the CommonUI project to use a consistent text color of text-gray-500 instead of text-gray-700. This change improves the visual consistency and readability of the form fields throughout the application.
2024-07-17 14:58:01 -06:00
Simon Larsen
a50cce6c6f refactor: Update MetricsAggregationType enum values to uppercase
This commit updates the MetricsAggregationType enum values to uppercase for consistency and clarity. The previous lowercase values were inconsistent with the naming convention used throughout the codebase. This change improves the readability and maintainability of the code.
2024-07-17 14:50:15 -06:00
Simon Larsen
3c839799da refactor: Update LastRunMessage and TelemetryServices components 2024-07-17 13:42:12 -06:00
Simon Larsen
5a11df0153 refactor: Update LastRunMessage and TelemetryServices components
This commit updates the LastRunMessage component to display a more accurate message about the data update. It also updates the TelemetryServices component to use a clearer title and description. These changes improve the clarity and user experience of the Copilot and Service Catalog pages.
2024-07-16 17:12:05 -06:00
Simon Larsen
bb8b4430cf refactor: Update ServiceFileTypesUtil to use TechStack instead of ServiceLanguage
This commit updates the ServiceFileTypesUtil class to use the TechStack enum instead of the ServiceLanguage enum. It modifies the method names and parameters accordingly, ensuring consistency and clarity in the codebase. This refactoring improves the maintainability and extensibility of the application.
2024-07-16 16:52:40 -06:00
Simon Larsen
c6961b9a0b refactor: Update TelemetryServiceTable component
This commit refactors the Services page by replacing the ModelTable component with the TelemetryServiceTable component. The TelemetryServiceTable component provides a more specialized and optimized table for displaying telemetry services. This change improves the performance and user experience of the Services page.
2024-07-16 16:28:54 -06:00
Simon Larsen
754e6b165e refactor: Update Monitor component props and imports
This commit updates the Monitor component in the Monitor.tsx file to include an optional showIcon prop. It also updates the import paths in various files to reflect the changes. These refactorings improve the flexibility and maintainability of the codebase.
2024-07-16 16:19:36 -06:00
Simon Larsen
5f2430ff06 feat: Add routes for Service Catalog view pages
This commit adds routes for the Monitors, Incidents, and Telemetry Services pages in the Service Catalog view. These routes allow users to navigate to specific sections of the Service Catalog and access relevant information. The addition of these routes enhances the usability and functionality of the application.
2024-07-16 15:08:26 -06:00
Simon Larsen
80b9961bd8 feat: Add breadcrumb links for Monitors, Incidents, and Telemetry Services in Service Catalog view 2024-07-16 15:07:10 -06:00
Simon Larsen
886f753422 refactor: Update TechStack enum and related imports 2024-07-16 14:50:24 -06:00
Simon Larsen
9ea0c6389c refactor: Update repository URL in package.json 2024-07-16 14:44:47 -06:00
Simon Larsen
f29bcc6641 refactor: Update TechStack enum and related imports 2024-07-16 14:43:59 -06:00
Simon Larsen
60aa7032c5 refactor: Update TechStack enum and related imports
This commit updates the TechStack enum in the TechStack.ts file to include a comprehensive list of technology stacks. It also updates the import paths in various files to reflect the changes from using ServiceLanguage to TechStack. This refactoring improves the clarity and consistency of the codebase.
2024-07-16 14:07:47 -06:00
Simon Larsen
4d8ba7d3a3 fix: Update import path for ServiceCatalogTelemetryService model 2024-07-16 13:30:27 -06:00
Simon Larsen
c87744c51e feat: Add ServiceCatalogMonitor and ServiceCatalogTelemetryService models
This commit adds the ServiceCatalogMonitor and ServiceCatalogTelemetryService models to the application. These models are necessary for managing and monitoring service catalog dependencies and telemetry services. The addition of these models enhances the functionality and flexibility of the application.
2024-07-16 11:52:08 -06:00
Simon Larsen
9841ba52a9 feat: Add MetricsAggregationType enum and MetricsQuery interface
This commit adds the MetricsAggregationType enum to represent different types of metrics aggregations such as max, min, sum, avg, and count. It also introduces the MetricsQuery interface, which defines the structure of a metrics query including the metric name, attributes, aggregation type, aggregate by, start time, and end time. These changes enable the implementation of metrics queries and aggregations in the application.
2024-07-15 17:51:19 -06:00
Simon Larsen
b16df022ed chore: Update npm dependency to latest stable version 2024-07-15 15:23:11 -06:00
Simon Larsen
c3d8acc61a feat: Add SquareStack3D icon to IconProp enum and update SideMenu component
This commit adds the SquareStack3D icon to the IconProp enum in the IconProp.ts file. It also updates the SideMenu component in the SideMenu.tsx file to use the SquareStack3D icon instead of the SquareStack icon. This change ensures that the correct icon is displayed in the SideMenu for the specified modelId.
2024-07-15 15:16:26 -06:00
Simon Larsen
04fbb15405 feat: Add Service Catalog Dependency model and routes 2024-07-15 14:49:10 -06:00
Simon Larsen
2cd61dbbac ```text
refactor: Add Service Catalog Dependency permissions

This commit adds new permissions for creating, deleting, editing, and reading Service Catalog Dependencies. These permissions allow users to manage dependencies within the project.
2024-07-15 14:29:05 -06:00
Simon Larsen
e6bc8e4b30 chore: Update Docker configuration for Copilot debugging
This commit updates the Docker configuration in the `.github/workflows/reliability-copilot.yml` file to fix the environment variable values for `ONEUPTIME_REPOSITORY_SECRET_KEY` and `CODE_REPOSITORY_PASSWORD`. The values are now properly enclosed in double quotes to ensure consistency and prevent any issues with special characters. This change ensures the correct configuration for running the reliability copilot workflow.
2024-07-15 14:13:00 -06:00
Simon Larsen
e9f0510d3c chore: Update Docker configuration for Copilot debugging 2024-07-15 14:10:22 -06:00
Simon Larsen
9c0cf6a3db ```text
chore: Update Docker configuration for Copilot debugging

This commit updates the Docker configuration in the `.github/workflows/reliability-copilot.yml` file to fix the environment variable values for `ONEUPTIME_REPOSITORY_SECRET_KEY` and `CODE_REPOSITORY_PASSWORD`. The values are now properly enclosed in single quotes to prevent any issues with special characters. This change ensures the correct configuration for running the reliability copilot workflow.
2024-07-15 14:04:49 -06:00
Simon Larsen
bca58a58ae chore: Fix formatting in InitUtil code
This commit fixes the formatting in the InitUtil code by removing unnecessary whitespace and aligning the code properly. The changes improve the readability and maintainability of the code.
2024-07-15 13:57:37 -06:00
Simon Larsen
2c0fbfef19 feat: Update Docker configuration for Copilot debugging
This commit updates the Docker configuration in the `.vscode/launch.json` file to improve the debugging experience for Copilot. It modifies the `Debug: Copilot Locally` configuration by changing the `localRoot` to `${workspaceFolder}/TestServer` and updating the `name` to `Copilot: Debug with Docker`. Additionally, it sets the `port` to `9985`, `remoteRoot` to `/usr/src/app`, and enables `restart` and `autoAttachChildProcesses` for better debugging capabilities. These changes enhance the development workflow and make it easier to debug Copilot locally with Docker.
2024-07-15 13:52:00 -06:00
Simon Larsen
395f9bcdb7 chore: Update Docker configuration for Copilot debugging 2024-07-15 13:51:35 -06:00
Simon Larsen
4587e3136b feat: Update Docker configuration for Copilot debugging
This commit updates the Docker configuration in the `.vscode/launch.json` file to improve the debugging experience for Copilot. It modifies the `Debug: Copilot Locally` configuration by changing the `localRoot` to `${workspaceFolder}/TestServer` and updating the `name` to `Copilot: Debug with Docker`. Additionally, it sets the `port` to `9985`, `remoteRoot` to `/usr/src/app`, and enables `restart` and `autoAttachChildProcesses` for better debugging capabilities. These changes enhance the development workflow and make it easier to debug Copilot locally with Docker.
2024-07-15 13:31:49 -06:00
Simon Larsen
2a458ec7e6 chore: Update Docker configuration for Copilot debugging 2024-07-15 09:49:21 -06:00
Simon Larsen
2c02a62e63 feat: Update Docker configuration for Copilot debugging
This commit updates the Docker configuration in the `.vscode/launch.json` file to improve the debugging experience for Copilot. It modifies the `Debug: Copilot Locally` configuration by changing the `localRoot` to `${workspaceFolder}/TestServer` and updating the `name` to `Copilot: Debug with Docker`. Additionally, it sets the `port` to `9985`, `remoteRoot` to `/usr/src/app`, and enables `restart` and `autoAttachChildProcesses` for better debugging capabilities. These changes enhance the development workflow and make it easier to debug Copilot locally with Docker.
2024-07-15 09:47:53 -06:00
Simon Larsen
1afd76b080 ```text
refactor: Update Alert component styles

This commit updates the styles of the Alert component to use a common background color of "bg-gray-700" instead of different colors for each alert type. This change simplifies the code and improves consistency in the UI.
2024-07-15 09:15:10 -06:00
Simon Larsen
5fae51fa01 chore: Update CodeRepositoryPage form fields
This commit updates the CodeRepositoryPage form fields by removing the "Main Branch Name" field and adding a "Select Service" dropdown with a description. The "Main Branch Name" field is no longer necessary and the "Select Service" dropdown provides a better user experience by allowing users to choose a service from the Service Catalog. These changes improve the usability and clarity of the form.
2024-07-15 09:13:15 -06:00
Simon Larsen
d8366efee8 feat: Improve MarkdownViewer styles for headings and code blocks 2024-07-15 09:06:15 -06:00
Simon Larsen
5f3cfa3f0d feat: Update Docker configuration for Copilot debugging
This commit updates the Docker configuration in the `.vscode/launch.json` file to improve the debugging experience for Copilot. It modifies the `Debug: Copilot Locally` configuration by changing the `localRoot` to `${workspaceFolder}/TestServer` and updating the `name` to `Copilot: Debug with Docker`. Additionally, it sets the `port` to `9985`, `remoteRoot` to `/usr/src/app`, and enables `restart` and `autoAttachChildProcesses` for better debugging capabilities. These changes enhance the development workflow and make it easier to debug Copilot locally with Docker.
2024-07-15 08:36:23 -06:00
OneUptime Copilot
84740444ec OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/Errors.ts 2024-07-15 14:31:34 +00:00
OneUptime Copilot
3881ad163c OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/Authentication.ts 2024-07-15 14:27:15 +00:00
OneUptime Copilot
f7f43ed16c OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Index.ts 2024-07-15 14:26:24 +00:00
Simon Larsen
39b5982d67 feat: Improve MarkdownViewer styles for headings and code blocks
This commit updates the styles in the MarkdownViewer component to improve the visual hierarchy of headings and code blocks. It adds margin-bottom to h3, h4, and h5 headings to create better spacing between them and the content. Additionally, it removes unnecessary code in the code block rendering logic to simplify the component. These changes enhance the readability and aesthetics of the rendered Markdown content.
2024-07-15 07:36:16 -06:00
Simon Larsen
0f0f2c1b81 feat: Update react-syntax-highlighter to latest version and use a11yDark style
This commit updates the react-syntax-highlighter package to the latest version and switches to the a11yDark style for syntax highlighting in the MarkdownViewer component. This update ensures compatibility with the latest features and improvements of react-syntax-highlighter and enhances the accessibility of the code snippets in the MarkdownViewer.
2024-07-14 15:40:10 -06:00
OneUptime Copilot
7e05939977 OneUptime Copilot: Improve Comments on /App/Index.ts 2024-07-14 21:37:48 +00:00
Simon Larsen
c5062b5bc5 feat: Add @types/react-syntax-highlighter dependency
This commit adds the "@types/react-syntax-highlighter" dependency to the package.json file in the CommonUI directory. This is necessary to provide TypeScript type definitions for the "react-syntax-highlighter" library, ensuring proper type checking and improved development experience.
2024-07-14 14:44:06 -06:00
Simon Larsen
90355ae7ed feat: Add lazy loading for images in PullRequestView 2024-07-14 14:20:04 -06:00
Simon Larsen
da67dc6930 feat: Add network_mode: host to docker-compose.base.yml
This commit adds the `network_mode: host` configuration to the `docker-compose.base.yml` file. This configuration allows the container to share the host network stack, enabling direct access to the host's network interfaces. This change is made to improve network performance and connectivity for the application.
2024-07-14 13:58:48 -06:00
Simon Larsen
71151ea92e feat: Add serviceCatalogId and serviceRepositoryId to CopilotPullRequestAPI and CopilotActionAPI
This commit adds the `serviceCatalogId` and `serviceRepositoryId` fields to the `CopilotPullRequestAPI` and `CopilotActionAPI` classes. These fields are included in the API response to provide additional information about the service catalog and service repository associated with a pull request or action. This change enhances the data returned by the APIs and improves the overall functionality of the application.
2024-07-12 22:04:18 +01:00
Simon Larsen
d97211d52c feat: Set default model name if HF_MODEL_NAME environment variable is not set 2024-07-12 20:40:46 +00:00
Simon Larsen
d0e31ad95e feat: Set default model name if HF_MODEL_NAME environment variable is not set
This commit updates the `app.py` file to set a default model name if the `HF_MODEL_NAME` environment variable is not set. The default model name is `meta-llama/Meta-Llama-3-8B-Instruct`. This change ensures that the application uses a valid model name even if the environment variable is not provided.
2024-07-12 20:39:18 +00:00
Simon Larsen
7c796e110b feat: Add environment variables for Hugging Face token and model name
This commit adds the necessary environment variables for the Hugging Face token and model name in the `docker-compose.yml` file. The `HF_TOKEN` environment variable is used to store the Hugging Face API token, which can be obtained by signing up on Hugging Face and creating a new API token. The `HF_MODEL_NAME` environment variable is optional and allows specifying the model name from Hugging Face. If not set, the default model `meta-llama/Meta-Llama-3-8B-Instruct` will be used.
2024-07-12 20:37:03 +00:00
Simon Larsen
137cdb7716 refactor: Remove unused code and comments in LLMServer.ts 2024-07-12 20:18:34 +00:00
Simon Larsen
0a02aba790 feat: Add lazy loading for images in PullRequestView 2024-07-12 20:17:57 +00:00
Simon Larsen
652e81e984 feat: Add lazy loading for images in PullRequestView
This commit adds lazy loading for images in the PullRequestView component. By implementing lazy loading, the images will only load when they are in the viewport, improving the page load performance and user experience.
2024-07-12 21:13:05 +01:00
Simon Larsen
4dacd9b8b4 chore: Delete all data from CopilotAction table in MigrationName1720785305192
This commit deletes all data from the "CopilotAction" table in the "MigrationName1720785305192" migration. This is done to ensure a clean state before renaming the "pullRequestId" column to "copilotPullRequestId".
2024-07-12 20:43:31 +01:00
Simon Larsen
71fb83e698 feat: Update CopilotAction table to allow nullable copilotPullRequestId
This commit modifies the `CopilotAction` table in the `CopilotAction.ts` file to allow the `copilotPullRequestId` column to be nullable. This change provides flexibility in the data model by allowing the column to have null values.
2024-07-12 20:38:33 +01:00
Simon Larsen
d514059d5d chore: Setup Git LFS in workflows
This commit adds a step to the GitHub workflows (`test-release.yaml` and `release.yml`) to setup Git LFS. Git LFS is necessary for handling large files in the repository. By installing Git LFS, we ensure that the repository can handle large files properly during the CI/CD process.
2024-07-12 20:28:46 +01:00
Simon Larsen
3c29278cc1 run on self hosted runner 2024-07-12 20:14:37 +01:00
Simon Larsen
5d1ad931fc chore: Remove unused Copilot configuration variables
This commit removes the unused Copilot configuration variables from the `config.example.env` file. The `COPILOT_OPENAI_API_KEY` and `COPILOT_OPENAI_MODEL` variables are no longer needed and have been removed. This cleanup improves the clarity and maintainability of the codebase.
2024-07-12 19:36:33 +01:00
Simon Larsen
4e0d56de54 feat: Add setup pull request flag to CopilotPullRequestAPI.ts
This commit adds the `isSetupPullRequest` flag to the `CopilotPullRequestAPI.ts` file. The flag is set to true when creating a pull request for setting up the repository with OneUptime Copilot. This flag will be used to identify setup pull requests in the application.
2024-07-12 19:02:47 +01:00
Simon Larsen
a33b1f20f8 feat: Add migration for dropping NOT NULL constraint on serviceCatalogId and serviceRepositoryId in CopilotPullRequest
This commit adds a migration file (1720806196274-MigrationName.ts) that drops the NOT NULL constraint on the columns "serviceCatalogId" and "serviceRepositoryId" in the "CopilotPullRequest" table. This change allows these columns to have nullable values, providing flexibility in the data model.
2024-07-12 18:46:41 +01:00
Simon Larsen
9fa61dac31 feat: Add OneUptimeDate import in CopilotCodeRepositoryAPI
This commit adds an import statement for the `OneUptimeDate` module in the `CopilotCodeRepositoryAPI.ts` file. The `OneUptimeDate` module is used to update the last run time of the code repository.
2024-07-12 18:36:30 +01:00
Simon Larsen
263c1ee613 feat: Update CopilotPullRequest.ts and PageMap.ts
Update the table description in CopilotPullRequest.ts to fix a typo. Also, add a new entry in PageMap.ts for the "AI_COPILOT_CODE_REPOSITORY_VIEW_PULL_REQUESTS" page.
2024-07-12 13:38:19 +01:00
Simon Larsen
c648a6bf79 feat: Add CopilotPullRequestStatus enum
This commit adds the `CopilotPullRequestStatus` enum to the `CopilotPullRequestStatus.ts` file in the `Common/Types/Copilot` directory. This enum defines the possible statuses of a Copilot pull request, including "Created", "Merged", and "Closed". This enum will be used to track the status of Copilot pull requests throughout the application.
2024-07-12 13:07:59 +01:00
Simon Larsen
ed954d79a4 fix ingress 2024-07-12 12:05:29 +01:00
Simon Larsen
113e95a059 add fluentd host to ingress 2024-07-12 11:29:37 +01:00
Simon Larsen
4d31b85c4d add otel collector to ingress 2024-07-12 11:26:54 +01:00
Simon Larsen
58cf3abda9 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-12 11:23:00 +01:00
Simon Larsen
9227324ac3 fix port name on ingress 2024-07-12 11:21:53 +01:00
snyk-bot
e5c608e20b fix: upgrade @opentelemetry/instrumentation-xml-http-request from 0.52.0 to 0.52.1
Snyk has created this PR to upgrade @opentelemetry/instrumentation-xml-http-request from 0.52.0 to 0.52.1.

See this package in npm:
@opentelemetry/instrumentation-xml-http-request

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-12 04:41:38 +00:00
snyk-bot
8a41d48941 fix: upgrade posthog-js from 1.139.3 to 1.139.6
Snyk has created this PR to upgrade posthog-js from 1.139.3 to 1.139.6.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-12 04:37:12 +00:00
Simon Larsen
eb19465e56 Merge pull request #1580 from OneUptime/snyk-upgrade-94a17e29c2b95dff68863238e84f80f4
[Snyk] Upgrade eslint-plugin-react from 7.34.2 to 7.34.3
2024-07-11 17:13:14 +01:00
Simon Larsen
93ee819457 Merge pull request #1582 from OneUptime/snyk-upgrade-6b6d73fe55c776290de78e647adb1b35
[Snyk] Upgrade @opentelemetry/instrumentation-fetch from 0.51.1 to 0.52.0
2024-07-11 17:13:06 +01:00
snyk-bot
7931ac475e fix: upgrade @opentelemetry/instrumentation-fetch from 0.51.1 to 0.52.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation-fetch from 0.51.1 to 0.52.0.

See this package in npm:
@opentelemetry/instrumentation-fetch

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-11 06:55:27 +00:00
snyk-bot
6286c203fe fix: upgrade protobufjs from 7.3.0 to 7.3.2
Snyk has created this PR to upgrade protobufjs from 7.3.0 to 7.3.2.

See this package in npm:
protobufjs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/89d21457-97ad-4d10-9b37-253f0b4cc388?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-11 06:53:35 +00:00
snyk-bot
9d43a2d98b fix: upgrade eslint-plugin-react from 7.34.2 to 7.34.3
Snyk has created this PR to upgrade eslint-plugin-react from 7.34.2 to 7.34.3.

See this package in npm:
eslint-plugin-react

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/c3622982-05c8-495c-809c-20f301c75f92?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-11 06:34:56 +00:00
snyk-bot
5271bcd49f fix: upgrade @types/lodash from 4.17.4 to 4.17.5
Snyk has created this PR to upgrade @types/lodash from 4.17.4 to 4.17.5.

See this package in npm:
@types/lodash

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/c3622982-05c8-495c-809c-20f301c75f92?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-11 06:34:52 +00:00
Simon Larsen
54db88dd96 feat: Add git commands to add and commit changes in CodeRepositoryUtil
The CodeRepositoryUtil class now includes two new methods: `addAllChangedFilesToGit` and `commitChanges`. These methods allow for adding all changed files to the git repository and committing the changes with a specified message. This will make it easier to manage and track changes in the code repository.
2024-07-10 22:53:31 +01:00
Simon Larsen
dd336896d2 chore: Remove unused configuration files and scripts 2024-07-10 22:07:52 +01:00
simlarsen
75ad6697cd OneUptime Copilot: Improve Comments on /App/FeatureSet/Docs/Index.ts 2024-07-10 21:00:05 +00:00
Simon Larsen
2862d1e69b Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-10 21:33:40 +01:00
Simon Larsen
5e486e4ce6 chore: Update LlmType enum and related code 2024-07-10 21:33:38 +01:00
Simon Larsen
6b17d6d6dc Merge pull request #1574 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-voNYL
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Utils/Resources.ts
2024-07-10 21:32:05 +01:00
simlarsen
272a29aad1 OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Utils/Resources.ts 2024-07-10 20:31:24 +00:00
Simon Larsen
d21e333c9e Update config.example.env to disable copilot 2024-07-10 21:05:47 +01:00
Simon Larsen
b5195c27c0 chore: Add OpenAI configuration to Copilot
- Update config.example.env to include OpenAI API key and model.
- Update docker-compose.base.yml to include OpenAI environment variables.
- Update Copilot configuration files to handle OpenAI LLM responses.
2024-07-10 20:59:46 +01:00
Simon Larsen
3f436861ad Merge pull request #1569 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-ewnDg
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/Model.ts
2024-07-10 20:49:10 +01:00
Simon Larsen
3982d49136 Merge pull request #1570 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-nHnSE
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/PageNotFound.ts
2024-07-10 20:48:40 +01:00
Simon Larsen
e007fb1b72 Merge pull request #1571 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-Mrwii
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/Pagination.ts
2024-07-10 20:48:31 +01:00
Simon Larsen
ccba9482de Merge pull request #1572 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-ooCrw
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/Permissions.ts
2024-07-10 20:48:15 +01:00
Simon Larsen
8dfa8c2e09 Merge pull request #1573 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-yaNuN
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/Status.ts
2024-07-10 20:47:57 +01:00
Simon Larsen
af0a5d1022 chore: Update LlmType enum and related code 2024-07-10 18:39:13 +01:00
Simon Larsen
43a22d9973 chore: Update LlmType enum and related code
- Update LlmType enum values to match the new naming convention.
- Update references to Llama to LLM in various files.
- Update CopilotActionsBase.ts to set the llmType to LLM in the constructor.
- Update Init.ts to use the llmServerUrl instead of llamaServerUrl.
- Update LLM.ts to use LLMServer class instead of Llama class.
- Add OpenAI class and update LLM.ts to handle OpenAI LLM type.
- Update Config.ts to handle OpenAI API key and model.
- Add OpenAI.ts file to handle OpenAI LLM responses.
2024-07-10 18:36:00 +01:00
Simon Larsen
d8c8a76c1d chore: Update Copilot configuration files
- Update Copilot Dockerfile.tpl to remove unnecessary code and fix formatting.
- Update config.example.env and Copilot/.env.example to correct the LLM server URL.
- Remove unused code and update documentation in Copilot/README.md.
- Update navigation links in App/FeatureSet/Docs/Utils/Nav.ts to include Copilot documentation.
- Update Copilot/Config.ts and Copilot/Utils/Init.ts to use the new LLM server URL.
- Add logger statements in Copilot/Service/CopilotActions/CopilotActionsBase.ts to log file content.
2024-07-10 18:19:09 +01:00
simlarsen
e40dc2e9ff OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/Status.ts 2024-07-10 13:01:43 +00:00
simlarsen
e0769f1d2b OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/Permissions.ts 2024-07-10 13:00:58 +00:00
simlarsen
e336d2ad38 OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/Pagination.ts 2024-07-10 13:00:09 +00:00
simlarsen
6ca6daf38d OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/PageNotFound.ts 2024-07-10 12:59:15 +00:00
simlarsen
ffa6f143ac OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/Model.ts 2024-07-10 12:58:24 +00:00
Simon Larsen
04650f165f chore: Add logger to Execute.ts and fix formatting in Config.ts and Init.ts 2024-07-10 13:50:29 +01:00
Simon Larsen
214c4e4839 chore: Await discardAllChangesOnCurrentBranch in Copilot/Init.ts 2024-07-10 13:43:59 +01:00
Simon Larsen
fad530cf86 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-10 13:39:46 +01:00
Simon Larsen
6b9e0c8b99 chore: Disable Copilot in development environment 2024-07-10 13:39:35 +01:00
Simon Larsen
5a66e9a393 Merge pull request #1568 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-TJVih
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/Introduction.ts
2024-07-10 13:23:50 +01:00
simlarsen
ddd5813266 OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/Introduction.ts 2024-07-10 12:23:07 +00:00
Simon Larsen
e246e3fbcd Update npm aliases in .bash_profile 2024-07-10 12:18:14 +01:00
Simon Larsen
e1f4cc22ac chore: Add git and Kubernetes aliases 2024-07-10 12:12:46 +01:00
Simon Larsen
6911cf59f4 pin otel collector version 2024-07-10 11:56:26 +01:00
Simon Larsen
5172d7f349 chore: Add CORS headers to Telemetry and OTelCollector
This commit adds CORS headers to the Telemetry and OTelCollector components to allow cross-origin resource sharing. This enables the client to make requests to these components from different origins. The headers include "Access-Control-Allow-Credentials", "Access-Control-Allow-Origin", "Access-Control-Allow-Methods", and "Access-Control-Allow-Headers".
2024-07-10 11:48:22 +01:00
Simon Larsen
55e043f3bd Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-10 11:15:04 +01:00
Simon Larsen
bdee2f0585 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-10 10:14:05 +00:00
Simon Larsen
833ca82cb7 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-10 11:13:15 +01:00
Simon Larsen
6751972d7f Merge pull request #1564 from OneUptime/snyk-upgrade-3232471f850f8871f36776389f11aae2
[Snyk] Upgrade @opentelemetry/instrumentation-xml-http-request from 0.51.1 to 0.52.0
2024-07-10 11:11:18 +01:00
Simon Larsen
44ed919f95 Merge pull request #1565 from OneUptime/snyk-upgrade-7d66d03180c77c4ca697278c523089b6
[Snyk] Upgrade react-big-calendar from 1.12.2 to 1.13.0
2024-07-10 11:10:45 +01:00
Simon Larsen
c8ad2a1ac8 Merge pull request #1566 from OneUptime/snyk-upgrade-95f152c7f03c4ab700ab8a5a552aa96c
[Snyk] Upgrade posthog-js from 1.138.0 to 1.139.3
2024-07-10 11:10:36 +01:00
Simon Larsen
232b537969 Merge pull request #1567 from OneUptime/snyk-upgrade-7c8fb9ccde1fd7e55540a2005ae62b07
[Snyk] Upgrade globals from 15.4.0 to 15.6.0
2024-07-10 11:10:30 +01:00
Simon Larsen
d5c8e7836f Refactor MigrationName1720532068612 to delete all records from CopilotAction and drop a foreign key constraint 2024-07-10 11:09:44 +01:00
snyk-bot
e897955466 fix: upgrade globals from 15.4.0 to 15.6.0
Snyk has created this PR to upgrade globals from 15.4.0 to 15.6.0.

See this package in npm:
globals

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/c3622982-05c8-495c-809c-20f301c75f92?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-10 06:13:29 +00:00
snyk-bot
4f3ae06e59 fix: upgrade posthog-js from 1.138.0 to 1.139.3
Snyk has created this PR to upgrade posthog-js from 1.138.0 to 1.139.3.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-10 06:12:11 +00:00
snyk-bot
e971bdaee9 fix: upgrade react-big-calendar from 1.12.2 to 1.13.0
Snyk has created this PR to upgrade react-big-calendar from 1.12.2 to 1.13.0.

See this package in npm:
react-big-calendar

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-10 06:06:23 +00:00
snyk-bot
d165ce86df fix: upgrade @opentelemetry/instrumentation-xml-http-request from 0.51.1 to 0.52.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation-xml-http-request from 0.51.1 to 0.52.0.

See this package in npm:
@opentelemetry/instrumentation-xml-http-request

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-10 06:06:18 +00:00
snyk-bot
45d327e55d fix: upgrade @opentelemetry/instrumentation-fetch from 0.51.1 to 0.52.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation-fetch from 0.51.1 to 0.52.0.

See this package in npm:
@opentelemetry/instrumentation-fetch

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-10 06:06:13 +00:00
Simon Larsen
ec704cbe34 Refactor executeScript function to execute multiple commands sequentially 2024-07-09 21:06:40 +01:00
Simon Larsen
658cb9fee3 refactor: Update URL for validating secret key in app.py
The code changes in `app.py` update the URL for validating the secret key. The previous URL was using the endpoint `/api/code-repository/is-valid/{secretKey}`, and it has been changed to `/api/copilot-code-repository/is-valid/{secretKey}`. This change ensures that the correct endpoint is used for validating the secret key in the OneUptime service.
2024-07-09 19:38:29 +00:00
Simon Larsen
3234112644 Refactor CORS headers to allow all origins and additional headers 2024-07-09 20:08:45 +01:00
Simon Larsen
0c7db14e99 Refactor Telemetry and TelemetryIngest classes to use URL class from Common/Types/API/URL 2024-07-09 20:02:12 +01:00
Simon Larsen
34118d5892 chore: Fix typo in npm run command 2024-07-09 18:52:26 +01:00
Simon Larsen
2ee80ee2f9 chore: Refactor CopilotCodeRepositoryAPI to remove unnecessary onBeforeCommitScript, onBeforeRepositoryCloneScript, onAfterCommitScript, and onAfterRepositoryCloneScript properties 2024-07-09 18:12:08 +01:00
Simon Larsen
aaacaa654b chore: Refactor executeAction function to use typescript interfaces and types 2024-07-09 17:51:36 +01:00
Simon Larsen
d8c38a3564 chore: Add necessary configuration files for OneUptime service 2024-07-09 17:40:26 +01:00
Simon Larsen
add77694c3 chore: Add necessary configuration files for OneUptime service 2024-07-09 16:34:58 +01:00
Simon Larsen
66171e8035 chore: Remove unnecessary columns from CopilotCodeRepository table 2024-07-09 16:33:06 +01:00
Simon Larsen
932d218455 chore: Update import paths for CodeRepository to CopilotCodeRepository 2024-07-09 14:42:19 +01:00
Simon Larsen
33a295c191 chore: Update import paths for CodeRepository to CopilotCodeRepository 2024-07-09 14:17:05 +01:00
Simon Larsen
4c0f1b08c8 chore: Add onBeforeCommitScript, onBeforeRepositoryCloneScript, onAfterCommitScript, and onAfterRepositoryCloneScript properties to CopilotCodeRepository model 2024-07-09 14:14:04 +01:00
Simon Larsen
f58e935cb9 chore: Update import paths for CodeRepository to CopilotCodeRepository 2024-07-09 14:07:42 +01:00
Simon Larsen
ad48ea5a3f chore: Update import paths for CodeRepository to CopilotCodeRepository 2024-07-09 13:55:59 +01:00
Simon Larsen
3a4ae31872 chore: Update import paths for CodeRepository to CopilotCodeRepository 2024-07-09 13:53:50 +01:00
Simon Larsen
48996b0810 Merge remote-tracking branch 'origin/snyk-upgrade-cd470ff382f3ed998304bb88ef9afe7f' 2024-07-09 13:03:57 +01:00
Simon Larsen
d450c99560 Merge remote-tracking branch 'origin/snyk-upgrade-65126f8b570e3a8824e5969f0e718753' 2024-07-09 13:01:33 +01:00
Simon Larsen
51884a31cd Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-09 12:55:04 +01:00
Simon Larsen
5251b93fc9 refactor: Improve logging in Llama class 2024-07-09 12:54:49 +01:00
Simon Larsen
ac3635511c Merge pull request #1535 from OneUptime/snyk-upgrade-a5008561a01273d3fcf7af71de29b60d
[Snyk] Upgrade @opentelemetry/instrumentation from 0.51.1 to 0.52.0
2024-07-09 12:53:36 +01:00
Simon Larsen
0990ef0846 Merge pull request #1556 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-csMvV
[OneUptime Copilot] Improve Comments on /App/FeatureSet/Docs/Utils/Render.ts
2024-07-09 12:52:44 +01:00
simlarsen
294b245d88 OneUptime Copilot: Improve Comments on /App/FeatureSet/Docs/Utils/Render.ts 2024-07-09 11:44:50 +00:00
Simon Larsen
3eb3564c57 Merge pull request #1548 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-BFXsW
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/Pagination.ts
2024-07-09 12:37:05 +01:00
Simon Larsen
851f061018 Merge pull request #1547 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-eTbgL
[OneUptime Copilot] Improve Comments on /App/FeatureSet/ApiReference/Service/PageNotFound.ts
2024-07-09 12:36:18 +01:00
Simon Larsen
e9a2c64d67 Merge pull request #1555 from OneUptime/oneuptime-app-oneuptime-app-improve-comments-OeXvG
[OneUptime Copilot] Improve Comments on /App/FeatureSet/Docs/Utils/Nav.ts
2024-07-09 12:34:24 +01:00
simlarsen
f9b72e0155 OneUptime Copilot: Improve Comments on /App/FeatureSet/Docs/Utils/Nav.ts 2024-07-09 11:31:45 +00:00
simlarsen
834fd23542 OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/Pagination.ts 2024-07-09 11:09:53 +00:00
simlarsen
14b45b95a4 OneUptime Copilot: Improve Comments on /App/FeatureSet/ApiReference/Service/PageNotFound.ts 2024-07-09 11:09:36 +00:00
Simon Larsen
74d4a6545e Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-08 20:00:01 +01:00
Simon Larsen
646c0f37d6 refactor: Improve logging in Llama class 2024-07-08 19:59:58 +01:00
Simon Larsen
1fdc36fea2 refactor: Update logging in Llama class for better debugging 2024-07-08 19:56:27 +01:00
Simon Larsen
a34a6657f0 feat: Add max_new_tokens parameter to job function
The code changes in `app.py` add a new parameter `max_new_tokens` to the `job` function. This parameter allows the maximum number of new tokens to be specified when calling the function. This change enhances the flexibility and control of the `job` function by allowing the maximum number of new tokens to be adjusted as needed.
2024-07-08 18:46:22 +00:00
Simon Larsen
95f87567e8 refactor: Improve logging in Llama class
This commit improves the logging in the Llama class by adding more detailed log messages. It modifies the log statements in the execute method to include the current file path and the type of Copilot action being executed. This change enhances the readability and debugging capabilities of the Llama service.
2024-07-08 18:15:27 +01:00
Simon Larsen
9ad97b1fe0 refactor: Add timeout handling to Llama prompt execution
This commit adds timeout handling to the Llama prompt execution in the Llama class. It introduces a timeoutInMinutes property in the CopilotActionPrompt interface and uses it to set a timeout for the prompt execution. If the prompt execution exceeds the specified timeout, a LLMTimeoutException is thrown, indicating that the prompt has timed out. This change enhances the reliability and responsiveness of the Llama service by preventing long-running prompts from blocking the execution flow.
2024-07-08 18:06:06 +01:00
Simon Larsen
9b9e6d666b refactor: Update CodeRepositoryUtil to set author identity 2024-07-08 16:36:22 +01:00
Simon Larsen
24845b267f refactor: Set author identity in CodeRepositoryUtil
This commit adds a new method, setAuthorIdentity, to the CodeRepositoryUtil class. The method sets the author's name and email in the global git configuration using the provided data. It executes the necessary git config command and logs the output. This change enhances the functionality of the CodeRepositoryUtil class by allowing the author's identity to be easily configured for git operations.
2024-07-08 16:19:19 +01:00
Simon Larsen
448326ee88 refactor: Add LOG_LEVEL=DEBUG environment variable to docker-compose.copilot.yml
This commit adds the LOG_LEVEL=DEBUG environment variable to the docker-compose.copilot.yml file. Setting the log level to DEBUG will enable more detailed logging for the Copilot service. This change is made to improve debugging and troubleshooting capabilities during development and testing.
2024-07-08 16:01:51 +01:00
Simon Larsen
12dab7bdda refactor: Update Docker Compose configuration for Copilot
This commit updates the Docker Compose configuration for Copilot. It removes the unnecessary volume mapping for the COPILOT_REPOSITORY_LOCAL_PATH in the docker-compose.copilot.yml file. This change improves the clarity and simplicity of the configuration file.
2024-07-08 15:48:05 +01:00
Simon Larsen
3eba4da4a8 refactor: Update CODE_REPOSITORY_PASSWORD and CODE_REPOSITORY_USERNAME environment variables
This commit updates the environment variables CODE_REPOSITORY_PASSWORD and CODE_REPOSITORY_USERNAME in the Copilot project. The previous variables GITHUB_TOKEN and GITHUB_USERNAME have been replaced with the new variables to improve clarity and consistency. The changes are made in multiple files, including .github/workflows/reliability-copilot.yml, Copilot/.env.example, Copilot/Config.ts, Copilot/Utils/CodeRepository.ts, Copilot/Utils/Init.ts, config.example.env, and docker-compose.base.yml. These updates ensure that the correct credentials are used for accessing the code repository in the Copilot project.
2024-07-08 15:45:14 +01:00
Simon Larsen
b947ed2ed1 refactor: Add cloneRepository method to CodeRepositoryUtil
This commit adds a new method, cloneRepository, to the CodeRepositoryUtil class. The method is responsible for cloning a repository from a given URL to a specified path. It uses the git clone command to perform the cloning operation. This method will be used to clone the repository to a temporary directory in the Copilot/Init.ts file. The method takes an object as a parameter, which includes the repoPath and repoUrl. It executes the git clone command using the Execute.executeCommand() method and logs the output using the logger.debug() method. This new method enhances the functionality of the CodeRepositoryUtil class and improves the codebase.
2024-07-08 15:40:16 +01:00
Simon Larsen
6eef29e4a3 refactor: Update Copilot configuration for local development 2024-07-08 14:05:09 +01:00
Simon Larsen
74c2de8adc refactor: Add npm scripts for running Copilot and LLM in development mode
This commit adds npm scripts for running Copilot and LLM in development mode. It introduces the "dev-copilot" and "dev-llm" scripts in the package.json file, which set up the necessary environment variables and start the respective services using docker-compose. These scripts enable developers to easily run and test Copilot and LLM locally during development.
2024-07-08 12:56:33 +01:00
Simon Larsen
f53b314b59 refactor: Update Copilot configuration for local development 2024-07-08 12:51:27 +01:00
Simon Larsen
e4bf81fcc1 refactor: Update Copilot configuration for local development
This commit updates the Copilot configuration for local development. It adds environment variables and services to the docker-compose.base.yml and package.json files to support running Copilot locally. The changes include adding the "copilot" service to the docker-compose.base.yml file with the necessary environment variables for Copilot functionality. Additionally, it adds new npm scripts in the package.json file to start, build, and force-build Copilot. These updates enable developers to easily run and build Copilot locally for testing and development purposes.
2024-07-08 12:11:52 +01:00
Simon Larsen
00b48b16ce refactor: Update NODE_OPTIONS stack trace limit to 30 in Dockerfile.tpl 2024-07-05 13:00:16 +01:00
Simon Larsen
5b00b5dac1 refactor: Update Monitor.ts to improve error handling and populate secrets
This commit refactors the Monitor.ts file to enhance error handling and populate secrets for monitors. It introduces try-catch blocks and proper logging to handle errors more effectively. Additionally, it populates secrets for monitors using the MonitorUtil.populateSecrets() function. These changes improve the reliability and security of the monitoring process.
2024-07-05 12:56:53 +01:00
Simon Larsen
97306d47fa refactor: Update default replica count for all deployments 2024-07-05 12:37:38 +01:00
Simon Larsen
5df9f9fd69 refactor: Refresh probe status when isEnabled is updated in MonitorProbeService.ts 2024-07-05 11:52:05 +01:00
Simon Larsen
d9ce813689 refactor: Update ingestor replica count based on configuration 2024-07-05 11:26:26 +01:00
Simon Larsen
93f1b97e88 refactor: Improve error handling in Monitor.ts
This commit refactors the Monitor.ts file to improve error handling. It removes commented out code and unused imports, ensuring a cleaner and more efficient codebase. This change enhances the maintainability and readability of the code.
2024-07-05 11:16:29 +01:00
Simon Larsen
c617e49a63 refactor: Update ingestor replica count based on configuration
This commit updates the ingestor replica count in the HelmChart/Public/oneuptime/templates/ingestor.yaml file based on the configuration. If the `$.Values.deployment.ingestor.replicaCount` value is provided, it sets the replicas to that value. Otherwise, it falls back to `$.Values.deployment.replicaCount`. This change ensures that the ingestor replica count is correctly configured, improving the scalability and performance of the application.
2024-07-05 10:51:19 +01:00
Simon Larsen
de7d06e5d7 refactor: Improve error handling in FetchListAndProbe
This commit refactors the FetchListAndProbe class to improve error handling. It adds try-catch blocks around the main logic and logs any errors that occur using the logger. Additionally, it includes a catch block to handle any errors thrown during the fetchListAndProbe function. This change ensures that errors are properly handled and logged, preventing potential issues with the monitoring process.
2024-07-05 10:18:03 +01:00
Simon Larsen
9b862162b6 refactor: Remove Hugging Face model download step from workflows
The Hugging Face model download step has been removed from the release and test workflows due to limited disk space on the runner. This step was causing issues and is no longer necessary for the current functionality of the project.
2024-07-05 10:05:19 +01:00
Simon Larsen
0ecf3fa1e0 refactor: Remove commented out code and unused imports in Monitor.ts 2024-07-05 09:54:34 +01:00
Simon Larsen
b5fa564cb3 refactor: Remove LLM/Models from .dockerignore 2024-07-05 09:29:05 +01:00
Simon Larsen
b771e1486e Update Hugging Face model download command in release and test workflows 2024-07-05 09:27:20 +01:00
Simon Larsen
3f1479d8f5 refactor: Improve error handling in Semaphore.lock()
This commit refactors the Semaphore.lock() function in the MonitorStatusTimelineService and Monitor API files to improve error handling. It adds try-catch blocks around the lock() function calls and logs any errors that occur using the logger. This change ensures that errors during the locking process are properly handled and logged, preventing potential issues with mutex locking.
2024-07-05 09:05:36 +01:00
Simon Larsen
dcdf1e21ae chore: Free up disk space in GitHub Actions runner 2024-07-04 22:40:38 +01:00
Simon Larsen
cc3f003be5 refactor: Improve error handling in FetchListAndProbe
This commit refactors the FetchListAndProbe class to improve error handling. It adds try-catch blocks around the main logic and logs any errors that occur using the logger. Additionally, it includes a catch block to handle any errors thrown during the fetchListAndProbe function. This change ensures that errors are properly handled and logged, preventing potential issues with the monitoring process.
2024-07-04 22:22:37 +01:00
Simon Larsen
0e53e26695 refactor: Update PROBE_MONITOR_FETCH_LIMIT default value to 10
This commit updates the default value of the PROBE_MONITOR_FETCH_LIMIT variable in the Config.ts file from 1 to 10. This change ensures that the monitor fetch limit is set to a more reasonable value, improving the efficiency of the monitoring process.
2024-07-04 21:05:03 +01:00
Simon Larsen
ad1e5fefc6 refactor: Improve error handling in Semaphore.lock()
This commit refactors the Semaphore.lock() function in the MonitorStatusTimelineService and Monitor API files to improve error handling. It adds try-catch blocks around the lock() function calls and logs any errors that occur using the logger. This change ensures that errors during the locking process are properly handled and logged, preventing potential issues with mutex locking.
2024-07-04 20:52:19 +01:00
Simon Larsen
8ea77dc6d1 chore: Update BillingInvoiceAPI to check for userAuthorization.isMasterAdmin when userPermissions is empty 2024-07-04 10:50:40 +01:00
Simon Larsen
2222ca301f feat: Update count property in docker-compose.llm.yml to use 'all'
This commit updates the count property in the docker-compose.llm.yml file to use the value 'all' instead of the previous value of '1'. This change allows for the allocation of all available devices with the 'gpu' capability, improving the utilization of resources.
2024-07-03 17:48:43 +01:00
Simon Larsen
0f66c70205 refactor: Update issue template titles
This commit removes the redundant "Bug:" and "Enhancement:" prefixes from the issue template titles. The prefixes are unnecessary as the labels already indicate the type of issue. This change simplifies the issue creation process and improves the clarity of the issue templates.
2024-07-03 17:37:10 +01:00
Simon Larsen
88dc64f182 feat: Add new migration for SchemaMigrations
This commit adds a new migration file, MigrationName1720024126646, to the SchemaMigrations directory. This migration will be used to make changes to the database schema.
2024-07-03 17:35:24 +01:00
Simon Larsen
94c50b980a feat: Add disableCreate prop to MonitorTable component 2024-07-03 17:26:33 +01:00
Simon Larsen
9866919873 feat: Add new icons for NoSignal and EyeSlash
This commit adds two new icons, NoSignal and EyeSlash, to the IconProp enum. It also includes the necessary code changes in the Icon component to render these icons. These icons will be used in the Monitor SideMenu to represent monitors with all probes disconnected and monitors with all probes disabled, respectively.
2024-07-03 16:55:31 +01:00
Simon Larsen
e025f996e4 feat: Add Monitor Groups and Not Being Monitored sections to Dashboard SideMenu 2024-07-03 16:43:39 +01:00
Simon Larsen
cd4c326f6e refactor: Update PermissionHelper to use access control permissions for probe actions
This commit updates the PermissionHelper class to use access control permissions for probe actions. Previously, the isAccessControlPermission property was set to false for all probe-related permissions. Now, it has been changed to true, aligning with the intention of these permissions. This change improves the clarity and consistency of the codebase.
2024-07-03 14:58:11 +01:00
Simon Larsen
c668731389 chore: Add new monitor notification settings for probe status changes and no probes monitoring the monitor 2024-07-03 14:56:57 +01:00
Simon Larsen
e6a10edca6 chore: Add new monitor notification settings for probe status changes and no probes monitoring the monitor 2024-07-02 19:42:28 +01:00
Simon Larsen
847f7fa5c9 chore: Update MonitorTypeHelper function names to be more descriptive
This commit updates the function names in the MonitorTypeHelper class to be more descriptive and accurately reflect their purpose. The function isProbableMonitors has been renamed to isProbableMonitor, and doesMonitorTypeHaveInterval has been renamed to doesMonitorTypeRequireInterval. This change improves the clarity and maintainability of the codebase.
2024-07-02 18:58:06 +01:00
Simon Larsen
03cb9a67b4 chore: Update server monitor criteria to evaluate over time
This commit updates the ServerMonitorCriteria class to include the option to evaluate criteria over time. It adds a new condition to check if the criteria filter includes the evaluateOverTimeOptions property. If it does, the criteria will be evaluated based on the specified time value in minutes. This change allows for more flexible and customizable monitoring criteria.
2024-07-02 17:14:58 +01:00
Simon Larsen
9791aa1259 chore: Add CPU core count to CPUMetrics
This commit adds the `cores` field to the `CPUMetrics` struct in order to include the number of CPU cores in the collected metrics. This information is useful for understanding the processing power of the server.
2024-07-02 13:54:04 +01:00
Simon Larsen
0df7209723 feat: Add basic infrastructure metrics to server monitor summary view 2024-07-02 13:06:23 +01:00
Simon Larsen
0de8e2d818 chore: Add hostname to server monitor report
This commit adds the hostname field to the server monitor report in order to include the hostname of the server in the collected metrics. This information is useful for identifying and distinguishing between different servers in the monitoring system.
2024-07-02 13:04:02 +01:00
Simon Larsen
5f9a1091de chore: Update Dockerfile paths in release and test-release workflows
This commit updates the paths to the Dockerfile in the release.yml and test-release.yaml workflows. The paths have been changed to ./LLM/Dockerfile to ensure that the correct Dockerfile is used for building and pushing the image. This change is necessary because the base image of the LLM does not support arm64 platforms.
2024-07-02 12:55:52 +01:00
Simon Larsen
6ef17b1720 chore: Update Dockerfile to set stack trace limit to 0
This commit updates the Dockerfile to set the stack trace limit to 0, allowing full stack traces to be shown. This change ensures that developers have access to complete stack trace information when debugging the application.
2024-07-02 12:29:31 +01:00
Simon Larsen
9c41a20ebb chore: Update Dockerfile paths in release and test-release workflows
This commit updates the paths to the Dockerfile in the release.yml and test-release.yaml workflows. The paths have been changed to ./LLM/Dockerfile to ensure that the correct Dockerfile is used for building and pushing the image. This change is necessary because the base image of the LLM does not support arm64 platforms.
2024-07-02 12:23:03 +01:00
Simon Larsen
eddb5a81c9 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-02 12:20:47 +01:00
Simon Larsen
3861d09930 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-02 11:20:24 +00:00
Simon Larsen
733901a870 refactor: Use array of messages in CopilotActionsBase.ts, RefactorCode.ts, ImproveReadme.ts, ImproveVariableNames.ts, FixGrammarAndSpelling.ts, and WriteUnitTests.ts
This refactor changes the code in CopilotActionsBase.ts, RefactorCode.ts, ImproveReadme.ts, ImproveVariableNames.ts, FixGrammarAndSpelling.ts, and WriteUnitTests.ts to use an array of messages instead of a single prompt. Each message in the array contains the content and role of the prompt, improving flexibility and readability.
2024-07-02 11:19:53 +00:00
Simon Larsen
131c3034d6 chore: Update installation script to add binary to path
The installation script has been updated to add the binary to the user's path. This ensures that the oneuptime-infrastructure-agent command can be accessed from anywhere in the shell.
2024-07-02 12:19:14 +01:00
Simon Larsen
0c9175c728 fix install script for mac 2024-07-02 12:11:21 +01:00
Simon Larsen
e2eff652e3 chore: Update notification method description in NotificationSettings.tsx 2024-07-02 11:25:36 +01:00
Simon Larsen
43e9530fdb chore: Update notification method description in NotificationSettings.tsx
This commit updates the description of the notification methods in the NotificationSettings.tsx file. The previous description mentioned "custom porbe" instead of "custom probe". This change improves the accuracy and clarity of the description, ensuring that it correctly reflects the purpose of the notification methods.
2024-07-02 11:23:24 +01:00
Simon Larsen
0000cbc53e chore: Add migration for new SchemaMigrations
This commit adds a new migration file, MigrationName1719915433542, to the SchemaMigrations directory. The migration is necessary to update the database schema and ensure compatibility with the latest changes in the codebase.
2024-07-02 11:19:31 +01:00
Simon Larsen
8b26cac8f0 ```text
chore: Update ProbeAPI.test.ts to include connectionStatus field in select query

This commit modifies the ProbeAPI.test.ts file to include the connectionStatus field in the select query. The connectionStatus field was missing from the original query, and this change ensures that it is now included, providing complete information about the probe's connection status.
2024-07-02 11:14:42 +01:00
Simon Larsen
e8417b23d9 chore: Update ProbeConnectionStatusChange template to display "Status Since" instead of "Date / Time" 2024-07-01 22:45:10 +01:00
Simon Larsen
1bd5671d17 chore: Update lastAlive field to Status Since in ProbeConnectionStatusChange template
This commit updates the ProbeConnectionStatusChange template to display the last connection status change as "Status Since" instead of "Date / Time". The change improves the clarity and accuracy of the displayed information, providing a better user experience.
2024-07-01 22:22:51 +01:00
Simon Larsen
56d3e7e1f2 chore: Update probeKey type to string in CustomProbeDocumentation and ProbeView components
This commit updates the probeKey prop type from ObjectID to string in the CustomProbeDocumentation and ProbeView components. The probeKey is used to identify the probe and was previously defined as ObjectID, but it should be a string. This change ensures that the probeKey is correctly passed and used throughout the components, improving the accuracy and reliability of the application.
2024-07-01 20:00:16 +01:00
Simon Larsen
34888e9b7f chore: Update CustomProbeDocumentation component title
This commit updates the title of the CustomProbeDocumentation component from "Set up your Server Monitor (Linux/Mac)" to "Set up your Custom Probe". The new title accurately reflects the purpose of the component and improves the clarity of the user interface.
2024-07-01 17:51:28 +01:00
Simon Larsen
7c09423766 chore: Update ProbeStatusElement component to use connectionStatus field 2024-07-01 17:34:04 +01:00
Simon Larsen
9ba8251c58 chore: Update ProbeStatusElement component to use connectionStatus field 2024-07-01 17:19:27 +01:00
Simon Larsen
7a5efd99ca chore: Update ProbeStatusElement component to use connectionStatus field
This commit updates the ProbeStatusElement component to use the new connectionStatus field from the Probe model. The component previously relied on the lastAlive field to determine the probe's connection status, but now it directly checks the connectionStatus field. This change ensures that the component accurately reflects the probe's current connection status, improving the reliability of the application.
2024-07-01 17:12:33 +01:00
Simon Larsen
1e595be586 feat: Add notification settings for probe owner added event
This commit adds notification settings for the "probe owner added" event. It includes updates to the EmailTemplateType enum, NotificationSettingEventType enum, UserNotificationSettingService, and NotificationSettings.tsx. The new settings allow users to receive notifications when they are added as owners to a probe. This enhancement improves the user experience by providing timely notifications for ownership changes.
2024-07-01 17:06:35 +01:00
Simon Larsen
1d63168606 chore: Add connectionStatus field to Probe model and update related components 2024-07-01 16:52:16 +01:00
Simon Larsen
82601a3e8f chore: Disable editing and deleting of probes in ProbePage component
This commit disables the editing and deleting functionality for probes in the ProbePage component. The isEditable and isDeleteable props are set to false, preventing users from modifying or removing probes. This change ensures that probes cannot be accidentally modified or deleted, improving the data integrity of the application.
2024-07-01 14:41:25 +01:00
Simon Larsen
17bf63e83b chore: Add missing commas in Index.ts files
This commit adds missing commas in the Index.ts files of the Model/Models and CommonServer/Infrastructure/Postgres/SchemaMigrations directories. The missing commas were causing syntax errors in the code. This fix ensures that the code is valid and can be executed without errors.
2024-07-01 14:12:06 +01:00
Simon Larsen
885a6ca36e feat: Add ProbeOwnerTeam and ProbeOwnerUser APIs
This commit adds the APIs for ProbeOwnerTeam and ProbeOwnerUser, allowing users to manage ownership of probes within the application. The APIs are implemented in the BaseAPI/Index.ts file and include routes for creating, deleting, editing, and reading probe owner teams and users. This enhancement improves the functionality of the application by providing a way to manage probe ownership.
2024-07-01 14:02:49 +01:00
Simon Larsen
dec35bbc03 chore: Update model-inline-code styles for consistency
This commit updates the model-inline-code styles in the model.ejs and head.ejs files to ensure consistency throughout the application. The model-inline-code class is now defined with rounded corners, smaller text size, and a gray background color. This change improves the visual presentation of code snippets in the application.
2024-07-01 13:52:49 +01:00
Simon Larsen
77dcb16e8b feat: Add permissions for creating, deleting, editing, and reading probe owner teams and users 2024-07-01 13:42:17 +01:00
Simon Larsen
b10a4c7db8 feat: Add permissions for creating, deleting, editing, and reading probe owner teams and users
This commit adds new permissions for creating, deleting, editing, and reading probe owner teams and users. These permissions allow users to manage ownership of probes within the application. The permissions are defined in the Permission enum and are accompanied by titles and descriptions for clarity. This enhancement improves the access control functionality of the application.
2024-07-01 13:39:07 +01:00
Simon Larsen
8d82f1128b chore: Add ProbeConnectionStatusChange email template
This commit adds a new email template, "ProbeConnectionStatusChange.hbs", to the EmailTemplateType enum in the EmailTemplateType.ts file. The template is used for sending emails related to changes in probe connection status. This addition enhances the email functionality of the application.
2024-07-01 13:07:11 +01:00
Simon Larsen
056c069c69 chore: Add migration for new ProbeStatus column
This commit adds a new migration file, "1719827175832-MigrationName", to the SchemaMigrations directory. The migration file includes the necessary changes to add a new column, "connectionStatus", to the Probe model in the Models directory. The column is of type "ShortText" and has access control settings for create and read permissions. This migration enables the storage and retrieval of the connection status of a probe in the database.
2024-07-01 10:47:24 +01:00
Simon Larsen
0466950c2d chore: Update axios and posthog-js dependencies
This commit updates the axios and posthog-js dependencies in the package-lock.json file. The axios dependency is updated from version 1.6.8 to 1.7.2, and the posthog-js dependency is updated from version 1.131.4 to 1.138.0. These updates ensure that the latest stable versions of these libraries are used in the project.
2024-07-01 10:43:11 +01:00
Simon Larsen
4442437ad7 refactor: Improve comments and error handling in Llama.ts and ImproveComments.ts 2024-07-01 10:39:27 +01:00
snyk-bot
1192c4b6f0 fix: upgrade @opentelemetry/instrumentation from 0.51.1 to 0.52.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation from 0.51.1 to 0.52.0.

See this package in npm:
@opentelemetry/instrumentation

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-29 05:38:32 +00:00
Simon Larsen
08f39af9ec refactor: Improve comments and handle bad operations in Llama.ts and ImproveComments.ts
This commit refactors the code in Llama.ts and ImproveComments.ts to improve comments and handle bad operations. In Llama.ts, a new import statement for the BadOperationException class is added, and if the result object contains an error string, a BadOperationException is thrown. In ImproveComments.ts, an unused variable declaration is removed. These changes enhance code readability and error handling.
2024-06-28 19:25:53 +01:00
Simon Larsen
7bf58d23bc chore: Update CopilotActionsBase.ts, RefactorCode.ts, ImproveReadme.ts, ImproveVariableNames.ts, FixGrammarAndSpelling.ts, and WriteUnitTests.ts
Refactor CopilotActionsBase.ts, RefactorCode.ts, ImproveReadme.ts, ImproveVariableNames.ts, FixGrammarAndSpelling.ts, and WriteUnitTests.ts to use an array of messages instead of a single prompt. Each message in the array contains the content and role of the prompt. This change improves the flexibility and readability of the code.
2024-06-28 19:15:53 +01:00
Simon Larsen
afb0cbcc2a chore: Update Dockerfile and docker-compose.llm.yml for LLM models 2024-06-28 18:00:27 +00:00
Simon Larsen
7393d9c2bc chore: Update Dockerfile and docker-compose.llm.yml for LLM models
This commit updates the Dockerfile and docker-compose.llm.yml files to include the LLM Models directory. The Dockerfile now uses the `ADD .` command to copy the entire repository into the container at `/app`, and the docker-compose.llm.yml file has been modified to set the context to the `./LLM` directory. These changes ensure that the LLM Models directory is included in the Docker image and that the correct context is used for building the image.
2024-06-28 17:59:43 +00:00
Simon Larsen
7b8efb2785 Update Dockerfile to set stack trace limit to 0 2024-06-28 17:52:57 +01:00
Simon Larsen
efea6f4c11 chore: Add Redis service to docker-compose.llm.yml
The Redis service has been added to the docker-compose.llm.yml file. This service is responsible for caching and cluster state. It extends the configuration from the docker-compose.base.yml file and uses the "redis" service defined there.
2024-06-28 17:42:43 +01:00
Simon Larsen
8dbf724f36 chore: Update Dockerfile in llm-docker-image-deploy workflow to use the correct volume mount path 2024-06-28 17:37:47 +01:00
Simon Larsen
fa4c705023 chore: Update Dockerfile in reliability-copilot.yml to use the correct volume mount path 2024-06-28 15:10:19 +01:00
Simon Larsen
106e41206e Update nav menu styling and product menu layout 2024-06-28 14:55:58 +01:00
Simon Larsen
dc0c71b063 Remove unused GitHub workflow files for Dependabot Automerge and Playwright Tests. These files are no longer needed and can be safely deleted.
Update the Dockerfile in the Copilot directory to use the correct volume mount path. This ensures that the Copilot tool can access the repository files correctly when running in a Docker container.
2024-06-28 14:47:27 +01:00
Simon Larsen
0cadb54117 chore: Update AI Copilot references to "Reliability Copilot" 2024-06-28 14:20:56 +01:00
Simon Larsen
0ba315342c Update product tabs and features table content 2024-06-28 14:08:49 +01:00
Simon Larsen
d87b292691 chore: Update Hugging Face clone URL in test-release.yaml
Fix a typo in the Hugging Face clone URL in the test-release.yaml file, which was causing the cloning process to fail. The "@" symbol was missing in the URL. This commit adds the missing "@" symbol to the URL.
2024-06-28 13:53:26 +01:00
Simon Larsen
ea3abf2ca0 chore: Update Banner component to handle optional link and openInNewTab props
The Banner component has been updated to handle optional link and openInNewTab props. If a link is provided, it will be wrapped in a Link component. If no link is provided, the content will be rendered directly. This change allows for more flexibility in using the Banner component.
2024-06-28 13:16:58 +01:00
Simon Larsen
3e507c0259 chore: Update Hugging Face clone URL in test-release.yaml
Fix a typo in the Hugging Face clone URL in the test-release.yaml file, which was causing the cloning process to fail. The "@" symbol was missing in the URL. This commit adds the missing "@" symbol to the URL.
2024-06-28 13:09:54 +01:00
Simon Larsen
5385c8e65c chore: Update AI Copilot references to "Reliability Copilot" 2024-06-28 13:05:35 +01:00
Simon Larsen
771ad54110 chore: Update reliability feature name to "Reliability Copilot" 2024-06-28 13:03:31 +01:00
Simon Larsen
6743193872 chore: Update LLM Dockerfile and build process 2024-06-28 12:18:01 +01:00
Simon Larsen
b94d862cae chore: Update LLM Dockerfile and build process 2024-06-28 12:14:49 +01:00
Simon Larsen
77d9b2f98f chore: Fix typo in Hugging Face clone URL
The Hugging Face clone URL in the test-release.yaml file had a missing "@" symbol, causing the cloning process to fail. This commit fixes the typo by adding the "@" symbol to the URL.

```
2024-06-28 12:00:10 +01:00
Simon Larsen
2565087dba Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-28 11:59:16 +01:00
Simon Larsen
5f330b5ea6 chore: Update Dockerfile and build process for LLM deployment
This commit updates the Dockerfile and build process for deploying the LLM (Llama Models) service. The Dockerfile has been generated from the Dockerfile.tpl file, and the build process now includes pulling the model from Hugging Face and setting up QEMU and Docker Buildx. Additionally, the login actions for Docker Hub and GitHub Container Registry have been added, and the build and push steps have been configured to use the updated tags and labels from the metadata action.

```
2024-06-28 11:59:13 +01:00
Simon Larsen
c5f6816d7b chore: Update Llama Models directory name to LLM 2024-06-28 11:53:09 +01:00
Simon Larsen
585b98c83d Merge pull request #1530 from OneUptime/copilot
Copilot
2024-06-28 11:35:03 +01:00
Simon Larsen
40635d5b07 Merge pull request #1531 from OneUptime/snyk-upgrade-7358ffa5d00ca86f76a1a45e96b3c33d
[Snyk] Upgrade posthog-js from 1.136.7 to 1.138.0
2024-06-28 11:34:55 +01:00
Simon Larsen
fd96f7a1ec Merge pull request #1533 from OneUptime/snyk-upgrade-28d9d373998545ed12a47fad19fc0238
[Snyk] Upgrade @opentelemetry/resources from 1.24.1 to 1.25.0
2024-06-28 11:34:47 +01:00
Simon Larsen
f585ffe756 chore: Update npm scripts for LLM deployment
The npm scripts for starting, building, and force-building the LLM (Llama Models) service have been updated in the package.json file. The new scripts use the docker-compose.llm.yml file instead of the docker-compose.ai.yml file. This change ensures that the correct configuration is used for deploying the LLM service.
2024-06-28 11:33:48 +01:00
Simon Larsen
9a86978c9d chore: Update Llama Models directory name to LLM
The directory name for Llama Models has been updated from "Llama/Models" to "LLM/Models". This change ensures consistency and aligns with the updated file paths in the codebase.
2024-06-28 11:32:44 +01:00
Simon Larsen
3bf87cf9eb Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-28 10:51:48 +01:00
Simon Larsen
b7b5288f9c ```text
chore: Set oneuptimeSecret and encryptionSecret to long random strings

The `oneuptimeSecret` and `encryptionSecret` values in the `values.yaml` file have been updated to be set to long random strings. This change ensures better security for OneUptime in production environments.
2024-06-28 10:51:45 +01:00
snyk-bot
2833dbb474 fix: upgrade @opentelemetry/resources from 1.24.1 to 1.25.0
Snyk has created this PR to upgrade @opentelemetry/resources from 1.24.1 to 1.25.0.

See this package in npm:
@opentelemetry/resources

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-28 06:07:03 +00:00
snyk-bot
2a6dda5fe2 fix: upgrade posthog-js from 1.136.7 to 1.138.0
Snyk has created this PR to upgrade posthog-js from 1.136.7 to 1.138.0.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-28 05:58:30 +00:00
Simon Larsen
e9e5b5a329 chore: Add error handling for item processing
This commit adds error handling for item processing in the `job` function of `app.py`. When an error occurs while processing an item, the error is stored in the `errors` dictionary. This ensures that errors are captured and can be handled appropriately. The `queue-status` endpoint now includes the `errors` dictionary in the response, providing visibility into any processing errors that occurred.
2024-06-27 20:23:24 +00:00
Simon Larsen
c0e055343e chore: Remove unused import of json in app.py 2024-06-27 20:19:56 +00:00
Simon Larsen
c657397d3b chore: Convert messages from JSON string to list in create_item endpoint 2024-06-27 20:19:44 +00:00
Simon Larsen
91cf4995b1 chore: Convert messages from JSON string to list in create_item endpoint 2024-06-27 20:11:57 +00:00
Simon Larsen
7b7c1e5951 chore: Convert messages from JSON string to list in create_item endpoint 2024-06-27 18:37:02 +00:00
Simon Larsen
b67583f8d3 refactor: Update Llama.ts to fix API route for prompt result 2024-06-27 19:16:49 +01:00
Simon Larsen
460b8459d4 chore: Update Llama Readme with GPU usage instructions 2024-06-27 17:51:46 +00:00
Simon Larsen
8328ece011 chore: Update docker-compose command in test.e2e.yaml 2024-06-27 17:48:41 +00:00
Simon Larsen
6f4045ffe9 refactor: Update SubscriptionPlan method name to getPlanType 2024-06-27 18:00:08 +01:00
Simon Larsen
54ce2c71c0 chore: Update docker-compose command in test.e2e.yaml 2024-06-27 16:27:59 +00:00
Simon Larsen
0a00cd9581 refactor: Update SubscriptionPlan method name to getPlanType 2024-06-27 16:00:21 +01:00
Simon Larsen
162c5d9db9 add queue to process responses 2024-06-27 14:56:22 +00:00
Simon Larsen
8be8c23ed9 refactor: Refactor code into smaller functions/methods 2024-06-27 15:48:52 +01:00
Simon Larsen
f2b6fffb4c chore: Add error handling for item processing
This commit adds error handling for item processing in the `job` function of `app.py`. When an error occurs while processing an item, the error is stored in the `errors` dictionary. This ensures that errors are captured and can be handled appropriately. The `queue-status` endpoint now includes the `errors` dictionary in the response, providing visibility into any processing errors that occurred.
2024-06-27 13:57:05 +00:00
Simon Larsen
626312d495 refactor: Refactor code into smaller functions/methods 2024-06-27 14:33:25 +01:00
Simon Larsen
77287868c4 refactor: Improve variable names in codebase 2024-06-27 14:15:18 +01:00
Simon Larsen
f7d221900a chore: Add error handling to ServerMonitor:CheckOnlineStatus 2024-06-27 13:40:07 +01:00
Simon Larsen
d51a420532 chore: Update docker-compose command in test.e2e.yaml
The `docker-compose` command in the `test.e2e.yaml` file has been updated to use `docker compose` instead. This change ensures compatibility with the latest version of Docker and improves the consistency of command usage across the project.
2024-06-27 13:18:57 +01:00
Simon Larsen
0567f92ddd chore: Update docker-compose command in test.e2e.yaml
The `docker-compose` command in the `test.e2e.yaml` file has been updated to use `docker compose` instead. This change ensures compatibility with the latest version of Docker and improves the consistency of command usage across the project.
2024-06-27 13:10:25 +01:00
Simon Larsen
e88e29f9e5 refactor: Update install.sh to support Windows OS 2024-06-27 11:58:14 +01:00
Simon Larsen
e50f6e14f0 chore: Update Server Monitor documentation for Linux/Mac and Windows
The Server Monitor documentation in the `Documentation.tsx` file has been updated to provide separate instructions for setting up the monitor on Linux/Mac and Windows. The title of the Linux/Mac section has been modified to reflect this change. Additionally, the Windows section has been added with detailed steps for downloading, configuring, starting, and stopping the agent. This update improves the clarity and usability of the Server Monitor documentation.
2024-06-27 11:57:35 +01:00
Simon Larsen
933b3e96a1 chore: Update pricing page with new features and descriptions 2024-06-27 11:36:53 +01:00
Simon Larsen
00b67974ed chore: Update pricing page with new headline
The pricing page has been updated to replace the previous headline with a new one that better highlights the value proposition of OneUptime. The new headline emphasizes that OneUptime is a comprehensive platform that combines 8+ tools into one, providing users with a complete SRE toolchain. This change improves the clarity and effectiveness of the messaging on the pricing page.
2024-06-27 11:18:06 +01:00
Simon Larsen
a05a7d9122 chore: Fix typos in code comments and UI text 2024-06-27 11:17:26 +01:00
Simon Larsen
fdf440f308 chore: Update HomeFeatureSet in Index.ts
The `HomeFeatureSet` object in `Index.ts` has been updated to modify the values for the `Public Status Page` and `Subscribers` features. The `free` plan for `Public Status Page` has been changed from "Unlimited" to "1", and the `free` plan for `Subscribers` has been changed from "Unlimited" to "100". Additionally, a new feature called `Synthetic Monitoring (with Playwright)` has been added to the `HomeFeatureSet` object.
2024-06-27 11:16:40 +01:00
Simon Larsen
34c6a32c48 refactor: Update install.sh to support Windows OS 2024-06-27 10:50:32 +01:00
Simon Larsen
0b078226f3 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-27 10:29:38 +01:00
Simon Larsen
e0a5927bd1 refactor: Improve CopilotActionService file handling
This commit refactors the `CopilotActionService` class in the `Index.ts` file to improve file handling. It updates the logic for obtaining the result from the Copilot action and committing the changes to the repository. Additionally, it removes unused code and improves the readability of the file. This refactoring enhances the overall efficiency and maintainability of the `CopilotActionService` class.
2024-06-27 10:29:35 +01:00
Simon Larsen
bed1f0dbb5 Merge pull request #1528 from OneUptime/snyk-upgrade-81e090968d72376d6229e5d49596cc79
[Snyk] Upgrade @opentelemetry/semantic-conventions from 1.24.1 to 1.25.0
2024-06-27 10:29:18 +01:00
Simon Larsen
4fef8ccfb5 Merge pull request #1526 from OneUptime/snyk-upgrade-274375204ccf65ed6f3d939f4cd74fda
[Snyk] Upgrade @opentelemetry/context-zone from 1.24.1 to 1.25.0
2024-06-27 10:29:07 +01:00
Simon Larsen
bb29b4be4b Merge pull request #1524 from OneUptime/snyk-upgrade-579a7cc9445a00c813ed17b2ba523e50
[Snyk] Upgrade posthog-js from 1.136.2 to 1.136.7
2024-06-27 10:29:00 +01:00
snyk-bot
e649a6f25a fix: upgrade @opentelemetry/exporter-trace-otlp-http from 0.51.1 to 0.52.0
Snyk has created this PR to upgrade @opentelemetry/exporter-trace-otlp-http from 0.51.1 to 0.52.0.

See this package in npm:
@opentelemetry/exporter-trace-otlp-http

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-27 06:02:00 +00:00
snyk-bot
078d89d8ae fix: upgrade @opentelemetry/semantic-conventions from 1.24.1 to 1.25.0
Snyk has created this PR to upgrade @opentelemetry/semantic-conventions from 1.24.1 to 1.25.0.

See this package in npm:
@opentelemetry/semantic-conventions

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-27 06:01:55 +00:00
snyk-bot
a13c172d6d fix: upgrade @opentelemetry/api from 1.8.0 to 1.9.0
Snyk has created this PR to upgrade @opentelemetry/api from 1.8.0 to 1.9.0.

See this package in npm:
@opentelemetry/api

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-27 06:01:50 +00:00
snyk-bot
6b4727bc9f fix: upgrade @opentelemetry/context-zone from 1.24.1 to 1.25.0
Snyk has created this PR to upgrade @opentelemetry/context-zone from 1.24.1 to 1.25.0.

See this package in npm:
@opentelemetry/context-zone

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-27 06:01:45 +00:00
Simon Larsen
95aaa68010 refactor: Update install.sh to support Windows OS 2024-06-26 22:05:09 +01:00
Simon Larsen
976686b5af refactor: Update install.sh to support Windows OS
The `install.sh` script has been updated to support the Windows operating system. This includes changes to the URL construction and the addition of logic to handle downloading and unzipping the binary for Windows. This enhancement improves the installation process for Windows users.
2024-06-26 22:02:12 +01:00
Simon Larsen
f59064108e refactor: Add isActionComplete method to CopilotActionsBase.ts
This commit adds a new method, `isActionComplete`, to the `CopilotActionsBase.ts` file. The method returns a boolean value indicating whether the action is complete. By default, the method returns `true`, but it can be overridden in derived classes to provide custom logic for determining the action's completion status. This enhancement improves the flexibility and extensibility of the `CopilotActionsBase` class.
2024-06-26 21:47:20 +01:00
Simon Larsen
44d8254e7d refactor: Remove unused getNextFilePath method in CopilotActionsBase.ts 2024-06-26 21:43:13 +01:00
Simon Larsen
d284a6ff54 refactor: Remove unused getNextFilePath method in CopilotActionsBase.ts 2024-06-26 21:40:39 +01:00
Simon Larsen
1908f02447 refactor: Extract code from CopilotActionBase to separate functions 2024-06-26 21:40:07 +01:00
Simon Larsen
f50e20d896 refactor: Extract code from CopilotActionBase to separate functions 2024-06-26 20:55:14 +01:00
Simon Larsen
bd8ed04e1b refactor: Extract code from CopilotActionBase to separate functions
This commit extracts code from the `CopilotActionBase.ts` file into separate functions for better code organization and readability. The extracted code includes the logic for ordering SSL certificates, checking the order status, and handling domain removal. This refactoring improves the maintainability and modularity of the codebase.
2024-06-26 19:33:01 +01:00
Simon Larsen
27c54221cb feat: Mark domain as not ordered and update SSL status
This commit updates the `StatusPageDomainService.ts` file to mark a domain as not ordered and update the SSL status when it is removed. The `notifyDomainRemoved` function now includes logic to update the `isSslOrdered` and `isSslProvisioned` properties to `false` for the specified domain. This ensures that the SSL certificate is not ordered or provisioned for the removed domain.
2024-06-26 14:42:17 +01:00
Simon Larsen
cf589ba0c6 refactor: Remove invalid domain and notify removal
The code changes in GreenlockUtil.ts remove the domain if the CNAME is not valid and notify the removal. This ensures that only valid domains are processed for ordering SSL certificates.
2024-06-26 14:38:26 +01:00
Simon Larsen
43eaff3a6d feat: Add logic to order SSL certificate for valid domains
The code changes in `StatusPageDomainService.ts` add logic to order an SSL certificate for valid domains. If the CNAME is valid, the code attempts to order the certificate using the `orderCert` function. This ensures that all valid domains have the necessary SSL protection.
2024-06-26 14:31:08 +01:00
Simon Larsen
30e96de2d9 refactor: Check order status for SSL certificates
This commit adds a new cron job in the `StatusPageCerts.ts` file to check the order status of SSL certificates for domains that have already ordered them. If a certificate does not exist for a domain, the code will attempt to order the certificate again. This ensures that all domains with ordered certificates have the necessary SSL protection.
2024-06-26 14:25:35 +01:00
Simon Larsen
43c4f44f1f refactor: Check order status for SSL certificates
This commit adds a new cron job in the `StatusPageCerts.ts` file to check the order status of SSL certificates for domains that have already ordered them. If a certificate does not exist for a domain, the code will attempt to order the certificate again. This ensures that all domains with ordered certificates have the necessary SSL protection.
2024-06-26 14:24:49 +01:00
Simon Larsen
af6f5af11d Update phone number placeholders in registration and subscription forms 2024-06-26 12:36:27 +01:00
snyk-bot
79603c9bb4 fix: upgrade posthog-js from 1.136.2 to 1.136.7
Snyk has created this PR to upgrade posthog-js from 1.136.2 to 1.136.7.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-26 05:31:20 +00:00
Simon Larsen
e2074b010e refactor: Add notification webhook on user creation
This commit adds a notification webhook on user creation in the UserService. When a new user is created, a Slack message is sent to the specified webhook URL with details about the user's email, name, phone number, and company name. This feature enhances the user onboarding process and allows for better tracking and communication with new users.
2024-06-25 22:48:46 +01:00
Simon Larsen
2187edc158 refactor: Update Select.ts and Project.ts for better code organization and readability 2024-06-25 22:16:08 +01:00
Simon Larsen
a9778cf9d0 refactor: Update Copilot README.md file
This commit adds a blank line at the end of the Copilot README.md file. This change ensures consistency in the file structure and improves readability.
2024-06-25 12:09:25 +01:00
Simon Larsen
c450c3fa1b ```text
refactor: Update server_name in Nginx configuration

This commit updates the server_name directive in the Nginx configuration file to remove the ${HOST}:${ONEUPTIME_HTTP_PORT} variable and use just ${HOST}. This change ensures that the server_name is set correctly for all domains.
2024-06-24 21:43:24 +01:00
Simon Larsen
3aaed9c901 refactor: Update OneUptime port in nginx.yaml
This commit updates the ONEUPTIME_HTTP_PORT value in the nginx.yaml file to use the port specified in the $.Values.port.nginxHttp variable. This change ensures that OneUptime is hosted on the correct port.
2024-06-24 19:59:36 +01:00
Simon Larsen
70a9944f6a refactor: Update Nginx configuration to enable HTTP/2
This commit updates the Nginx configuration file to enable HTTP/2 by removing the `http2` directive from the `listen` directive and adding a separate `http2` directive. This change ensures that the server supports the latest HTTP/2 protocol, improving performance and security.
2024-06-24 19:56:45 +01:00
Simon Larsen
ad48aae0ba ```text
refactor: Update OneUptime port in config.example.env

This commit updates the ONEUPTIME_HTTP_PORT value in the config.example.env file to 80. This change ensures that OneUptime is hosted on the correct port.
2024-06-24 19:47:15 +01:00
Simon Larsen
14f9950c38 Update container port names for status page in nginx.yaml 2024-06-24 19:45:01 +01:00
Simon Larsen
4acedfdd62 Update nginx.yaml and values.yaml for hosting OneUptime and status page on different ports 2024-06-24 19:42:46 +01:00
Simon Larsen
deff7c9464 refactor: Add missing comma in SchemaMigrations/Index.ts 2024-06-24 19:19:52 +01:00
Simon Larsen
b407286ef0 refactor: Add migration for new schema version 2024-06-24 19:18:26 +01:00
Simon Larsen
9348076df0 refactor: Improve error handling in CheckHeartbeat.ts
This commit improves the error handling in the CheckHeartbeat.ts file. It adds a try-catch block around the main logic to catch any errors that occur during the processing of incoming request monitors. Additionally, it logs the error message and the ID of the monitor that caused the error. This change enhances the robustness and reliability of the code by properly handling and logging errors.
2024-06-24 18:50:59 +01:00
Simon Larsen
09a7e155b7 refactor: Update Project.ts to use number type for enterpriseAnnualContractValue column
The code changes in Project.ts modify the type of the enterpriseAnnualContractValue column from ShortText to Number. This change ensures that the column stores numeric values instead of text, improving data integrity and query performance.
2024-06-24 17:45:36 +01:00
Simon Larsen
127cc6b9b1 refactor: Add logging statements for IncomingRequestMonitor
This commit adds logging statements to the IncomingRequestMonitor module to improve debugging and monitoring. The added log messages provide information about the number of incoming request monitors found and whether a monitor should process a request. This change enhances the visibility and understanding of the monitoring process.
2024-06-24 17:31:42 +01:00
Simon Larsen
ea5474527c refactor: Update CompareCriteria message formatting
This commit refactors the CompareCriteria class to update the message formatting for different filter types. The previous implementation included the word "threshold" in the message, which is unnecessary and can be confusing. The updated message now clearly states whether the value is greater than, greater than or equal to, less than, less than or equal to, or not equal to the threshold value. This change improves the clarity and readability of the message generated by the CompareCriteria class.
2024-06-24 14:28:05 +01:00
Simon Larsen
9111b831a7 chore: Update docker-compose.dev.yml command in test.e2e.yaml 2024-06-24 13:29:34 +01:00
Simon Larsen
dcabdd0a55 refactor: Remove unused CopilotEvent table
This commit removes the unused CopilotEvent table from the database schema. The table is no longer needed and has been dropped to improve database performance and reduce clutter.
2024-06-24 12:52:57 +01:00
Simon Larsen
058b585eda refactor: Add migration for new schema version
This commit adds a new migration file for the latest schema version. The migration file is named "1719228104620-MigrationName". This ensures that the database schema is up to date with the latest changes.
2024-06-24 12:23:15 +01:00
Simon Larsen
25da20a968 refactor: Add migration for enterprise annual contract value column 2024-06-24 12:16:01 +01:00
Simon Larsen
4f4d9946ff Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-23 21:37:38 +01:00
Simon Larsen
0987634e54 refactor: Fix formatting and add comments in ArrayUtil.ts and CopilotActionProcessingException.ts 2024-06-23 21:37:36 +01:00
Simon Larsen
c099f3a3ef refactor: Improve error handling in app.py
The error handling in app.py has been improved to catch and handle exceptions that occur during the processing of items in the queue. This change ensures that errors are properly logged and that the affected items are removed from the pending items list.
2024-06-23 20:31:43 +00:00
Simon Larsen
a3f5e268b5 refactor: Shuffle files in Copilot Init to avoid fixing the same file in each run 2024-06-23 21:29:23 +01:00
Simon Larsen
2599841d37 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-23 21:04:49 +01:00
Simon Larsen
6c8a0c8cdc refactor: Improve file extension handling in LocalFile.ts 2024-06-23 21:04:46 +01:00
Simon Larsen
0d24bb6351 Merge pull request #1504 from OneUptime/snyk-upgrade-48794e3e1c0fd38df637134c9642af47
[Snyk] Upgrade posthog-js from 1.136.1 to 1.136.2
2024-06-23 21:01:01 +01:00
Simon Larsen
a4c5354152 refactor: Improve comments in ImproveComments.ts 2024-06-23 20:58:21 +01:00
Simon Larsen
a906713f6e Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-23 19:41:26 +01:00
Simon Larsen
e85e351797 refactor: Remove unnecessary blank lines in ServiceLanguageUtil class 2024-06-23 19:41:24 +01:00
Simon Larsen
3f9c1fd46e Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-23 18:40:56 +00:00
Simon Larsen
6c3edbfcb0 ```text
refactor: Update app.py to use asyncio.create_task for job function

The job function in app.py has been updated to use the asyncio.create_task method instead of directly calling the job function. This change improves the efficiency and performance of the code by allowing the job function to run concurrently with other tasks.
2024-06-23 18:40:38 +00:00
Simon Larsen
d3f212c9ec Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-23 19:35:07 +01:00
Simon Larsen
1964db22f1 refactor: Add support for Markdown file extension in ServiceLanguage enum 2024-06-23 19:35:04 +01:00
Simon Larsen
b6a70bbd6c refactor: Convert job function to async in app.py 2024-06-23 18:23:15 +00:00
Simon Larsen
f36609712b refactor: Add print statements to debug message processing in app.py 2024-06-23 18:13:39 +00:00
Simon Larsen
6737d97f30 refactor: Improve comments in ImproveComments.ts 2024-06-23 18:00:44 +01:00
Simon Larsen
d22b40e91a refactor: Improve comments in ImproveComments.ts 2024-06-23 18:00:16 +01:00
Simon Larsen
e2e4db5073 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-22 19:40:21 +01:00
Simon Larsen
2415f97ec6 refactor: Add NotAcceptedFileExtentionForCopilotAction exception handling 2024-06-22 19:40:18 +01:00
Simon Larsen
0910c9f6f6 Merge branch 'ai-copilot-main' 2024-06-22 12:43:42 +00:00
Simon Larsen
1a02f5b73e refactor: Update queue_status endpoint response key name
The key name in the response of the queue_status endpoint has been updated from "prnding" to "pending" to fix a typo. This change ensures consistency and improves the readability of the returned data.
2024-06-22 12:43:04 +00:00
Simon Larsen
b6cabf12d5 refactor: Update CopilotActionsBase to include PR generation message
This commit updates the `CopilotActionsBase.ts` file to include a message about PR generation in the warning section. The message informs users that the PR is generated by OneUptime Copilot and advises them to review the changes before merging. This enhancement improves the clarity and transparency of the generated PRs.
2024-06-22 13:36:52 +01:00
Simon Larsen
27ef73be20 refactor: Execute CopilotAction and update currentFixCount
This commit modifies the `Copilot/Init.ts` file to execute the `CopilotActionService.execute` method for each event that needs fixing. It also updates the `currentFixCount` variable to keep track of the number of fixes performed. This refactor improves the functionality of the Copilot service by ensuring that all necessary actions are executed and the fix count is accurately maintained.
2024-06-22 13:34:54 +01:00
Simon Larsen
00b35c4d9a refactor: Convert job function to async in app.py
The job function in app.py has been converted to an async function to support asynchronous processing. This change improves the performance and responsiveness of the application by allowing other tasks to run concurrently while the job function is processing the queue.
2024-06-22 12:31:53 +00:00
Simon Larsen
369bdfc841 ```text
refactor: Add FixGrammarAndSpelling action to CopilotActionType and CopilotActions

This commit adds the `FixGrammarAndSpelling` action to the `CopilotActionType` enum and the `CopilotActions` dictionary. The action is now available for execution in the Copilot service. This enhancement improves the codebase by providing a new action that can be used to fix grammar and spelling errors in the application.
2024-06-22 12:50:54 +01:00
Simon Larsen
8150f44244 refactor: Improve comments in ImproveComments.ts 2024-06-22 12:42:34 +01:00
Simon Larsen
6a646c06b3 refactor: Remove unused CopilotActionType enum value
This commit removes the unused `CopilotActionType` enum value from the `CopilotActionType.ts` file. The value was commented out and had no impact on the functionality of the application. Removing it helps to improve code clarity and maintainability.
2024-06-22 12:38:27 +01:00
Simon Larsen
422656caf3 refactor: Remove unused PromptsUtil class
This commit removes the unused `PromptsUtil` class from the codebase. The class was no longer being used and had no impact on the functionality of the application. Removing it helps to reduce code complexity and improve maintainability.
2024-06-22 12:35:38 +01:00
Simon Larsen
5223d1bd6d refactor: Improve comments in CopilotActionType and CopilotActionsBase
The code changes in this commit refactor the comments in the `CopilotActionType` and `CopilotActionsBase` files. The comments have been improved to provide clearer instructions and guidelines for code commenting. This enhancement ensures that the codebase is well-documented and easier to understand for future developers.
2024-06-22 12:35:12 +01:00
Simon Larsen
42f0b90291 refactor: Update SendStatusChangeNotification to convert rootCause to HTML
This commit updates the SendStatusChangeNotification module to convert the rootCause property to HTML using the Markdown.convertToHTML function. This ensures that the rootCause is properly formatted for display in email notifications. The conversion is only performed if the rootCause is not empty. This improvement enhances the readability and presentation of the status change notifications.
2024-06-22 12:26:03 +01:00
Simon Larsen
3d4f28fc0f refactor: Simplify CodeRepositoryUtil.pullChanges method signature 2024-06-22 11:33:52 +01:00
snyk-bot
e74c6a7030 fix: upgrade posthog-js from 1.136.1 to 1.136.2
Snyk has created this PR to upgrade posthog-js from 1.136.1 to 1.136.2.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-21 19:17:11 +00:00
Simon Larsen
6be976102c refactor: Remove commented out code and unused imports 2024-06-21 18:53:11 +01:00
Simon Larsen
261072b1fd refactor: Update logging statements in CopilotActionService 2024-06-21 18:35:22 +01:00
Simon Larsen
e7659bdf08 chore: Switch to main branch before executing CopilotAction 2024-06-21 18:06:06 +01:00
Simon Larsen
2a8c45cea0 refactor: Improve page load performance with lazy loading for images 2024-06-21 18:04:09 +01:00
Simon Larsen
b197416247 Update OneUptime installation documentation and Docker Compose file
This commit updates the OneUptime installation documentation and Docker Compose file to provide clearer instructions for setting up and updating OneUptime. It includes steps for accessing OneUptime, setting up TLS/SSL certificates, and updating OneUptime using Git. The changes ensure that users have the necessary information to install and maintain OneUptime effectively.
2024-06-21 17:41:34 +01:00
Simon Larsen
fe0e745640 refactor: Update TLS/SSL certificate setup instructions 2024-06-21 17:39:05 +01:00
Simon Larsen
28ea4d9b83 refactor: Update TLS/SSL certificate setup instructions
This commit updates the installation documentation and example configuration file to provide clear instructions on setting up TLS/SSL certificates for OneUptime. It emphasizes that OneUptime does not support setting up SSL/TLS certificates and provides steps for using a reverse proxy like Nginx or Caddy, along with Let's Encrypt, to provision the certificates. It also includes instructions for updating the necessary settings in the configuration file. This improvement ensures that users have the necessary information to secure their OneUptime installation with SSL/TLS certificates.
2024-06-21 17:38:30 +01:00
Simon Larsen
3d7cb148d0 refactor: Update MonitorTable to use MonitorElement for rendering monitor names
This commit updates the MonitorTable component to use the MonitorElement component for rendering monitor names in the table. The MonitorElement component takes a Monitor object as a prop and renders the monitor name as a link. This change improves the modularity and reusability of the code by separating the rendering logic into a separate component.
2024-06-21 17:21:20 +01:00
Simon Larsen
0d0760e450 refactor: Update ServerMonitorCriteria to handle evaluateOverTime options
This commit updates the ServerMonitorCriteria class to handle the evaluateOverTime options in the criteria filter. If the evaluateOverTime flag is set to true and evaluateOverTimeOptions are provided, the offlineIfNotCheckedInMinutes value is updated accordingly. This enhancement improves the flexibility and customization of the ServerMonitorCriteria class.
2024-06-21 16:42:51 +01:00
Simon Larsen
a6f66a59bf refactor: Update sleep duration to 10 minutes for server startup 2024-06-21 16:11:16 +01:00
Simon Larsen
f09419ef50 refactor: Update failureCause message in PingMonitor.ts 2024-06-21 13:59:45 +01:00
Simon Larsen
4c90dc66a0 refactor: Update SendCreatedResourceNotification to convert rootCause to HTML 2024-06-21 13:56:23 +01:00
Simon Larsen
99c2e34ab5 refactor: Add support for IsOnline check in CriteriaFilterUtil 2024-06-21 13:43:29 +01:00
Simon Larsen
0fb0e9b047 refactor: Update SendCreatedResourceNotification to convert rootCause to HTML
This commit updates the SendCreatedResourceNotification class to convert the rootCause property to HTML using the Markdown.convertToHTML function. This ensures that the rootCause is properly formatted and displayed in the incident notification email. The rootCause is either the incident's rootCause or a default message if no rootCause is identified. This enhancement improves the readability and effectiveness of the incident notifications.
2024-06-21 13:34:00 +01:00
Simon Larsen
7ae6a3c5ea refactor: Update ProbeMonitorResponseService to include criteria details in rootCause
This commit updates the ProbeMonitorResponseService class to include the criteria details in the rootCause property of the ProbeApiIngestResponse. The criteria met ID, criteria name, criteria description, filter conditions met, and failure cause are now included in the rootCause. This enhancement improves the clarity and completeness of the rootCause information.
2024-06-21 13:08:05 +01:00
Simon Larsen
59f0526936 refactor: Update EvaluateOverTime method to handle boolean values for IsOnline metric
The EvaluateOverTime method in the EvaluateOverTime.ts file has been updated to handle boolean values for the IsOnline metric. This change allows the method to correctly evaluate and process the IsOnline metric data, improving the accuracy and reliability of the evaluation process.
2024-06-21 12:57:50 +01:00
Simon Larsen
bfcd5c1753 refactor: Improve clarity of CompareCriteria message generation
The CompareCriteria class has been refactored to improve the clarity of message generation. The code now checks the filter type before appending the values to the message, ensuring that the message is only generated when necessary. This change enhances the readability and maintainability of the code.
2024-06-21 12:31:43 +01:00
Simon Larsen
76df1a5889 refactor: Fix CriteriaFilterUtil to handle IsOnline check correctly
The CriteriaFilterUtil class has been updated to handle the IsOnline check correctly. The getEvaluateOverTimeTypeByCriteriaFilter method now includes the IsOnline check in the returned array of EvaluateOverTimeType values. This fix ensures that the CriteriaFilterUtil class functions properly and provides accurate results for the IsOnline check.
2024-06-21 12:24:06 +01:00
Simon Larsen
422ee6c192 refactor: Add support for IsOnline check in CriteriaFilterUtil
This commit adds support for the IsOnline check in the CriteriaFilterUtil class. The getEvaluateOverTimeTypeByCriteriaFilter method now includes the IsOnline check in the returned array of EvaluateOverTimeType values. This enhancement improves the functionality and flexibility of the CriteriaFilterUtil class.
2024-06-21 11:58:21 +01:00
Simon Larsen
808b3512f3 refactor: Improve clarity of declaredBy field assignment in SendCreatedResourceNotification.ts
This commit refactors the code in SendCreatedResourceNotification.ts to improve the clarity of how the "declaredBy" field is assigned. The code now checks if the incident has a createdByProbe and createdByUser, and assigns the appropriate value to "declaredBy" based on the available information. This change enhances the readability and maintainability of the code.
2024-06-21 11:44:19 +01:00
Simon Larsen
742796fd67 feat: Add declaredBy field to IncidentOwnerResourceCreated template and SendCreatedResourceNotification job
This commit adds the "declaredBy" field to the IncidentOwnerResourceCreated template in the Notification feature set and the SendCreatedResourceNotification job in the Workers feature set. The "declaredBy" field is used to display the name of the user or probe who declared the incident. This enhancement improves the clarity and completeness of the incident notifications sent to incident owners.
2024-06-21 11:39:32 +01:00
Simon Larsen
9027369e10 refactor: Add suffix to ProbeElement in Probe.tsx
This commit adds a new optional prop "suffix" to the ProbeElement component in Probe.tsx. The suffix is appended to the probe name displayed in the UI. This enhancement provides more flexibility in customizing the display of probe names.
2024-06-21 11:24:13 +01:00
Simon Larsen
a87f3ac896 refactor: Fix branch name generation in CopilotActionsBase.ts
The branch name generation in CopilotActionsBase.ts has been fixed to replace double hyphens with a single hyphen. This ensures that the branch name is correctly formatted and avoids any potential issues with branch creation and management.
2024-06-21 10:59:34 +01:00
Simon Larsen
db75cc1a5b Merge pull request #1499 from OneUptime/ai-copilot-main
Ai copilot main
2024-06-21 10:41:28 +01:00
Simon Larsen
2deeb32b78 refactor: Fix branch name generation in CopilotActionsBase.ts
The branch name generation in CopilotActionsBase.ts has been fixed to replace double hyphens with a single hyphen. This ensures that the branch name is correctly formatted and avoids any potential issues with branch creation and management.
2024-06-20 22:31:58 +01:00
Simon Larsen
bc8b8eb982 refactor: Update LlmType import paths in Copilot/Config.ts, Copilot/Service/LLM/Llama.ts, and Copilot/Service/LLM/LLM.ts
This commit updates the import paths for the LlmType module in the following files:
- Copilot/Config.ts
- Copilot/Service/LLM/Llama.ts
- Copilot/Service/LLM/LLM.ts

The import paths are corrected to match the actual file structure, ensuring that the LlmType module is properly imported and used throughout the codebase. This change improves the maintainability and readability of the code.
2024-06-20 21:37:24 +01:00
Simon Larsen
ef3fe66e72 Merge pull request #1498 from jackveney/patch-1
Update endpoint-status.sh to follow redirects
2024-06-20 21:10:32 +01:00
Jack Veney
17a0b65a4b Update endpoint-status.sh
Included the -L option in the curl command, ensuring that it will follow any 301 redirects until the final URL is reached.
2024-06-20 15:24:27 -04:00
Simon Larsen
01a1a0f69e Merge pull request #1496 from OneUptime/snyk-upgrade-99d49c023062d95b651963a884a19da7
[Snyk] Upgrade posthog-js from 1.135.2 to 1.136.1
2024-06-20 17:30:18 +01:00
Simon Larsen
1260e482cf refactor: Improve comments in code and update job function in app.py 2024-06-20 13:14:39 +01:00
Simon Larsen
6e5081a4e3 refactor: Remove unused CopilotEvent and CopilotEventService 2024-06-20 12:30:06 +01:00
Simon Larsen
dd93998296 refactor: Remove unused CopilotEvent and CopilotEventService
This commit removes the unused CopilotEvent enum and CopilotEventService class. These files are no longer needed in the codebase and can be safely deleted. Removing unused code improves the maintainability and reduces the complexity of the project.
2024-06-20 11:41:04 +01:00
Simon Larsen
94956b045a refactor: Improve comments in code and update job function in app.py
This commit refactors the code by improving the comments in the code and updating the job function in app.py. The comments are now focused on code that is hard to understand, and unnecessary comments are removed. The job function is converted to an async function to support asynchronous processing, which improves the performance and responsiveness of the application. These changes enhance the readability and efficiency of the codebase.
2024-06-20 10:00:07 +00:00
Simon Larsen
b2f650a865 refactor: Sanitize file path in CodeRepositoryUtil.getFileContent()
The file path in the CodeRepositoryUtil.getFileContent() method is now sanitized using the LocalFile.sanitizeFilePath() function before executing the command. This change ensures that the file path is properly formatted and prevents any potential security vulnerabilities or errors caused by invalid file paths.
2024-06-20 10:26:16 +01:00
Simon Larsen
4390a37184 fix prompt 2024-06-20 09:22:53 +00:00
Simon Larsen
9b08d1a9e4 refactor: Convert job function to async in app.py
The job function in app.py has been converted to an async function to support asynchronous processing. This change improves the performance and responsiveness of the application by allowing other tasks to run concurrently while the job function is processing the queue.
2024-06-19 21:05:36 +00:00
Simon Larsen
dbef1071e0 refactor: Add GPU support to Llama app in docker-compose.ai.yml 2024-06-19 20:58:08 +00:00
Simon Larsen
98fbbe301e refactor: Update variable types in Copilot/Init.ts and Copilot/Utils/Prompts.ts 2024-06-19 21:03:54 +01:00
snyk-bot
6805083725 fix: upgrade posthog-js from 1.135.2 to 1.136.1
Snyk has created this PR to upgrade posthog-js from 1.135.2 to 1.136.1.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-19 19:07:13 +00:00
Simon Larsen
27213fa235 refactor: Add FixNumberOfCodeEventsInEachRun constant to Config.ts
This commit adds the FixNumberOfCodeEventsInEachRun constant to the Config.ts file. The constant is set to 5 and is used to determine the number of code events to fix in each run. This change improves the flexibility and configurability of the code events handling in the application.
2024-06-19 16:29:25 +01:00
Simon Larsen
baa98e333e refactor: Update LlmType export in Config.ts and LlmType.ts 2024-06-19 15:36:24 +01:00
Simon Larsen
ccdcf2c679 refactor: Update Llama app to use local model path instead of model ID 2024-06-19 15:06:36 +01:00
Simon Larsen
85edd12c2d refactor: Update Dockerfile.tpl to use huggingface/transformers-pytorch-gpu image 2024-06-19 13:20:34 +00:00
Simon Larsen
97cc28b182 refactor: Update Dockerfile.tpl to use huggingface/transformers-pytorch-gpu image
This commit updates the Dockerfile.tpl to use the huggingface/transformers-pytorch-gpu image instead of the continuumio/anaconda3 image. This change allows the Llama app to utilize GPU resources for improved performance in AI processing. Additionally, the unnecessary installation of the transformers and accelerate libraries is removed as they are already included in the huggingface/transformers-pytorch-gpu image.
2024-06-19 13:06:23 +00:00
Simon Larsen
b0041e6993 refactor: Update Dockerfile.tpl to expose port 8547 instead of port 80 2024-06-19 12:18:25 +00:00
Simon Larsen
a66d78743d Merge pull request #1495 from im-alfa/bugfix/add-aero-as-a-valid-tld
fix: add `.aero` as a valid TLD
2024-06-19 12:48:38 +01:00
Simon Larsen
bc78491478 ```text
refactor: Add appname label to probe.yaml

This commit adds the "appname" label to the probe.yaml file in order to provide additional information about the application. This label will help with identifying the specific application when managing and monitoring the Kubernetes resources.
2024-06-19 11:14:33 +01:00
alfa
7751870ccf fix: add .aero as a valid TLD 2024-06-19 05:42:23 +02:00
Simon Larsen
df6ffb15d4 refactor: Add GPU support to Llama app in docker-compose.ai.yml
This commit adds GPU support to the Llama app in the docker-compose.ai.yml file. It includes a new deploy section with reservations for GPU devices, specifying the driver, count, and capabilities. This change enables the Llama app to utilize GPU resources for improved performance in AI processing.
2024-06-18 22:11:53 +01:00
Simon Larsen
df20f343e9 refactor: Update Llama app to log prompt and output to console
This commit updates the Llama app to log the prompt and output to the console for debugging purposes. It adds print statements to log the prompt before processing and the generated output after processing. This change improves the development workflow by providing visibility into the input and output of the AI model.
2024-06-18 22:08:42 +01:00
Simon Larsen
e4ade513ce feat: Add start-ai, build-ai, and force-build-ai scripts for AI services
This commit adds three new scripts, start-ai, build-ai, and force-build-ai, to the package.json file. These scripts are used to start, build, and force-build the AI services respectively. They are configured to export environment variables, run the prerun script, and execute the necessary docker compose commands with the specified configuration file. This addition enhances the development workflow by providing convenient commands for managing the AI services.
2024-06-18 21:49:00 +01:00
Simon Larsen
3c2af1dc38 refactor: Remove unused Llama service from docker-compose.dev.yml 2024-06-18 21:47:40 +01:00
Simon Larsen
af5d714642 refactor: Add generate-build-number job as dependency in infrastructure-agent-deploy workflow 2024-06-18 21:41:57 +01:00
Simon Larsen
3f315be279 refactor: Update Llama app to use local model path instead of model ID
This commit updates the Llama app to use a local model path instead of a model ID. The model path is set to "/app/Models/Meta-Llama-3-8B-Instruct". This change improves the reliability and performance of the app by directly referencing the model file instead of relying on an external model ID.
2024-06-18 21:41:29 +01:00
Simon Larsen
095493cec9 Merge branch 'release' into ai-copilot-main 2024-06-18 19:29:03 +01:00
Simon Larsen
3bdf87f34f refactor: Update github-release workflow to include generate-build-number job
This commit modifies the github-release workflow to include the generate-build-number job as a dependency. Previously, the workflow only depended on the test-e2e-release-saas and test-e2e-release-self-hosted jobs. By adding the generate-build-number job, we ensure that the necessary build number is generated before the github-release job is executed. This change improves the overall release process by providing accurate build information for the release.
2024-06-18 19:02:46 +01:00
Simon Larsen
26bb6f1e74 refactor: Update Dockerfile.tpl to expose port 8547 instead of port 80
This commit modifies the Dockerfile.tpl file to update the EXPOSE directive. The port number is changed from 80 to 8547 to align with the port used by the Llama application. This change ensures that the Llama application is accessible from outside the container on the correct port.
2024-06-18 18:42:11 +01:00
Simon Larsen
20db81a5f6 refactor: Update secrets.yaml to add keys for postgres, redis, and clickhouse
This commit modifies the secrets.yaml file to add keys for postgres, redis, and clickhouse. These keys are used to store sensitive information such as passwords for external services. By including these keys, we ensure that the necessary secrets are available for the application to connect to these services securely.
2024-06-18 13:59:49 +01:00
Simon Larsen
f9b097a112 refactor: Improve page load performance by lazy loading images
This commit updates the Register.spec.ts file to improve the page load performance by implementing lazy loading for images. It ensures that the dashboard page is up before signing up the user and reloads the page if it fails to load. These changes enhance the user experience by optimizing the loading time of the registration page.
2024-06-18 13:45:51 +01:00
Simon Larsen
b70b70e27e Merge remote-tracking branch 'origin/snyk-upgrade-e85a20baed82dca9b23b1e6d43058393' 2024-06-18 13:35:13 +01:00
Simon Larsen
93df459662 Merge pull request #1487 from OneUptime/snyk-upgrade-07f6caf2da548bfa468d50536046a7d4
[Snyk] Upgrade playwright from 1.44.0 to 1.44.1
2024-06-18 13:34:00 +01:00
Simon Larsen
1aceb81c85 Merge pull request #1490 from OneUptime/snyk-upgrade-3e8efba0b61bba9ccdff4fbf1899abe8
[Snyk] Upgrade posthog-js from 1.133.0 to 1.135.2
2024-06-18 13:33:53 +01:00
Simon Larsen
023aea94c2 Merge pull request #1491 from OneUptime/snyk-upgrade-172a12f064e961ffc3354f68f2eb7cb7
[Snyk] Upgrade @babel/runtime from 7.24.5 to 7.24.6
2024-06-18 13:33:46 +01:00
Simon Larsen
d8dff468ab refactor: Update Cookie.ts to accept string as key parameter
This commit modifies the Cookie.ts file to update the setItem method signature. The key parameter now accepts both CookieName and string types, allowing for more flexibility when setting cookies. This change improves the usability and versatility of the Cookie utility class.
2024-06-18 13:33:09 +01:00
Simon Larsen
082d800c34 refactor: Update ProbeMonitorResponseService to include remediation notes
This commit updates the ProbeMonitorResponseService class to include a check for the presence of remediation notes in the criteriaIncident object. If remediation notes are provided, they are assigned to the incident object. This change enhances the functionality of the ProbeMonitorResponseService by allowing the storage and retrieval of remediation notes for incidents.
2024-06-18 13:08:56 +01:00
Simon Larsen
e7f4c962b8 refactor: Update incident form to include remediation notes
This commit updates the incident form to include a field for remediation notes. This allows users to provide specific steps that should be taken to resolve the incident. By adding this feature, we enhance the incident management process and improve collaboration among team members.
2024-06-18 13:07:59 +01:00
Simon Larsen
f6074fe8f4 refactor: Update MonitorCriteriaIncident component to remove unused imports 2024-06-18 13:00:10 +01:00
Simon Larsen
b45678f167 refactor: Update MonitorCriteriaIncidentForm UI with incident description and remediation notes
This commit updates the MonitorCriteriaIncidentForm component to include fields for incident description and remediation notes. The incident description field now supports markdown formatting and has a placeholder text for when no description is entered. Similarly, the remediation notes field also supports markdown formatting and has a placeholder text for when no notes are entered. These changes enhance the user experience by providing a more comprehensive incident form.
2024-06-18 12:59:22 +01:00
Simon Larsen
6d53678135 refactor: Add new migration for SchemaMigrations and update MonitorCriteriaIncidentForm UI 2024-06-18 12:56:12 +01:00
Simon Larsen
7b77dd4a53 refactor: Add new migration for SchemaMigrations and update MonitorCriteriaIncidentForm UI
This commit adds a new migration file for the SchemaMigrations table, introducing a new migration named MigrationName1718711669847. This migration is imported in the Index.ts file of the SchemaMigrations directory. Additionally, the MonitorCriteriaIncidentForm component is updated to change the title of the "Show Advanced Fields" button to "Add Remediation Notes for an engineer to help resolve this incident." The button is also given a left margin of -3 pixels to adjust its positioning. These changes improve the database schema management and enhance the user experience in the incident form.
2024-06-18 12:55:52 +01:00
Simon Larsen
51bb54e771 refactor: Add placeholder text for name and email fields in user profile form 2024-06-18 12:51:17 +01:00
Simon Larsen
48b095f548 refactor: Update import statements for TimezoneUtil in multiple files 2024-06-18 12:44:54 +01:00
Simon Larsen
786ec6ce7a refactor: Update import statements for TimezoneUtil in multiple files 2024-06-18 11:35:04 +01:00
Simon Larsen
401fbb58e3 refactor: Update import statements for TimezoneUtil in multiple files 2024-06-18 10:38:45 +01:00
Simon Larsen
5243ae6b8d Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-18 10:05:03 +01:00
Simon Larsen
a06a0f1d16 refactor: Update import statements for TimezoneUtil in multiple files 2024-06-17 21:01:44 +01:00
Simon Larsen
e0bc906484 Merge pull request #1489 from hg13bs/patch-1
Remove duplicate "Swift" entry
2024-06-17 19:29:01 +01:00
Simon Larsen
139ff2d638 refactor: Add user timezone support to login and user profile
This commit adds support for user timezones in the login and user profile functionality. It updates the LoginUtil and User classes to include methods for setting and retrieving the user's timezone. Additionally, the UserTimezoneInit component in the Dashboard module is updated to display and allow the user to update their timezone. This change improves the user experience by providing accurate timezone information and allows for better handling of time-related functionality throughout the application.
2024-06-17 17:27:34 +01:00
Simon Larsen
7be603ef08 refactor: Update import statements for TimezoneUtil in multiple files 2024-06-17 17:22:00 +01:00
Simon Larsen
d23548f984 refactor: Update error message in OneUptimeDate class
This commit updates the error message in the `asDateForDatabaseQuery` method of the `OneUptimeDate` class. It now includes the `date.toString()` value to provide more information about the invalid date. This change improves error handling and debugging capabilities.
2024-06-17 17:09:17 +01:00
Simon Larsen
3573e59634 refactor: Update getCurrentTimezoneString method in Date.ts
This commit refactors the getCurrentTimezoneString method in the Date.ts file. It replaces the usage of moment.tz.guess() with this.getCurrentTimezone() to improve code readability and maintainability. Additionally, it adds a check to prepend "GMT" to the zone abbreviation if it starts with a "+" or "-" sign. This change ensures consistent formatting of the timezone string returned by the method.
2024-06-17 16:23:49 +01:00
Simon Larsen
c4e4e7e488 refactor: Update import statements for TimezoneUtil in Monitor.ts
This commit updates the import statements in the Monitor.ts file. It changes the import statement for the TimezoneUtil module to import from "Common/Types/Timezone" instead of the previous import path. This change ensures that the correct module is imported, improving the accuracy and reliability of the code.
2024-06-17 16:14:08 +01:00
Simon Larsen
be3e8447ab refactor: Add data-testid attributes to Toast component
This commit adds data-testid attributes to the Toast component in order to improve testability. The "toast" element, "toast-icon" element, "title" element, "description" element, and "close-button" element now have corresponding data-testid attributes. This change allows for more precise targeting of elements in automated tests, enhancing the reliability and accuracy of the test suite.
2024-06-17 16:07:04 +01:00
Simon Larsen
2615e39c19 refactor: Update import statements for TimezoneUtil in multiple files 2024-06-17 15:58:30 +01:00
Simon Larsen
49b6550581 refactor: Update import statements for TimezoneUtil in UserProfile/Index.tsx 2024-06-17 15:57:32 +01:00
Simon Larsen
e870efc3c4 refactor: Remove unused code and update import statements 2024-06-17 15:33:47 +01:00
Simon Larsen
38862adf5a refactor: Remove unused code and update import statements
This commit removes unused code and updates import statements in multiple files. It removes the unused TimezoneCode enum from the Common/Types/TimezoneCode.ts file and updates the import statements in the affected files to import Timezone from Common/Types/Timezone instead of TimezoneCode. These changes improve the accuracy and reliability of the code.
2024-06-17 13:43:09 +01:00
Simon Larsen
06b92e2745 feat: Add subscriber timezones functionality to SubscriberSettings 2024-06-17 13:18:44 +01:00
Simon Larsen
1a8e0682c7 feat: Add subscriber timezones functionality to SubscriberSettings
This commit adds the functionality to select subscriber timezones in the SubscriberSettings component. It introduces a new field, "Subscriber Timezones", which allows subscribers to choose their preferred timezones for receiving notifications. The selected timezones are displayed when subscribers receive notifications. This feature enhances the user experience by providing localized time information.

Refactor import statements for TimezoneUtil in UserProfile/Index.tsx

This commit updates the import statements in the UserProfile/Index.tsx file to import TimezoneUtil from "Common/Types/Timezone" instead of "CommonUI/src/Utils/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.

Refactor import statements for TimezoneUtil in UserProfile/Index.tsx

This commit updates the import statements in the UserProfile/Index.tsx file to import TimezoneUtil from "Common/Types/Timezone" instead of "CommonUI/src/Utils/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.

Refactor import statements for TimezoneUtil in UserProfile/Index.tsx

This commit updates the import statements in the UserProfile/Index.tsx file to import TimezoneUtil from "Common/Types/Timezone" instead of "CommonUI/src/Utils/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.

Refactor import statements for TimezoneUtil in UserProfile/Index.tsx

This commit updates the import statements in the UserProfile/Index.tsx file to import TimezoneUtil from "Common/Types/Timezone" instead of "CommonUI/src/Utils/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.

refactor: Update retries value in playwright.config.ts

This commit updates the retries value in the playwright.config.ts file to a fixed value of 3. This change ensures that the tests are retried up to 3 times, improving the reliability of the test suite.

refactor: Update import statements for jest in test files

This commit updates the import statements for jest in multiple test files to use the correct module name "jest" instead of "globals". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.

refactor: Update docker-compose command in test.e2e.yaml

This commit updates the docker-compose command in the test.e2e.yaml file to remove the duplicate `e2e` service name. This change improves the clarity and efficiency of the script.

fix: job dependencies

Merge branch 'release' of github.com:OneUptime/oneuptime into release

refactor: Clear user data and remove cookies on authentication error
2024-06-17 11:03:37 +01:00
Simon Larsen
e0189356d5 refactor: Remove TimezoneCode enum and update import statements
This commit removes the TimezoneCode enum from the Common/Types/TimezoneCode.ts file. The enum is no longer needed and can be safely deleted. Additionally, it updates the import statements in the affected files to import Timezone from Common/Types/Timezone instead of TimezoneCode. This change ensures that the correct module is imported and improves the accuracy and reliability of the code.
2024-06-17 10:56:59 +01:00
Simon Larsen
dad07b9f80 refactor: Update import statements for TimezoneUtil in UserProfile/Index.tsx
This commit updates the import statements in the UserProfile/Index.tsx file. It changes the import statement for TimezoneUtil from "CommonUI/src/Utils/Timezone" to "Common/Types/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.
2024-06-17 10:47:23 +01:00
Simon Larsen
8d59710306 refactor: Update import statements for TimezoneUtil in UserProfile/Index.tsx
This commit updates the import statements in the UserProfile/Index.tsx file. It changes the import statement for TimezoneUtil from "CommonUI/src/Utils/Timezone" to "Common/Types/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.
2024-06-17 10:42:43 +01:00
Simon Larsen
5e9227eb4f refactor: Add TimezoneUtil to UserProfile/Index.tsx
This commit refactors the import statements in the UserProfile/Index.tsx file. It updates the import statement for TimezoneUtil from "CommonUI/src/Utils/Timezone" to "Common/Types/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.
2024-06-17 10:41:04 +01:00
snyk-bot
1e63173564 fix: upgrade @babel/runtime from 7.24.5 to 7.24.6
Snyk has created this PR to upgrade @babel/runtime from 7.24.5 to 7.24.6.

See this package in npm:
@babel/runtime

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-15 06:14:37 +00:00
snyk-bot
76fded39ee fix: upgrade posthog-js from 1.133.0 to 1.135.2
Snyk has created this PR to upgrade posthog-js from 1.133.0 to 1.135.2.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-15 06:12:15 +00:00
hg13
c82f3c1f71 Remove duplicate "Swift" entry 2024-06-15 02:06:24 +03:00
Simon Larsen
24d9219a62 refactor: Update retries value in playwright.config.ts
This commit updates the retries value in the playwright.config.ts file. The previous value was determined based on the environment variable "CI", but it has been changed to a fixed value of 3. This change ensures that the tests are retried up to 3 times, improving the reliability of the test suite.
2024-06-14 19:38:03 +01:00
Simon Larsen
6ed588d7aa refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 18:54:53 +01:00
Simon Larsen
17c1862eac ```text
refactor: Update docker-compose command in test.e2e.yaml

This commit updates the docker-compose command in the test.e2e.yaml file. The previous command included the `e2e` service name twice, which is unnecessary. The updated command removes the duplicate service name, improving the clarity and efficiency of the script.
2024-06-14 18:34:11 +01:00
Simon Larsen
37b1846363 fix job dependencies 2024-06-14 18:21:51 +01:00
Simon Larsen
da3e6bc3af Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-06-14 18:02:55 +01:00
Simon Larsen
a35ea2ba66 refactor: Clear user data and remove cookies on authentication error 2024-06-14 18:02:36 +01:00
Simon Larsen
b2fa2e40f4 refactor: Clear user data and remove cookies on authentication error
This commit clears the user data and removes cookies when an authentication error occurs. This ensures that the user is logged out and any stored data is removed, preventing unauthorized access. The code change is made in the API.ts file.
2024-06-14 18:01:51 +01:00
Simon Larsen
babecb5170 chore: Update axios and posthog-js dependencies
This commit updates the axios and posthog-js dependencies in the package-lock.json file. The axios dependency is updated from version 1.7.1 to 1.7.2, and the posthog-js dependency is updated from version 1.131.4 to 1.133.0. This update ensures that the latest stable versions of these dependencies are used, improving the functionality and security of the application.
2024-06-14 17:35:33 +01:00
Simon Larsen
6e0e643337 refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 17:01:06 +01:00
Simon Larsen
2a59faa6b4 refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 16:54:53 +01:00
Simon Larsen
9d7d44afda refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 16:42:55 +01:00
Simon Larsen
8f1e67da3a refactor: Remove ignore for all JavaScript files in eslint configuration 2024-06-14 15:44:31 +01:00
Simon Larsen
c09f863d58 refactor: Remove unused imports and update eslint configuration 2024-06-14 15:42:45 +01:00
Simon Larsen
3c8c2a3feb refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 15:42:33 +01:00
Simon Larsen
4c4169e245 refactor: Update import statements for jest in test files 2024-06-14 14:24:45 +01:00
Simon Larsen
34c5cb1e94 refactor: Update import statements for jest in test files 2024-06-14 14:20:24 +01:00
Simon Larsen
f5fca46e5b refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 14:16:56 +01:00
Simon Larsen
48e3c24c6e refactor: Update import statement for jest in setupTest.js
This commit updates the import statement for jest in the setupTest.js file. The previous import statement used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 14:11:32 +01:00
Simon Larsen
e9c94876c0 refactor: Update import statement for jest in setupTest.js
This commit updates the import statement for jest in the setupTest.js file. The previous import statement used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 14:06:41 +01:00
Simon Larsen
fcd6c8ea7d refactor: Remove unused imports and update eslint configuration 2024-06-14 13:50:52 +01:00
Simon Larsen
81726ce7b2 refactor: Update import statement for jest in setupTest.js 2024-06-14 13:40:33 +01:00
Simon Larsen
6349c60bdb refactor: Update import statement for jest in setupTest.js
This commit updates the import statement for jest in the setupTest.js file. The previous import statement used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 13:01:38 +01:00
Simon Larsen
74cf119444 refactor: Remove unused globals.jquery from eslint configuration 2024-06-14 12:36:11 +01:00
Simon Larsen
ba6ac2e32e refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:34:56 +01:00
Simon Larsen
1498656a43 refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:15:36 +01:00
Simon Larsen
70a2a3993b refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:09:53 +01:00
Simon Larsen
5152d5de12 refactor: Remove @trivago/prettier-plugin-sort-imports and update eslint configuration
This commit removes the "@trivago/prettier-plugin-sort-imports" plugin from the ".prettierrc.json" file and updates the eslint configuration in the "package.json" file. The plugin was removed because it is no longer needed and caused conflicts with the updated eslint configuration. This change improves the codebase by simplifying the prettier configuration and ensuring compatibility with the updated eslint rules.
2024-06-14 12:07:16 +01:00
Simon Larsen
2999e539b3 refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:01:14 +01:00
Simon Larsen
8ce432256c refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files
This commit updates the symbol type from 'Symbol' to 'symbol' in the ColumnAccessControl files. The use of 'symbol' aligns with the TypeScript convention for symbol types. This change improves code consistency and readability.
2024-06-14 11:53:27 +01:00
Simon Larsen
ddbfbac802 refactor: Remove unused files and update eslint configuration 2024-06-14 11:51:38 +01:00
Simon Larsen
1d6a7ee1fa feat: Add timezone dropdown to user profile page
This commit adds a new dropdown component for selecting the timezone on the user profile page. The dropdown options are populated using the `TimezoneCode` enum from the `Common/Types/TimezoneCode.ts` file. Users can now select their timezone, which will be used for all date and time related notifications sent to them. This enhancement improves the user experience by providing a convenient way to set the timezone preference.
2024-06-14 11:21:25 +01:00
Simon Larsen
0d97f0447a refactor: Improve error handling in API class
This commit refactors the API class in API.ts to improve error handling. The `getFriendlyErrorMessage` method now includes additional error cases and returns more specific error messages for network errors, timeouts, request aborts, cancellations, connection issues, and SSL certificate expiration. This change enhances the user experience by providing clearer and more informative error messages.
2024-06-14 10:57:19 +01:00
Simon Larsen
36a13b60fe refactor: Update notification subjects for incidents and announcements 2024-06-14 10:20:57 +01:00
Simon Larsen
64f4fcf829 refactor: Update notification subjects for incidents and announcements 2024-06-14 10:06:38 +01:00
Simon Larsen
1ff7c84d82 refactor: Update notification subjects for incidents and announcements
This commit updates the notification subjects for incidents and announcements in the SendNotificationToSubscribers.ts files. The subjects now include a prefix indicating the type of notification (e.g., [Incident], [Announcement]) followed by the status page name. This change improves the clarity and consistency of the notification emails and SMS messages sent to subscribers.
2024-06-14 10:05:48 +01:00
Simon Larsen
da623d4d34 increase timeout 2024-06-14 10:00:03 +01:00
snyk-bot
2efb630640 fix: upgrade playwright from 1.44.0 to 1.44.1
Snyk has created this PR to upgrade playwright from 1.44.0 to 1.44.1.

See this package in npm:
playwright

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-14 05:19:10 +00:00
Simon Larsen
affa492ce3 refactor: Improve SSL certificate error handling
This commit refactors the API class in API.ts to improve the handling of SSL certificate errors. The `getFriendlyErrorMessage` method now includes specific error messages for different SSL certificate issues, such as expired certificates, certificates signed by unknown authorities, and self-signed certificates. This enhancement enhances the user experience by providing clearer and more informative error messages for SSL certificate errors.
2024-06-13 21:50:59 +01:00
Simon Larsen
5ae3a5b5ee refactor: Improve error handling in API class
The API class in API.ts has been updated to improve error handling. The getFriendlyErrorMessage method now includes additional error cases and returns more specific error messages for network errors, timeouts, request aborts, cancellations, connection issues, and SSL certificate expiration. This change enhances the user experience by providing clearer and more informative error messages.
2024-06-13 21:50:10 +01:00
Simon Larsen
5716ab2445 refactor: Update API error handling and display
The API class in API.ts has been updated to improve error handling and display. The getFriendlyErrorMessage method now includes additional error cases and returns more specific error messages for network errors, timeouts, request aborts, cancellations, connection issues, and SSL certificate expiration. This change enhances the user experience by providing clearer and more informative error messages.
2024-06-13 21:45:56 +01:00
Simon Larsen
a66a04456b refactor: Update endpoint URLs for status check script 2024-06-13 21:44:49 +01:00
Simon Larsen
e97a78eaeb Merge branch 'ai-copilot-main' 2024-06-13 21:12:48 +01:00
Simon Larsen
57f41a908a refactor: Improve login test to handle missing user credentials 2024-06-13 21:11:54 +01:00
Simon Larsen
f42291a428 refactor: Update status check URLs for Dashboard, Status Page, and Accounts
The status-check.sh script has been modified to update the endpoint URLs for checking the status of the Dashboard, Status Page, and Accounts services. The URLs now include "/status/ready" at the end, ensuring that the services are ready to handle requests. This change improves the accuracy and reliability of the status check script.
2024-06-13 21:05:37 +01:00
Simon Larsen
4fa9adfc7d refactor: Update login test to handle missing user credentials
The login test in Login.spec.ts has been updated to handle cases where the user credentials (email and password) are missing. Previously, the test would only check if the user is registered, but now it also checks if the registered user email and password are available. This change ensures that the test behaves correctly in all scenarios and improves the reliability of the login functionality.
2024-06-13 18:49:19 +01:00
Simon Larsen
3e2e581e52 ```text
refactor: Update artifact upload paths in release and test workflows

The artifact upload paths in the release.yml, test-release.yaml, and test.e2e.yaml workflows have been updated to include the entire E2E directory instead of specific subdirectories. This change simplifies the configuration and ensures that all necessary files are included in the artifacts.
2024-06-13 18:39:02 +01:00
Simon Larsen
2a3c34af95 refactor: Add endpoint to retrieve Copilot events by file
This commit adds a new endpoint to the CodeRepositoryAPI class in CodeRepositoryAPI.ts. The endpoint allows users to retrieve Copilot events for a specific file in the code repository. It takes in a secret key, file path, and service catalog ID as parameters and returns a list of Copilot events. This enhancement improves the functionality and usability of the API.
2024-06-13 14:55:31 +01:00
Simon Larsen
170b79e4cf refactor: Add CopilotEventStatus column to CopilotEvent model
This commit adds a new column, CopilotEventStatus, to the CopilotEvent model in the CopilotEvent.ts file. The CopilotEventStatus column represents the status of a Copilot event that was triggered for a file in the code repository. This enhancement improves the functionality and flexibility of the CopilotEvent model.
2024-06-13 14:39:26 +01:00
Simon Larsen
c15b8bb951 refactor: Update CodeRepositoryUtil to include serviceRepository parameter in createBranch and createOrCheckoutBranch 2024-06-13 14:11:09 +01:00
Simon Larsen
17c47f7d89 refactor: Update ServiceFileTypesUtil to include common directories and files to ignore 2024-06-13 13:32:16 +01:00
Simon Larsen
a406287215 refactor: Update branch name in Copilot/Index.ts and add GITHUB_USERNAME to .env.example
This commit updates the branch name in Copilot/Index.ts from 'test-branch-3' to 'test-branch-4'. Additionally, it adds the GITHUB_USERNAME variable to the .env.example file. These changes improve the accuracy and functionality of the code.
2024-06-13 13:10:14 +01:00
Simon Larsen
a73b050a4d refactor: Update CodeRepositoryUtil to include serviceRepository parameter in createBranch and createOrCheckoutBranch
This commit modifies the CodeRepositoryUtil class in CodeRepository.ts to include a new parameter, serviceRepository, in the createBranch and createOrCheckoutBranch methods. This change allows for better integration with the ServiceRepository class and improves the flexibility and maintainability of the code.
2024-06-13 12:47:42 +01:00
Simon Larsen
224fb2e887 Merge pull request #1479 from OneUptime/snyk-upgrade-fb48859c6d1e1f5c6c32c4f5abf203c1
[Snyk] Upgrade posthog-js from 1.132.0 to 1.133.0
2024-06-13 12:34:04 +01:00
Simon Larsen
96d4131614 refactor: Add createPullRequest method to HostedCodeRepository
The HostedCodeRepository class in HostedCodeRepository.ts has been updated to include a new method, createPullRequest. This method allows for the creation of pull requests in the code repository. This change enhances the functionality and flexibility of the HostedCodeRepository class.
2024-06-13 12:26:49 +01:00
snyk-bot
cda00d5238 fix: upgrade posthog-js from 1.132.0 to 1.133.0
Snyk has created this PR to upgrade posthog-js from 1.132.0 to 1.133.0.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-13 00:27:42 +00:00
Simon Larsen
dea385ad44 refactor: Update ServiceFileTypesUtil to include common directories and files to ignore
The ServiceFileTypesUtil class in ServiceFileTypes.ts has been updated to include two new methods: getCommonDirectoriesToIgnore and getCommonFilesToIgnore. These methods return arrays of common directories and files that should be ignored in code repositories. This change improves the functionality and maintainability of the code by providing a centralized way to define and retrieve the directories and files to ignore.
2024-06-12 22:10:47 +01:00
Simon Larsen
21973401fb refactor: Improve file extension handling in CodeRepositoryUtil
The CodeRepositoryUtil class in CodeRepository.ts has been refactored to improve the handling of file extensions. The changes include:
- Simplifying the logic for skipping files with unsupported extensions
- Adding support for accepted file extensions in the getFilesInDirectory method

These improvements enhance the functionality and maintainability of the code.
2024-06-12 22:07:01 +01:00
Simon Larsen
d153ad9bf7 refactor: Update ServiceRepository to include serviceLanguage field
The ServiceRepository class in ServiceRepository.ts has been updated to include a new field, serviceLanguage. This field is of type ServiceLanguage and is required. This change allows for better organization and identification of code repositories based on their programming language.
2024-06-12 21:27:00 +01:00
Simon Larsen
2ce8ba6295 refactor: Sanitize file paths in CodeRepositoryUtil and LocalFile
This commit refactors the CodeRepositoryUtil and LocalFile classes to include a new method, sanitizeFilePath, which removes double slashes from file paths. This change ensures that file paths are properly formatted and improves the reliability and maintainability of the code.
2024-06-12 21:05:37 +01:00
Simon Larsen
572130d349 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-12 20:21:07 +01:00
Simon Larsen
f0cb049266 refactor: Update CodeRepositoryView component in Index.tsx
The CodeRepositoryView component in Index.tsx has been updated to include a new field for the repository name. This change allows for better organization and identification of code repositories within the system.
2024-06-12 20:20:40 +01:00
Simon Larsen
cab5af6645 refactor: Add organizationName and repositoryName fields to CodeRepository
The CodeRepository entity has been updated to include two new fields: organizationName and repositoryName. These fields are of type character varying(100) and are required. This change allows for better organization and identification of code repositories within the system.
2024-06-12 20:18:30 +01:00
Simon Larsen
e77b923dc1 Merge pull request #1472 from OneUptime/ai-copilot-main
Copilot Main
2024-06-12 19:20:49 +01:00
Simon Larsen
8325c06ca3 refactor: Update status check URLs for Dashboard and Status Page
The status-check.sh script has been modified to update the endpoint URLs for checking the status of the Dashboard and Status Page services. The URLs now include "/status/ready" at the end, ensuring that the services are ready to handle requests. This change improves the accuracy and reliability of the status check script.
2024-06-12 17:27:22 +01:00
Simon Larsen
b66f56bc12 refactor: Update endpoint status check URLs to include "/ready"
The status-check.sh script has been updated to modify the endpoint URLs for checking the status of various services. The URLs now include "/ready" at the end, indicating that the services are ready to handle requests. This change ensures that the status check accurately reflects the readiness of the services and improves the reliability of the script.
2024-06-12 17:25:08 +01:00
Simon Larsen
2de2926d79 refactor: Add MigrationName1718203144945 to SchemaMigrations/Index.ts
The SchemaMigrations/Index.ts file has been updated to include the MigrationName1718203144945 migration. This change ensures that the new migration is included in the list of schema migrations, allowing for proper database versioning and management.
2024-06-12 15:39:55 +01:00
Simon Larsen
fd13e91aac refactor: Update ServiceRepository to use number type for limitNumberOfOpenPullRequestsCount
The ServiceRepository class in ServiceRepository.ts has been updated to use the number type for the limitNumberOfOpenPullRequestsCount property instead of the string type. This change ensures that the property is correctly typed and improves the accuracy and reliability of the code.
2024-06-12 15:38:54 +01:00
Simon Larsen
cf7d4c7720 refactor: Update GitHubUtil to use HostedCodeRepository/HostedCodeRepository 2024-06-12 15:11:50 +01:00
Simon Larsen
b1a76e97ce Merge pull request #1477 from OneUptime/snyk-upgrade-4dc39844f330c9a5f3d5be2668e24709
[Snyk] Upgrade axios from 1.7.0 to 1.7.2
2024-06-12 14:19:29 +01:00
Simon Larsen
7d8036e3eb refactor: Update GitHubUtil to use HostedCodeRepository/HostedCodeRepository
The GitHubUtil class in GitHub.ts has been updated to import the HostedCodeRepository class from the correct file path, "HostedCodeRepository/HostedCodeRepository". This change ensures that the correct class is imported and used, improving the functionality and maintainability of the code.
2024-06-12 13:18:20 +01:00
Simon Larsen
c7344a7624 refactor: Remove commented out code and unused imports
The CodeRepositoryType.ts file has been refactored to remove commented out code and unused imports. This change improves code cleanliness and reduces unnecessary clutter in the file.
2024-06-12 12:25:12 +01:00
Simon Larsen
42253e4e50 refactor: Update GitHub token handling in Config.ts 2024-06-12 11:59:22 +01:00
Simon Larsen
64acf372d6 refactor: Update GitHub token handling in Config.ts
The Config.ts file has been updated to handle the GitHub token more efficiently. The GetGitHubToken function now checks the repository type and throws an exception if a GitHub token is required but not provided. This change improves the security and reliability of the application by ensuring that the correct token is used for GitHub repositories.
2024-06-12 11:31:50 +01:00
snyk-bot
80f4238618 fix: upgrade axios from 1.7.0 to 1.7.2
Snyk has created this PR to upgrade axios from 1.7.0 to 1.7.2.

See this package in npm:
axios

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-12 04:53:12 +00:00
Simon Larsen
2fe54c46c1 Merge pull request #1475 from OneUptime/snyk-upgrade-d4dca93f2a1a1e81fe41908a5a826632
[Snyk] Upgrade posthog-js from 1.131.4 to 1.132.0
2024-06-11 19:55:56 +01:00
Simon Larsen
266b046b9e Merge pull request #1474 from OneUptime/snyk-upgrade-8df461c2c34dd57552a05c7122331e04
[Snyk] Upgrade axios from 1.7.1 to 1.7.2
2024-06-11 19:55:45 +01:00
snyk-bot
f311841df2 fix: upgrade posthog-js from 1.131.4 to 1.132.0
Snyk has created this PR to upgrade posthog-js from 1.131.4 to 1.132.0.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-11 18:09:12 +00:00
snyk-bot
26319ff3c8 fix: upgrade axios from 1.7.1 to 1.7.2
Snyk has created this PR to upgrade axios from 1.7.1 to 1.7.2.

See this package in npm:
axios

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-11 18:09:07 +00:00
Simon Larsen
e719bb3b70 refactor: Add doNotShowWhenEditing flag to ServiceRepositoryPage component
The ServiceRepositoryPage component has been updated to include a new flag, doNotShowWhenEditing, which controls whether a certain field should be displayed when editing a service. This change improves the user experience by allowing for more flexibility in customizing the form fields based on the editing mode.
2024-06-11 18:38:37 +01:00
Simon Larsen
d0255c1e33 feat: Enable editing of services in ServiceRepositoryPage 2024-06-11 18:37:49 +01:00
Simon Larsen
f66241d12f Merge pull request #1473 from OneUptime/master
Release
2024-06-11 18:36:34 +01:00
Simon Larsen
52f4c74908 refactor: Update noItemsMessage prop types to include ReactElement
The prop types for the noItemsMessage prop have been updated in multiple components to include the ReactElement type. This change allows for passing React elements as the no items message, providing more flexibility in customizing the message's content and appearance.
2024-06-11 18:34:25 +01:00
Simon Larsen
eeb6904c2d refactor: Update title of Service Catalog field in ServiceRepositoryPage
The title of the Service Catalog field in the ServiceRepositoryPage component has been updated from "Service Catalog" to "Service". This change improves clarity and consistency in the user interface.
2024-06-11 18:31:10 +01:00
Simon Larsen
6fd37c62b8 refactor: Add MigrationName1718126316684 to SchemaMigrations/Index.ts
This commit adds the MigrationName1718126316684 to the list of schema migrations in the Index.ts file. The new migration introduces changes to the database schema and ensures that the codebase is up to date with the latest schema changes. This enhancement improves the maintainability and functionality of the application.
2024-06-11 18:29:19 +01:00
Simon Larsen
16b761e498 feat: Add option to enable pull requests for services in ServiceRepositoryPage
This commit adds a new field to the ServiceRepositoryPage component, allowing users to enable or disable pull requests for a service. When enabled, OneUptime will create pull requests for the service and automatically improve the code. This enhancement provides more control over pull request generation and improves the functionality of the ServiceRepositoryPage.
2024-06-11 18:21:51 +01:00
Simon Larsen
9b1e702c64 refactor: Add enablePullRequests property to ServiceRepository model
The enablePullRequests property has been added to the ServiceRepository model. This property allows for enabling or disabling automatic pull request creation by Copilot for this service. By default, enablePullRequests is set to true, indicating that Copilot will create pull requests for this service to automatically improve the codebase. This change enhances the functionality of the ServiceRepository model and provides more control over pull request generation.
2024-06-11 18:19:51 +01:00
Simon Larsen
f10fa9a48e ```text
refactor: Update defaultValue property in Field interface

The defaultValue property in the Field interface has been updated to include the number type. This change allows for setting default values of type number in form fields.
2024-06-11 18:15:09 +01:00
Simon Larsen
de91346155 refactor: Remove CopilotServiceService and update references to ServiceRepositoryService 2024-06-11 17:49:14 +01:00
Simon Larsen
629a442ff7 refactor: Remove CopilotServiceService and update references to ServiceRepositoryService
This commit removes the CopilotServiceService module, which is no longer needed. It also updates the references to the CopilotService class to use the ServiceRepository class instead. This change improves code organization and consistency by using the appropriate service class for managing service repositories.
2024-06-11 17:38:18 +01:00
Simon Larsen
be54d782e5 refactor: Update page title in CodeRepositoryViewLayout component 2024-06-11 17:30:39 +01:00
Simon Larsen
029c1b0704 refactor: Add CopilotService to BaseAPIFeatureSet
This commit adds the CopilotService to the BaseAPIFeatureSet in the Index.ts file. The CopilotService is imported from the CopilotServiceService module and is used to create a new router for the "/app" endpoint. This change allows for handling requests related to the CopilotService in the application.
2024-06-11 16:56:42 +01:00
Simon Larsen
36cfb7e20f refactor: Add new migrations for SchemaMigrations and Models
New migrations have been added to the SchemaMigrations and Models directories. These migrations introduce new changes to the database schema and model definitions. This commit ensures that the codebase is up to date with the latest schema changes and improves the maintainability of the application.
2024-06-11 16:52:56 +01:00
Simon Larsen
02046a525e refactor: Update service catalog titles to use consistent naming convention
The titles of the ServiceCatalog and ServiceCatalogOwnerTeam classes have been updated to use a consistent naming convention. The "ServiceCatalog" title has been changed to "Service Catalog" and the "ServiceCatalog ID" title has been changed to "Service Catalog ID". This change improves clarity and readability in the codebase.
2024-06-11 16:51:12 +01:00
Simon Larsen
c9a998da0b refactor: Add service language dropdown in ServiceCatalog form 2024-06-11 16:35:23 +01:00
Simon Larsen
7fc192e466 refactor: Quote the value of ALLOWED_ACTIVE_MONITOR_COUNT_IN_FREE_PLAN in _helpers.tpl
The value of ALLOWED_ACTIVE_MONITOR_COUNT_IN_FREE_PLAN in _helpers.tpl has been updated to be quoted using the | quote filter. This change ensures that the value is treated as a string, improving consistency and compatibility with other parts of the codebase.
2024-06-11 16:24:55 +01:00
Simon Larsen
eae8b79b2e refactor: Add debug configuration for running Copilot locally
A new debug configuration has been added to the launch.json file. This configuration allows for launching Copilot locally by running the "start" script using npm. It skips files in the "<node_internals>" directory and is specifically configured for debugging Node.js applications. This change improves the development experience by enabling easy debugging of Copilot locally.
2024-06-11 15:11:00 +01:00
Simon Larsen
08c6cf31a0 refactor: Update linting configuration to exclude .tsx files
The linting configuration in the package.json file has been updated to exclude .tsx files from linting. This change ensures that the linting process only targets .ts files and improves the efficiency of the linting process.
2024-06-11 15:04:28 +01:00
Simon Larsen
dfb7f2320c refactor: Update jest.config.json files with testPathIgnorePatterns
The jest.config.json files in the Model, Probe, Common, Copilot, CommonUI, Ingestor, IsolatedVM, TestServer, and CommonServer directories have been updated. The "testPathIgnorePatterns" property has been added to each file, excluding the "node_modules" and "dist" directories from test path matching. This change improves test performance and ensures that unnecessary files are not included in the test coverage.
2024-06-11 14:52:55 +01:00
Simon Larsen
c53b14f88f refactor: Update CodeRepositoryUtil methods to accept repoPath parameter
The CodeRepositoryUtil methods getGitCommitHashForFile and getFilesInDirectory have been updated to accept a repoPath parameter. This change allows for specifying the repository path when retrieving the git commit hash for a file or getting the files in a directory. It improves the flexibility and reusability of the CodeRepositoryUtil class.
2024-06-11 14:24:19 +01:00
Simon Larsen
c5680f6c26 refactor: Update import statements in MonitorService.ts
The import statements in the MonitorService.ts file have been updated to import the AllowedActiveMonitorCountInFreePlan and IsBillingEnabled constants from the EnvironmentConfig module. This change ensures that the codebase is using the correct import paths and improves code readability.
2024-06-11 13:53:05 +01:00
Simon Larsen
d2a1385123 refactor: Update ALLOWED_ACTIVE_MONITOR_COUNT_IN_FREE_PLAN to 10
The ALLOWED_ACTIVE_MONITOR_COUNT_IN_FREE_PLAN constant has been updated to 10 in multiple files. This change aligns the codebase with the new limit for active monitors allowed in the free plan.
2024-06-11 13:50:55 +01:00
Simon Larsen
feda1b0426 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-11 13:26:28 +01:00
Simon Larsen
b97cc46a1e refactor: Remove commented code in NavBar.tsx
The commented code in the NavBar.tsx file has been removed. This change cleans up the codebase and improves readability.
2024-06-11 13:26:00 +01:00
Simon Larsen
41a8101b54 refactor: Update CodeRepositoryAPI endpoint to use POST method for getting code repository 2024-06-11 13:25:41 +01:00
Simon Larsen
676a2b18b3 refactor: Update CodeRepositoryAPI endpoint to use POST method for getting code repository 2024-06-11 13:20:52 +01:00
Simon Larsen
df7477929b refactor: Update CodeRepositoryAPI endpoint to use POST method for getting code repository
This code change updates the CodeRepositoryAPI endpoint in the CodeRepositoryAPI.ts file to use the POST method instead of the GET method for getting the code repository. The route has also been modified to "/get-code-repository/:secretkey" to align with the API design. This change ensures that the code repository is retrieved securely and follows the recommended RESTful API practices.
2024-06-11 13:00:33 +01:00
Simon Larsen
c1ebe14c50 refactor: Add CodeRepositoryAPI to BaseAPIFeatureSet
This code change adds the CodeRepositoryAPI endpoint to the BaseAPIFeatureSet in the App/FeatureSet/BaseAPI/Index.ts file. It imports the CodeRepository model and service, and includes the necessary routing and configuration for the endpoint. This change allows for the CRUD operations on CodeRepository data through the API.
2024-06-11 12:47:47 +01:00
Simon Larsen
2b478e7a13 refactor: Add TableBillingAccessControl to MonitorOwnerTeam, MonitorOwnerUser, StatusPageOwnerTeam, MonitorGroupOwnerTeam, MonitorGroupOwnerUser models
This code change adds the TableBillingAccessControl decorator to the MonitorOwnerTeam, MonitorOwnerUser, StatusPageOwnerTeam, MonitorGroupOwnerTeam, and MonitorGroupOwnerUser models. The decorator configures the access control settings for these models based on the specified subscription plans. This change ensures that the appropriate access control rules are applied when creating, reading, updating, or deleting records in these models.
2024-06-11 12:37:48 +01:00
Simon Larsen
3bb1d93f3e feat: Add forceNavigate option when navigating to new item
The DuplicateModel component in CommonUI has been updated to include a new option, forceNavigate, when navigating to a new item. This option allows for forced navigation to the new item, bypassing any checks or validations. This change provides more control over the navigation behavior and ensures consistent navigation to the new item.
2024-06-11 12:29:50 +01:00
Simon Larsen
703c4b7685 feat: Add doNotShowWhenCreating option to Field interface
The Field interface in the CommonUI project has been updated to include a new property, doNotShowWhenCreating. This property allows developers to specify whether a field should be shown in the form when creating a new entity. By setting doNotShowWhenCreating to true, the field will be hidden during the creation process. This change provides more control over the visibility of fields in the form based on the create or edit mode.
2024-06-11 11:33:26 +01:00
Simon Larsen
d7e9776a3c refactor: Update CodeRepository.getRepository() to return a Promise
Update CodeRepository.getRepository() to return a Promise<CodeRepositoryModel> instead of a string. This change improves the functionality and flexibility of the CodeRepository class.
2024-06-11 11:10:36 +01:00
Simon Larsen
3cb29b63fe refactor: Update CodeRepository.getRepository() to return a Promise
The CodeRepository.getRepository() method has been updated to return a Promise<CodeRepositoryModel> instead of a string. This change ensures that the method is asynchronous and can handle asynchronous operations, improving the overall functionality and flexibility of the CodeRepository class.
2024-06-10 22:10:29 +01:00
Simon Larsen
e7f4a36ec9 refactor: Update Copilot startup message for clarity
The startup message in the Copilot/Index.ts file has been updated to provide a clearer description of the application. This change improves the readability and understanding of the log output during the startup process.
2024-06-10 22:09:25 +01:00
Simon Larsen
be78862e49 Merge pull request #1470 from OneUptime/snyk-upgrade-ff9eba0658b72fe88ae2d11836a86990
[Snyk] Upgrade axios from 1.6.8 to 1.7.1
2024-06-10 19:45:41 +01:00
Simon Larsen
64ae5eeb89 add code repository basic functions 2024-06-10 19:40:27 +01:00
Simon Larsen
78bdc42534 refactor: Update SelfSignedSSL class to use async/await for generating SSL certificates 2024-06-10 19:25:41 +01:00
snyk-bot
68c81734e8 fix: upgrade axios from 1.6.8 to 1.7.1
Snyk has created this PR to upgrade axios from 1.6.8 to 1.7.1.

See this package in npm:
axios

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-10 17:16:56 +00:00
Simon Larsen
bf081d1ebe refactor: Update file paths in code changes 2024-06-10 17:59:22 +01:00
Simon Larsen
3de407842e refactor: Add CopilotEvent API endpoint to BaseAPIFeatureSet
This code change adds the CopilotEvent API endpoint to the BaseAPIFeatureSet in the App/FeatureSet/BaseAPI/Index.ts file. It imports the CopilotEvent model and service, and includes the necessary routing and configuration for the endpoint. This change allows for the CRUD operations on CopilotEvent data through the API.
2024-06-10 17:45:00 +01:00
Simon Larsen
a4a9e45fe0 refactor: Update Dockerfile and build steps for Copilot service
This code change updates the Dockerfile and build steps for the Copilot service. It adds a new workflow job, `docker-build-copilot`, which builds the Docker image for the Copilot service. The job includes steps to checkout the code, preinstall dependencies, and build the Docker image using the specified Dockerfile. This change ensures that the Copilot service is built and deployed correctly in the CI/CD pipeline.
2024-06-10 17:19:25 +01:00
Simon Larsen
f9c9480434 refactor: Update logger to use configured log level
This code change updates the logger class to use the configured log level from the environment configuration. The getLogLevel method is added to retrieve the log level, and the info, error, warn, and debug methods are updated to check the log level before logging the message. This change ensures that the logger behaves according to the configured log level, improving the consistency and control of log output.
2024-06-10 17:00:07 +01:00
Simon Larsen
eb644ad2f2 Merge branch 'master' into ai-copilot-main 2024-06-10 16:45:19 +01:00
Simon Larsen
5186e193a8 Merge pull request #1468 from OneUptime/snyk-upgrade-d773ac20b9cf77163d96fbbdf2660a1f
[Snyk] Upgrade axios from 1.6.8 to 1.7.0
2024-06-10 14:39:04 +01:00
snyk-bot
0704e1f556 fix: upgrade axios from 1.6.8 to 1.7.0
Snyk has created this PR to upgrade axios from 1.6.8 to 1.7.0.

See this package in npm:
axios

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-10 04:54:58 +00:00
Simon Larsen
cc66820e7b refactor: Remove commented code in NavBar component 2024-06-09 19:45:25 +01:00
snyk-bot
070190dd31 fix: upgrade @nivo/line from 0.86.0 to 0.87.0
Snyk has created this PR to upgrade @nivo/line from 0.86.0 to 0.87.0.

See this package in npm:
@nivo/line

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-03 04:20:30 +00:00
4586 changed files with 420726 additions and 336351 deletions

68
.bash_profile Normal file
View File

@@ -0,0 +1,68 @@
# These are aliases that will make your life simple when you're building OneUptime
# Make directory and change directory at the same time.
mkcdir ()
{
mkdir -p -- "$1" &&
cd -P -- "$1"
}
# Git aliases
alias g="git"
alias gs="git status"
alias ga="git add"
alias gc="git checkout"
alias gb="git branch"
alias gp="git pull"
alias gpo="git push origin"
alias gl="git log"
alias gd="git diff"
alias gm="git merge"
# Kubernetes aliases
alias k="kubectl"
alias kg="kubectl get"
alias kd="kubectl describe"
alias kc="kubectl create"
alias kdel="kubectl delete"
alias klo="kubectl logs"
alias klof="kubectl logs -f"
alias kex="kubectl exec"
alias kexi="kubectl exec -it"
# Docker aliases
alias d="docker"
alias dc="docker compose"
alias dcu="docker compose up"
alias dcd="docker compose down"
# Node aliases
alias n="npm"
alias ni="npm install"
alias nis="npm install --save"
alias nid="npm install --save-dev"
alias nr="npm run"
alias nt="npm test"
alias ns="npm start"
alias nb="npm build"
# Rust aliases
alias c="cargo"
alias cb="cargo build"
alias cr="cargo run"
# OneUptime Specific Aliases
# --------------------------
alias nrd="npm run dev"
alias nrl="npm run logs"
alias nrb="npm run build"
alias nrfb="npm run force-build"
alias nrps="npm run ps-dev"
# OneUptime LLM Server
alias nrfbl="npm run force-build-llm"
alias nrdl="npm run dev-llm"
alias nrll="npm run logs-llm"
alias nrbl="npm run build-llm"

View File

@@ -56,5 +56,4 @@ settings.json
GoSDK/tester/
Llama/Models/*

View File

@@ -1,28 +0,0 @@
*/node_modules/*
*/build/*
*/coverage/*
*/dist/*
*/public/*
*/views/*
*fonts*
*logos*
.*
*.png
*.sh
*.txt
*.snap
*.enc
Dockerfile
CHANGELOG
LICENSE
marketing/*/*
licenses/*
certifications/*
ApiReference/public/assets/*
JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/*
_test/*

View File

@@ -1,216 +0,0 @@
{
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"tsx": true,
"spread": true
},
"sourceType": "module",
"project": [
"./tsconfig.json"
]
},
"env": {
"browser": true,
"node": true,
"jquery": true,
"es6": true,
"jest": true,
"jasmine": true
},
"plugins": [
"react",
"jsx-a11y",
"progress",
"@typescript-eslint",
"unused-imports"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"prettier"
],
"globals": {
"describe": true,
"context": true,
"before": true,
"beforeEach": true,
"after": true,
"afterEach": true,
"it": true,
"expect": true,
"workbox": true,
"importScripts": true,
"$TSFixMe": true,
"NodeJS": true,
"JSX": true
},
"parser": "@typescript-eslint/parser",
"rules": {
"no-fallthrough": "error",
"no-unreachable": "error",
"no-cond-assign": "error",
"valid-typeof": "error",
"no-func-assign": "error",
"curly": "error",
"no-extra-semi": "error",
"no-else-return": "error",
"no-div-regex": "error",
"no-octal": "error",
"no-extra-bind": "error",
"unicode-bom": "error",
"no-extra-boolean-cast": "error",
"wrap-regex": "error",
"wrap-iife": "error",
"yield-star-spacing": "error",
"no-implicit-coercion": "error",
"no-extra-label": "error",
"multiline-comment-style": "off",
"no-lonely-if": "error",
"no-floating-decimal": "error",
"eqeqeq": "error",
"dot-notation": "off", // Off because it messes up with typescript compiler.
"@typescript-eslint/dot-notation": "off", //temp off.
"progress/activate": 1,
"linebreak-style": [
"error",
"unix"
],
"@typescript-eslint/no-empty-interface": [
"error",
{
"allowSingleExtends": true
}
],
// https://www.npmjs.com/package/eslint-plugin-unused-imports
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-extra-non-null-assertion": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/explicit-member-accessibility": [
"error"
],
"no-console": "error",
"no-undef": "error",
"no-empty": "error",
"no-control-regex": "off",
"prefer-arrow-callback": "error",
"constructor-super": "error",
"no-case-declarations": "error",
"no-mixed-spaces-and-tabs": "error",
"no-useless-escape": "error",
"prettier/prettier": "error",
"react/jsx-no-undef": "error",
"react/jsx-no-bind": [
"error",
{
"allowArrowFunctions": true,
"allowBind": false,
"ignoreRefs": false
}
],
"react/no-children-prop": "error",
"react/no-deprecated": "error",
"react/boolean-prop-naming": "error",
"react/no-is-mounted": "error",
"react/no-find-dom-node": "error",
"one-var-declaration-per-line": "error",
"arrow-parens": "error",
"arrow-body-style": [
"error",
"always"
],
"@typescript-eslint/typedef": [
"error",
{
"arrowParameter": true,
"variableDeclaration": true
}
],
"@typescript-eslint/strict-boolean-expressions": "off", //Need to enable this very soon
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"react/no-did-update-set-state": "error",
"react/no-unknown-property": "error",
"react/no-unused-prop-types": "error",
"react/jsx-no-duplicate-props": "error",
"react/no-unused-state": "error",
"react/jsx-uses-vars": "error",
"react/prop-types": "error",
"react/react-in-jsx-scope": "error",
"react/no-string-refs": "error",
"jsx-a11y/href-no-hash": [
0
],
"react/no-unescaped-entities": "error",
"react/display-name": "error",
"react/jsx-pascal-case": "error",
"array-callback-return": "error",
"no-loop-func": "error",
"no-duplicate-imports": "error",
"no-promise-executor-return": "error",
"capitalized-comments": "off", // this is turned off because come commented code should not be capitalized.
"for-direction": "error",
"getter-return": "error",
"jsx-a11y/anchor-is-valid": "error",
"no-async-promise-executor": "error",
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"no-var": "error",
"object-curly-spacing": [
"error",
"always"
],
"no-unneeded-ternary": "error",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"String": true,
"Boolean": true,
"Number": true,
"Symbol": false,
"{}": true,
"Object": true,
"object": true,
"Function": true
},
"extendDefaults": true
}
]
},
"settings": {
"react": {
"version": "18.1.0"
}
}
}

View File

@@ -1,7 +1,7 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug: <Title of the issue>'
title: '<Title of the issue>'
labels: 'bug'
assignees: ''

View File

@@ -1,7 +1,7 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'Enhancement: <Title of the issue>'
title: '<Title of the issue>'
labels: 'enhancement'
assignees: ''

View File

@@ -16,7 +16,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -31,7 +31,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -40,6 +40,81 @@ jobs:
- name: build docker image
run: sudo docker build -f ./IsolatedVM/Dockerfile .
docker-build-home:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Home/Dockerfile .
docker-build-worker:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Worker/Dockerfile .
docker-build-workflow:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Workflow/Dockerfile .
docker-build-api-reference:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./APIReference/Dockerfile .
docker-build-docs:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Docs/Dockerfile .
docker-build-otel-collector:
runs-on: ubuntu-latest
@@ -47,7 +122,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -62,7 +137,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -72,13 +147,29 @@ jobs:
- name: build docker image
run: sudo docker build -f ./App/Dockerfile .
docker-build-copilot:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Copilot/Dockerfile .
docker-build-e2e:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -94,7 +185,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -109,7 +200,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -124,7 +215,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -140,7 +231,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -149,20 +240,65 @@ jobs:
- name: build docker image
run: sudo docker build -f ./Probe/Dockerfile .
docker-build-ingestor:
docker-build-probe-ingest:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image probe api
- name: build docker image
run: sudo docker build -f ./Ingestor/Dockerfile .
run: sudo docker build -f ./ProbeIngest/Dockerfile .
docker-build-open-telemetry-ingest:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image probe api
- name: build docker image
run: sudo docker build -f ./OpenTelemetryIngest/Dockerfile .
docker-build-incoming-request-ingest:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image probe api
- name: build docker image
run: sudo docker build -f ./IncomingRequestIngest/Dockerfile .
docker-build-fluent-ingest:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
# build image probe api
- name: build docker image
run: sudo docker build -f ./FluentIngest/Dockerfile .
docker-build-status-page:
runs-on: ubuntu-latest
@@ -170,7 +306,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun
@@ -185,7 +321,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Preinstall
run: npm run prerun

View File

@@ -14,7 +14,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
@@ -28,7 +28,7 @@ jobs:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- run: sudo apt-get update
- run: sudo apt-get install -y curl gcc
- run: sudo apt-get install -y build-essential

View File

@@ -15,14 +15,11 @@ jobs:
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd CommonUI && npm install --force
- run: cd Accounts && npm install && npm run compile && npm run dep-check
compile-isolated-vm:
@@ -30,80 +27,119 @@ jobs:
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd CommonServer && npm install
- run: cd IsolatedVM && npm install && npm run compile && npm run dep-check
compile-common-server:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install && npm run compile && npm run dep-check
compile-common-ui:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonUI && npm install --force && npm run compile && npm run dep-check
compile-common:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install && npm run compile && npm run dep-check
node-version: latest
- run: cd Common && npm install && npm run compile && npm run dep-check
compile-app:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd CommonUI && npm install --force
- run: cd App && npm install && npm run compile && npm run dep-check
compile-home:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Common && npm install
- run: cd Home && npm install && npm run compile && npm run dep-check
compile-worker:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Common && npm install
- run: cd Worker && npm install && npm run compile && npm run dep-check
compile-workflow:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Common && npm install
- run: cd Workflow && npm install && npm run compile && npm run dep-check
compile-api-reference:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Common && npm install
- run: cd APIReference && npm install && npm run compile && npm run dep-check
compile-docs-reference:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Common && npm install
- run: cd Docs && npm install && npm run compile && npm run dep-check
compile-copilot:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Common && npm install
- run: cd Copilot && npm install && npm run compile && npm run dep-check
compile-nginx:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd CommonUI && npm install --force
- run: cd Nginx && npm install && npm run compile && npm run dep-check
compile-infrastructure-agent:
@@ -122,14 +158,12 @@ jobs:
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd CommonUI && npm install --force
- run: cd AdminDashboard && npm install && npm run compile && npm run dep-check
compile-dashboard:
@@ -137,39 +171,25 @@ jobs:
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd CommonUI && npm install --force
- run: cd Dashboard && npm install && npm run compile && npm run dep-check
compile-model:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd Model && npm install && npm run compile && npm run dep-check
compile-e2e:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: sudo apt-get update
- run: cd Common && npm install
- run: cd E2E && npm install && npm run compile && npm run dep-check
@@ -178,28 +198,61 @@ jobs:
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd Probe && npm install && npm run compile && npm run dep-check
compile-ingestor:
compile-probe-ingest:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd Ingestor && npm install && npm run compile && npm run dep-check
- run: cd ProbeIngest && npm install && npm run compile && npm run dep-check
compile-open-telemetry-ingest:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Common && npm install
- run: cd OpenTelemetryIngest && npm install && npm run compile && npm run dep-check
compile-incoming-request-ingest:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Common && npm install
- run: cd IncomingRequestIngest && npm install && npm run compile && npm run dep-check
compile-fluent-ingest:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Common && npm install
- run: cd FluentIngest && npm install && npm run compile && npm run dep-check
compile-status-page:
@@ -207,14 +260,12 @@ jobs:
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd CommonUI && npm install --force
- run: cd StatusPage && npm install && npm run compile && npm run dep-check
compile-test-server:
@@ -222,11 +273,9 @@ jobs:
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd TestServer && npm install && npm run compile && npm run dep-check

View File

@@ -1,16 +0,0 @@
name: Misc / Dependabot Automerge
on:
pull_request:
jobs:
merge:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,31 +0,0 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
env:
BASE_URL: http://localhost
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Run Server in Docker
run: npm run dev
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: cd Playwright && npm install && npx playwright install && npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,32 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
name: "OneUptime Reliability Copilot"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
# Run every day at midnight UTC
- cron: '0 0 * * *'
jobs:
analyze:
name: Analyze Code
runs-on: ubuntu-latest
steps:
# Run Reliability Copilot in Docker Container
- name: Run Copilot
run: |
docker run --rm \
-e ONEUPTIME_URL="https://test.oneuptime.com" \
-e ONEUPTIME_REPOSITORY_SECRET_KEY="${{ secrets.COPILOT_ONEUPTIME_REPOSITORY_SECRET_KEY }}" \
-e CODE_REPOSITORY_PASSWORD="${{ github.token }}" \
-e CODE_REPOSITORY_USERNAME="simlarsen" \
-e OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY }}" \
--net=host oneuptime/copilot:test

View File

@@ -1,20 +0,0 @@
name: App Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd App && npm install && npm run test

File diff suppressed because it is too large Load Diff

View File

@@ -1,24 +0,0 @@
name: Common Server Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd CommonServer && bash test-setup.sh
- run: export $(grep -v '^#' config.env | xargs) && cd CommonServer && rm -rf build && npm run test

View File

@@ -12,11 +12,12 @@ jobs:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
BILLING_PRIVATE_KEY: ${{secrets.TEST_BILLING_PRIVATE_KEY}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
- run: cd Model && npm install
- run: cd Common && npm install && npm run test
node-version: latest
- run: cd Common && bash test-setup.sh
- run: cd Common && npm install && rm -rf build && npm run test

View File

@@ -1,23 +0,0 @@
name: CommonUI Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonUI && npm install --force && npm run test

View File

@@ -1,59 +0,0 @@
name: E2E Tests
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
# Docker compose needs a lot of space to build images, so we need to free up some space first in the GitHub Actions runner
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: npm run prerun && bash ./Tests/Scripts/enable-billing-env-var.sh
- run: npm run dev
- name: Wait for server to start
run: bash ./Tests/Scripts/status-check.sh http://localhost
- name: Run E2E Tests. Run docker container e2e in docker compose file
run: export $(grep -v '^#' config.env | xargs) && docker-compose -f docker-compose.dev.yml up --exit-code-from e2e --abort-on-container-exit e2e || (docker-compose -f docker-compose.dev.yml logs e2e && exit 1)
- name: Upload test results
uses: actions/upload-artifact@v4
# Run this on failure
if: failure()
with:
# Name of the artifact to upload.
# Optional. Default is 'artifact'
name: test-results
# A file, directory or wildcard pattern that describes what to upload
# Required.
path: |
./E2E/playwright-report
./E2E/test-results
# Duration after which artifact will expire in days. 0 means using default retention.
# Minimum 1 day.
# Maximum 90 days unless changed from the repository settings page.
# Optional. Defaults to repository settings.
retention-days: 7

View File

@@ -0,0 +1,20 @@
name: Fluent Ingest Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd FluentIngest && npm install && npm run test

View File

@@ -0,0 +1,21 @@
name: Incoming Request Ingest Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd IncomingRequestIngest && npm install && npm run test

View File

@@ -1,21 +0,0 @@
name: Ingestor Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Ingestor && npm install && npm run test

View File

@@ -1,23 +0,0 @@
name: Model Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd Model && npm install && npm run test

View File

@@ -0,0 +1,21 @@
name: OpenTelemetryIngest Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd OpenTelemetryIngest && npm install && npm run test

View File

@@ -0,0 +1,21 @@
name: ProbeIngest Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd ProbeIngest && npm install && npm run test

View File

@@ -13,12 +13,11 @@ jobs:
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.3.0
node-version: latest
- run: cd Common && npm install
- run: cd CommonServer && npm install
- run: cd Probe && npm install
- run: cd Probe && npm run test

42
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: Tests
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
jobs:
test-app:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd App && npm install && npm run test
test-home:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Home && npm install && npm run test
test-worker:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: cd Worker && npm install && npm run test

5
.gitignore vendored
View File

@@ -93,10 +93,9 @@ Haraka/dkim/keys/public_base64.txt
HelmChart/Values/*.values.yaml
Llama/Models/tokenizer*
Llama/Models/llama*
LLM/__pycache__/*
Llama/__pycache__/*
LLM/Models/*
Examples/otel-dotnet/obj/*

15
.oneuptime/README.md Normal file
View File

@@ -0,0 +1,15 @@
## OneUptime Copilot
This folder contains the configuration files for the OneUptime Copilot. The Copilot is a tool that automatically improves your code. It can fix issues, improve code quality, and help you ship faster.
This folder has the following structure:
- `config.js`: The configuration file for the Copilot. You can customize the Copilot's behavior by changing this file.
- `scripts`: A folder containing scripts that the Copilot runs. These are hooks that run at different stages of the Copilot's process.
- `on-after-clone.sh`: A script that runs after the Copilot clones your repository.
- `on-before-code-change.sh`: A script that runs before the Copilot makes changes to your code.
- `on-after-code-change.sh`: A script that runs after the Copilot makes changes to your code.
- `on-before-commit.sh`: A script that runs before the Copilot commits changes to your repository.
- `on-after-commit.sh`: A script that runs after the Copilot commits changes to your repository.

10
.oneuptime/config.js Normal file
View File

@@ -0,0 +1,10 @@
// This is the configuration file for the oneuptime copilot.
const getCopilotConfig = () => {
return {
// The version of the schema for this configuration file.
schemaVersion: '1.0',
}
}
export default getCopilotConfig;

View File

@@ -0,0 +1,16 @@
# Description: Copilot clones your repository and to improve your code.
# This scirpt runs after the clone process is completed.
# Some of the common tasks you can do here are:
# 1. Install dependencies
# 2. Run linting
# 3. Run tests
# 4. Run build
# 5. Run any other command that you want to run after the clone process is completed.
# If this script fails, copilot will not proceed with the next steps to improve your code.
# This step is to ensure that the code is in a good state before we start improving it.
# If you want to skip this script, you can keep this file empty.
# It's highly recommended to run linting and tests in this script to ensure the code is in a good state.
# This scirpt will run on ubuntu machine. So, make sure the commands you run are compatible with ubuntu.
npm install
npm run lint

View File

@@ -0,0 +1,13 @@
# Description: Copilot will run this script after we make improvements to your code and write it to disk.
# Some of the common tasks you can do here are:
# 1. Run linting
# 2. Run tests
# 3. Run build
# 4. Run any other command that you want to run after the code is changed.
# If this script fails, copilot will not commit the changes to your repository.
# This step is to ensure that the code is in a good state before we commit the changes.
# If you want to skip this script, you can keep this file empty.
# It's highly recommended to run linting and tests in this script to ensure the code is in a good state.
# This scirpt will run on ubuntu machine. So, make sure the commands you run are compatible with ubuntu.
npm run fix

View File

@@ -0,0 +1 @@
# Description: Copilot will run this script after the commit process is completed.

View File

@@ -0,0 +1,9 @@
# Description: Copilot will run this script before we make changes to your code.
# Some of the common tasks you can do here are:
# 1. Install dependencies
# 2. Run any other command that you want to run before the code is changed.
# If this script fails, copilot will not make any changes to the code.
# This step is to ensure that the code is in a good state before we start making changes.
# If you want to skip this script, you can keep this file empty.
# It's highly recommended to run things like installing dependencies in this script.
# This scirpt will run on ubuntu machine. So, make sure the commands you run are compatible with ubuntu.

View File

@@ -0,0 +1 @@
# Description: Copilot will run this script before we commit the changes to your repository.

View File

@@ -51,6 +51,3 @@ licenses/*
certifications/*
ApiReference/public/assets/*
JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/*
CommonServer/Tests/TestingUtils/__mocks__/Stripe.mock.ts

View File

@@ -1,12 +0,0 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"bracketSpacing": true,
"arrowParens": "avoid",
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"importOrderParserPlugins": ["typescript", "decorators", "dynamicImport", "jsx"]
}

150
.vscode/launch.json vendored
View File

@@ -19,6 +19,20 @@
}
],
"configurations": [
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/TestServer",
"name": "Copilot: Debug with Docker",
"port": 9985,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"name": "Debug Infrastructure Agent",
"type": "go",
@@ -49,6 +63,76 @@
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Home",
"name": "Home: Debug with Docker",
"port": 9212,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Worker",
"name": "Worker: Debug with Docker",
"port": 8734,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Workflow",
"name": "Workflow: Debug with Docker",
"port": 8735,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Docs",
"name": "Docs: Debug with Docker",
"port": 8738,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/APIReference",
"name": "API Reference: Debug with Docker",
"port": 8737,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/TestServer",
@@ -67,7 +151,7 @@
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Probe",
"name": "Probe: Debug with Docker",
"port": 9655,
"port": 9229,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
@@ -79,8 +163,8 @@
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Ingestor",
"name": "Ingestor: Debug with Docker",
"localRoot": "${workspaceFolder}/ProbeIngest",
"name": "ProbeIngest: Debug with Docker",
"port": 9932,
"remoteRoot": "/usr/src/app",
"request": "attach",
@@ -91,6 +175,48 @@
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/IncomingRequestIngest",
"name": "IncomingRequestIngest: Debug with Docker",
"port": 9933,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/OpenTelemetryIngest",
"name": "OpenTelemetryIngest: Debug with Docker",
"port": 9938,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/FluentIngest",
"name": "Fluent Ingest: Debug with Docker",
"port": 9937,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/IsolatedVM",
@@ -133,20 +259,6 @@
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Workers",
"name": "Workers: Debug with Docker",
"port": 9654,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/StatusPage",
@@ -204,12 +316,12 @@
"autoAttachChildProcesses": true
},
{
"name": "CommonServer: Debug Tests",
"name": "Common: Debug Tests",
"type": "node",
"restart": true,
"autoAttachChildProcesses": true,
"request": "launch",
"cwd": "${workspaceRoot}/CommonServer",
"cwd": "${workspaceRoot}/Common",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",

View File

30
APIReference/.gitignore vendored Executable file
View File

@@ -0,0 +1,30 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
#/backend/node_modules
/kubernetes
/node_modules
.idea
# misc
.DS_Store
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
**/*/paymentService.test.js
apiTest.rest
application_security_dir
container_security_dir
# coverage
/coverage
/.nyc_output
/greenlock.d/config.json
/greenlock.d/config.json.bak
/.greenlockrc

View File

@@ -0,0 +1,70 @@
#
# OneUptime-App Dockerfile
#
# Pull base image nodejs image.
FROM public.ecr.aws/docker/library/node:21.2-alpine3.18
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
RUN npm config set fetch-retries 5
RUN npm config set fetch-retry-mintimeout 100000
RUN npm config set fetch-retry-maxtimeout 600000
ARG GIT_SHA
ARG APP_VERSION
ENV GIT_SHA=${GIT_SHA}
ENV APP_VERSION=${APP_VERSION}
# IF APP_VERSION is not set, set it to 1.0.0
RUN if [ -z "$APP_VERSION" ]; then export APP_VERSION=1.0.0; fi
# Install bash.
RUN apk add bash && apk add curl
# Install python
RUN apk update && apk add --no-cache --virtual .gyp python3 make g++
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN mkdir /usr/src
WORKDIR /usr/src/Common
COPY ./Common/package*.json /usr/src/Common/
# Set version in ./Common/package.json to the APP_VERSION
RUN sed -i "s/\"version\": \".*\"/\"version\": \"$APP_VERSION\"/g" /usr/src/Common/package.json
RUN npm install
COPY ./Common /usr/src/Common
ENV PRODUCTION=true
WORKDIR /usr/src/app
# Install app dependencies
COPY ./APIReference/package*.json /usr/src/app/
# Set version in ./App/package.json to the APP_VERSION
RUN sed -i "s/\"version\": \".*\"/\"version\": \"$APP_VERSION\"/g" /usr/src/app/package.json
RUN npm install
# Expose ports.
# - 1446: OneUptime-api-reference
EXPOSE 1446
{{ if eq .Env.ENVIRONMENT "development" }}
#Run the app
CMD [ "npm", "run", "dev" ]
{{ else }}
# Copy app source
COPY ./APIReference /usr/src/app
# Bundle app source
RUN npm run compile
#Run the app
CMD [ "npm", "start" ]
{{ end }}

52
APIReference/Index.ts Executable file
View File

@@ -0,0 +1,52 @@
import APIReferenceRoutes from "./Routes";
import { PromiseVoidFunction } from "Common/Types/FunctionTypes";
import InfrastructureStatus from "Common/Server/Infrastructure/Status";
import logger from "Common/Server/Utils/Logger";
import App from "Common/Server/Utils/StartServer";
import Telemetry from "Common/Server/Utils/Telemetry";
import "ejs";
const APP_NAME: string = "reference";
const init: PromiseVoidFunction = async (): Promise<void> => {
try {
// Initialize telemetry
Telemetry.init({
serviceName: APP_NAME,
});
const statusCheck: PromiseVoidFunction = async (): Promise<void> => {
// Check the status of infrastructure components
return await InfrastructureStatus.checkStatusWithRetry({
checkClickhouseStatus: false,
checkPostgresStatus: false,
checkRedisStatus: false,
retryCount: 3,
});
};
// Initialize the app with service name and status checks
await App.init({
appName: APP_NAME,
statusOptions: {
liveCheck: statusCheck,
readyCheck: statusCheck,
},
});
await APIReferenceRoutes.init();
// Add default routes to the app
await App.addDefaultRoutes();
} catch (err) {
logger.error("App Init Failed:");
logger.error(err);
throw err;
}
};
init().catch((err: Error) => {
logger.error(err);
logger.error("Exiting node process");
process.exit(1);
});

29
APIReference/README.md Executable file
View File

@@ -0,0 +1,29 @@
# README
This README would normally document whatever steps are necessary to get your application up and running.
### What is this repository for?
- Quick summary
- Version
- [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
### How do I get set up?
- Summary of set up
- Configuration
- Dependencies
- Database configuration
- How to run tests
- Deployment instructions
### Contribution guidelines
- Writing tests
- Code review
- Other guidelines
### Who do I talk to?
- Repo owner or admin
- Other community or team contact

86
APIReference/Routes.ts Executable file
View File

@@ -0,0 +1,86 @@
import AuthenticationServiceHandler from "./Service/Authentication";
import DataTypeServiceHandler from "./Service/DataType";
import ErrorServiceHandler from "./Service/Errors";
import IntroductionServiceHandler from "./Service/Introduction";
import ModelServiceHandler from "./Service/Model";
import PageNotFoundServiceHandler from "./Service/PageNotFound";
import PaginationServiceHandler from "./Service/Pagination";
import PermissionServiceHandler from "./Service/Permissions";
import StatusServiceHandler from "./Service/Status";
import { StaticPath } from "./Utils/Config";
import ResourceUtil, { ModelDocumentation } from "./Utils/Resources";
import Dictionary from "Common/Types/Dictionary";
import FeatureSet from "Common/Server/Types/FeatureSet";
import Express, {
ExpressApplication,
ExpressRequest,
ExpressResponse,
ExpressStatic,
} from "Common/Server/Utils/Express";
const APIReferenceFeatureSet: FeatureSet = {
init: async (): Promise<void> => {
const ResourceDictionary: Dictionary<ModelDocumentation> =
ResourceUtil.getResourceDictionaryByPath();
const app: ExpressApplication = Express.getExpressApp();
// Serve static files for the API reference with a cache max age of 30 days
app.use("/reference", ExpressStatic(StaticPath, { maxAge: 2592000 }));
// Redirect index page to the introduction page
app.get(["/reference"], (_req: ExpressRequest, res: ExpressResponse) => {
return res.redirect("/reference/introduction");
});
// Handle "Page Not Found" page
app.get(
["/reference/page-not-found"],
(req: ExpressRequest, res: ExpressResponse) => {
return PageNotFoundServiceHandler.executeResponse(req, res);
},
);
// Handle all other pages based on the "page" parameter
app.get(
["/reference/:page"],
(req: ExpressRequest, res: ExpressResponse) => {
const page: string | undefined = req.params["page"];
if (!page) {
return PageNotFoundServiceHandler.executeResponse(req, res);
}
const currentResource: ModelDocumentation | undefined =
ResourceDictionary[page];
// Execute the appropriate service handler based on the "page" parameter
if (req.params["page"] === "permissions") {
return PermissionServiceHandler.executeResponse(req, res);
} else if (req.params["page"] === "authentication") {
return AuthenticationServiceHandler.executeResponse(req, res);
} else if (req.params["page"] === "pagination") {
return PaginationServiceHandler.executeResponse(req, res);
} else if (req.params["page"] === "errors") {
return ErrorServiceHandler.executeResponse(req, res);
} else if (req.params["page"] === "introduction") {
return IntroductionServiceHandler.executeResponse(req, res);
} else if (req.params["page"] === "status") {
return StatusServiceHandler.executeResponse(req, res);
} else if (req.params["page"] === "data-types") {
return DataTypeServiceHandler.executeResponse(req, res);
} else if (currentResource) {
return ModelServiceHandler.executeResponse(req, res);
}
// page not found
return PageNotFoundServiceHandler.executeResponse(req, res);
},
);
app.get("/reference/*", (req: ExpressRequest, res: ExpressResponse) => {
return PageNotFoundServiceHandler.executeResponse(req, res);
});
},
};
export default APIReferenceFeatureSet;

View File

@@ -0,0 +1,33 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
// Retrieve resources documentation
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();
export default class ServiceHandler {
public static async executeResponse(
req: ExpressRequest,
res: ExpressResponse,
): Promise<void> {
let pageTitle: string = "";
let pageDescription: string = "";
// Extract page parameter from request
const page: string | undefined = req.params["page"];
const pageData: any = {};
// Set default page title and description for the authentication page
pageTitle = "Authentication";
pageDescription = "Learn how to authenticate requests with OneUptime API";
// Render the index page with the specified parameters
return res.render(`${ViewsPath}/pages/index`, {
page: page,
resources: Resources,
pageTitle: pageTitle,
pageDescription: pageDescription,
pageData: pageData,
});
}
}

View File

@@ -0,0 +1,126 @@
import { CodeExamplesPath, ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import LocalCache from "Common/Server/Infrastructure/LocalCache";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
import LocalFile from "Common/Server/Utils/LocalFile";
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();
export default class ServiceHandler {
public static async executeResponse(
_req: ExpressRequest,
res: ExpressResponse,
): Promise<void> {
const pageData: any = {};
pageData.selectCode = await LocalCache.getOrSetString(
"data-type",
"select",
async () => {
return await LocalFile.read(`${CodeExamplesPath}/DataTypes/Select.md`);
},
);
pageData.sortCode = await LocalCache.getOrSetString(
"data-type",
"sort",
async () => {
return await LocalFile.read(`${CodeExamplesPath}/DataTypes/Sort.md`);
},
);
pageData.equalToCode = await LocalCache.getOrSetString(
"data-type",
"equal-to",
async () => {
return await LocalFile.read(`${CodeExamplesPath}/DataTypes/EqualTo.md`);
},
);
pageData.equalToOrNullCode = await LocalCache.getOrSetString(
"data-type",
"equal-to-or-null",
async () => {
return await LocalFile.read(
`${CodeExamplesPath}/DataTypes/EqualToOrNull.md`,
);
},
);
pageData.greaterThanCode = await LocalCache.getOrSetString(
"data-type",
"greater-than",
async () => {
return await LocalFile.read(
`${CodeExamplesPath}/DataTypes/GreaterThan.md`,
);
},
);
pageData.greaterThanOrEqualCode = await LocalCache.getOrSetString(
"data-type",
"greater-than-or-equal",
async () => {
return await LocalFile.read(
`${CodeExamplesPath}/DataTypes/GreaterThanOrEqual.md`,
);
},
);
pageData.lessThanCode = await LocalCache.getOrSetString(
"data-type",
"less-than",
async () => {
return await LocalFile.read(
`${CodeExamplesPath}/DataTypes/LessThan.md`,
);
},
);
pageData.lessThanOrEqualCode = await LocalCache.getOrSetString(
"data-type",
"less-than-or-equal",
async () => {
return await LocalFile.read(
`${CodeExamplesPath}/DataTypes/LessThanOrEqual.md`,
);
},
);
pageData.isNullCode = await LocalCache.getOrSetString(
"data-type",
"is-null",
async () => {
return await LocalFile.read(`${CodeExamplesPath}/DataTypes/IsNull.md`);
},
);
pageData.notNullCode = await LocalCache.getOrSetString(
"data-type",
"not-null",
async () => {
return await LocalFile.read(`${CodeExamplesPath}/DataTypes/NotNull.md`);
},
);
pageData.notEqualToCode = await LocalCache.getOrSetString(
"data-type",
"not-equals",
async () => {
return await LocalFile.read(
`${CodeExamplesPath}/DataTypes/NotEqualTo.md`,
);
},
);
res.status(200);
return res.render(`${ViewsPath}/pages/index`, {
page: "data-types",
pageTitle: "Data Types",
pageDescription:
"Data Types that can be used to interact with OneUptime API",
resources: Resources,
pageData: pageData,
});
}
}

View File

@@ -0,0 +1,34 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
// Fetch a list of resources used in the application
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();
export default class ServiceHandler {
// Handles the HTTP response for a given request
public static async executeResponse(
req: ExpressRequest,
res: ExpressResponse,
): Promise<void> {
let pageTitle: string = "";
let pageDescription: string = "";
// Get the 'page' parameter from the request
const page: string | undefined = req.params["page"];
const pageData: any = {};
// Set the default page title and description
pageTitle = "Errors";
pageDescription = "Learn more about how we return errors from API";
// Render the response using the given view and data
return res.render(`${ViewsPath}/pages/index`, {
page: page,
resources: Resources,
pageTitle: pageTitle,
pageDescription: pageDescription,
pageData: pageData,
});
}
}

View File

@@ -0,0 +1,40 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
// Get all resources and featured resources from ResourceUtil
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();
const FeaturedResources: Array<ModelDocumentation> =
ResourceUtil.getFeaturedResources();
export default class ServiceHandler {
// Handle the API request
public static async executeResponse(
req: ExpressRequest,
res: ExpressResponse,
): Promise<void> {
// Initialize page title and description
let pageTitle: string = "";
let pageDescription: string = "";
// Get the requested page from the URL parameters
const page: string | undefined = req.params["page"];
const pageData: any = {};
// Set featured resources for the page
pageData.featuredResources = FeaturedResources;
// Set page title and description
pageTitle = "Introduction";
pageDescription = "API Reference for OneUptime";
// Render the index page with the required data
return res.render(`${ViewsPath}/pages/index`, {
page: page,
resources: Resources,
pageTitle: pageTitle,
pageDescription: pageDescription,
pageData: pageData,
});
}
}

View File

@@ -0,0 +1,269 @@
import { CodeExamplesPath, ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import PageNotFoundServiceHandler from "./PageNotFound";
import { AppApiRoute } from "Common/ServiceRoute";
import { ColumnAccessControl } from "Common/Types/BaseDatabase/AccessControl";
import { getTableColumns } from "Common/Types/Database/TableColumn";
import Dictionary from "Common/Types/Dictionary";
import ObjectID from "Common/Types/ObjectID";
import Permission, {
PermissionHelper,
PermissionProps,
} from "Common/Types/Permission";
import LocalCache from "Common/Server/Infrastructure/LocalCache";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
import LocalFile from "Common/Server/Utils/LocalFile";
// Get all resources and resource dictionary
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();
const ResourceDictionary: Dictionary<ModelDocumentation> =
ResourceUtil.getResourceDictionaryByPath();
// Get all permission props
const PermissionDictionary: Dictionary<PermissionProps> =
PermissionHelper.getAllPermissionPropsAsDictionary();
export default class ServiceHandler {
// Execute response for a given page
public static async executeResponse(
req: ExpressRequest,
res: ExpressResponse,
): Promise<void> {
let pageTitle: string = "";
let pageDescription: string = "";
let page: string | undefined = req.params["page"];
const pageData: any = {};
// Check if page is provided
if (!page) {
return PageNotFoundServiceHandler.executeResponse(req, res);
}
// Get current resource
const currentResource: ModelDocumentation | undefined =
ResourceDictionary[page];
// Check if current resource exists
if (!currentResource) {
return PageNotFoundServiceHandler.executeResponse(req, res);
}
// Set page title and description
pageTitle = currentResource.name;
pageDescription = currentResource.description;
page = "model";
// Get table columns for current resource
const tableColumns: any = getTableColumns(currentResource.model);
// Filter out columns with no access
for (const key in tableColumns) {
const accessControl: ColumnAccessControl | null =
currentResource.model.getColumnAccessControlFor(key);
if (!accessControl) {
delete tableColumns[key];
continue;
}
if (
accessControl?.create.length === 0 &&
accessControl?.read.length === 0 &&
accessControl?.update.length === 0
) {
delete tableColumns[key];
continue;
}
tableColumns[key].permissions = accessControl;
}
// Remove unnecessary columns
delete tableColumns["deletedAt"];
delete tableColumns["deletedByUserId"];
delete tableColumns["deletedByUser"];
delete tableColumns["version"];
// Set page data
pageData.title = currentResource.model.singularName;
pageData.description = currentResource.model.tableDescription;
pageData.columns = tableColumns;
pageData.tablePermissions = {
read: currentResource.model.readRecordPermissions.map(
(permission: Permission) => {
return PermissionDictionary[permission];
},
),
update: currentResource.model.updateRecordPermissions.map(
(permission: Permission) => {
return PermissionDictionary[permission];
},
),
delete: currentResource.model.deleteRecordPermissions.map(
(permission: Permission) => {
return PermissionDictionary[permission];
},
),
create: currentResource.model.createRecordPermissions.map(
(permission: Permission) => {
return PermissionDictionary[permission];
},
),
};
// Cache the list request data
pageData.listRequest = await LocalCache.getOrSetString(
"model",
"list-request",
async () => {
// Read the list request data from a file
return await LocalFile.read(`${CodeExamplesPath}/Model/ListRequest.md`);
},
);
// Cache the item request data
pageData.itemRequest = await LocalCache.getOrSetString(
"model",
"item-request",
async () => {
// Read the item request data from a file
return await LocalFile.read(`${CodeExamplesPath}/Model/ItemRequest.md`);
},
);
// Cache the item response data
pageData.itemResponse = await LocalCache.getOrSetString(
"model",
"item-response",
async () => {
// Read the item response data from a file
return await LocalFile.read(
`${CodeExamplesPath}/Model/ItemResponse.md`,
);
},
);
// Cache the count request data
pageData.countRequest = await LocalCache.getOrSetString(
"model",
"count-request",
async () => {
// Read the count request data from a file
return await LocalFile.read(
`${CodeExamplesPath}/Model/CountRequest.md`,
);
},
);
// Cache the count response data
pageData.countResponse = await LocalCache.getOrSetString(
"model",
"count-response",
async () => {
// Read the CountResponse.md file
return await LocalFile.read(
`${CodeExamplesPath}/Model/CountResponse.md`,
);
},
);
pageData.updateRequest = await LocalCache.getOrSetString(
"model",
"update-request",
async () => {
// Read the UpdateRequest.md file
return await LocalFile.read(
`${CodeExamplesPath}/Model/UpdateRequest.md`,
);
},
);
pageData.updateResponse = await LocalCache.getOrSetString(
"model",
"update-response",
async () => {
// Read the UpdateResponse.md file
return await LocalFile.read(
`${CodeExamplesPath}/Model/UpdateResponse.md`,
);
},
);
pageData.createRequest = await LocalCache.getOrSetString(
"model",
"create-request",
async () => {
// Read the CreateRequest.md file
return await LocalFile.read(
`${CodeExamplesPath}/Model/CreateRequest.md`,
);
},
);
pageData.createResponse = await LocalCache.getOrSetString(
"model",
"create-response",
async () => {
// Read the CreateResponse.md file
return await LocalFile.read(
`${CodeExamplesPath}/Model/CreateResponse.md`,
);
},
);
pageData.deleteRequest = await LocalCache.getOrSetString(
"model",
"delete-request",
async () => {
// Read the DeleteRequest.md file
return await LocalFile.read(
`${CodeExamplesPath}/Model/DeleteRequest.md`,
);
},
);
pageData.deleteResponse = await LocalCache.getOrSetString(
"model",
"delete-response",
async () => {
// Read the DeleteResponse.md file
return await LocalFile.read(
`${CodeExamplesPath}/Model/DeleteResponse.md`,
);
},
);
// Get list response from cache or set it if it's not available
pageData.listResponse = await LocalCache.getOrSetString(
"model",
"list-response",
async () => {
// Read the list response from a file
return await LocalFile.read(
`${CodeExamplesPath}/Model/ListResponse.md`,
);
},
);
// Generate a unique ID for the example object
pageData.exampleObjectID = ObjectID.generate();
// Construct the API path for the current resource
pageData.apiPath =
AppApiRoute.toString() + currentResource.model.crudApiPath?.toString();
// Check if the current resource is a master admin API
pageData.isMasterAdminApiDocs = currentResource.model.isMasterAdminApiDocs;
// Render the index page with the required data
return res.render(`${ViewsPath}/pages/index`, {
page: page,
resources: Resources,
pageTitle: pageTitle,
pageDescription: pageDescription,
pageData: pageData,
});
}
}

View File

@@ -0,0 +1,25 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources(); // Get an array of model documentation resources
export default class ServiceHandler {
// This is a static method that handles the response
public static async executeResponse(
_req: ExpressRequest,
res: ExpressResponse,
): Promise<void> {
// Set the HTTP status code to 404 (Not Found)
res.status(404);
// Render the 'index' page with the given data
return res.render(`${ViewsPath}/pages/index`, {
page: "404", // The page type (404 in this case)
pageTitle: "Page Not Found", // The page title
pageDescription: "Page you're looking for is not found.", // The page description
resources: Resources, // The array of model documentation resources
pageData: {}, // An empty object to hold any additional page data
});
}
}

View File

@@ -0,0 +1,55 @@
import { CodeExamplesPath, ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import LocalCache from "Common/Server/Infrastructure/LocalCache";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
import LocalFile from "Common/Server/Utils/LocalFile";
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources(); // Get all resources from ResourceUtil
export default class ServiceHandler {
public static async executeResponse(
req: ExpressRequest,
res: ExpressResponse,
): Promise<void> {
let pageTitle: string = ""; // Initialize page title
let pageDescription: string = ""; // Initialize page description
const page: string | undefined = req.params["page"]; // Get the page parameter from the request
const pageData: any = {}; // Initialize page data object
// Set page title and description
pageTitle = "Pagination";
pageDescription = "Learn how to paginate requests with OneUptime API";
// Get response and request code from LocalCache or LocalFile
pageData.responseCode = await LocalCache.getOrSetString(
"pagination",
"response",
async () => {
// Read Response.md file from CodeExamplesPath
return await LocalFile.read(
`${CodeExamplesPath}/Pagination/Response.md`,
);
},
);
pageData.requestCode = await LocalCache.getOrSetString(
"pagination",
"request",
async () => {
// Read Request.md file from CodeExamplesPath
return await LocalFile.read(
`${CodeExamplesPath}/Pagination/Request.md`,
);
},
);
// Render the page with the page data
return res.render(`${ViewsPath}/pages/index`, {
page: page, // Pass the page parameter
resources: Resources, // Pass all resources
pageTitle: pageTitle, // Pass the page title
pageDescription: pageDescription, // Pass the page description
pageData: pageData, // Pass the page data
});
}
}

View File

@@ -0,0 +1,41 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { PermissionHelper, PermissionProps } from "Common/Types/Permission";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();
export default class ServiceHandler {
public static async executeResponse(
req: ExpressRequest,
res: ExpressResponse,
): Promise<void> {
// Initialize page title and description
let pageTitle: string = "";
let pageDescription: string = "";
// Get the requested page
const page: string | undefined = req.params["page"];
const pageData: any = {};
// Set page title and description
pageTitle = "Permissions";
pageDescription = "Learn how permissions work with OneUptime";
// Filter permissions to only include those assignable to tenants
pageData.permissions = PermissionHelper.getAllPermissionProps().filter(
(i: PermissionProps) => {
return i.isAssignableToTenant;
},
);
// Render the page
return res.render(`${ViewsPath}/pages/index`, {
page: page,
resources: Resources,
pageTitle: pageTitle,
pageDescription: pageDescription,
pageData: pageData,
});
}
}

View File

@@ -0,0 +1,25 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
// Retrieve resources from ResourceUtil
const resources: Array<ModelDocumentation> = ResourceUtil.getResources();
export default class ServiceHandler {
public static async executeResponse(
_req: ExpressRequest, // Ignore request object
res: ExpressResponse,
): Promise<void> {
// Set HTTP status to 200
res.status(200);
// Render index page with necessary data
return res.render(`${ViewsPath}/pages/index`, {
page: "status",
pageTitle: "Status",
pageDescription: "200 - Success",
resources: resources, // Pass resources to the template
pageData: {}, // Pass empty data to the template
});
}
}

View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 321 B

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 649 B

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Some files were not shown because too many files have changed in this diff Show More