Compare commits

...

4154 Commits

Author SHA1 Message Date
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
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
Simon Larsen
55d947fb39 refactor: Add isMonotonic column to Metric model
This code change adds a new column, 'isMonotonic', to the Metric model in the AnalyticsModels directory. The column is optional and represents whether the metric is monotonic. This change ensures that the necessary data is captured and stored correctly for metrics in the system.
2024-06-10 12:49:29 +01:00
Simon Larsen
77f1262ff5 refactor: Update Telemetry class to add gauge and histogram metrics
This code change updates the Telemetry class in the CommonServer/Utils directory to include methods for creating gauge and histogram metrics. The getGauge and getHistogram methods are added, allowing for the creation of observable gauges and histograms with specified names and descriptions. This change enhances the telemetry capabilities of the application by providing more options for metric tracking and analysis.
2024-06-10 12:39:49 +01:00
Simon Larsen
47bf8f9c89 refactor: Update EventItem component to dynamically apply styles based on event type
This code change updates the EventItem component to dynamically apply styles based on the event type. The classNames for the title and description elements are now generated based on the eventType prop, allowing for more flexibility in styling. This change improves the visual representation of different event types in the application.
2024-06-10 11:48:47 +01:00
Simon Larsen
4ca4f28d1c refactor: Add Point Type to Metric model
This code change adds a new column, 'Metric Point Type', to the Metric model in the AnalyticsModels directory. The column is optional and represents the type of metric point. This change ensures that the necessary data is captured and stored correctly for metrics in the system.
2024-06-10 11:45:23 +01:00
Simon Larsen
b6565ce2bb refactor: Add Aggregation Temporality column to Metric model
This code change adds a new column, 'Aggregation Temporality', to the Metric model in the AnalyticsModels directory. The column is required and represents the aggregation temporality of the metric. This change ensures that the necessary data is captured and stored correctly for metrics in the system.
2024-06-10 11:34:08 +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
87c16d7bc3 refactor: Update needs array in test-e2e-release-saas and test-e2e-release-self-hosted jobs
This code change updates the needs array in the test-e2e-release-saas and test-e2e-release-self-hosted jobs in the release.yml file. The nginx-docker-image-deploy job has been added to the needs array to ensure that it is executed before these jobs. This change ensures that the necessary dependencies are met for the successful execution of the test-e2e-release-saas and test-e2e-release-self-hosted jobs.
2024-06-09 21:47:31 +01:00
Simon Larsen
cc66820e7b refactor: Remove commented code in NavBar component 2024-06-09 19:45:25 +01:00
Simon Larsen
a478f60a39 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-09 19:45:00 +01:00
Simon Larsen
5637f12d3a refactor: Remove commented code in NavBar component
This code change removes the commented code in the NavBar component that was no longer needed. The commented code was related to the AI Copilot feature and the Service Catalog feature, which have been refactored or removed from the application. Removing this commented code improves code readability and reduces clutter in the component.
2024-06-09 19:44:57 +01:00
Simon Larsen
27c28b17af refactor: Update viewPageRoute in CodeRepositoryPage component 2024-06-09 19:44:41 +01:00
Simon Larsen
c55b169488 Merge pull request #1460 from OneUptime/snyk-upgrade-46c810649599bbd5f034d681106116a8
[Snyk] Upgrade react-big-calendar from 1.12.1 to 1.12.2
2024-06-09 19:36:50 +01:00
Simon Larsen
9b584d69ff refactor: Update viewPageRoute in CodeRepositoryPage component 2024-06-09 19:35:28 +01:00
Simon Larsen
05c090445a change job names 2024-06-09 19:29:59 +01:00
Simon Larsen
597aeb74f4 add e2e to test release 2024-06-09 19:29:23 +01:00
Simon Larsen
b7191a9c2e update github e2e jobs 2024-06-09 19:25:34 +01:00
Simon Larsen
c686030014 ```text
refactor: Update viewPageRoute in CodeRepositoryPage component

This code change updates the viewPageRoute prop in the CodeRepositoryPage component to use the new route generated by the Navigation utility. This ensures that the component navigates to the correct view page when a code repository is clicked.
2024-06-09 19:21:02 +01:00
Simon Larsen
eed1078f06 refactor: Add viewPageRoute prop to CodeRepositoryPage component
This code change adds the viewPageRoute prop to the CodeRepositoryPage component in order to specify the route for viewing a code repository. This prop is set to the corresponding route from the RouteMap. By including this prop, the component will correctly navigate to the view page when the user clicks on a code repository.
2024-06-09 19:15:30 +01:00
Simon Larsen
051a3c43b2 refactor: Update Git Repository name to "Git Repositories" 2024-06-09 19:04:45 +01:00
Simon Larsen
a152813535 refactor: Add CodeRepository model and service
This code change adds the CodeRepository model and service to the project. It includes the following modifications:

- Added CodeRepository model to the Models/Index.ts file.
- Added CodeRepositoryService to the Services/Index.ts file.
- Created CodeRepositoryService.ts file with the necessary implementation.

These changes enable the project to manage code repositories.
2024-06-09 19:03:54 +01:00
Simon Larsen
decea5acfc refactor: Add AI Copilot breadcrumbs and code repository view 2024-06-09 19:03:23 +01:00
Simon Larsen
4c2dfb0f92 refactor: Add CodeRepository model, service, and permissions
This code change adds the CodeRepository model, service, and permissions to the project. It includes the following modifications:

- Added CodeRepository model to the Models/Index.ts file.
- Added CodeRepositoryService to the Services/Index.ts file.
- Created CodeRepositoryService.ts file with the necessary implementation.
- Updated Permission enum in the Permission.ts file to include CreateCodeRepository, DeleteCodeRepository, EditCodeRepository, and ReadCodeRepository permissions.

These changes enable the project to manage code repositories and define the necessary permissions for them.
2024-06-09 15:03:56 +01:00
Simon Larsen
a24bf077ce refactor: Improve error message in endpoint-status.sh
This code change updates the endpoint-status.sh script to improve the error message when the endpoint returns an HTTP status other than 200. The previous message mentioned that it usually takes a few minutes for the app to boot, which is not accurate. The updated message removes this misleading information and provides a more accurate description of the retry behavior.
2024-06-09 14:49:48 +01:00
Simon Larsen
2d82f50789 refactor: Enable cleanup and e2e cron jobs for development purposes 2024-06-09 14:39:14 +01:00
Simon Larsen
3e13776252 refactor: Improve BaseModelTable actions column logic
This code change updates the BaseModelTable component to improve the logic for determining whether to show the actions column. Previously, the actions column was shown based on various conditions, including permissions, action buttons, and the showViewIdButton prop. This logic has been refactored to simplify the conditions and make it easier to understand.

- The showActionsColumn variable is now initialized with the result of the Boolean function, which checks if any of the conditions are met.
- Additionally, if the user is a master admin, the actions column will always be shown, regardless of other conditions.

These changes enhance the readability and maintainability of the code, ensuring that the actions column is displayed correctly based on the specified conditions.
2024-06-09 13:18:56 +01:00
Simon Larsen
463bb32872 refactor: Enable cleanup and e2e cron jobs for development purposes
This code change updates the values.yaml file in the HelmChart/Public/oneuptime directory. It enables the cleanup and e2e cron jobs for development purposes. Please note that these cron jobs should not be enabled in production environments. This change allows for easier testing and debugging during development.
2024-06-09 12:48:42 +01:00
Simon Larsen
99dcee80cd refactor: Add support for Go language in CodeQL analysis workflow 2024-06-08 14:54:28 +01:00
Simon Larsen
c418dc41dd refactor: Add TypeScript support to CodeQL analysis workflow
This code change updates the CodeQL analysis workflow in the .github/workflows/codeql-analysis.yml file. It adds TypeScript as a supported language for CodeQL analysis, in addition to JavaScript. This ensures that the codebase can be thoroughly analyzed for potential security vulnerabilities and bugs in both JavaScript and TypeScript code.
2024-06-08 14:54:02 +01:00
Simon Larsen
c0678c410d refactor: Update SideMenu.tsx to fix indentation issue
This code change updates the SideMenu.tsx file in the ServiceCatalog/View directory. It fixes an indentation issue in the SideMenuItem component by properly aligning the opening tag. This ensures consistent code formatting and improves code readability.
2024-06-08 14:34:56 +01:00
Simon Larsen
081359f7e0 refactor: Update Delete.tsx to navigate to Service Catalog page after successful deletion
This code change updates the Delete.tsx file in the ServiceCatalog/View directory. It modifies the onDeleteSuccess callback function to navigate to the Service Catalog page (RouteMap[PageMap.SERVICE_CATALOG]) after a successful deletion. This ensures a smooth user experience by redirecting them to the appropriate page after completing the deletion process.
2024-06-08 14:26:02 +01:00
Simon Larsen
cc0cfe4f8c refactor: Update Settings.tsx to import ServiceCatalog instead of TelemetryService 2024-06-08 14:24:42 +01:00
Simon Larsen
dc87905f05 refactor: Update ServiceCatalogPage to include lazy loading for ServiceCatalogElement 2024-06-08 14:24:05 +01:00
Simon Larsen
9c31047d52 refactor: Update ServiceCatalogPage to include lazy loading for ServiceCatalogElement
This code change updates the ServiceCatalogPage component in ServiceCatalog.tsx to include lazy loading for the ServiceCatalogElement component. By implementing lazy loading, the page load performance is improved as the ServiceCatalogElement component is only loaded when it is actually needed. This enhances the overall user experience by reducing initial page load time.
2024-06-08 14:20:21 +01:00
Simon Larsen
91d196ddea refactor: Update ServiceCatalogRoutePath in RouteMap.ts
This code change updates the ServiceCatalogRoutePath in the RouteMap.ts file to include new routes for viewing, managing owners, and deleting service catalogs. This ensures that the application can properly handle these actions related to service catalogs within the dashboard.
2024-06-08 14:12:41 +01:00
Simon Larsen
78db5cab39 refactor: Update ServiceCatalogRoutePath in RouteMap.ts 2024-06-08 14:12:06 +01:00
Simon Larsen
689e72e5ec refactor: Update ServiceCatalogRoutePath in RouteMap.ts
This code change updates the ServiceCatalogRoutePath in the RouteMap.ts file to include new routes for viewing, managing owners, and deleting service catalogs. This ensures that the application can properly handle these actions related to service catalogs within the dashboard.
2024-06-08 14:05:24 +01:00
Simon Larsen
bc9e97f67c refactor: Fix typo in status pages description 2024-06-08 13:57:48 +01:00
Simon Larsen
19550c23ed refactor: Add ServiceCatalogOwnerTeamService and ServiceCatalogOwnerUserService to Services/Index.ts
This code change adds the ServiceCatalogOwnerTeamService and ServiceCatalogOwnerUserService to the Services/Index.ts file. These services are necessary for managing ownership of Service Catalogs, allowing teams and individual users to be assigned as owners of specific Service Catalogs.
2024-06-08 13:33:53 +01:00
Simon Larsen
2d09df2d87 feat: Add ServiceCatalogOwnerTeam and ServiceCatalogOwnerUser models
This code change adds the ServiceCatalogOwnerTeam and ServiceCatalogOwnerUser models to the project. These models are necessary for managing ownership of Service Catalogs, allowing teams and individual users to be assigned as owners of specific Service Catalogs.
2024-06-08 13:31:40 +01:00
Simon Larsen
2dfebdd2e4 refactor: Update SchemaMigrations/Index.ts to fix formatting
This code change fixes the formatting in the SchemaMigrations/Index.ts file. The changes include removing unnecessary whitespace and ensuring consistent indentation. This improves code readability and maintainability.
2024-06-08 13:16:51 +01:00
Simon Larsen
ebec143c9c refactor: Import and include ServiceCatalogService and ServiceCatalog model
This code change updates the Index.ts and Models/Index.ts files to import and include the ServiceCatalogService and ServiceCatalog model respectively. This allows for the management of Service Catalogs, including creating, deleting, editing, and reading them within the project.
2024-06-08 10:35:17 +01:00
Simon Larsen
aa68a6316a feat: Add Service Catalog permissions
This code change adds new permissions for managing Service Catalogs. The permissions include creating, deleting, editing, and reading Service Catalogs. These permissions allow users to perform various actions related to Service Catalogs within the project.

Refactor: Update Index.ts and Models/Index.ts to import and include the ServiceCatalogService and ServiceCatalog model respectively.
2024-06-08 10:25:37 +01:00
Simon Larsen
27a37581e4 Merge pull request #1461 from OneUptime/metric-detail
refactor: Update Navigation class to use getLastParamAsString method
2024-06-08 09:51:32 +01:00
Simon Larsen
091622f8cf refactor: Update StatementGenerator.ts to improve code readability and maintainability 2024-06-08 09:49:49 +01:00
Simon Larsen
87caae077c ```text
refactor: Change metric column types to decimal

This code change modifies the Metric model in the AnalyticsModels directory to change the column types of various metrics from TableColumnType.Number to TableColumnType.Decimal. This update ensures more accurate and precise calculations for the metrics.
2024-06-07 22:55:39 +01:00
Simon Larsen
a146691773 refactor: Improve code readability and maintainability in LogItem.tsx 2024-06-07 22:16:36 +01:00
Simon Larsen
9fce103b11 refactor: Update ResetPassword.tsx to improve password confirmation validation 2024-06-07 22:04:56 +01:00
Simon Larsen
2aa0ae89fc refactor: Improve code readability and maintainability in OTelIngest.ts 2024-06-07 21:45:09 +01:00
Simon Larsen
0a16f6bf44 refactor: Update OTelIngest.ts to improve code readability and maintainability 2024-06-07 21:27:11 +01:00
Simon Larsen
0f49e6e100 refactor: Improve code readability and maintainability in OTelIngest.ts 2024-06-07 17:49:58 +01:00
Simon Larsen
d954b4a5df refactor: Add unit column to metrics table and improve code readability in StatementGenerator.ts 2024-06-07 17:36:09 +01:00
Simon Larsen
e762778fc6 refactor: Improve code readability and maintainability in StatementGenerator.ts 2024-06-07 17:33:23 +01:00
Simon Larsen
4cced50857 feat: Add unit column to metrics table 2024-06-07 17:00:30 +01:00
Simon Larsen
26c900d8e2 refactor: Update CommonServer/package.json and Ingestor/Service/OTelIngest.ts
This code change updates the CommonServer/package.json file to remove the "@opentelemetry/metrics" dependency and adds the "@opentelemetry/sdk-metrics" dependency with version "^1.21.0". It also updates the Ingestor/Service/OTelIngest.ts file to import the "JSONFunctions" module from "Common/Types/JSONFunctions" and use the "flattenObject" function from that module to flatten the final object before returning it.
2024-06-07 16:57:24 +01:00
Simon Larsen
63461343ba refactor: Update OTelIngest.ts to improve code readability and maintainability
This code change updates the OTelIngest.ts file to improve code readability and maintainability. It includes formatting changes such as indentation and line breaks to enhance code structure and organization. These modifications make the code easier to understand and maintain for future development.
2024-06-07 14:57:24 +01:00
Simon Larsen
931abc522b refactor: Update Telemetry class to include new metrics for status checks 2024-06-07 14:54:39 +01:00
Simon Larsen
054592eed3 refactor: Update Telemetry class to include new metrics for status checks
This code change updates the Telemetry class to include new metrics for status checks. It adds counters for successful and failed status checks, including separate counters for ready and live checks. This modification enhances the monitoring capabilities of the application and provides more granular insights into the status of the system.
2024-06-07 14:25:40 +01:00
Simon Larsen
82b2307b51 Merge branch 'master' into metric-detail 2024-06-07 12:50:17 +01:00
Simon Larsen
b1dba73842 refactor: Update external database configuration in HelmChart
This code change updates the external database configuration in the HelmChart. It adds support for using an existing secret for the password instead of directly specifying the password. This modification enhances security and allows for easier management of the database credentials.
2024-06-07 10:11:27 +01:00
Simon Larsen
babbf5f8a6 refactor: Update external database configuration in HelmChart 2024-06-07 10:10:55 +01:00
Simon Larsen
39c7da79ab refactor: Update external database configuration in HelmChart
This code change updates the external database configuration in the HelmChart. It adds support for using an existing secret for the password instead of directly specifying the password. This modification enhances security and allows for easier management of the database credentials.
2024-06-07 10:10:00 +01:00
Simon Larsen
938bd32915 refactor: Update PageMap and RouteMap to include new telemetry metric page
This code change updates the PageMap and RouteMap files to include a new telemetry metric page. The new page, TELEMETRY_SERVICES_VIEW_METRIC, is added to both files with its corresponding route path. This modification ensures that the new page is properly mapped and accessible within the application.
2024-06-07 10:08:40 +01:00
Simon Larsen
f8e1ace311 refactor: Update Navigation class to use getLastParamAsString method 2024-06-06 21:45:29 +01:00
Simon Larsen
05e2e22e1d refactor: Update DATABASE_USERNAME value in _helpers.tpl
This code change updates the value of DATABASE_USERNAME in the _helpers.tpl file. The value is changed to "postgres" when the postgresql.enabled flag is true, and to the value of $.Values.externalPostgres.username when the flag is false. This modification ensures that the correct username is used for the database connection.
2024-06-06 21:19:19 +01:00
Simon Larsen
9054c49b3e refactor: Update Kubernetes secret retrieval commands
The code changes update the commands used to retrieve secrets from Kubernetes. The previous commands were using the deprecated `go-template` option, which has been replaced with the `jsonpath` option. This refactor ensures that the correct commands are used to retrieve the secrets, improving the reliability and maintainability of the code.
2024-06-06 18:36:05 +01:00
Simon Larsen
5d5468603f refactor: Add lazy loading for images in DateFilter component
This code change adds lazy loading for images in the DateFilter component. By implementing lazy loading, the images in the component will only load when they are in the viewport, improving the page load performance. This enhancement provides a better user experience by reducing the initial load time of the page.
2024-06-06 17:49:43 +01:00
Simon Larsen
4c6979cfa1 refactor: Add date filter to FiltersForm and FilterViewer components
This code change adds a new date filter to the FiltersForm and FilterViewer components. The date filter allows users to filter data based on a specific date range. This enhancement improves the filtering capabilities of the components and provides users with more flexibility in data analysis.
2024-06-06 17:40:24 +01:00
Simon Larsen
714a4be2b0 refactor: Update DatabaseService to set isRoot flag when updating items
This code change updates the DatabaseService class to set the isRoot flag to true when updating items. Previously, the props object in the update query only included the ignoreHooks flag. By adding the isRoot flag, we ensure that the update operation is performed as a root user, bypassing any access restrictions or hooks. This modification enhances the flexibility and control of the update process.
2024-06-06 14:43:11 +01:00
Simon Larsen
b935443f96 refactor: Update PingMonitorView to display monitor destination and port
This code change updates the PingMonitorView component to display the monitor destination and port. It ensures that the destination URL or IP address and the corresponding port are correctly displayed in the component. This enhancement improves the visibility of the monitoring information for users.
2024-06-06 14:28:32 +01:00
Simon Larsen
d3a3f01f20 refactor: Update monitorDestination and monitorDestinationPort in ProbeMonitorResponse interface
This code change updates the ProbeMonitorResponse interface to include the monitorDestination and monitorDestinationPort properties. These properties represent the destination URL or IP address and the corresponding port for monitoring. By adding these properties to the interface, we ensure that the necessary information is available for monitoring purposes.
2024-06-06 13:58:51 +01:00
snyk-bot
56b0fea04a fix: upgrade react-big-calendar from 1.12.1 to 1.12.2
Snyk has created this PR to upgrade react-big-calendar from 1.12.1 to 1.12.2.

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-06-06 03:46:25 +00:00
Simon Larsen
2605140166 refactor: Update DATABASE_USERNAME value in _helpers.tpl
This code change updates the value of DATABASE_USERNAME in the _helpers.tpl file. The value is changed to "postgres" when the postgresql.enabled flag is true, and to the value of $.Values.externalPostgres.username when the flag is false. This modification ensures that the correct username is used for the database connection.
2024-06-05 19:03:49 +01:00
Simon Larsen
8b9611e145 refactor: Update import statement for InitialMigration in Postgres SchemaMigrations 2024-06-05 17:52:16 +01:00
Simon Larsen
21057038d1 refactor: Update import statement for InitialMigration in Postgres SchemaMigrations
This code change updates the import statement for the InitialMigration file in the Postgres SchemaMigrations folder. The file name was changed from "1717605043663-MigrationName.ts" to "1717605043663-InitialMigration.ts". This refactor ensures that the correct file is imported and used for schema migrations.
2024-06-05 17:36:45 +01:00
Simon Larsen
e587d4ba19 refactor: Update Postgres migration generation command to use correct file path 2024-06-05 17:33:30 +01:00
Simon Larsen
14da201c8d refactor: Remove unused PostgresConfig file and update PostgresDatabase imports 2024-06-05 17:26:48 +01:00
Simon Larsen
f5584a5037 Add error handling to monitor probing in the FetchListAndProbe class. This change modifies the code to catch any errors that occur during the probing process and log them using the logger. This enhancement improves the robustness of the monitoring functionality by ensuring that errors are properly handled and logged. 2024-06-05 13:30:33 +01:00
Simon Larsen
157f8e95d7 refactor: Update TableRow component to include padding in drag handle 2024-06-05 12:59:35 +01:00
Simon Larsen
fb83126f37 Update Postgres password retrieval in Helm chart documentation 2024-06-05 12:27:31 +01:00
Simon Larsen
964def0c45 refactor: Disable ClickHouse when not enabled in values.yaml 2024-06-05 12:16:40 +01:00
Simon Larsen
650d7cc939 refactor: Add support for HTTPS in ClickHouse configuration 2024-06-05 11:42:01 +01:00
Simon Larsen
bfb4c46bd0 refactor: Update ClickHouse configuration to support HTTPS
This code change updates the ClickHouse configuration to support HTTPS. It introduces a new environment variable, `ClickHouseIsHostHttps`, which is set to `true` in the `EnvironmentConfig.ts` file. The `ClickhouseConfig.ts` file is modified to conditionally set the host protocol to `https` based on the value of `ClickHouseIsHostHttps`. This enhancement allows users to easily configure ClickHouse to use HTTPS when connecting to the host.
2024-06-05 11:41:39 +01:00
Simon Larsen
149c8c763d refactor: Remove empty line in values.yaml 2024-06-05 10:57:57 +01:00
Simon Larsen
fdbcace48c refactor: Update ClickHouse TLS configuration to use "tls" instead of "ssl" in values.yaml 2024-06-05 10:53:47 +01:00
Simon Larsen
3cfe0517a8 refactor: Update ClickHouse environment variables 2024-06-05 10:53:05 +01:00
Simon Larsen
9a32a47146 refactor: Update Redis and ClickHouse TLS configuration
This code change updates the Redis and ClickHouse TLS configuration to support the new `RedisTlsCert`, `RedisTlsKey`, `ClickhouseTlsCert`, and `ClickhouseTlsKey` environment variables. It modifies the `Redis.ts` and `ClickhouseConfig.ts` files to conditionally set the TLS options based on the presence of these variables. This enhancement allows users to easily enable TLS for Redis and ClickHouse by providing the necessary certificate and key files.
2024-06-05 10:49:01 +01:00
Simon Larsen
fd83a71a56 refactor: Enable Redis and ClickHouse in Helm chart
This code change enables Redis and ClickHouse in the Helm chart by setting the `enabled` flag to `true` for both services in the `values.yaml` file. This enhancement allows users to utilize Redis and ClickHouse functionalities when deploying the Helm chart.
2024-06-05 10:08:11 +01:00
Simon Larsen
e9bdbb3414 refactor: Update Postgres configuration in Helm chart
This code change updates the Postgres configuration in the Helm chart to support both internal and external Postgres databases. It adds the necessary environment variables and secrets blocks to handle the external Postgres database configuration. This enhancement allows users to easily switch between using an internal or external Postgres database when deploying the Helm chart.
2024-06-05 10:05:45 +01:00
Simon Larsen
3b65d1f4d6 refactor: Update Postgres configuration in Helm chart
This code change updates the Postgres configuration in the Helm chart to support both internal and external Postgres databases. It adds the `applicationName` property to the `dataSourceOptions` object in `PostgresConfig.ts` to set the application name to 'oneuptime'. Additionally, it adds new blocks in `secrets.yaml` to handle secrets for the external Postgres database, including the password and SSL options. This enhancement allows users to easily switch between using an internal or external Postgres database when deploying the Helm chart.
2024-06-05 09:28:10 +01:00
Simon Larsen
ed0f92f480 refactor: Update Postgres configuration in Helm chart
This code change updates the Postgres configuration in the Helm chart to support both internal and external Postgres databases. The `DATABASE_NAME` environment variable is renamed from `DATABASE_DATABASE` to improve clarity. Additionally, a new block for configuring SSL options for the external Postgres database is added. This enhancement allows users to easily switch between using an internal or external Postgres database when deploying the Helm chart.
2024-06-04 22:51:53 +01:00
Simon Larsen
6cc0f9deaf refactor: Update Postgres configuration in Helm chart
This code change updates the Postgres configuration in the Helm chart to support both internal and external Postgres databases. The `DATABASE_HOST`, `DATABASE_PORT`, `DATABASE_USERNAME`, `DATABASE_PASSWORD`, and `DATABASE_DATABASE` environment variables are now conditionally set based on the `postgresql.enabled` flag in the `values.yaml` file. If `postgresql.enabled` is `true`, the values are set to the internal Postgres service details. Otherwise, they are set to the corresponding values from the `externalPostgres` configuration. This enhancement allows users to easily switch between using an internal or external Postgres database when deploying the Helm chart.
2024-06-04 21:44:17 +01:00
Simon Larsen
06be3d2f58 ```text
refactor: Enable external Postgres support in Helm chart

This code change modifies the Helm chart to enable support for using an external Postgres database. The `postgresql.enabled` flag in the `values.yaml` file is set to `true` to indicate that an external Postgres database will be used. This enhancement allows users to configure the Helm chart to connect to an existing Postgres database instead of deploying a new one.
2024-06-04 21:42:17 +01:00
Simon Larsen
da8045271f Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-04 21:31:17 +01:00
Simon Larsen
cfc45efadf chore: Update Docker login action to v2.2.0 2024-06-04 21:31:15 +01:00
Simon Larsen
6b92440c74 Merge pull request #1457 from OneUptime/snyk-upgrade-ec107bb76f5f3418659be75ddc87b6bd
[Snyk] Upgrade @nivo/line from 0.86.0 to 0.87.0
2024-06-04 21:30:51 +01:00
Simon Larsen
c2d3123263 Merge pull request #1456 from OneUptime/snyk-upgrade-f550bab384e19de47906237ddf6f8910
[Snyk] Upgrade react-router-dom from 6.23.0 to 6.23.1
2024-06-04 21:30:40 +01:00
Simon Larsen
3a277db0d5 chore: Update Docker login action to v2.2.0
This code change updates the Docker login action to version 2.2.0 in the build.yml file. The new version provides improved functionality and security for logging in to Docker Hub. This chore ensures that the latest stable version of the Docker login action is used in the build process.
2024-06-04 21:29:22 +01:00
Simon Larsen
f084058b67 feat: Add error message component to BasicFormModal
This code change adds the ErrorMessage component to the BasicFormModal component in BasicFormModal.tsx. The ErrorMessage component is rendered when the props.error value is truthy, displaying the error message to the user. This enhancement improves the user experience by providing clear feedback when an error occurs during form submission.
2024-06-04 21:17:10 +01:00
Simon Larsen
9dbe33bfcc refactor: Add doNotShowWhenEditing flag to form fields
This code change adds the `doNotShowWhenEditing` flag to the form fields in the `ModelTable` component. When set to `true`, this flag prevents certain fields from being shown in the form when it is in edit mode. This improvement provides better control over which fields are displayed in the form during editing, enhancing the user experience and reducing clutter.
2024-06-04 21:01:36 +01:00
Simon Larsen
085e1a5d76 ```text
refactor: Update DatabaseService encrypt method to handle PartialEntity

This code change updates the `encrypt` method in the `DatabaseService` class to handle `PartialEntity` as an input parameter. Previously, the method only accepted `TBaseModel` as the input type. This improvement allows for encrypting both complete entities and partial entities, providing more flexibility in data encryption.
2024-06-04 20:41:23 +01:00
Simon Larsen
9a3fa080ea refactor: Update MonitorSecret model permissions
This code change updates the permissions for the MonitorSecret model in MonitorSecret.ts. The update includes adding the Permission.EditMonitorSecret permission to the update operation, allowing project owners, project admins, and users with the EditMonitorSecret permission to update MonitorSecret records. This improvement provides better control over who can modify MonitorSecrets and ensures that only authorized users can make changes to sensitive information.
2024-06-04 20:33:35 +01:00
Simon Larsen
db3d1e90f2 refactor: Remove unused Permission.ProjectMember from Label model
This code change removes the unused Permission.ProjectMember from the Label model in Label.ts. The Permission.ProjectMember was mistakenly included in the create, read, update, and delete arrays, but it is not required for these operations. Removing the unused permission improves code clarity and reduces potential confusion.
2024-06-04 20:31:15 +01:00
Simon Larsen
c02d8d8d8c Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-04 20:21:54 +01:00
Simon Larsen
1fad1d7c29 refactor: Update TableRow component to align top in Table
This code change updates the TableRow component in the Table module to align the content at the top of the table cells. The classNames "align-top" are added to the relevant table cells to achieve this alignment. This improvement ensures consistent vertical alignment of content in the table rows.
2024-06-04 20:21:51 +01:00
snyk-bot
ef610e104a 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-04 17:45:55 +00:00
snyk-bot
8f7bec00d4 fix: upgrade react-router-dom from 6.23.0 to 6.23.1
Snyk has created this PR to upgrade react-router-dom from 6.23.0 to 6.23.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-06-04 17:45:49 +00:00
Simon Larsen
ae2a70eb64 Merge pull request #1455 from OneUptime/snyk-upgrade-454393c152713d89bbfd42d5ff28384a
[Snyk] Upgrade react-router-dom from 6.23.0 to 6.23.1
2024-06-04 12:00:54 +01:00
snyk-bot
e56e6a7f8d fix: upgrade react-router-dom from 6.23.0 to 6.23.1
Snyk has created this PR to upgrade react-router-dom from 6.23.0 to 6.23.1.

See this package in npm:
react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-04 05:13:42 +00:00
Simon Larsen
1141d47df7 Merge pull request #1452 from OneUptime/snyk-upgrade-b6c3fc62e0b59f937a4fb3dfd69a2be9
[Snyk] Upgrade react-router-dom from 6.23.0 to 6.23.1
2024-06-04 00:08:03 +01:00
Simon Larsen
9dea2c3bdd Merge pull request #1454 from OneUptime/snyk-upgrade-b79fc44de9934f0f4d9d7f32c5c1fb97
[Snyk] Upgrade @nivo/core from 0.86.0 to 0.87.0
2024-06-04 00:07:51 +01:00
Simon Larsen
9b465badda refactor: Update AnalyticsDatabaseService to handle group by count
This code change updates the AnalyticsDatabaseService to handle the count operation when a group by clause is used. Previously, the count operation would return the total number of rows, but now it correctly counts the number of groups. This improvement ensures accurate counting when grouping data in the analytics database.
2024-06-04 00:05:40 +01:00
Simon Larsen
073f84fe00 refactor: Update secrets.yaml to dynamically generate probe secrets
This code change updates the secrets.yaml file to dynamically generate probe secrets based on the values provided in the $.Values.probes object. If a probe secret already exists, it is used. Otherwise, a new random 32-character alphanumeric string is generated and encoded. This improvement ensures that probe secrets are properly managed and provides better security for sensitive information.
2024-06-03 23:46:04 +01:00
Simon Larsen
c6850f5a0b refactor: Add TableBillingAccessControl to MonitorSecret model
This code change adds the TableBillingAccessControl decorator to the MonitorSecret model in MonitorSecret.ts. The decorator sets the access control permissions for creating, reading, updating, and deleting MonitorSecret records to the Growth subscription plan. This improvement ensures that only users with the Growth plan can perform these actions on MonitorSecrets, providing better control over access to sensitive information.
2024-06-03 23:40:39 +01:00
Simon Larsen
636de9cd57 feat: Add banner with video link for MonitorSecrets page
The code change adds a banner component to the MonitorSecrets page. The banner displays a title, description, and a link to a video tutorial on how to use monitor secrets to store sensitive information. This enhancement provides users with a quick resource to learn about using monitor secrets effectively.
2024-06-03 20:26:39 +01:00
Simon Larsen
79ace6d183 erge branch 'release' 2024-06-03 13:37:43 +01:00
Simon Larsen
366b195152 refactor: Update environment variable setup in test-setup.sh
This code change updates the environment variable setup in the test-setup.sh script. The sed command is used to modify the config.env file, setting the NODE_ENV to 'test' and BILLING_ENABLED to 'true'. Additionally, the DATABASE_HOST is set to 'localhost', DATABASE_PORT to '5400', REDIS_HOST to 'localhost', REDIS_PORT to '6379', REDIS_DB to '0', and REDIS_USERNAME to 'default'. This improvement ensures that the test environment is properly configured with the correct values for testing.
2024-06-03 13:37:23 +01:00
Simon Larsen
bc687bdcdd add tag name 2024-06-03 13:27:08 +01:00
Simon Larsen
bc205a8686 fix infra release 2024-06-03 13:09:48 +01:00
Simon Larsen
e095715a52 feat: Add banner with video link for APIKeyView and TeamView
This code change adds a banner component to the APIKeyView and TeamView pages. The banner displays a title, description, and a link to a 5-minute video tutorial about permissions in OneUptime. This enhancement provides users with a quick resource to learn about permissions and how they work in the application.
2024-06-03 12:28:39 +01:00
Simon Larsen
e634ae0c1e refactor: Update ReadPermission to use object syntax for access control column assignment 2024-06-03 12:09:19 +01:00
Simon Larsen
ee080271e5 refactor: Update ReadPermission to use object syntax for access control column assignment 2024-06-03 11:43:49 +01:00
Simon Larsen
f07346a719 refactor: Improve checkReadBlockPermission method in ReadPermission 2024-06-03 11:30:11 +01:00
Simon Larsen
ace95bf75a refactor: Add checkReadBlockPermission method to ReadPermission
This code change adds the checkReadBlockPermission method to the ReadPermission class in ReadPermission.ts. The method is responsible for checking the block permissions for reading records. It allows the query to run if the system is making the query or if the user has root or master admin privileges. This enhancement provides better control over the reading of records and improves the security of the application.
2024-06-03 11:24:28 +01:00
Simon Larsen
4c53dc15e3 refactor: Add block permission checks to CreatePermission and DeletePermission
This code change adds block permission checks to the CreatePermission and DeletePermission classes. The checkCreateBlockPermissions method is added to the CreatePermission class to check block permissions for creating a new record. Similarly, the checkDeleteBlockPermissions method is added to the DeletePermission class to check block permissions for deleting a record. These enhancements provide better control over the creation and deletion of records and improve the security of the application.
2024-06-03 10:47:36 +01:00
Simon Larsen
ac286e0903 refactor: Add checkCreateBlockPermissions method to CreatePermission
This code change adds the checkCreateBlockPermissions method to the CreatePermission class in CreatePermission.ts. The method is responsible for checking the block permissions for creating a new record. It allows the query to run if the system is making the query or if the user has root or master admin privileges. This enhancement provides better control over the creation of records and improves the security of the application.
2024-06-03 10:16:34 +01:00
Simon Larsen
6595202093 refactor: Add isBlockPermission property to UserPermission and TeamPermission
This code change adds the isBlockPermission property to the UserPermission and TeamPermission interfaces and models. The isBlockPermission property allows for blocking specific permissions for users and teams. This enhancement provides greater control and flexibility in managing permissions within the application.
2024-06-03 09:48:02 +01:00
Simon Larsen
1ff5150765 ```text
refactor: Add user2 to TeamMemberService test for improved coverage

The TeamMemberService test in TeamMemberService.test.ts has been updated to include the addition of user2. This change improves the test coverage by testing the behavior with multiple users.
2024-06-03 09:26:17 +01:00
snyk-bot
13be411fc0 fix: upgrade @nivo/core from 0.86.0 to 0.87.0
Snyk has created this PR to upgrade @nivo/core from 0.86.0 to 0.87.0.

See this package in npm:
@nivo/core

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:36 +00: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
Simon Larsen
9d596c00da refactor: Update BaseAPI test to use updateOneById instead of updateOneBy
The BaseAPI test in BaseAPI.test.ts has been updated to use the updateOneById method instead of the updateOneBy method. This change ensures consistency in method naming and improves code readability.
2024-06-02 23:10:03 +01:00
Simon Larsen
6a285df796 refactor: Simplify generatePhone method in Faker.ts
The `generatePhone` method in `Faker.ts` has been simplified to remove unnecessary character replacements and instead directly generate a random 10-digit phone number. This change improves the efficiency and readability of the code.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 22:54:59 +01:00
Simon Larsen
a053cc53eb refactor: Remove unnecessary characters from generated phone numbers in Faker.ts 2024-06-02 22:48:25 +01:00
Simon Larsen
14647f6bd5 refactor: Update BaseAPI test to use updateOneById instead of updateOneBy
The BaseAPI test in BaseAPI.test.ts has been updated to use the updateOneById method instead of the updateOneBy method. This change ensures consistency in method naming and improves code readability.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 22:19:36 +01:00
Simon Larsen
bc1d629576 refactor: Add notInBetween method to QueryHelper for querying records not in a specified range
The `notInBetween` method has been added to the `QueryHelper` class in `Database/QueryHelper.ts`. This method allows for querying records that are not within a specified range of values. It accepts a start value and an end value, and generates a `NOT IN` clause for the query. This enhancement provides greater flexibility in constructing complex queries and improves the overall query capabilities of the application.
2024-06-02 21:58:05 +01:00
Simon Larsen
c19b4e7040 refactor: Add notIn method to QueryHelper for improved query flexibility
The `notIn` method has been added to the `QueryHelper` class in `Database/QueryHelper.ts`. This method allows for querying records that are not in a specified list of values. It accepts an array of strings or ObjectIDs and generates a `NOT IN` clause for the query. This enhancement provides greater flexibility in constructing complex queries and improves the overall query capabilities of the application.
2024-06-02 21:45:18 +01:00
Simon Larsen
fca2c74817 refactor: Improve generatePhone method in Faker.ts
The `generatePhone` method in `Faker.ts` has been updated to remove unnecessary characters from the generated phone number. This change improves the consistency and simplicity of generating phone numbers using the Faker library.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 21:38:26 +01:00
Simon Larsen
737c785e73 refactor: Update APIKeyView table descriptions for better clarity
The table descriptions in the APIKeyView component have been updated to provide clearer information about managing permissions for API keys. This change improves the user experience and ensures that the purpose of the table is easily understood.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 21:31:26 +01:00
Simon Larsen
25edb45e10 refactor: Add isBlockPermission property to UserPermission and TeamPermission
This code change adds the isBlockPermission property to the UserPermission and TeamPermission interfaces and models. The isBlockPermission property allows for blocking specific permissions for users and teams. This enhancement provides greater control and flexibility in managing permissions within the application.
2024-06-02 21:27:23 +01:00
Simon Larsen
17308692b0 refactor: Update generatePhone method in Faker.ts 2024-06-02 21:08:29 +01:00
Simon Larsen
6785e62edd refactor: Update generatePhone method in Faker.ts
The `generatePhone` method in `Faker.ts` has been updated to remove the country code parameter from the `faker.phone.number` function call. This change improves the consistency and simplicity of generating phone numbers using the Faker library.
2024-06-02 21:06:10 +01:00
Simon Larsen
a1c761f618 refactor: Add validation for required fields in ApiKeyPermissionService and TeamPermissionService
This code change adds validation for the required fields in the ApiKeyPermissionService and TeamPermissionService. It throws a BadDataException if any of the required fields (apiKeyId, projectId, permission) are missing when creating a permission. Additionally, it checks if the permission is already assigned to the API key or team and throws an error if it is. These enhancements improve data integrity and prevent invalid permissions from being created.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 20:52:32 +01:00
Simon Larsen
29686f8167 feat: Add isBlockPermission property to UserPermission, UserTenantAccessPermission, ApiKeyPermission, and TeamPermission
This code change adds the isBlockPermission property to the UserPermission, UserTenantAccessPermission, ApiKeyPermission, and TeamPermission interfaces and models. The isBlockPermission property allows for blocking specific permissions for users, tenants, API keys, and teams. This enhancement provides greater control and flexibility in managing permissions within the application.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 20:47:49 +01:00
Simon Larsen
235fd6722e refactor: Remove BlockedApiKeyPermissionService and BlockedTeamPermissionService
This code change removes the BlockedApiKeyPermissionService and BlockedTeamPermissionService files, as well as their corresponding models. These services and models are no longer needed and have been deleted to improve code organization and maintainability.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 20:42:18 +01:00
snyk-bot
7286825f82 fix: upgrade react-router-dom from 6.23.0 to 6.23.1
Snyk has created this PR to upgrade react-router-dom from 6.23.0 to 6.23.1.

See this package in npm:
react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-02 17:43:19 +00:00
Simon Larsen
e344c6d3d1 refactor: Add BlockedApiKeyPermission and BlockedTeamPermission services and models
This code change adds the BlockedApiKeyPermissionService and BlockedTeamPermissionService services, as well as the BlockedApiKeyPermission and BlockedTeamPermission models. These additions provide functionality for managing blocked permissions for API keys and teams. This enhancement improves the flexibility and security of the application.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 13:38:07 +01:00
Simon Larsen
2751beae1d refactor: Update TeamMemberService.test.ts for better readability and maintainability 2024-06-02 13:27:17 +01:00
Simon Larsen
f1919d3964 refactor: Update TeamMemberService.test.ts for better readability and maintainability
This code change updates the TeamMemberService.test.ts file to improve readability and maintainability. It refactors the code to remove duplicated lines and uses jest.spyOn to mock the AccessTokenService methods. These changes enhance the code quality and test coverage.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 13:02:31 +01:00
Simon Larsen
de261142e5 refactor: Improve clarity and maintainability in BaseAPI.test.ts
This code change improves the clarity and maintainability of the BaseAPI.test.ts file. It removes unnecessary code and updates the logic for deleting and updating items. These changes enhance the code quality and test coverage.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 12:35:48 +01:00
Simon Larsen
0bfc28fedc refactor: Rename deleteById method to deleteOneById in BaseAPI and DatabaseService
This code change renames the deleteById method to deleteOneById in the BaseAPI and DatabaseService classes. The new method name provides better clarity and consistency with other methods in the codebase. This change improves the readability and maintainability of the code.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 12:29:04 +01:00
Simon Larsen
a59e4cb76b refactor: Add deleteById and updateById methods to DatabaseService
This code change adds the deleteById and updateById methods to the DatabaseService class. These methods allow for more efficient deletion and updating of records in the database by directly targeting the record's ID. This enhancement improves the performance and flexibility of the DatabaseService.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 11:58:10 +01:00
Simon Larsen
ebb9c58758 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-02 11:48:52 +01:00
Simon Larsen
ee2df1a132 refactor: Improve clarity and maintainability in AccessControlPermission.ts 2024-06-02 11:48:48 +01:00
Simon Larsen
b33dc0ff69 Merge pull request #1448 from OneUptime/snyk-upgrade-0032ed3b91a482732c24656615bdd970
[Snyk] Upgrade react-router-dom from 6.23.0 to 6.23.1
2024-06-02 11:48:33 +01:00
Simon Larsen
80c3bb9dda Merge pull request #1449 from OneUptime/snyk-upgrade-21c5f91e22e4be5a53b1778c80645f80
[Snyk] Upgrade posthog-js from 1.131.3 to 1.131.4
2024-06-02 11:48:24 +01:00
Simon Larsen
283fbda8ee refactor: Improve clarity and maintainability in AccessControlPermission.ts
This code change improves the clarity and maintainability of the AccessControlPermission.ts file. It removes unnecessary code and updates the logic for checking user permissions to delete or update objects in the table. These changes enhance the code quality and user experience.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 11:44:24 +01:00
Simon Larsen
a67c70396f refactor: Improve clarity and maintainability in TeamView and APIKeyView components
This code change improves the clarity and maintainability of the TeamView and APIKeyView components. The commit updates the rendering of the permission restrictions messages to have consistent line breaks and spacing. It also adds missing punctuation and capitalization for better readability. These changes enhance the user experience and code quality.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 11:33:21 +01:00
Simon Larsen
3aeb22a253 refactor: Update APIKeyView and TeamView titles for better clarity
This code change updates the titles of the APIKeyView and TeamView components to improve clarity. The titles "API Key Permissions" and "Team Permissions" are changed to "Allow Permissions" to better reflect their purpose. This change enhances the user understanding and usability of the components.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 11:20:12 +01:00
Simon Larsen
070031d703 refactor: Update DatabaseService.ts to set access control column with specific properties
This code change updates the DatabaseService.ts file to set the access control column with specific properties when retrieving data. Instead of setting it to a boolean value, the access control column is now set to an object with the properties _id and name set to true. This change enhances the flexibility and maintainability of the code.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 09:58:49 +01:00
Simon Larsen
a30104fe06 refactor: Remove unused code and improve type safety in AccessControlModel.ts, DatabaseService.ts, LabelService.ts, and ColumnPermission.ts 2024-06-02 09:36:33 +01:00
Simon Larsen
76677233df refactor: Update DatabaseService.ts and ColumnPermission.ts for improved type safety
This code change updates the DatabaseService.ts and ColumnPermission.ts files to improve type safety. In DatabaseService.ts, the type of the projectIdColumn variable is changed from keyof TBaseModel | null to string | null, ensuring compatibility with the getTenantColumn() method. In ColumnPermission.ts, the type of the permissionColumns variable is changed from Columns<TBaseModel> to Columns, removing unnecessary type specificity. These changes enhance the code's clarity and maintainability.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 09:34:03 +01:00
Simon Larsen
e1054c2572 refactor: Improve flexibility and maintainability in LabelService.ts and TableColumn.ts
This code change adds flexibility and maintainability improvements to the LabelService.ts and TableColumn.ts files. In LabelService.ts, a constructor is added to the Service class, allowing for the injection of a PostgresDatabase instance. In TableColumn.ts, the propertyKey parameter in the getTableColumn function is changed from keyof T to string, providing more flexibility in handling property keys. These changes enhance the usability and maintainability of the code.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 09:32:06 +01:00
Simon Larsen
e3e684352f refactor: Override name property in Label class
This code change overrides the name property in the Label class to allow for more flexibility in handling scenarios where the name is not specified. By setting the name property to undefined, it improves the usability and maintainability of the code.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 22:44:18 +01:00
snyk-bot
f9472a1308 fix: upgrade posthog-js from 1.131.3 to 1.131.4
Snyk has created this PR to upgrade posthog-js from 1.131.3 to 1.131.4.

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-01 21:36:34 +00:00
snyk-bot
2113022d11 fix: upgrade react-router-dom from 6.23.0 to 6.23.1
Snyk has created this PR to upgrade react-router-dom from 6.23.0 to 6.23.1.

See this package in npm:
react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-01 21:21:09 +00:00
Simon Larsen
f21cb43b5b refactor: Update DeleteOneBy.ts to allow undefined deletedByUser
This code change updates the DeleteOneBy.ts file to allow the `deletedByUser` property to be undefined. This change provides more flexibility in handling scenarios where the deletedByUser is not specified. It improves the usability and maintainability of the code.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 20:54:48 +01:00
Simon Larsen
5e7285fa66 refactor: Update ModelPermission.ts to use specific query permission methods
This code change updates the ModelPermission.ts file to use specific query permission methods for delete, update, and read operations. The checkDeleteQueryPermission, checkUpdateQueryPermissions, and checkReadQueryPermission methods provide more granular control and improve the clarity and maintainability of the code.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 19:40:30 +01:00
Simon Larsen
ff1195c837 refactor: Remove unnecessary code in DatabaseService.ts 2024-06-01 19:37:32 +01:00
Simon Larsen
2f5f147ab4 refactor: Remove debugger statements and improve code readability in DatabaseService.ts
This code change removes the debugger statements from the _deleteBy method in DatabaseService.ts and improves code readability by reformatting the code and removing unnecessary comments. The changes enhance the maintainability and clarity of the code.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 19:37:02 +01:00
Simon Larsen
f4005ee351 refactor: Update queries to use QueryHelper.inRelationArray for monitors
This code change updates the queries in DatabaseService.ts, IncidentService.ts, and ScheduledMaintenanceStateTimelineService.ts to use the QueryHelper.inRelationArray method instead of QueryHelper.anyRelationArray for the "monitors" property. This change provides a more accurate and efficient way to query for records related to specific monitors. It improves the accuracy and performance of the queries.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 19:33:53 +01:00
Simon Larsen
549e41119c refactor: Update createdAt queries to use QueryHelper.inBetween
This code change updates the createdAt queries in multiple files to use the QueryHelper.inBetween method instead of QueryHelper.anyBetween. The inBetween method provides a more accurate and efficient way to query for records within a specific date range. This change improves the accuracy and performance of the queries.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 19:32:12 +01:00
Simon Larsen
0f76e075ce refactor: Update QueryHelper to use FindOperator for any and in methods
This code change updates the QueryHelper class to use the FindOperator type for the any and in methods. This allows for more flexibility in querying by accepting an array of values or a single value. The change improves code readability and maintainability.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 19:31:20 +01:00
Simon Larsen
7212b93836 refactor: Simplify adding access control IDs to query in BasePermission.ts 2024-06-01 18:04:46 +01:00
Simon Larsen
aca335aa8f refactor: Update ModelPermission.ts to improve code readability and maintainability 2024-06-01 17:45:14 +01:00
Simon Larsen
1053f52b2b Merge branch 'release' 2024-06-01 17:28:50 +01:00
Simon Larsen
4ef8a8d0f9 refactor: Update Go version and use specific ref in release workflow
This code change updates the Go version used in the release workflow and modifies the "Checkout" step to use a specific ref instead of fetching the entire history. By specifying the ref, the workflow will only fetch the necessary code, reducing the time and resources required for the checkout process.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 17:27:18 +01:00
Simon Larsen
8d183ceee6 refactor: Update checkout step in release workflow
This code change updates the checkout step in the release workflow to use the `ref` parameter instead of `fetch-depth`. This ensures that the correct branch or tag is checked out during the workflow execution.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 17:26:52 +01:00
Simon Larsen
d2a58fbe97 refactor: Reorder imports in CreatePermission.ts and UpdatePermission.ts
This code change reorders the imports in the CreatePermission.ts and UpdatePermission.ts files to group related imports together and improve code readability. The imports are now organized in the following order:
1. External dependencies
2. Internal dependencies
3. Local dependencies

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 17:21:01 +01:00
Simon Larsen
9b115da0be Merge branch 'master' of github.com:OneUptime/oneuptime 2024-06-01 17:20:20 +01:00
Simon Larsen
e46133d678 refactor: Update ModelPermission.ts to improve code readability and maintainability 2024-06-01 17:20:14 +01:00
Simon Larsen
c9bf2e3bf1 Merge pull request #1445 from OneUptime/snyk-upgrade-af76d864ab171838e05700ac0e1500b0
[Snyk] Upgrade protobufjs from 7.2.6 to 7.3.0
2024-06-01 16:50:34 +01:00
Simon Larsen
2c16b5ab7d Merge pull request #1447 from OneUptime/snyk-fix-418ca58fe385c0a1a5ff7575c3cda99b
[Snyk] Security upgrade nginx from 1.25.5-alpine to 1.26.1-alpine
2024-06-01 16:50:26 +01:00
Simon Larsen
f7339723cd refactor: Update ModelPermission.ts to improve code readability and maintainability 2024-06-01 15:17:26 +01:00
Simon Larsen
c2e04e94e2 refactor: Update ModelPermission.ts to improve code readability and maintainability
This code change in ModelPermission.ts improves code readability and maintainability by removing unnecessary code, updating function parameters, and adding comments for clarity. The changes include:
- Removing unused function parameters in CheckReadPermissionType and checkReadPermission functions
- Updating the checkIfUserIsLoggedIn function call to include the type parameter
- Refactoring the checkModelLevelPermissions function to include the type parameter
- Adding a comment to clarify the purpose of the checkBillingPermissions function

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 15:09:42 +01:00
Simon Larsen
bbb2f8d154 refactor: Remove unnecessary code in ModelPermission.ts
This code change removes unnecessary code in the ModelPermission.ts file. The empty lines and unused function parameters have been removed to improve code readability and maintainability.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 14:50:17 +01:00
Simon Larsen
4ab9e8b398 refactor: Update access control permissions in PermissionHelper
This code change updates the access control permissions in the PermissionHelper class. The "isAccessControlPermission" property for various permissions has been changed from "true" to "false". This ensures that the specified permissions no longer have access control restrictions.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 14:49:35 +01:00
Simon Larsen
d0e6153758 refactor: Import Stripe and mockStripe together in BillingService.test.ts
This code change updates the import statements in BillingService.test.ts to import both the Stripe and mockStripe modules from the same line. This improves code readability and ensures that both modules are imported consistently.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-01 14:36:16 +01:00
Simon Larsen
f308407f68 refactor: Update TeamPermissionService to include projectId in select props
This code change updates the TeamPermissionService to include the "projectId" property in the select props when querying for team members. This ensures that the "projectId" value is retrieved along with the "userId" value, allowing for easier access to the project ID in subsequent code logic.
2024-06-01 14:35:25 +01:00
Simon Larsen
93ba752e8c refactor: Update TeamPermissionService to include projectId in select props
This code change updates the TeamPermissionService to include the "projectId" property in the select props when querying for team members. This ensures that the "projectId" value is retrieved along with the "userId" value, allowing for easier access to the project ID in subsequent code logic.
2024-05-31 22:00:13 +01:00
Simon Larsen
230d345406 refactor: Remove unused "RemoveCanFromPermissions" import in DataMigrations/Index.ts 2024-05-31 21:54:37 +01:00
Simon Larsen
7e51da56f6 refactor: Update TeamPermissionService to include projectId in select props
This code change updates the TeamPermissionService to include the "projectId" property in the select props when querying for team members. This ensures that the "projectId" value is retrieved along with the "userId" value, allowing for easier access to the project ID in subsequent code logic.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-31 21:52:01 +01:00
Simon Larsen
cab9fd08fa refactor: Remove unused "RemoveCanFromPermissions" import in DataMigrations/Index.ts
This code change removes the unused import statement for "RemoveCanFromPermissions" in the "DataMigrations/Index.ts" file. The import is no longer needed and can be safely removed to improve code readability and maintainability.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-31 19:33:33 +01:00
Simon Larsen
461f69b11e refactor: Update permission names in NotificationAPI.ts, DataMigration.ts, BillingPaymentMethodAPI.ts, BillingInvoiceAPI.ts, and PromoCode.ts
This code change updates the permission names in multiple files to align with the latest naming conventions. The following changes were made:

- In NotificationAPI.ts, the permission name "CanManageProjectBilling" was changed to "ManageProjectBilling".
- In DataMigration.ts, the permission names "CanCreateProjectLabel" and "CanReadProjectLabel" were changed to "CreateProjectLabel" and "ReadProjectLabel" respectively.
- In BillingPaymentMethodAPI.ts, the permission name "CanCreateBillingPaymentMethod" was changed to "CreateBillingPaymentMethod".
- In BillingInvoiceAPI.ts, the permission name "CanEditInvoices" was changed to "EditInvoices".
- In PromoCode.ts, the permission names "CanCreateProjectLabel" and "CanReadProjectLabel" were changed to "CreateProjectLabel" and "ReadProjectLabel" respectively. Additionally, the permission names "CanReadProject" and "CanEditProject" were changed to "ReadProject" and "EditProject" respectively.

These updates ensure that the permission names are consistent and reflect the intended functionality.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-31 19:23:45 +01:00
Simon Larsen
ad7a5bddcb remove dup service 2024-05-31 19:01:29 +01:00
Simon Larsen
a64feacb5c refactor: Update TeamPermissionService to refresh access permissions for team members
This code change updates the TeamPermissionService to refresh access permissions for team members when they are deleted. Previously, only the user's global access permission was refreshed, but now both the global and tenant access permissions are refreshed. This ensures that the user's access permissions are up to date after a team member is deleted.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-31 17:55:39 +01:00
Simon Larsen
a27b51ea94 refactor: Update Prettier configuration to include @trivago/prettier-plugin-sort-imports
This code change updates the .prettierrc.json file to include the @trivago/prettier-plugin-sort-imports plugin. By adding this plugin, the codebase will automatically sort imports according to specified rules. This improves code organization and maintainability.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-31 17:44:51 +01:00
Simon Larsen
a0f7324c01 refactor: Simplify getTestDataSourceOptions in PostgresConfig.ts 2024-05-31 17:40:25 +01:00
Simon Larsen
c3b0302cbe revert haraka changes 2024-05-31 17:35:21 +01:00
snyk-bot
0c264bcd32 fix: Nginx/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE319-BUSYBOX-6913413
- https://snyk.io/vuln/SNYK-ALPINE319-BUSYBOX-6913413
- https://snyk.io/vuln/SNYK-ALPINE319-BUSYBOX-6928845
- https://snyk.io/vuln/SNYK-ALPINE319-BUSYBOX-6928846
- https://snyk.io/vuln/SNYK-ALPINE319-BUSYBOX-6928847
2024-05-31 15:49:59 +00:00
Simon Larsen
abc7a43d1b refactor: Simplify getTestDataSourceOptions in PostgresConfig.ts
This code change simplifies the `getTestDataSourceOptions` function in `PostgresConfig.ts` by using `process.env` values directly. By removing the conditional fallback to `'localhost'`, the function now relies solely on the environment variable `DATABASE_HOST` for the host value. This change ensures that the function always retrieves the latest values during test runs, as `process.env` can change dynamically.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-31 14:06:53 +01:00
Simon Larsen
05e9282d7f Update Haraka SMTP and TLS configurations to listen on port 25 instead of port 2525
This code change modifies the Haraka SMTP and TLS configurations to listen on port 25 instead of port 2525. The previous configuration used port 2525, but it has been changed to align with the standard SMTP port. This update ensures that the Haraka server can receive incoming emails on the correct port.
2024-05-31 13:35:35 +01:00
Simon Larsen
75d2a01a5a refactor: Use process.env values directly in getTestDataSourceOptions
This code change refactors the `getTestDataSourceOptions` function in `PostgresConfig.ts` to use `process.env` values directly. This change is made to ensure that the function always retrieves the latest values during test runs, as `process.env` can change dynamically. By removing the conditional fallback to `'localhost'`, the function relies solely on the environment variable `DATABASE_HOST` for the host value. This simplifies the code and improves consistency.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-31 13:27:46 +01:00
Simon Larsen
8d02eddfc6 Update PostgresConfig.ts and PostgresDatabase.ts to use a function for testDataSourceOptions 2024-05-31 13:27:02 +01:00
Simon Larsen
33d38611e2 chore: Update Stripe.mock.ts to allow null value for mockStripe
This code change updates the Stripe.mock.ts file to allow the mockStripe variable to have a null value. This change is necessary to properly handle scenarios where the Stripe library is not mocked. By allowing the variable to be null, it ensures that the code can handle both mocked and non-mocked scenarios without causing errors.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-31 13:03:59 +01:00
Simon Larsen
31335ee6b5 Update host_list configuration file path in Dockerfile 2024-05-31 13:01:11 +01:00
Simon Larsen
6eb228d0b8 chore: Add INCOMING_EMAIL_DOMAIN to host_list configuration
This code change adds the INCOMING_EMAIL_DOMAIN variable to the host_list configuration in the Haraka init.sh script. This ensures that incoming emails from the specified domain are accepted by the Haraka application. The INCOMING_EMAIL_DOMAIN value is appended to the host_list file, allowing the application to properly handle emails from this domain.
2024-05-31 12:59:23 +01:00
snyk-bot
0ef82aef01 fix: upgrade protobufjs from 7.2.6 to 7.3.0
Snyk has created this PR to upgrade protobufjs from 7.2.6 to 7.3.0.

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-05-31 04:55:47 +00:00
Simon Larsen
f644ac117f chore: Update Dockerfile to include loglevel configuration 2024-05-30 21:25:44 +01:00
Simon Larsen
08ddfb1017 chore: Update Dockerfile to include email_parser.js plugin and install dependencies
This code change updates the Dockerfile for the Haraka application. It adds the email_parser.js plugin to the /harakaapp/plugins directory and installs the necessary dependencies by copying the package.json and package-lock.json files to the /harakaapp directory and running npm install. This update ensures that the email parsing functionality is properly configured and all required dependencies are installed.
2024-05-30 21:07:05 +01:00
Simon Larsen
68724478da chore: Update HelmChart values.yaml to use ClusterIP for internalSmtp type
This code change updates the HelmChart values.yaml file to change the type of the internalSmtp service from LoadBalancer to ClusterIP. The LoadBalancer type was causing issues with receiving emails from the internet, so this change provides a workaround by using the ClusterIP type instead. This update ensures that the internalSmtp service can properly receive emails and improves the functionality of the application.
2024-05-30 20:34:14 +01:00
Simon Larsen
ca621bf41c feat: Add support for additional email ports
This code change adds support for additional email ports in the Haraka configuration. It exposes ports 110, 25, 587, 465, 143, 993, and 995 for POP3, SMTP, IMAP, and their secure variants. This enhancement allows for more flexible email communication options.
2024-05-30 20:30:44 +01:00
Simon Larsen
c470abf36c feat: Add host_list.ini configuration file and update email_parser.js plugin
The code changes include adding a new configuration file `host_list.ini` to the Haraka config directory. This file will be used to store a list of allowed hosts for incoming emails. Additionally, the `email_parser.js` plugin file has been moved to the correct directory in the Haraka config. This update ensures that the email parsing functionality is properly configured and the list of allowed hosts is maintained.
2024-05-30 20:12:07 +01:00
Simon Larsen
39bd722cf5 chore: Update Haraka config plugins
This code change updates the Haraka config plugins file to include additional plugins for blocking mails from known bad hosts, blocking mail from known bad HELOs, blocking mail from known bad email addresses, and accepting mail only from domains with resolvable MX records. It also removes the emailParser.js plugin file.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-30 20:04:12 +01:00
Simon Larsen
3851827afb feat: Add mailparser npm dependency 2024-05-30 19:39:07 +01:00
Simon Larsen
cd5c333d97 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-30 19:35:40 +01:00
Simon Larsen
fee16520df change default log level 2024-05-30 19:35:22 +01:00
Simon Larsen
025648482e Merge pull request #1443 from OneUptime/snyk-upgrade-e1f8734d934eff9fb30ddb40ca654522
[Snyk] Upgrade posthog-js from 1.130.2 to 1.131.3
2024-05-30 10:46:53 +01:00
Simon Larsen
89a3d3a6ac refactor: Update secrets.yaml to handle release upgrades
This code change updates the secrets.yaml file to handle release upgrades. It introduces a workaround to keep the secrets unchanged during upgrades by retrieving the existing secrets if the release is an upgrade. For new installations, it generates new secrets using the randAlphaNum function. This enhancement ensures that secrets are properly managed during upgrades and installations.
2024-05-30 10:43:25 +01:00
Simon Larsen
e4da9c5212 refactor: Improve password reset email functionality
This code change refactors the `Authentication.ts` file to improve the functionality of the password reset email. It updates the logic for generating the password reset URL and adds logging statements to track the user's email and the generated URL. This enhancement ensures a smoother password reset process and improves the visibility of user actions in the system.
2024-05-30 10:15:31 +01:00
Simon Larsen
1e61fec929 feat: Set current project in App component
This code change adds logic to set the current project in the `App` component. It checks if a `selectedProject` is available and if so, it calls the `ProjectUtil.setCurrentProject` function with the `selectedProject`. This enhancement ensures that the current project is correctly set and improves the functionality of the application.
2024-05-30 09:56:59 +01:00
Simon Larsen
6a76665c79 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-30 09:55:13 +01:00
Simon Larsen
2d3d0449e5 feat: Add ProjectUtil.setCurrentProject to App component
This code change adds the import statement for `ProjectUtil` and calls the `setCurrentProject` function with the `selectedProject` in the `App` component. This enhancement ensures that the current project is set correctly and improves the functionality of the application.
2024-05-30 09:54:33 +01:00
snyk-bot
fee5132e7e fix: upgrade posthog-js from 1.130.2 to 1.131.3
Snyk has created this PR to upgrade posthog-js from 1.130.2 to 1.131.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-05-30 03:30:10 +00:00
Simon Larsen
2dbb91ba24 Merge pull request #1442 from OneUptime/release
refactor: Improve event item descriptions and labels
2024-05-29 17:47:50 +01:00
Simon Larsen
9a37c4b031 refactor: Improve event item descriptions and labels
This code change refactors the EventItem component to improve the display of event descriptions and labels. It updates the CSS classes for the event descriptions to enhance readability and adds CSS classes for the event labels to improve their styling. This enhancement improves the overall appearance and user experience of the EventItem component.
2024-05-29 16:52:53 +01:00
Simon Larsen
d3d64979e0 refactor: Add logging statements for status checks
The code change adds logging statements for the status checks in the StatusAPI file. The logging statements provide information about the status checks being performed, including the result of each check. This enhancement improves the visibility and monitoring of the status checks in the system.
2024-05-29 16:37:11 +01:00
Simon Larsen
c6efe40f3b refactor: Add logging statements for user sign up, email verification, password reset, and login
This code change adds logging statements for user sign up, email verification, password reset, and login in the Authentication.ts and SSO.ts files. The logging statements provide information about the corresponding user actions, including the user's email. This enhancement improves the visibility and monitoring of user activities in the system.
2024-05-29 15:45:48 +01:00
Simon Larsen
d0ace48aeb refactor: Add selectedProject prop to DashboardHeader component
This code change adds the selectedProject prop to the DashboardHeader component in the Header.tsx file. The prop is used to pass the currently selected project to the component, allowing it to display the selected project's information. This enhancement improves the functionality and user experience of the DashboardHeader component.
2024-05-29 15:27:37 +01:00
Simon Larsen
faf0641503 refactor: Update package.json and Encryption.ts to use latest version of crypto-js 2024-05-29 15:25:09 +01:00
Simon Larsen
4fcc066971 Merge remote-tracking branch 'origin/snyk-upgrade-9bde7b8ad7df926b5588a93ac9081118' 2024-05-29 13:59:08 +01:00
Simon Larsen
e37347a611 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-29 13:58:24 +01:00
Simon Larsen
95dbeaddba refactor: Update DocsNav to include Monitor Secrets page
This code change updates the DocsNav file to include a new navigation item for the Monitor Secrets page. It adds a new object to the DocsNav array with the title "Monitor Secrets" and the URL "/docs/monitor/monitor-secrets". This enhancement improves the navigation experience for users accessing the Monitor Secrets documentation.
2024-05-29 13:56:38 +01:00
Simon Larsen
5a12e70742 refactor: Update Encryption.ts to use Utf8 encoding for decryption
This code change updates the Encryption.ts file to use the Utf8 encoding for decryption in the `decrypt` method. Previously, it was using the default encoding, which could lead to incorrect results for certain inputs. This update ensures the correct decoding of the encrypted text and improves the reliability of the decryption process.
2024-05-29 13:20:56 +01:00
Simon Larsen
ab0b7bb6ec refactor: Update MonitorSecrets page to display monitors with access to secrets 2024-05-29 12:47:21 +01:00
Simon Larsen
c9874df43f refactor: Add null checks in DatabaseService and Encryption
This code change adds null checks in the DatabaseService and Encryption classes to handle cases where the input data is null or undefined. It prevents potential errors and improves the robustness of the code.
2024-05-29 11:52:50 +01:00
Simon Larsen
594a44392d Merge pull request #1438 from OneUptime/snyk-upgrade-0f21f366f23af175b83fbe7a993653de
[Snyk] Upgrade posthog-js from 1.130.1 to 1.130.2
2024-05-29 11:41:24 +01:00
Simon Larsen
5b9232c785 ```text
refactor: Update package.json and Encryption.ts to use latest version of crypto-js

This code change updates the package.json and Encryption.ts files to use the latest version (4.2.0) of the crypto-js library. It adds the "@types/crypto-js" package as a dependency in the package.json file and updates the import statements in the Encryption.ts file to use the updated library. This update ensures compatibility with the latest features and improvements in crypto-js.
2024-05-29 11:41:05 +01:00
Simon Larsen
06b7f5c236 refactor: Update JSON.ts imports
This code change updates the imports in the JSON.ts file to remove unused imports and organize the imports alphabetically. It improves code readability and maintainability.
2024-05-28 21:33:44 +01:00
Simon Larsen
f20f833720 refactor: Update MonitorSecrets page to display monitors with access to secrets
This code change updates the MonitorSecrets page to display the monitors that have access to the secrets. It adds a new field in the form to select the monitors and renders the selected monitors using the MonitorsElement component. This enhancement improves the visibility and management of secret access for monitors.
2024-05-28 20:13:58 +01:00
Simon Larsen
91c37a2a9e refactor: Update MonitorSecretService to use MonitorSecret model 2024-05-28 20:10:15 +01:00
Simon Larsen
937879aa68 refactor: Update MonitorSecretService to use MonitorSecret model
This code change updates the MonitorSecretService to use the MonitorSecret model instead of the deprecated MonitorProbe model. This refactor ensures consistency and improves code maintainability.
2024-05-28 20:09:25 +01:00
Simon Larsen
df77fdac74 feat: Add Monitor Secrets functionality
This code change adds the necessary functionality for managing Monitor Secrets. It includes updates to the PageMap, SettingsBreadcrumbs, and RouteMap files to support the new "SETTINGS_MONITOR_SECRETS" page. Additionally, the "SETTINGS_MONITOR_SECRETS" route is added to the SettingsRoutePath dictionary. This enhancement improves the application's security and access control.
2024-05-28 20:01:51 +01:00
Simon Larsen
28917b3fcb Merge pull request #1440 from OneUptime/snyk-upgrade-24a45d8b5a59e57a4cd97e1bc201f713
[Snyk] Upgrade @types/lodash from 4.17.0 to 4.17.1
2024-05-28 19:57:25 +01:00
Simon Larsen
853715b17c refactor: Update .prettierrc.json with importOrderParserPlugins option
This code change updates the .prettierrc.json file by adding the "importOrderParserPlugins" option with the values ["typescript", "decorators"]. This enhancement allows the Prettier formatter to correctly parse and sort imports that include TypeScript and decorators. It improves the code formatting and organization.
2024-05-28 19:57:03 +01:00
Simon Larsen
5bdc381925 refactor: Add MonitorSecret permissions 2024-05-28 19:54:50 +01:00
Simon Larsen
c499df2812 ```text
refactor: Add @trivago/prettier-plugin-sort-imports to package.json and .prettierrc.json

This code change adds the "@trivago/prettier-plugin-sort-imports" package as a dependency in the package.json file and includes it in the "plugins" array in the .prettierrc.json file. It also sets the "importOrderSeparation" and "importOrderSortSpecifiers" options to true. This enhancement improves the code formatting and organization by automatically sorting imports.
2024-05-28 19:53:53 +01:00
Simon Larsen
5ef5dbf562 refactor: Add MonitorSecret permissions
This code change adds the necessary permissions for managing MonitorSecrets. The new permissions include CanCreateMonitorSecret, CanEditMonitorSecret, CanDeleteMonitorSecret, and CanReadMonitorSecret. These permissions allow users to create, edit, delete, and read MonitorSecrets respectively. This enhancement improves the access control and security of the application.
2024-05-28 19:46:59 +01:00
Simon Larsen
332aa47e63 refactor: Remove unnecessary checks for event.monitors in SendNotificationToSubscribers.ts 2024-05-28 17:07:23 +01:00
snyk-bot
cb1ddfe0df fix: upgrade @types/lodash from 4.17.0 to 4.17.1
Snyk has created this PR to upgrade @types/lodash from 4.17.0 to 4.17.1.

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-05-25 23:09:44 +00:00
Simon Larsen
d5bb29f9b4 Merge pull request #1439 from OneUptime/metrics-box
Metrics box
2024-05-24 13:23:59 +01:00
Simon Larsen
5f851b6936 refactor: Remove server monitor from SummaryView
This code change removes the rendering of the server monitor from the SummaryView component. The monitorType prop is checked, and if it is set to MonitorType.Server, the server monitor is not rendered. This change simplifies the SummaryView component and improves code organization.
2024-05-24 13:19:00 +01:00
Simon Larsen
5fa7c5baaa refactor: Remove Webkit browser support
The code changes in this commit remove support for the Webkit browser in the BrowserType enum and SyntheticMonitor module. The Webkit browser was commented out and not being used, so it was decided to remove it to simplify the codebase and reduce unnecessary dependencies. This refactor improves code organization and maintainability.
2024-05-24 13:14:02 +01:00
Simon Larsen
557c3f1427 refactor: Update title in CustomMonitorSummaryView and SyntheticMonitorItemView components
The code changes in this commit update the title in the CustomMonitorSummaryView and SyntheticMonitorItemView components. The title "Is Error" is changed to "Error" to provide clearer and more concise information to users. This enhancement improves the user experience and readability of the components.
2024-05-24 12:58:07 +01:00
Simon Larsen
a14614b7de refactor: Improve page load performance with lazy loading for images 2024-05-24 12:44:34 +01:00
Simon Larsen
cc1c968d3c refactor: Remove unused Metrics components
The code changes in this commit remove the unused Metrics components: ProbeNowButton.tsx, MetricsScreenshot.tsx, MetricsScreenshotGroup.tsx, PingMonitorView.tsx, and ProbePicker.tsx. These components are no longer needed and removing them improves code organization and maintainability.
2024-05-24 12:37:36 +01:00
Simon Larsen
1830f031e9 refactor: Update email verification confirmation message
The code changes in this commit update the confirmation message for email verification. Instead of just displaying the user's email, it now includes the text "Are you sure you want to verify the email -" before the email address. This change provides clearer context and improves the user experience.
2024-05-24 11:39:58 +01:00
Simon Larsen
5d8dd6ef3c refactor: Add email verification functionality to Users page
The code changes in this commit add email verification functionality to the Users page. This includes adding a "Verify Email" button to each user's row in the table. Clicking the button opens a confirmation modal asking if the user's email should be verified. Upon confirmation, the user's email is marked as verified in the database. This enhancement improves the user experience and provides better control over email verification.
2024-05-24 11:39:43 +01:00
Simon Larsen
d0b63b5c8b Refactor ProbeMonitorResponseService and Metrics component
The code changes refactor the ProbeMonitorResponseService and Metrics component. This includes removing redundant code in ProbeMonitorResponseService and simplifying the Metrics component by removing unnecessary props. These changes improve code organization and maintainability.
2024-05-23 20:31:16 +01:00
Simon Larsen
e94cc8083a refactor: Improve error messages in MetricsInfo and SSLCertificateMonitorView components 2024-05-23 18:58:43 +01:00
Simon Larsen
847f426bc6 refactor: Improve error messages in MetricsInfo and SSLCertificateMonitorView components
The code changes in this commit improve the error messages in the MetricsInfo and SSLCertificateMonitorView components. The updated error messages provide more helpful information to users, indicating that it may take a few minutes for metrics to show up for the selected probe. This enhancement improves the user experience and reduces confusion when metrics are not immediately available.
2024-05-23 18:49:30 +01:00
Simon Larsen
74bcadb2e7 refactor: Update MonitorView and Metrics components
The code changes in this commit update the MonitorView and Metrics components. Specifically, the changes introduce type annotations and improve the readability of the code by using more descriptive variable names. These updates enhance the maintainability and understanding of the codebase.
2024-05-23 18:16:24 +01:00
Simon Larsen
3e255e6dd1 refactor: Remove unused isHeadRequest property in MonitorUtil and ApiMonitor 2024-05-23 17:41:37 +01:00
snyk-bot
eb5cf5a3cb fix: upgrade posthog-js from 1.130.1 to 1.130.2
Snyk has created this PR to upgrade posthog-js from 1.130.1 to 1.130.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-05-23 12:51:38 +00:00
Simon Larsen
df7bd46428 Remove unused isHeadRequest property in MonitorUtil and ApiMonitor 2024-05-23 13:40:34 +01:00
Simon Larsen
e6dadd0673 refactor: Remove unused isHeadRequest property in MonitorUtil and ApiMonitor 2024-05-23 11:43:54 +01:00
Simon Larsen
ee8706e75b refactor: Remove unused isHeadRequest property in MonitorUtil and ApiMonitor
The code changes remove the unused `isHeadRequest` property in the `MonitorUtil` and `ApiMonitor` classes. This cleanup improves code readability and eliminates unnecessary code.
2024-05-23 10:22:09 +01:00
Simon Larsen
da70359945 feat: Add resourcesAffected field to maintenance event notification templates 2024-05-22 21:13:35 +01:00
Simon Larsen
3622021e57 refactor: Update screenshot handling in monitor scripts 2024-05-22 20:21:22 +01:00
Simon Larsen
5aeada377a feat: Add screenshot functionality to synthetic monitor script 2024-05-22 20:18:13 +01:00
Simon Larsen
d34a493724 feat: Add timeout configuration for monitor scripts
The commit updates the README.md file to include new configurable parameters for timeout values in the monitor scripts. This allows users to set specific timeout values for synthetic monitor scripts, custom code monitor scripts, and workflow scripts. The addition of these timeout configurations improves the flexibility and reliability of the monitoring system.
2024-05-22 20:08:35 +01:00
Simon Larsen
5f7dcf7433 refactor: Update timeout handling in monitor scripts
This commit updates the timeout handling in the monitor scripts to use the `WorkflowScriptTimeoutInMS` and `PROBE_CUSTOM_CODE_MONITOR_SCRIPT_TIMEOUT_IN_MS` values from the environment configuration. This ensures that the monitor scripts have consistent and configurable timeout values, improving the reliability and performance of the monitoring system.
2024-05-22 20:06:32 +01:00
Simon Larsen
39407795a2 refactor: Update logger.debug calls in AnalyticsDatabaseService tests 2024-05-22 14:10:22 +01:00
Simon Larsen
63dfb56da3 refactor: Update return value in StatusPageDomainService
The return value in the `getStatusPageDomain` method of the `StatusPageDomainService` class was updated to `true` to fix a bug where it was always returning `false`. This change ensures that the method returns the correct value based on the success or failure of the database query.
2024-05-22 13:35:18 +01:00
Simon Larsen
ed8714cc34 refactor: Update logger.debug calls in AnalyticsDatabaseService tests
The logger.debug calls in the AnalyticsDatabaseService tests were updated to improve logging consistency and accuracy.
2024-05-22 13:22:37 +01:00
Simon Larsen
dedda5b53b refactor: Add screenshot functionality to synthetic monitor script 2024-05-22 12:39:31 +01:00
Simon Larsen
df2af5858c Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-22 12:34:59 +01:00
Simon Larsen
e25d38ee74 refactor: Update axios dependency to version 1.6.8 2024-05-22 12:34:57 +01:00
Simon Larsen
2b0dd6687d Merge pull request #1435 from OneUptime/snyk-upgrade-8ff00708899512e4a35ebf204a59691e
[Snyk] Upgrade @nivo/core from 0.85.1 to 0.86.0
2024-05-22 12:30:14 +01:00
Simon Larsen
22f08a4c47 refactor: Add timeout information to monitor documentation 2024-05-22 12:26:16 +01:00
Simon Larsen
fda11d81c0 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-22 12:17:27 +01:00
Simon Larsen
18e68b3505 refactor: Remove unnecessary hyphen in monitor documentation
This commit removes an unnecessary hyphen in the monitor documentation by correcting the spelling of "Synthetic Monitor" in both the custom-code-monitor.md and synthetic-monitor.md files. The typo was causing inconsistency in the naming of the monitor, and this fix ensures accuracy and clarity in the documentation.
2024-05-22 12:17:09 +01:00
Simon Larsen
a8a550809d refactor: Fix typo in monitor documentation
This commit fixes a typo in the monitor documentation by correcting the spelling of "Synthetic Monitor" in both the custom-code-monitor.md and synthetic-monitor.md files. The typo was causing inconsistency in the naming of the monitor, and this fix ensures accuracy and clarity in the documentation.
2024-05-22 12:16:42 +01:00
Simon Larsen
dbacf998ff refactor: Add new monitor links to DocsNav
This commit adds new monitor links to the DocsNav utility in the FeatureSet/Docs/Utils/Nav.ts file. The links include "Custom Code Monitor" and "Synthetic Monitor" with their respective URLs. This enhancement improves the navigation experience for users accessing the monitor documentation section.
2024-05-22 12:13:38 +01:00
Simon Larsen
0d41d97b8d refactor: Fix syntax error in MonitorStep and CriteriaFilterUtil 2024-05-22 11:59:33 +01:00
Simon Larsen
36ecf78c4c refactor: Update executionTimeInMS type to number in CustomCodeMonitorResponse
This commit updates the type of the executionTimeInMS property in the CustomCodeMonitorResponse interface from PositiveNumber to number. The PositiveNumber type was unnecessary and caused compatibility issues with other parts of the codebase. Changing it to number simplifies the code and ensures consistency across the application.
2024-05-22 11:57:57 +01:00
Simon Larsen
3eb0eb4289 refactor: Fix syntax error in MonitorStep and CriteriaFilterUtil
This commit fixes a syntax error in the MonitorStep and CriteriaFilterUtil files. In MonitorStep, the syntax error was caused by an extra semicolon (;) in the screenshotDataInBase64 assignment. In CriteriaFilterUtil, the return statement was incorrectly set to true instead of false. These changes ensure that the code is correct and functioning as intended.
2024-05-22 11:47:13 +01:00
Simon Larsen
01c214b51e refactor: Update CodeEditor placeholder for JavaScript type
This commit updates the CodeEditor component to improve the placeholder text for the JavaScript type. The placeholder now includes additional line breaks and indentation for better readability and code organization. This change enhances the user experience when working with JavaScript code in the CodeEditor.
2024-05-22 11:33:54 +01:00
snyk-bot
f756df1e5f fix: upgrade @nivo/core from 0.85.1 to 0.86.0
Snyk has created this PR to upgrade @nivo/core from 0.85.1 to 0.86.0.

See this package in npm:
@nivo/core

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-05-22 10:21:17 +00:00
Simon Larsen
e2a7f7efc5 refactor: Add support for ArrayOfText field type in Detail component
This commit adds support for the ArrayOfText field type in the Detail component. When the field type is ArrayOfText and there is data available, the data is joined with commas and displayed in the UI. This enhancement improves the user experience by properly rendering and handling the ArrayOfText field type in the Detail component.
2024-05-22 10:58:34 +01:00
Simon Larsen
3bf4137db2 refactor: Update Dockerfile to install necessary dependencies
This commit updates the Dockerfile to install necessary dependencies for the application. It adds the installation of bash, curl, python3, make, g++, and various libraries required for playwright. Additionally, it installs net-tools for network-related functionality. These changes ensure that the application has all the required dependencies to run properly in the Docker environment.
2024-05-22 10:24:06 +01:00
Simon Larsen
f592e852f2 refactor: Update logger.error statements for exiting node process 2024-05-22 10:09:16 +01:00
Simon Larsen
a5f05376b0 refactor: Update logger.debug statements for exiting node process
This commit updates the logger.debug statements in multiple files to log the message 'Exiting node process' instead of 'Exiting node process'. This change improves the logging consistency and ensures that the appropriate log level is used for this message.
2024-05-22 10:04:41 +01:00
Simon Larsen
89e08614f4 refactor: Update RunWorkflow to use VMAPI for replacing values in argumentContent
This commit refactors the RunWorkflow class to use the VMAPI module instead of the deprecated VMUtil module for replacing values in the argumentContent. The VMAPI module provides a more up-to-date and efficient method for replacing values, improving the performance and maintainability of the code.
2024-05-21 20:51:16 +01:00
Simon Larsen
631c22aa64 refactor: Update SyntheticMonitor to use async/await for CustomCodeMonitoringCriteria
This commit updates the SyntheticMonitor class to use async/await when calling the CustomCodeMonitoringCriteria.isMonitorInstanceCriteriaFilterMet() method. This change ensures that the method is properly awaited, allowing for better control flow and error handling. The use of async/await improves the readability and maintainability of the code.
2024-05-21 20:48:46 +01:00
Simon Larsen
0c4ad712b0 refactor: Update CriteriaFilterUtil to filter options based on checkOn value 2024-05-21 20:47:40 +01:00
Simon Larsen
0e4f54d048 refactor: Update CriteriaFilterUtil to filter options based on checkOn value 2024-05-21 20:39:42 +01:00
Simon Larsen
80ede00ced refactor: Update CriteriaFilterUtil to filter options based on checkOn value 2024-05-21 20:37:04 +01:00
Simon Larsen
40b9573324 refactor: Update CriteriaFilterUtil to filter options based on checkOn value
This commit refactors the CriteriaFilterUtil class to improve the filtering of options based on the checkOn value. It removes the unnecessary check for CheckOn.Error in the if statement and adds a new if statement specifically for CheckOn.Error. This change ensures that the options are filtered correctly for each checkOn value, enhancing the accuracy and effectiveness of the criteria filtering functionality.
2024-05-21 20:12:14 +01:00
Simon Larsen
e09f856c92 refactor: Update ProbeApiIngestResponse and APIRequestCriteria
This commit updates the `ProbeApiIngestResponse` interface to include a comment indicating that the `rootCause` property is in markdown format. Additionally, it modifies the `APIRequestCriteria` class to use the `convertToNumber` method from the `CompareCriteria` class instead of the deprecated `convertThresholdToNumber` method. These changes improve the clarity and maintainability of the code.
2024-05-21 19:42:38 +01:00
Simon Larsen
9db5aa56e6 refactor: Update MonitorMetricsByMinute to include browser type and screen size type
This commit modifies the MonitorMetricsByMinute class to include the browserType and screenSizeType properties in the MonitorMetricsMiscData interface. This allows for capturing additional information about the browser type and screen size during monitoring. The changes enhance the accuracy and completeness of the monitoring data.
2024-05-21 15:37:07 +01:00
Simon Larsen
f8c43136e9 refactor: Close browser and page in SyntheticMonitor
This commit refactors the SyntheticMonitor class to ensure that the browser and page are properly closed after use. The code now checks if the page and browser objects exist before attempting to close them, preventing potential memory leaks. This improvement enhances the reliability and efficiency of the SyntheticMonitor functionality.
2024-05-21 15:29:47 +01:00
Simon Larsen
3fb804c4e7 Update import paths for BrowserType and ScreenSizeType enums 2024-05-21 14:49:17 +01:00
Simon Larsen
dad1f1a464 feat: Add support for CustomCodeMonitor in MonitorUtil
This commit adds support for the CustomCodeMonitor type in the MonitorUtil class. It includes the necessary code to execute custom JavaScript code provided in the monitor step data. This enhancement improves the flexibility of the monitoring system by allowing users to define and execute their own custom code for monitoring purposes.
2024-05-21 14:43:03 +01:00
Simon Larsen
95e9eacc83 refactor: Update import paths for VMUtil in JavaScript and IfElse components 2024-05-21 14:42:13 +01:00
Simon Larsen
14b5da110f feat: Update BrowserType enum values
This commit updates the values of the BrowserType enum in the file `Common/Types/BrowserType.ts`. The `Chrome` value is changed to `Chromium`, and the `Safari` value is changed to `Webkit`. This change reflects more accurate and up-to-date browser names, improving the clarity and consistency of the code.
2024-05-21 14:38:15 +01:00
Simon Larsen
b66cd889c0 feat: Update import paths for VMUtil in JavaScript and IfElse components 2024-05-21 14:17:49 +01:00
Simon Larsen
d323c70a51 feat: Add support for SyntheticMonitorResponse in ProbeMonitorResponse
This commit adds the `syntheticMonitorResponse` property to the `ProbeMonitorResponse` interface in order to support the `SyntheticMonitorResponse` type. This allows for the inclusion of synthetic monitor data in the probe monitor response, providing more comprehensive monitoring information.
2024-05-21 13:29:11 +01:00
Simon Larsen
8962ecf42a Merge pull request #1431 from OneUptime/snyk-upgrade-ffa44874323f7156fd8e796f35bbdac2
[Snyk] Upgrade posthog-js from 1.130.0 to 1.130.1
2024-05-21 12:23:42 +01:00
Simon Larsen
31f92c3611 Merge pull request #1433 from OneUptime/snyk-upgrade-43877da1161195f77e3cab219ba9ecab
[Snyk] Upgrade @nivo/line from 0.85.1 to 0.86.0
2024-05-21 12:23:28 +01:00
Simon Larsen
6bed753de3 feat: Add playwright module to VMRunner for browser automation
This commit adds the playwright module to the VMRunner class in order to enable browser automation capabilities. By including playwright, we can now execute code that interacts with web browsers, allowing for more advanced testing and automation scenarios.
2024-05-21 12:08:50 +01:00
Simon Larsen
4017e7ce0e feat: Update import paths for VMUtil in JavaScript and IfElse components
This commit updates the import paths for the VMUtil module in the JavaScript and IfElse components. The new import path is '../../../Utils/VM/VMAPI'. This change ensures that the correct module is imported and used in the components, improving the reliability and maintainability of the code.
2024-05-21 12:07:26 +01:00
Simon Larsen
ccaaaa1823 feat: Fix pagination bug in Pagination component
This commit fixes a bug in the Pagination component where the currentPageNumber was not being properly converted to a number before performing calculations. The bug caused incorrect navigation to the previous and next pages. The issue is resolved by adding a check to convert the currentPageNumber to a number if it is a string.
2024-05-21 12:04:32 +01:00
Simon Larsen
7d7fa2b8f1 feat: Remove unnecessary error message in MonitorStepsElement component 2024-05-21 11:50:47 +01:00
Simon Larsen
2ca57ac8bf feat: Add support for SyntheticMonitor and CustomJavaScriptCode in MonitorTypeHelper
The code changes in `MonitorType.ts` and `MonitorService.ts` add support for the `SyntheticMonitor` and `CustomJavaScriptCode` monitor types in the `MonitorTypeHelper` class. This allows for easier identification of probeable monitor types and improves the flexibility of the monitoring system.
2024-05-21 11:22:26 +01:00
Simon Larsen
a75f655f72 feat: Update code editor placeholders for MonitorStep
This commit updates the code editor placeholders in the MonitorStep component to provide example code using axios and playwright modules. This allows users to easily understand and customize the code for their specific monitoring needs.
2024-05-21 11:13:29 +01:00
Simon Larsen
6ca38a1adb feat: Update MonitorStep to remove unnecessary documentation line 2024-05-21 10:57:41 +01:00
Simon Larsen
46a095569d feat: Update code editor placeholders for CustomJavaScriptCode and SyntheticMonitor
This commit updates the code editor placeholders in the MonitorStep component for the CustomJavaScriptCode and SyntheticMonitor types. The placeholders now provide example code using axios and playwright modules, allowing users to easily understand and customize the code for their specific monitoring needs.
2024-05-21 10:55:29 +01:00
Simon Larsen
cec38190fd feat: Update fetchDropdownOptions to accept item parameter
This commit modifies the `fetchDropdownOptions` function in the `Field` interface to accept an additional `item` parameter of type `FormValues<TEntity>`. This change allows for more dynamic fetching of dropdown options based on the current form values, improving the flexibility and customization of the form fields.
2024-05-21 10:44:49 +01:00
Simon Larsen
ca746d1436 feat: Update CategoryCheckboxType to make categoryId optional
This commit updates the `CategoryCheckboxType` interface to make the `categoryId` property optional. This change allows for more flexibility when working with category checkboxes, as the `categoryId` is not always required.
2024-05-21 10:20:46 +01:00
snyk-bot
2f6133bba0 fix: upgrade @nivo/line from 0.85.1 to 0.86.0
Snyk has created this PR to upgrade @nivo/line from 0.85.1 to 0.86.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-05-21 08:38:52 +00:00
snyk-bot
d1f62d3c66 fix: upgrade @nivo/core from 0.85.1 to 0.86.0
Snyk has created this PR to upgrade @nivo/core from 0.85.1 to 0.86.0.

See this package in npm:
@nivo/core

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-05-21 08:38:48 +00:00
snyk-bot
db2c6b0ea5 fix: upgrade posthog-js from 1.130.0 to 1.130.1
Snyk has created this PR to upgrade posthog-js from 1.130.0 to 1.130.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-05-21 08:22:26 +00:00
Simon Larsen
a2033b94dd feat: Add checkbox lists for browser type and screen type in SyntheticMonitor
This commit adds checkbox lists for selecting the browser type and screen type in the SyntheticMonitor step of the MonitorStep component. This allows users to choose the desired browser and screen type for running the test in SyntheticMonitor.
2024-05-20 21:37:27 +01:00
Simon Larsen
d23c62d30a feat: Update CheckOn enum value to 'ResultValue'
This commit updates the CheckOn enum value in the CriteriaFilter module from 'Result' to 'ResultValue'. This change provides a more descriptive and accurate representation of the value being checked in custom code or JavaScript monitors.
2024-05-20 21:26:28 +01:00
Simon Larsen
6ca5b9572e feat: Add setCustomCode method to MonitorStep class
The code changes include adding a new method, `setCustomCode`, to the `MonitorStep` class. This method allows for setting custom code for a monitor step, enabling the execution of custom JavaScript code in certain types of monitors.
2024-05-20 21:08:51 +01:00
Simon Larsen
f5f62d905b feat: Add custom code support for monitor steps
The code changes include adding support for custom code in monitor steps. This allows for the execution of custom code or JavaScript in certain types of monitors.
2024-05-20 21:03:08 +01:00
Simon Larsen
876de677cd refactor: Update MonitorType descriptions for clarity and consistency 2024-05-20 20:18:23 +01:00
Simon Larsen
19cb221f33 feat: Add isEditable prop to StatusPageDelete component 2024-05-20 19:19:54 +01:00
Simon Larsen
f0f774ecdb Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-20 15:20:08 +01:00
Simon Larsen
e333c2d43b Merge remote-tracking branch 'origin/snyk-upgrade-74c46bacccd4fb74e83b0646ec8750cb' 2024-05-20 15:20:05 +01:00
Simon Larsen
4cdb832b34 Merge remote-tracking branch 'origin/snyk-upgrade-462450f669807b7eb04e4c4d125fbf2b' into release 2024-05-20 15:17:36 +01:00
Simon Larsen
367715c077 Merge pull request #1428 from OneUptime/snyk-upgrade-3b57e17a87dddbfededa11f5d0e72927
[Snyk] Upgrade: react, react-dom
2024-05-19 09:01:40 +01:00
Simon Larsen
945eb3d11b Merge pull request #1429 from OneUptime/snyk-upgrade-69be6d2a85331ea8cb47b3e28bcc2efe
[Snyk] Upgrade: react, react-dom
2024-05-19 09:01:35 +01:00
snyk-bot
b4c4273485 fix: upgrade multiple dependencies with Snyk
Snyk has created this PR to upgrade:
  - react from 18.3.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react
  - react-dom from 18.3.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-19 06:44:45 +00:00
snyk-bot
1c319bb432 fix: upgrade multiple dependencies with Snyk
Snyk has created this PR to upgrade:
  - react from 18.2.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react
  - react-dom from 18.2.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-19 06:42:42 +00:00
Simon Larsen
6fc8bc3628 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-18 20:33:28 +01:00
Simon Larsen
33e9c8fbe7 refactor: Optimize bulk item deselection logic in Table component 2024-05-18 20:33:11 +01:00
Simon Larsen
6f4da22874 refactor: Update ProgressBar component to support different sizes 2024-05-18 19:53:04 +01:00
Simon Larsen
772341a15c refactor: Update Table and FilterViewer components
This code change updates the Table and FilterViewer components to improve their functionality and user experience.

In the Table component, the onActionEnd callback is modified to reset the state of isAllItemsSelected, setBulkSelectedItems, and then call the props.onBulkActionEnd function. This change ensures that the bulk action end event is handled correctly.

In the FilterViewer component, the styling of the filter criteria section is updated to improve readability. The font size and spacing are adjusted to provide a better visual presentation of the filter criteria.

These refactorings enhance the overall performance and usability of the components.
2024-05-18 19:41:05 +01:00
Simon Larsen
387fdd7b15 Merge pull request #1426 from OneUptime/snyk-upgrade-424acac7465574c09845de51ffbb9e27
[Snyk] Upgrade posthog-js from 1.129.0 to 1.130.0
2024-05-18 19:18:05 +01:00
Simon Larsen
16bad74c4d Merge pull request #1427 from OneUptime/snyk-upgrade-977cadc46113d94d06a8445c04bd36a6
[Snyk] Upgrade: react, react-dom
2024-05-18 19:18:00 +01:00
Simon Larsen
054242df60 refactor: Optimize bulk item deselection in Table component 2024-05-18 19:13:38 +01:00
snyk-bot
3d4aecb896 fix: upgrade multiple dependencies with Snyk
Snyk has created this PR to upgrade:
  - react from 18.3.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react
  - react-dom from 18.3.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react-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-05-18 17:51:55 +00:00
snyk-bot
26c8712fce fix: upgrade posthog-js from 1.129.0 to 1.130.0
Snyk has created this PR to upgrade posthog-js from 1.129.0 to 1.130.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-05-18 17:41:08 +00:00
Simon Larsen
ab090ab016 refactor: Optimize bulk item deselection in Table component
This code change optimizes the bulk item deselection functionality in the Table component. Instead of using the `filter` method to remove the deselected item from the `bulkSelectedItems` array, it now uses the `findIndex` method to locate the index of the item and then removes it using the `splice` method. This approach improves the performance of bulk item deselection, especially when dealing with large datasets.
2024-05-18 16:34:00 +01:00
Simon Larsen
4653711b58 refactor: Improve error handling in BulkUpdateForm
This code change improves the error handling in the BulkUpdateForm component. The error handling logic is updated to display a more informative error message when a bulk update action fails. This refactor enhances the user experience by providing clearer feedback on failed bulk actions.
2024-05-18 16:28:52 +01:00
Simon Larsen
9aa1876e70 refactor: Update SimpleLogViewer component to be used in BulkUpdateForm
This code change updates the SimpleLogViewer component to be used in the BulkUpdateForm. The component is imported and rendered in the BulkUpdateForm to display logs in a consistent and reusable way. This refactor improves code reusability and reduces duplication by leveraging an existing component for log viewing.
2024-05-18 16:25:14 +01:00
Simon Larsen
40d9aff56a refactor: Update SimpleLogViewer component to use in CallLog, Probes, Workflow, and StatusTimeline pages
This code change updates the SimpleLogViewer component to be used in the CallLog, Probes, Workflow, and StatusTimeline pages. The component is imported and rendered in these pages to display logs in a consistent and reusable way. This refactor improves code reusability and reduces duplication across multiple pages.
2024-05-18 16:20:11 +01:00
Simon Larsen
3c88a1b879 refactor: Update ProgressBar component to support different sizes
This code change updates the ProgressBar component to support different sizes. A new enum `ProgressBarSize` is introduced to define the available sizes: Small, Medium, and Large. The `size` prop is added to the `ComponentProps` interface, allowing the user to specify the desired size of the progress bar. This enhancement provides more flexibility in customizing the appearance of the progress bar based on the UI requirements.
2024-05-18 16:07:32 +01:00
Simon Larsen
149baf17ef refactor: Optimize bulk item deselection in Table component
This code change optimizes the bulk item deselection functionality in the Table component. Instead of using the `filter` method to remove the deselected item from the `bulkSelectedItems` array, it now uses the `findIndex` method to locate the index of the item and then removes it using the `splice` method. This approach improves the performance of bulk item deselection, especially when dealing with large datasets.
2024-05-18 15:57:38 +01:00
Simon Larsen
424cfa2094 refactor: Fix bulk action end event handling in Table component 2024-05-18 15:49:32 +01:00
Simon Larsen
d114c52d6f refactor: Optimize bulk item deselection in Table component 2024-05-18 14:55:30 +01:00
Simon Larsen
213e2111a5 refactor: Optimize bulk item deselection in Table component
This code change optimizes the bulk item deselection functionality in the Table component. Instead of using the `filter` method to remove the deselected item from the `bulkSelectedItems` array, it now uses the `findIndex` method to locate the index of the item and then removes it using the `splice` method. This approach improves the performance of bulk item deselection, especially when dealing with large datasets.
2024-05-18 14:30:47 +01:00
Simon Larsen
31837ef1f5 feat: Add support for bulk actions in Table component 2024-05-18 14:29:22 +01:00
Simon Larsen
b906ff1dce Merge pull request #1423 from OneUptime/snyk-upgrade-853a678be23c5b34b8ae866769c5a56d
[Snyk] Upgrade: react, react-dom
2024-05-18 13:42:04 +01:00
Simon Larsen
cc4d6514cc Merge pull request #1422 from OneUptime/snyk-upgrade-f86bfe08d4514e02784875637d35f3da
[Snyk] Upgrade react-router-dom from 6.22.3 to 6.23.0
2024-05-18 13:41:34 +01:00
Simon Larsen
005256084e Merge pull request #1424 from OneUptime/snyk-upgrade-79a48669a7990a61a83374567c38f84c
[Snyk] Upgrade: react, react-dom
2024-05-18 13:41:28 +01:00
Simon Larsen
67b542d828 feat: Add bulk actions to Table component
The code changes in this commit add support for bulk actions in the Table component. The `BulkActionProps` interface is introduced to define the bulk action buttons, and the `BulkUpdateForm` component is rendered to display the bulk action buttons when provided. This enhancement allows users to perform actions on multiple items in the table simultaneously, improving the efficiency of managing data.
2024-05-17 21:40:10 +01:00
snyk-bot
c147c49465 fix: upgrade multiple dependencies with Snyk
Snyk has created this PR to upgrade:
  - react from 18.2.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react
  - react-dom from 18.2.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-17 18:05:45 +00:00
snyk-bot
9428d08def fix: upgrade multiple dependencies with Snyk
Snyk has created this PR to upgrade:
  - react from 18.2.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react
  - react-dom from 18.2.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-17 17:38:03 +00:00
snyk-bot
79f27550df fix: upgrade react-router-dom from 6.22.3 to 6.23.0
Snyk has created this PR to upgrade react-router-dom from 6.22.3 to 6.23.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-17 17:08:53 +00:00
snyk-bot
21d62eab18 fix: upgrade multiple dependencies with Snyk
Snyk has created this PR to upgrade:
  - react from 18.2.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react
  - react-dom from 18.2.0 to 18.3.1.
    See this package in npm: https://www.npmjs.com/package/react-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-17 17:08:48 +00:00
Simon Larsen
f011559cd2 chore: Add disableSubmitButton prop to ConfirmModal 2024-05-17 18:05:29 +01:00
Simon Larsen
4bb5a29963 refactor: Update axios and posthog-js dependencies
This code change updates the axios and posthog-js dependencies to their latest versions. The axios dependency is updated from 1.6.7 to 1.6.8, and the posthog-js dependency is updated from 1.115.0 to 1.129.0. This update ensures that we have the latest bug fixes and improvements for these libraries, improving the overall stability and performance of our application.
2024-05-17 15:19:16 +01:00
Simon Larsen
e771172b79 refactor: Remove unused code in FilterViewer.tsx 2024-05-17 15:13:07 +01:00
Simon Larsen
9476327a6a Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-17 14:31:01 +01:00
Simon Larsen
7c14931bb9 refactor: Remove unused @types/markdown-it dependency 2024-05-17 14:30:39 +01:00
Simon Larsen
2ad245083d Merge pull request #1416 from OneUptime/snyk-upgrade-87afa35300d240576e9a2e10b5028185
[Snyk] Upgrade @opentelemetry/instrumentation-xml-http-request from 0.50.0 to 0.51.0
2024-05-17 14:03:54 +01:00
Simon Larsen
81da1546d9 Merge pull request #1419 from OneUptime/markdown-refactor
refactor: Update dependencies and scripts in package.json files
2024-05-17 14:00:41 +01:00
Simon Larsen
a48f472c52 refactor: Update Markdown import in UserNotificationRuleService.ts 2024-05-17 14:00:19 +01:00
Simon Larsen
2a9b3db168 Merge pull request #1418 from OneUptime/snyk-upgrade-4dfc247506d9048ad782d9cdb39ee861
[Snyk] Upgrade: react, react-dom
2024-05-17 13:40:42 +01:00
Simon Larsen
bbc95a3a1d Merge pull request #1417 from OneUptime/snyk-upgrade-2b094c75c37c28e17e318b9fecab3c1a
[Snyk] Upgrade formik from 2.4.5 to 2.4.6
2024-05-17 13:40:37 +01:00
Simon Larsen
0bbb35ff43 Merge pull request #1415 from OneUptime/snyk-upgrade-98c666ed907eebd3249d1581c5f9aca0
[Snyk] Upgrade: react, react-dom
2024-05-17 13:40:27 +01:00
Simon Larsen
7edd8f197a refactor: Remove unused code in Markdown.ts
This code change removes the unused code in the Markdown.ts file that was responsible for customizing the rendering of paragraphs, blockquotes, images, and headings. This code is no longer needed and can be safely removed, simplifying the codebase and improving maintainability.
2024-05-17 13:32:56 +01:00
Simon Larsen
1ad239a9fe Remove unused Tailwind CSS configuration code from the End.hbs template file. The removed code was setting the font family for the display and body elements. This code is no longer needed and can be safely removed. 2024-05-17 13:26:46 +01:00
Simon Larsen
eeae73b7a4 refactor: Update Markdown import in UserNotificationRuleService.ts
This code change updates the import statement for the Markdown module in the UserNotificationRuleService.ts file. It now imports the Markdown module along with the MarkdownContentType enum from the Types/Markdown file. This update ensures that the MarkdownContentType.Email is used when converting the incident description to HTML. This change improves the handling of Markdown content in the UserNotificationRuleService.
2024-05-17 13:24:51 +01:00
Simon Larsen
026997a679 refactor: Update dependencies and scripts in package.json files 2024-05-17 13:17:56 +01:00
Simon Larsen
aa83db3e48 refactor: Add deletedByUser and deletedByUserId columns to User model
This code change adds the `deletedByUser` and `deletedByUserId` columns to the `User` model. These columns are used to track the user who deleted the object and their corresponding user ID. This enhancement allows for better auditing and tracking of deleted objects in the system.
2024-05-17 12:08:05 +01:00
snyk-bot
5725c6a17a fix: upgrade multiple dependencies with Snyk
Snyk has created this PR to upgrade:
  - react from 18.2.0 to 18.3.0.
    See this package in npm: https://www.npmjs.com/package/react
  - react-dom from 18.2.0 to 18.3.0.
    See this package in npm: https://www.npmjs.com/package/react-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-16 21:55:07 +00:00
snyk-bot
79171c93d9 fix: upgrade formik from 2.4.5 to 2.4.6
Snyk has created this PR to upgrade formik from 2.4.5 to 2.4.6.

See this package in npm:
https://www.npmjs.com/package/formik

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-05-16 21:39:13 +00:00
snyk-bot
5073a15bf1 fix: upgrade @opentelemetry/instrumentation-xml-http-request from 0.50.0 to 0.51.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation-xml-http-request from 0.50.0 to 0.51.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-16 21:39:09 +00:00
snyk-bot
9285e9b401 fix: upgrade multiple dependencies with Snyk
Snyk has created this PR to upgrade:
  - react from 18.2.0 to 18.3.0.
    See this package in npm: https://www.npmjs.com/package/react
  - react-dom from 18.2.0 to 18.3.0.
    See this package in npm: https://www.npmjs.com/package/react-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-05-16 21:39:02 +00:00
Simon Larsen
b6adf3fb40 refactor: Improve JSON filter handling in StatementGenerator.ts 2024-05-16 17:46:43 +01:00
Simon Larsen
164e6062c9 refactor: Improve JSON filter handling in StatementGenerator.ts 2024-05-16 17:38:21 +01:00
Simon Larsen
1ebc8a9d91 feat: Add support for JSON filters in BaseModelTable
This commit adds support for JSON filters in the `BaseModelTable` component. It checks if a filter is of type `FieldType.JSON` and if the filter data is of type `Object`. If both conditions are met, the filter data is included in the query. This enhancement allows for more flexible filtering options when working with JSON data in the table.
2024-05-16 17:32:03 +01:00
Simon Larsen
3205453608 refactor: Update Dictionary component to handle different value types 2024-05-16 16:28:56 +01:00
Simon Larsen
be3d4b2ce0 refactor: Update Dictionary component to handle different value types
The code changes in the Dictionary component refactor the implementation to handle different value types, including strings, numbers, and booleans. This allows for more flexibility and accuracy when working with dictionary data in the component.
2024-05-16 16:20:59 +01:00
Simon Larsen
7c8aabe3e8 feat: Improve formatJson function in FilterViewer component
The code changes in the FilterViewer component improve the formatJson function by updating the styling and layout of the rendered JSON elements. This enhances the readability and visual presentation of the JSON data in the component.
2024-05-16 14:07:20 +01:00
Simon Larsen
b0c62ed827 Merge branch 'master' into attributes-filter 2024-05-16 13:32:07 +01:00
Simon Larsen
80a1827455 chore: Update ServerMonitorDocumentation script to use sudo for agent installation and configuration 2024-05-16 13:28:31 +01:00
Simon Larsen
bbb1b2e944 feat: Add equals icon to Dictionary component
The code changes add the `Equals` icon to the `Dictionary` component in the `CommonUI` module. This icon is used to visually represent the equality operator in the component.
2024-05-16 13:27:01 +01:00
Simon Larsen
f70878317a Merge branch 'master' into attributes-filter 2024-05-16 12:40:58 +01:00
Simon Larsen
f5184db0fa feat: Update UptimeUtil to sort monitor status timeline items by start date 2024-05-16 11:47:03 +01:00
Simon Larsen
19128a50d2 feat: Sort monitor status timeline items by start date in UptimeUtil.getMonitorEventsForId() 2024-05-16 11:45:35 +01:00
Simon Larsen
8fbb3774d1 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-16 10:53:42 +01:00
Simon Larsen
441efb3d1a chore: Update ServerMonitorDocumentation script to use sudo for agent installation and configuration 2024-05-16 10:53:39 +01:00
Simon Larsen
180491fa57 Merge pull request #1410 from OneUptime/snyk-upgrade-15b470e61c0a4d4baa2eaa864ea3be83
[Snyk] Upgrade react-router-dom from 6.22.2 to 6.23.0
2024-05-16 09:36:07 +01:00
Simon Larsen
7269e93967 Merge pull request #1411 from OneUptime/snyk-upgrade-e4184b69842e3f221e7c756fa028c1da
[Snyk] Upgrade posthog-js from 1.128.3 to 1.129.0
2024-05-16 09:36:02 +01:00
Simon Larsen
a754ec094b Merge pull request #1412 from OneUptime/snyk-upgrade-306eaee1a74876bbe32ce542109f7a61
[Snyk] Upgrade @opentelemetry/exporter-trace-otlp-http from 0.50.0 to 0.51.0
2024-05-16 09:35:47 +01:00
Simon Larsen
d9e097eeb2 Merge pull request #1414 from OneUptime/snyk-upgrade-1581bc45275ce8db68d7fda22e605ad3
[Snyk] Upgrade @opentelemetry/instrumentation-fetch from 0.50.0 to 0.51.0
2024-05-16 09:35:40 +01:00
snyk-bot
53d7aab558 fix: upgrade @opentelemetry/instrumentation-fetch from 0.50.0 to 0.51.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation-fetch from 0.50.0 to 0.51.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-15 21:28:18 +00:00
snyk-bot
dcf2584987 fix: upgrade @opentelemetry/instrumentation from 0.50.0 to 0.51.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation from 0.50.0 to 0.51.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-15 21:28:14 +00:00
snyk-bot
d18310ec69 fix: upgrade @opentelemetry/exporter-trace-otlp-http from 0.50.0 to 0.51.0
Snyk has created this PR to upgrade @opentelemetry/exporter-trace-otlp-http from 0.50.0 to 0.51.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-15 21:28:09 +00:00
snyk-bot
f61d603e21 fix: upgrade posthog-js from 1.128.3 to 1.129.0
Snyk has created this PR to upgrade posthog-js from 1.128.3 to 1.129.0.

See this package in npm:
https://www.npmjs.com/package/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-05-15 21:14:16 +00:00
snyk-bot
52a44a8383 fix: upgrade react-router-dom from 6.22.2 to 6.23.0
Snyk has created this PR to upgrade react-router-dom from 6.22.2 to 6.23.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-15 17:51:59 +00:00
Simon Larsen
be848d37a2 Update field descriptions in MonitorCriteriaInstance and MonitorSteps components to improve clarity and consistency. 2024-05-15 17:23:21 +01:00
Simon Larsen
df3a7e1a99 Merge pull request #1408 from OneUptime/snyk-upgrade-1bf0797993f09a9d25f81a37ef931556
[Snyk] Upgrade react-router-dom from 6.22.3 to 6.23.0
2024-05-15 16:46:41 +01:00
Simon Larsen
a6e9f7cd1e feat: Add startsAt and endsAt fields to MonitorView component 2024-05-15 10:59:10 +01:00
Simon Larsen
2e29a63f7b chore: Use explicit type annotation in UptimeUtil loop 2024-05-15 10:38:25 +01:00
Simon Larsen
c153c8c656 chore: Add YouTube tutorial link to README.md 2024-05-15 10:22:56 +01:00
Simon Larsen
61cbaaf4f0 chore: Fix missing end dates in MonitorStatusTimeline 2024-05-15 10:21:58 +01:00
Simon Larsen
70aae76ae3 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-14 19:13:08 +01:00
Simon Larsen
972bc9c4cf chore: Update E2E test environment variables in config.example.env 2024-05-14 19:12:52 +01:00
snyk-bot
fb902170e2 fix: upgrade react-router-dom from 6.22.3 to 6.23.0
Snyk has created this PR to upgrade react-router-dom from 6.22.3 to 6.23.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-14 17:21:26 +00:00
Simon Larsen
286429b58f Merge pull request #1404 from OneUptime/snyk-upgrade-9daf4730397a2c5fc08ea00edc4e2109
[Snyk] Upgrade posthog-js from 1.128.1 to 1.128.3
2024-05-14 18:09:32 +01:00
Simon Larsen
b799ce08a9 Merge pull request #1405 from OneUptime/snyk-upgrade-ad84e59eae164272636397edd988457f
[Snyk] Upgrade reactflow from 11.11.1 to 11.11.2
2024-05-14 18:09:25 +01:00
Simon Larsen
b30bb4c95e chore: Update infrastructure agent installation script and documentation 2024-05-14 17:55:15 +01:00
Simon Larsen
0e3eb81ae4 chore: Fix missing end dates in MonitorStatusTimeline 2024-05-14 17:01:57 +01:00
Simon Larsen
b997520977 Merge pull request #1407 from OneUptime/semaphore-monitor-status-timeline
chore: Add mutex lock and release for MonitorStatusTimeline creation
2024-05-14 16:55:50 +01:00
Simon Larsen
29675f2624 Update GoReleaser command in release workflow to include GORELEASER_CURRENT_TAG environment variable 2024-05-14 16:54:45 +01:00
Simon Larsen
fb83476795 chore: Add new data migration to include missing end dates in MonitorStatusTimeline 2024-05-14 16:43:42 +01:00
Simon Larsen
0420586a0e chore: Add mutex lock and release for MonitorStatusTimeline creation 2024-05-14 16:36:25 +01:00
Simon Larsen
900f76f8c8 chore: Update GoReleaser command in release workflow to include GORELEASER_CURRENT_TAG environment variable 2024-05-14 16:27:13 +01:00
Simon Larsen
082c5732c0 chore: Improve UptimeUtil logic for calculating end date 2024-05-14 16:11:46 +01:00
Simon Larsen
20c03c5fd9 chore: Update GoReleaser to version 1 and run release command for InfrastructureAgent 2024-05-14 15:59:52 +01:00
Simon Larsen
5adb8f0d38 chore: Update E2E test environment variables in config.example.env 2024-05-14 15:39:19 +01:00
Simon Larsen
a54037408e Update docker-compose.md with installation tutorial link 2024-05-14 15:37:14 +01:00
Simon Larsen
4c0cf60c42 chore: Update docker-compose.md with sudo command for binding ports 2024-05-14 15:19:16 +01:00
Simon Larsen
6aac72a226 chore: Update dependencies and job dependencies for infrastructure-agent-deploy 2024-05-14 12:56:43 +01:00
Simon Larsen
d1424840d8 chore: Update infrastructure-agent-deploy job dependency to github-release 2024-05-14 12:55:32 +01:00
Simon Larsen
0a90736338 chore: Configure OneUptime Infrastructure Agent as a system service
```
2024-05-14 12:23:15 +01:00
Simon Larsen
6c2144d77e chore: Update go version to 1.22.0 in go.mod file 2024-05-14 12:09:08 +01:00
Simon Larsen
e208b7cc78 Refactor .goreleaser.yaml to use string values for goarm instead of integers 2024-05-14 12:05:37 +01:00
Simon Larsen
69ff3dfe17 Refactor .goreleaser.yaml to use string values for goarm instead of integers 2024-05-14 11:55:48 +01:00
Simon Larsen
29d2abf226 Refactor .gitignore to include InfrastructureAgent/oneuptime-infrastructure-agent 2024-05-14 11:51:44 +01:00
Simon Larsen
1cf7cc4664 Refactor main.go to improve service control commands and error handling 2024-05-14 11:51:36 +01:00
Simon Larsen
d29991117a chore: Update actions/checkout and actions/setup-go versions 2024-05-14 11:46:13 +01:00
Simon Larsen
0bf8713b60 Refactor error handling in main.go for better clarity and instructions 2024-05-14 11:15:15 +01:00
Simon Larsen
dcc9d4fdf2 Refactor error messages in main.go for better clarity and instructions 2024-05-14 10:05:54 +01:00
Simon Larsen
db32292d33 chore: Update launch.json and config.go for InfrastructureAgent 2024-05-14 10:02:48 +01:00
snyk-bot
2b66c52907 fix: upgrade reactflow from 11.11.1 to 11.11.2
Snyk has created this PR to upgrade reactflow from 11.11.1 to 11.11.2.

See this package in npm:
https://www.npmjs.com/package/reactflow

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-13 21:23:21 +00:00
snyk-bot
d6b1edb8cb fix: upgrade posthog-js from 1.128.1 to 1.128.3
Snyk has created this PR to upgrade posthog-js from 1.128.1 to 1.128.3.

See this package in npm:
https://www.npmjs.com/package/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-05-13 20:56:52 +00:00
Simon Larsen
c7f62fac65 Refactor InfrastructureAgent code to add help command 2024-05-13 21:22:49 +01:00
Simon Larsen
db0aee6c0f chore: Refactor code to use model package for memory, processes, disk, and CPU metrics 2024-05-13 21:12:45 +01:00
Simon Larsen
1f53ecb093 Refactor package names and imports in InfrastructureAgent code files 2024-05-13 20:37:27 +01:00
Simon Larsen
d0325f2d7d chore: Remove unused code files for memory, processes, disk, and CPU metrics 2024-05-13 20:28:21 +01:00
Simon Larsen
a1461a4019 chore: Refactor package imports in InfrastructureAgent code files 2024-05-13 17:49:53 +01:00
Simon Larsen
d3096510bd chore: Refactor package names in InfrastructureAgent code files 2024-05-13 17:15:42 +01:00
Simon Larsen
8dac1a845a chore: Refactor package names in InfrastructureAgent code files 2024-05-13 16:48:47 +01:00
Simon Larsen
da26400aa7 chore: Refactor package names in InfrastructureAgent code files 2024-05-13 14:00:48 +01:00
Simon Larsen
c909d02a5d chore: Refactor package names in InfrastructureAgent code files 2024-05-13 13:41:33 +01:00
Simon Larsen
58e817cecd chore: Update workflow to use Go instead of Node.js for InfrastructureAgent 2024-05-13 09:41:39 +01:00
Simon Larsen
f9a784422d Merge pull request #1399 from anxuanzi/infra-agent-go
Remove the nodejs version agent, rewrite in Golang
2024-05-13 08:28:37 +01:00
Simon Larsen
6494ab9a71 Merge pull request #1400 from neurekadev/update-docker-compose-docs
docs: export env variables in a subshell
2024-05-13 08:16:57 +01:00
Neureka
a3cf038d38 docs: export env variables in a subshell 2024-05-12 12:02:32 -07:00
Simon Larsen
99a88ea6d7 Merge pull request #1397 from OneUptime/snyk-fix-3892a7e111663caea5c508696d2964c1
[Snyk] Security upgrade node from 21.7.2-alpine3.18 to 21.7.3-alpine3.18
2024-05-11 21:09:44 +01:00
Simon Larsen
d46604da53 Merge pull request #1398 from OneUptime/snyk-fix-3b2b2fa56f80398bc77252e1d04e6fcc
[Snyk] Security upgrade node from 21.7.2-alpine3.18 to 21.7.3-alpine3.18
2024-05-11 21:09:34 +01:00
Tony An
4a05ee22be ♻️ remove the nodejs version agent, rewrite in Golang 2024-05-10 19:37:40 -05:00
snyk-bot
28e809c493 fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6615824
2024-05-10 23:23:48 +00:00
snyk-bot
610373525b fix: StatusPage/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6615824
2024-05-10 23:12:01 +00:00
Simon Larsen
e84d1c2960 Merge pull request #1396 from OneUptime/snyk-fix-45b3084604f2d5d8f141f074ac048cd5
[Snyk] Security upgrade node from 21.7.2-alpine3.18 to 21.7.3-alpine3.18
2024-05-10 23:26:19 +01:00
snyk-bot
17cb699751 fix: AdminDashboard/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6615824
2024-05-10 22:04:51 +00:00
Simon Larsen
c3bf383e89 refactor: Update Dictionary component dropdown options
This commit updates the dropdown options in the Dictionary component to use more descriptive variable names. The previous variable names, trueDropdwonOption and falseDropdwonOption, have been changed to trueDropdownOption and falseDropdownOption respectively. This change improves code readability and maintainability.
2024-05-10 11:29:45 +01:00
Simon Larsen
a3e5288737 feat: Add JSONFilter component to FiltersForm
This commit adds the JSONFilter component to the FiltersForm in order to support filtering based on JSON data. The JSONFilter component is imported and rendered within the FiltersForm component, allowing users to input JSON filter criteria. This enhancement expands the filtering capabilities of the application.
2024-05-10 11:20:24 +01:00
Simon Larsen
14cf0d9343 refactor: Update DictionaryOfStrings component
This commit refactors the DictionaryOfStrings component by removing unused imports and simplifying the code structure. The useState hook is now used to manage the component's data state, and the useEffect hook is used to handle changes in the data. The component now uses the DictionaryForm component for rendering and handling user input. These changes improve the readability and maintainability of the code.
2024-05-10 11:09:41 +01:00
Simon Larsen
4ed613bf2c refactor: Update filter labels and submit button text in FilterViewer.tsx 2024-05-10 10:29:06 +01:00
Simon Larsen
f07da41cca Merge remote-tracking branch 'origin/snyk-upgrade-b5d9f77f3c65feeabefe361b92d3d1c8' 2024-05-10 10:27:59 +01:00
Simon Larsen
fe2300146d Merge remote-tracking branch 'origin/snyk-upgrade-ac3f89b452385bc8a0a778616c176acd' 2024-05-10 10:27:07 +01:00
Simon Larsen
207108dc2d Merge remote-tracking branch 'origin/snyk-upgrade-660a96f185a31fad496e714aa07c52b5' 2024-05-10 10:26:23 +01:00
Simon Larsen
b728256c63 refactor: Update font size for filter label in FilterViewer.tsx 2024-05-10 10:23:14 +01:00
Simon Larsen
0e5b71070c refactor: Update filter labels and submit button text in FilterViewer.tsx
This commit updates the filter labels and submit button text in the FilterViewer component. The 'FILTER BY' label is changed to 'FILTER' and the labels are now capitalized. Additionally, the submit button text is changed to 'Apply Filters'. These changes improve the clarity and consistency of the user interface.
2024-05-10 09:55:32 +01:00
Simon Larsen
4c4bc92a14 chore: Update font weight for filter label in FilterViewer.tsx 2024-05-10 09:48:35 +01:00
Simon Larsen
40dccbb382 refactor: Simplify SQL query construction in AnalyticsDatabaseService.ts 2024-05-10 09:42:50 +01:00
Simon Larsen
eedb7173db chore: Update submit button text in FilterViewer.tsx 2024-05-10 08:31:55 +01:00
Simon Larsen
917d12d7f0 refactor: Update FilterViewerItem and DropdownFilter components
This commit refactors the FilterViewerItem and DropdownFilter components to handle changes in the ComponentProps interface. The 'text' prop in FilterViewerItem now accepts a string or ReactElement, and the 'onFilterModalClose' and 'onFilterModalOpen' props in DropdownFilter are now optional. These changes ensure compatibility with the latest version of the codebase and improve code readability and maintainability.
2024-05-10 08:19:10 +01:00
Simon Larsen
11a9cfcb98 Merge pull request #1381 from OneUptime/snyk-upgrade-497decbbac4afbc555f4ba887111dc9a
[Snyk] Upgrade posthog-js from 1.126.0 to 1.128.1
2024-05-10 07:31:54 +01:00
Simon Larsen
172c3dacbe Merge pull request #1382 from OneUptime/snyk-fix-6736c09b254d6ed19f0c345a7715e526
[Snyk] Security upgrade node from 21.7.2-alpine3.18 to 21.7.3-alpine3.18
2024-05-10 07:31:43 +01:00
Simon Larsen
a9381e09c1 Merge pull request #1385 from OneUptime/snyk-fix-6370d57d4cb33cebd301a9f8099f0700
[Snyk] Security upgrade node from 21.7.2-alpine3.18 to 21.7.3-alpine3.18
2024-05-10 07:31:38 +01:00
Simon Larsen
f0816f6fa5 Merge pull request #1383 from OneUptime/snyk-fix-1337460fdd963d53e523192123f3d100
[Snyk] Security upgrade node from 21.7.2-alpine3.18 to 21.7.3-alpine3.18
2024-05-10 07:31:08 +01:00
Simon Larsen
ad95971f46 Merge pull request #1384 from OneUptime/snyk-fix-36290d6a0a64cee8ddc0de0f03f981a7
[Snyk] Security upgrade node from 21.7.2-alpine3.18 to 21.7.3-alpine3.18
2024-05-10 07:31:04 +01:00
Simon Larsen
bb59a365b7 Merge pull request #1386 from OneUptime/snyk-fix-a7809d569ba1546656fa651f1bb77337
[Snyk] Security upgrade node from 21.7.2-alpine3.18 to 21.7.3-alpine3.18
2024-05-10 07:30:57 +01:00
Simon Larsen
503dcffa87 Merge pull request #1387 from OneUptime/snyk-fix-f6067898842e100de3b29fb82f59daf0
[Snyk] Security upgrade node from 21.7.2-alpine3.18 to 21.7.3-alpine3.18
2024-05-10 07:30:51 +01:00
Simon Larsen
42a91415da refactor: Update FilterUtil to handle FieldType.Boolean filters 2024-05-10 07:30:16 +01:00
snyk-bot
09c6160a15 fix: Ingestor/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
2024-05-09 21:47:35 +00:00
snyk-bot
0638b797b3 fix: TestServer/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
2024-05-09 21:46:36 +00:00
snyk-bot
c6020a8eb6 fix: Accounts/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
2024-05-09 21:41:32 +00:00
snyk-bot
2023f37ab7 fix: Dashboard/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
2024-05-09 21:25:59 +00:00
snyk-bot
65f024c3f6 fix: Tests/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
2024-05-09 21:10:47 +00:00
snyk-bot
06936f0065 fix: Haraka/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
2024-05-09 20:35:05 +00:00
Simon Larsen
41a2e2cdbe refactor: Update Dropdown and EntityFilter to handle multi-select values 2024-05-09 20:24:41 +01:00
Simon Larsen
96cfe4c1fd refactor: Update DropdownFilter and EntityFilter to use DropdownOption type for dropdown values 2024-05-09 20:16:19 +01:00
snyk-bot
0096860584 fix: upgrade posthog-js from 1.126.0 to 1.128.1
Snyk has created this PR to upgrade posthog-js from 1.126.0 to 1.128.1.

See this package in npm:
https://www.npmjs.com/package/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-05-09 17:37:39 +00:00
Simon Larsen
da90c9b733 refactor: Update FilterViewer to use showFilterModal instead of showFilter prop 2024-05-09 17:09:25 +01:00
Simon Larsen
5cef1bacb7 refactor: Update FilterViewer to use showFilterModal instead of showFilter prop 2024-05-09 14:47:50 +01:00
Simon Larsen
9560883954 refactor: Update FilterData type to use Query object for improved database querying 2024-05-09 13:47:47 +01:00
Simon Larsen
f84a8d6d7a refactor: Include createdAt in SELECT query in StatementGenerator.test.ts 2024-05-09 12:50:46 +01:00
Simon Larsen
aea1ec24ef refactor: Update EntityFilter to handle FieldType.Entity and FieldType.EntityArray filters 2024-05-09 12:01:31 +01:00
Simon Larsen
7c250a25e3 refactor: Update StatementGenerator to include createdAt and updatedAt in SELECT query 2024-05-09 11:54:28 +01:00
Simon Larsen
e7799adc1c feat: Update StatementGenerator to include createdAt in SELECT query 2024-05-09 10:54:04 +01:00
Simon Larsen
2c949150ef refactor: Improve error handling and formatting in DatabaseService 2024-05-09 10:54:04 +01:00
Simon Larsen
983892d8b3 refactor: Update AnalyticsDatabaseService to support groupBy in queries 2024-05-09 10:54:04 +01:00
Simon Larsen
054234116b refactor: Update sort field in StatusPageAPI to use startsAt instead of createdAt 2024-05-09 10:54:04 +01:00
Simon Larsen
d6aafa8493 feat: Add support for counting with groupBy in DatabaseService 2024-05-09 10:54:04 +01:00
Simon Larsen
b5407b47b2 feat: Add onViewPage function to Metrics component 2024-05-09 10:54:04 +01:00
Simon Larsen
f84bec7e66 refactor: Fix formatting and remove unnecessary code in AnalyticsDatabaseService 2024-05-09 10:54:04 +01:00
Simon Larsen
43354d850b feat: Add AnalyticsModelTable component to Metrics page 2024-05-09 10:54:04 +01:00
Simon Larsen
1977dc3e62 refactor: Add GroupBy support to analytics database queries 2024-05-09 10:54:04 +01:00
Simon Larsen
c2bd27b0f9 refactor: Add GroupBy support to analytics database queries 2024-05-09 10:54:04 +01:00
Simon Larsen
264c0f0347 Merge pull request #1379 from OneUptime/snyk-upgrade-c9d2d1e5a53e5e8a69bea4eb64fe195b
[Snyk] Upgrade css-loader from 6.10.0 to 6.11.0
2024-05-09 08:56:09 +01:00
snyk-bot
0de98ae262 fix: upgrade css-loader from 6.10.0 to 6.11.0
Snyk has created this PR to upgrade css-loader from 6.10.0 to 6.11.0.

See this package in npm:
https://www.npmjs.com/package/css-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-08 21:54:23 +00:00
Simon Larsen
573a12075b Merge pull request #1377 from OneUptime/snyk-upgrade-5ae69998d12b665f469b0997420ea928
[Snyk] Upgrade posthog-js from 1.125.0 to 1.126.0
2024-05-08 20:55:12 +01:00
snyk-bot
0a85e245d7 fix: upgrade posthog-js from 1.125.0 to 1.126.0
Snyk has created this PR to upgrade posthog-js from 1.125.0 to 1.126.0.

See this package in npm:
https://www.npmjs.com/package/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-05-08 17:21:50 +00:00
Simon Larsen
41d01cceee Merge pull request #1373 from OneUptime/snyk-upgrade-0f03e56c8fcfe93e0825bfeb309bddb8
[Snyk] Upgrade @opentelemetry/instrumentation-xml-http-request from 0.49.1 to 0.50.0
2024-05-08 12:56:44 +01:00
Simon Larsen
dcd9aeccb3 Merge pull request #1371 from OneUptime/snyk-upgrade-3ed96983eb9a1ec2fc0be8285f56cff9
[Snyk] Upgrade @opentelemetry/exporter-trace-otlp-http from 0.49.1 to 0.50.0
2024-05-08 12:56:17 +01:00
Simon Larsen
c59ebc2373 refactor: Update monitor steps to include monitor name 2024-05-08 12:49:07 +01:00
Simon Larsen
643f4acddd refactor: Improve error handling in API class and include URL in exception message 2024-05-08 12:17:14 +01:00
Simon Larsen
b3fb21af59 refactor: Update markdown field types for root cause in Incident and IncidentStateTimeline models 2024-05-08 11:43:54 +01:00
Simon Larsen
2164f45a68 refactor: Update UptimeUtil to use startsAt and endsAt properties for event dates 2024-05-08 11:21:34 +01:00
Simon Larsen
8a4afe992c refactor: Improve calculation of incident duration in IncidentView component 2024-05-08 11:10:20 +01:00
Simon Larsen
f35e50bab3 refactor: Add startsAt property to monitorStatusTimelines in StatusPageAPI 2024-05-08 10:34:59 +01:00
Simon Larsen
63064c587c refactor: Remove dark mode styles from progress bar and pagination components 2024-05-08 08:41:59 +01:00
snyk-bot
edd11ffade fix: upgrade @opentelemetry/instrumentation-xml-http-request from 0.49.1 to 0.50.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation-xml-http-request from 0.49.1 to 0.50.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-07 21:06:49 +00:00
snyk-bot
97e1688b50 fix: upgrade @opentelemetry/sdk-trace-web from 1.22.0 to 1.23.0
Snyk has created this PR to upgrade @opentelemetry/sdk-trace-web from 1.22.0 to 1.23.0.

See this package in npm:
https://www.npmjs.com/package/@opentelemetry/sdk-trace-web

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-05-07 21:06:45 +00:00
snyk-bot
b7e97a29ee fix: upgrade @opentelemetry/exporter-trace-otlp-http from 0.49.1 to 0.50.0
Snyk has created this PR to upgrade @opentelemetry/exporter-trace-otlp-http from 0.49.1 to 0.50.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-07 21:06:41 +00:00
snyk-bot
f0acbc6eb0 fix: upgrade @opentelemetry/instrumentation from 0.49.1 to 0.50.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation from 0.49.1 to 0.50.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-07 21:06:37 +00:00
Simon Larsen
fdf6e3dfa3 refactor: Optimize sorting of monitorStatusTimelines by createdAt in StatusPageAPI 2024-05-07 20:01:37 +01:00
Simon Larsen
b59b8257cc refactor: Use explicit type annotations for mutex and mutexId in Semaphore class 2024-05-06 22:42:09 +01:00
Simon Larsen
9bde353e93 refactor: Add Semaphore locking for monitor probe creation and release mutex after completion 2024-05-06 22:18:14 +01:00
Simon Larsen
a2c2867469 refactor: Add Semaphore locking for monitor probe creation and release mutex after completion 2024-05-06 21:52:09 +01:00
Simon Larsen
bd3ba94da8 chore: Update package-lock.json and package.json to include redis-semaphore dependency 2024-05-06 21:47:47 +01:00
Simon Larsen
8e6800c17b refactor: Update UserAuthorization middleware to improve project permissions handling 2024-05-06 20:47:15 +01:00
Simon Larsen
e481e043dd refactor: Update REDIS_PORT value in _helpers.tpl to use dynamic value from values.yaml 2024-05-06 20:47:09 +01:00
Simon Larsen
a4e6552c91 refactor: Disable redis persistence and add common configuration in values.yaml 2024-05-06 15:20:42 +01:00
Simon Larsen
6ce5cde46e Merge pull request #1365 from OneUptime/snyk-upgrade-e95d2830e79bc050ba332cb3d9670e5b
[Snyk] Upgrade reactflow from 11.10.4 to 11.11.1
2024-05-06 15:16:47 +01:00
Simon Larsen
22014c81c4 Merge pull request #1366 from OneUptime/snyk-upgrade-ec50f233945652edca96198c892ea002
[Snyk] Upgrade @opentelemetry/context-zone from 1.22.0 to 1.23.0
2024-05-06 15:16:40 +01:00
Simon Larsen
bff63cdf58 Merge pull request #1367 from OneUptime/snyk-upgrade-9bdef45fe03889844c5f043354578d14
[Snyk] Upgrade @opentelemetry/instrumentation-fetch from 0.49.1 to 0.50.0
2024-05-06 15:16:32 +01:00
Simon Larsen
5f9d57a099 Merge pull request #1369 from OneUptime/snyk-upgrade-1b2e0c757b53983d536db6e5be033842
[Snyk] Upgrade @opentelemetry/resources from 1.22.0 to 1.23.0
2024-05-06 15:16:22 +01:00
Simon Larsen
ca100f9de9 refactor: Update REDIS_PORT value in _helpers.tpl to use dynamic value from values.yaml 2024-05-06 13:53:37 +01:00
Simon Larsen
68dbb010aa refactor: Disable redis persistence and add common configuration in values.yaml 2024-05-06 13:49:08 +01:00
Simon Larsen
5cd213a750 refactor: Update SSO.ts and StatusPageSSO.ts to include issuer URL in SAML request 2024-05-06 13:20:34 +01:00
Simon Larsen
26683914bc refactor: Update SSO.ts and StatusPageSSO.ts to include issuer URL in SAML request 2024-05-06 13:13:52 +01:00
Simon Larsen
8a5adfd589 refactor: Remove unnecessary code in UserAuthorization.ts 2024-05-06 12:39:11 +01:00
Simon Larsen
d2eefeabba refactor: Include issuer URL in SAML request for SSO 2024-05-06 12:26:18 +01:00
Simon Larsen
1148b59416 refactor: Include issuer URL in SAML request for SSO 2024-05-06 12:02:55 +01:00
Simon Larsen
848c0c8100 refactor: Update SSO.ts and StatusPageSSO.ts to include issuer URL in SAML request 2024-05-06 12:00:23 +01:00
Simon Larsen
21f40961cf refactor: Update isGlobalLogin flag in SSO.ts and UserAuthorization.ts 2024-05-06 11:53:45 +01:00
Simon Larsen
2f74fbe0a8 refactor: Simplify SSO.ts code for SAMLRequest encoding and redirect 2024-05-06 10:17:49 +01:00
Simon Larsen
571784a523 refactor: Simplify SSO.ts code for SAMLRequest encoding and redirect 2024-05-06 09:52:14 +01:00
snyk-bot
7c60fe8009 fix: upgrade @opentelemetry/resources from 1.22.0 to 1.23.0
Snyk has created this PR to upgrade @opentelemetry/resources from 1.22.0 to 1.23.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-05 22:21:24 +00:00
snyk-bot
07f99b8796 fix: upgrade @opentelemetry/semantic-conventions from 1.22.0 to 1.23.0
Snyk has created this PR to upgrade @opentelemetry/semantic-conventions from 1.22.0 to 1.23.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-05 22:21:21 +00:00
snyk-bot
1a2fe1d16d fix: upgrade @opentelemetry/instrumentation-fetch from 0.49.1 to 0.50.0
Snyk has created this PR to upgrade @opentelemetry/instrumentation-fetch from 0.49.1 to 0.50.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-05 22:21:17 +00:00
snyk-bot
a28a041c8d fix: upgrade @opentelemetry/context-zone from 1.22.0 to 1.23.0
Snyk has created this PR to upgrade @opentelemetry/context-zone from 1.22.0 to 1.23.0.

See this package in npm:
https://www.npmjs.com/package/@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-05-05 22:21:13 +00:00
snyk-bot
cfcce00060 fix: upgrade reactflow from 11.10.4 to 11.11.1
Snyk has created this PR to upgrade reactflow from 11.10.4 to 11.11.1.

See this package in npm:
https://www.npmjs.com/package/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-05-05 22:21:08 +00:00
Simon Larsen
da0fa045e6 refactor: Simplify SSO.ts code for SAMLRequest encoding and redirect 2024-05-05 21:37:05 +01:00
Simon Larsen
859f62bf93 refactor: Simplify base64 encoding in SSO.ts 2024-05-04 23:26:13 +01:00
Simon Larsen
6a1cc1bd8b refactor: Update SSO.ts to use zlib.deflateRawSync for SAML message encoding 2024-05-04 22:55:29 +01:00
Simon Larsen
5b9abe8aea refactor: Add SAMLRequest encoding and redirect to Identity Provider 2024-05-04 22:54:06 +01:00
Simon Larsen
d0ec483a0f refactor: Update Register.tsx and UserAuthorization.test.ts for isGlobalLogin flag 2024-05-04 22:00:33 +01:00
Simon Larsen
c03a3d6f56 refactor: Remove debugger statement in SSO.ts 2024-05-04 21:53:00 +01:00
Simon Larsen
8761dbd75b refactor: Update login page SSO message for clarity and consistency 2024-05-04 21:51:09 +01:00
Simon Larsen
5541922b25 refactor: Update login page SSO message for clarity and consistency 2024-05-04 21:50:35 +01:00
Simon Larsen
8693ab065e refactor: Add isGlobalLogin flag to user object in ProjectAuthorization middleware 2024-05-04 21:29:53 +01:00
Simon Larsen
fe4daa7937 refactor: Update login page SSO message for clarity and consistency 2024-05-04 21:27:21 +01:00
Simon Larsen
20d7f2f8b4 refactor: Update JSONWebToken.signUserLoginToken() method to include isGlobalLogin flag 2024-05-04 21:13:34 +01:00
Simon Larsen
7f94f3d4d4 refactor: Update column_1 and column_2 definitions in StatementGenerator.test.ts 2024-05-04 20:54:19 +01:00
Simon Larsen
bc46370f7c refactor: Update JSONWebToken.sign() method to accept an object with data and expiresInSeconds properties 2024-05-04 20:37:58 +01:00
Simon Larsen
b3346a9702 refactor: Update login page SSO message for clarity and consistency 2024-05-04 20:11:02 +01:00
Simon Larsen
f793f7dd16 refactor: Update email regex to improve validation accuracy 2024-05-04 20:02:17 +01:00
Simon Larsen
766f1f6178 update email regex 2024-05-04 19:33:59 +01:00
Simon Larsen
9f76748037 update deps 2024-05-04 19:33:45 +01:00
Simon Larsen
469e06280a refactor: Improve code readability and maintainability in AnalyticsDatabaseService.ts 2024-05-03 19:05:56 +01:00
Simon Larsen
aede9af03d chore: Remove unnecessary line in BaseModel.ts 2024-05-03 14:48:07 +01:00
Nawaz Dhandala
0bc7cf345f chore: Add missing newline character in BaseModel.ts 2024-05-03 14:45:26 +01:00
Nawaz Dhandala
95c7b10ce0 Refactor AnalyticsDatabaseService.ts for improved code readability and maintainability 2024-05-03 14:04:24 +01:00
Simon Larsen
daceab164c Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-05-03 13:38:00 +01:00
Simon Larsen
2d28fbaf85 refactor: Add required flag and default value for attributes column in Log model 2024-05-03 13:37:57 +01:00
Simon Larsen
8d2cbe49ad Merge pull request #1364 from OneUptime/snyk-upgrade-8c197b0383ff1f076301a2077e18b9b2
[Snyk] Upgrade reactflow from 11.11.0 to 11.11.1
2024-05-03 13:10:26 +01:00
Simon Larsen
86f262583c feat: Generate new certificates for status page domains
This commit adds a new data migration script, GenerateNewCertsForStatusPage.ts, which generates new certificates for status page domains. It retrieves all domains in the greenlock certs, orders them, and updates the certificates accordingly. This will ensure that the status page domains have up-to-date and valid certificates.

Refactor and delete unused Metric services and models
Refactor Queue class to use explicit type annotation for queue variable
Add Queue caching to improve performance and reduce redundant connections
Refactor test-e2e job in release.yml workflow
Fix error handling in StatusPageDomainService.ts
Update select field in MoveGreenlockCertsToAcmeCerts.ts to use _id instead of id
Update ingress configuration for OneUptime Helm chart
Refactor StatusPageAPI to improve code readability and maintainability
Refactor StatusPageAPI and UpdateByID to improve code readability and maintainability
Refactor Let's Encrypt configuration and update GreenlockUtil class
2024-05-03 13:07:45 +01:00
Simon Larsen
4e748d1626 Refactor and delete unused Metric services and models 2024-05-03 13:03:01 +01:00
Simon Larsen
1dbea8e636 Refactor Queue class to use explicit type annotation for queue variable 2024-05-03 10:30:41 +01:00
Simon Larsen
3991acf5fc Add Queue caching to improve performance and reduce redundant connections 2024-05-03 10:04:19 +01:00
snyk-bot
1285830a9b fix: upgrade reactflow from 11.11.0 to 11.11.1
Snyk has created this PR to upgrade reactflow from 11.11.0 to 11.11.1.

See this package in npm:
https://www.npmjs.com/package/reactflow

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-02 17:57:26 +00:00
Simon Larsen
96d3243205 Refactor test-e2e job in release.yml workflow 2024-05-01 17:22:12 +01:00
Simon Larsen
08cbdb15d0 Fix error handling in StatusPageDomainService.ts 2024-05-01 15:16:59 +01:00
Simon Larsen
f59284e4d6 Update select field in MoveGreenlockCertsToAcmeCerts.ts to use _id instead of id 2024-05-01 13:57:46 +01:00
Simon Larsen
0c5d0e81a5 Update ingress configuration for OneUptime Helm chart 2024-05-01 13:41:35 +01:00
Simon Larsen
82829a5b97 Refactor StatusPageAPI to improve code readability and maintainability 2024-05-01 13:12:16 +01:00
Simon Larsen
d3c188a804 Refactor StatusPageAPI and UpdateByID to improve code readability and maintainability 2024-05-01 13:08:15 +01:00
Simon Larsen
85ffc36fad Refactor Let's Encrypt configuration and update GreenlockUtil class 2024-05-01 12:44:49 +01:00
Simon Larsen
8d34e9ccbe Refactor LetsEncrypt configuration and update GreenlockUtil class 2024-05-01 12:42:32 +01:00
Simon Larsen
c6643d7f7c Update GreenlockUtil class to handle lets encrypt account key properly 2024-05-01 12:37:41 +01:00
Simon Larsen
1433823efe Update LetsEncrypt configuration for OneUptime deployment 2024-05-01 12:13:01 +01:00
Simon Larsen
bd5902ed6d Update ingress configuration for OneUptime Helm chart 2024-05-01 11:44:30 +01:00
Simon Larsen
b64666f0ff Update oneuptime logo URL in README.md 2024-05-01 11:32:30 +01:00
Simon Larsen
9706cced86 Update OneUptime Helm chart with production readiness checklist 2024-05-01 11:29:14 +01:00
Simon Larsen
49cb3024ef Update nginx.yaml for OneUptime Helm chart 2024-05-01 11:09:30 +01:00
Simon Larsen
2fec007c5f Update ingressClassName in values.yaml for OneUptime Helm chart 2024-05-01 10:57:26 +01:00
Simon Larsen
0f40f5f730 Update HelmChart templates and values for OneUptime deployment 2024-05-01 10:30:21 +01:00
Simon Larsen
120ca78760 Update HelmChart/Public/oneuptime/templates/extra-templates.yaml and HelmChart/Public/oneuptime/values.yaml 2024-05-01 10:19:30 +01:00
Simon Larsen
d50fdf3464 Update nginx.yaml and values.yaml for OneUptime Helm chart 2024-05-01 10:14:02 +01:00
Simon Larsen
34ddb8efdb Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-05-01 09:49:38 +01:00
Simon Larsen
3724cce4f0 Add cron job to verify CNAMEs in StatusPageCerts.ts 2024-05-01 09:49:11 +01:00
Simon Larsen
d864992bdb Add MoveGreenlockCertsToAcmeCerts migration and update DataMigrations in Index.ts 2024-05-01 09:31:45 +01:00
Simon Larsen
3515752a95 Add MoveGreenlockCertsToAcmeCerts migration 2024-05-01 09:29:29 +01:00
Simon Larsen
53d66db8cb Merge pull request #1359 from OneUptime/snyk-fix-6d9e266d473ce0fed1ec1645f0bf6548
[Snyk] Security upgrade ejs from 3.1.9 to 3.1.10
2024-04-30 22:13:44 +01:00
Simon Larsen
548250f837 Merge pull request #1360 from OneUptime/snyk-fix-4fe336667711cbbe5c8ccb29e8c049e7
[Snyk] Security upgrade ejs from 3.1.9 to 3.1.10
2024-04-30 22:13:36 +01:00
Simon Larsen
b3b343d4aa Merge pull request #1361 from OneUptime/snyk-fix-eff57b0386677ae55037cf20bb1b38e3
[Snyk] Security upgrade ejs from 3.1.9 to 3.1.10
2024-04-30 22:13:31 +01:00
Simon Larsen
69a8f438f7 Merge pull request #1362 from OneUptime/snyk-fix-b0f6bc6acf45920714d4b0cacfb5c537
[Snyk] Security upgrade ejs from 3.1.9 to 3.1.10
2024-04-30 22:13:25 +01:00
Simon Larsen
7b571f15a9 Merge pull request #1363 from OneUptime/snyk-fix-2342a863e5405ba1a2449f7819d9a66b
[Snyk] Security upgrade ejs from 3.1.9 to 3.1.10
2024-04-30 22:13:18 +01:00
Simon Larsen
d783eaea9d Refactor table name in PostgresDatabase.ts, remove unused volume in app.yaml, fix typos in Domains.tsx and Index.ts, update nodemon.json files, remove greenlock dependency, and add validation for cname in StatusPageDomainService.ts 2024-04-30 21:24:04 +01:00
Simon Larsen
2e5aafe151 Update table name in PostgresDatabase.ts to use "domain" instead of "key" 2024-04-30 21:16:31 +01:00
Simon Larsen
dea938bcbb Add FetchCertificateJobs.init() to Nginx/Index.ts 2024-04-30 20:18:36 +01:00
Simon Larsen
7c16b14ab4 Update table name in PostgresDatabase.ts and remove unused volume in app.yaml 2024-04-30 19:45:43 +01:00
Simon Larsen
e22ff26dc0 Refactor error handling in StatusAPI.ts 2024-04-30 19:30:35 +01:00
Simon Larsen
75bd6ca6ed Fix DatabaseNotConnectedException code in ExceptionCode.ts and DatabaseNotConnectedException.test.ts 2024-04-30 19:24:54 +01:00
Simon Larsen
f0bdb76999 Fix typos in Domains.tsx and Index.ts 2024-04-30 19:12:03 +01:00
Simon Larsen
a9e9d14f69 Update StatusPageAPI and StatusPageDomainAPI to use AcmeChallenge model and remove Greenlock dependencies 2024-04-30 18:43:15 +01:00
Simon Larsen
21daac0400 Update nodemon.json files for Accounts, AdminDashboard, and Dashboard 2024-04-30 17:34:15 +01:00
Simon Larsen
3cdf71906b Remove greenlock dependency from package.json 2024-04-30 15:10:54 +01:00
Simon Larsen
0714161460 Add validation for cname in StatusPageDomainService.ts 2024-04-30 15:02:54 +01:00
Simon Larsen
78b7252743 Refactor GreenlockUtil challengeCreateFn and challengeRemoveFn to improve readability 2024-04-30 14:16:35 +01:00
Simon Larsen
2ba406f802 Add AcmeChallenge model, update StatusPageDomain model, and import AcmeCertificate in Model and Service files 2024-04-30 14:15:18 +01:00
Simon Larsen
48ebfc17dd Add AcmeChallenge model and update StatusPageDomain model 2024-04-30 14:08:05 +01:00
Simon Larsen
9d180a2dcb Remove unused Greenlock configuration files and import AcmeCertificate in Model and Service files 2024-04-30 13:22:06 +01:00
Simon Larsen
0f2a970ede Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-30 11:37:28 +01:00
Simon Larsen
4ab3c99fe4 Update dependencies in package.json 2024-04-30 11:37:24 +01:00
Simon Larsen
ae2e452d27 Merge pull request #1356 from sainak/sainak/fix/sert-scripts
Update nginx service name and host variable in cert helper scripts
2024-04-30 09:37:30 +01:00
snyk-bot
825d733f92 fix: Probe/package.json & Probe/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-EJS-6689533
2024-04-29 21:39:29 +00:00
snyk-bot
27039bc646 fix: Scripts/package.json & Scripts/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-EJS-6689533
2024-04-29 21:09:12 +00:00
snyk-bot
1bb1d80b09 fix: TestServer/package.json & TestServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-EJS-6689533
2024-04-29 20:56:52 +00:00
snyk-bot
983f587ce4 fix: Ingestor/package.json & Ingestor/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-EJS-6689533
2024-04-29 20:32:33 +00:00
Simon Larsen
e1f9325512 Fix renewOffset value in GreenlockUtil 2024-04-29 20:34:06 +01:00
snyk-bot
96c27c86ca fix: CommonServer/package.json & CommonServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-EJS-6689533
2024-04-29 17:18:14 +00:00
Simon Larsen
a172596e46 Update GreenlockUtil to include renewOffset and renewStagger options 2024-04-29 16:59:28 +01:00
Simon Larsen
3d30e9356a Fix column handling in ModelPermission.ts 2024-04-29 16:34:00 +01:00
Simon Larsen
7c04ecec35 Fix column handling in ModelPermission.ts and update GreenlockCertificateService in Store.ts 2024-04-29 15:59:37 +01:00
Simon Larsen
80511a5f8d Fix expiration date calculation in Greenlock Manager.ts 2024-04-29 14:19:50 +01:00
Simon Larsen
6692fb00b8 Refactor BaseModel and ModelPermission classes to improve column handling 2024-04-29 14:15:11 +01:00
Simon Larsen
83e207a7de Refactor OneUptimeDate class to improve convertMinutesToDaysHoursAndMinutes method in Date.ts 2024-04-29 11:35:25 +01:00
Simon Larsen
d62aa7f5a6 Refactor Index.tsx to import PromiseVoidFunction from 'Common/Types/FunctionTypes' 2024-04-29 11:06:08 +01:00
Simon Larsen
8a130f96e2 Refactor InfoCard component to add className prop and improve readability 2024-04-29 11:05:57 +01:00
Simon Larsen
66a470ebe1 Refactor GreenlockChallenge and GreenlockCertificate models to add deletedByUser and deletedByUserId properties 2024-04-29 10:26:10 +01:00
Simon Larsen
30a59aa21e Refactor InfoCard component to improve readability and fix indentation issue 2024-04-29 10:17:10 +01:00
Simon Larsen
7a6a5c141b Refactor IncidentView component to add incidentStates state and update getTimeToAcknowledge and getTimeToResolve functions 2024-04-29 10:15:17 +01:00
Simon Larsen
c4bf458074 Refactor OneUptimeDate class to add convertMinutesToHoursAndMinutes method in Date.ts 2024-04-29 09:44:33 +01:00
Simon Larsen
ae873e296c Improve CNAME verification process and add DNS propagation reminder 2024-04-29 09:23:12 +01:00
Simon Larsen
4a973d7107 Fix indentation issue and handle CNAME verification failure in StatusPageDomainAPI.ts 2024-04-29 08:24:33 +01:00
Simon Larsen
9bbf460b97 Fix indentation issue in EnvironmentConfig.ts 2024-04-28 21:31:29 +01:00
Simon Larsen
c348a8bd05 Refactor StatusPageDomainAPI to enable custom domains and improve CNAME verification process 2024-04-28 21:20:45 +01:00
Simon Larsen
76d8f5d5ef Remove @socket.io/redis-adapter dependency 2024-04-28 21:03:29 +01:00
Simon Larsen
72ac305aad Fix multiple slashes in route and handle CNAME verification failure in StatusPageDomainAPI.ts 2024-04-28 20:55:35 +01:00
Simon Larsen
1ac05450e7 Refactor StatusPageDomainAPI to set isRoot property in StatusPageDomainAPI.ts 2024-04-28 20:46:33 +01:00
Simon Larsen
67165375ac Add isSslOrdered property to StatusPageDomain model and update orderCert method in StatusPageDomainService 2024-04-28 20:44:54 +01:00
Simon Larsen
6325e36bd0 Refactor BaseAPI/Index.ts to remove unused imports and clean up code
Refactor StatusPageDomainAPI and related components to improve CNAME verification process
Refactor StatusPageDomainService and Domains.tsx to improve CNAME verification process
Refactor API endpoints to use sendEmptySuccessResponse instead of sendEmptyResponse
Refactor SocketIO.ts to remove Redis adapter initialization
Refactor StatusPageDelete component: Add SSL auto-renewal feature and improve CNAME verification process
Refactor GreenlockUtil and StatusPageDomainService to improve CNAME validation and configuration paths
Refactor StatusPageDomainService: Add onBeforeUpdate hook to validate CNAME and update GreenlockUtil configuration paths
Refactor StatusPageDomainService: Add onBeforeUpdate hook to validate CNAME before updating
Refactor StatusPageCerts:RemoveCerts method to use statusPageDomain.fullDomain instead of domain.fullDomain
2024-04-28 20:13:32 +01:00
Simon Larsen
e6375087cd Refactor BaseAPI/Index.ts to remove unused imports and clean up code 2024-04-28 20:06:34 +01:00
Simon Larsen
737e234ec0 Refactor StatusPageDomainAPI and related components to improve CNAME verification process 2024-04-28 20:04:38 +01:00
Simon Larsen
1427d52c9f Refactor StatusPageDomainService and Domains.tsx to improve CNAME verification process 2024-04-28 20:03:00 +01:00
Simon Larsen
8377285a27 Refactor API endpoints to use sendEmptySuccessResponse instead of sendEmptyResponse 2024-04-28 19:52:57 +01:00
Simon Larsen
7414c6563d Refactor SocketIO.ts to remove Redis adapter initialization 2024-04-28 14:45:51 +01:00
Simon Larsen
0669e96a5d Refactor StatusPageDelete component: Add SSL auto-renewal feature and improve CNAME verification process 2024-04-28 14:37:52 +01:00
Simon Larsen
54a6101315 Refactor GreenlockUtil and StatusPageDomainService to improve CNAME validation and configuration paths 2024-04-28 14:26:12 +01:00
Simon Larsen
eaaef7280f Refactor StatusPageDomainService: Add onBeforeUpdate hook to validate CNAME and update GreenlockUtil configuration paths 2024-04-28 14:24:24 +01:00
Simon Larsen
b368633ff9 Refactor StatusPageDomainService: Add onBeforeUpdate hook to validate CNAME before updating 2024-04-28 14:22:41 +01:00
Simon Larsen
37b25c3a8f Refactor StatusPageCerts:RemoveCerts method to use statusPageDomain.fullDomain instead of domain.fullDomain 2024-04-28 13:48:42 +01:00
Simon Larsen
191d0154b4 Update LETSENCRYPT_NOTIFICATION_EMAIL configuration option 2024-04-28 13:18:09 +01:00
Simon Larsen
1f786699d2 Update GreenlockUtil configuration paths 2024-04-28 13:16:53 +01:00
Simon Larsen
00b5453b3f Add LETSENCRYPT_NOTIFICATION_EMAIL configuration option 2024-04-28 13:09:23 +01:00
Simon Larsen
077ca1037b Add IS_BILLING_ENABLED flag to E2E tests 2024-04-27 17:16:23 +01:00
Simon Larsen
1be827741e Update E2E Config.ts to use E2E_TEST_STATUS_PAGE_URL instead of E2E_TEST_REGISTERED_USER_PASSWORD 2024-04-27 16:55:22 +01:00
Simon Larsen
d51e818d10 Update E2E Config.ts to use E2E_TEST_STATUS_PAGE_URL instead of E2E_TEST_REGISTERED_USER_PASSWORD 2024-04-27 09:42:41 +01:00
Simon Larsen
d312c2b0cf Update E2E workflow to include failed webhook URL 2024-04-26 22:50:20 +01:00
Simon Larsen
96a09353fb Update password field in UserProfile/Password.tsx 2024-04-26 22:15:30 +01:00
Simon Larsen
fe40c5bb8d Add test results artifact upload to E2E workflow 2024-04-26 22:04:12 +01:00
Simon Larsen
7cbbce4067 Add IS_BILLING_ENABLED flag to account registration form in E2E tests 2024-04-26 21:15:01 +01:00
Simon Larsen
2870d28354 Fix restart value in e2e service of docker-compose.base.yml 2024-04-26 19:47:24 +01:00
Simon Larsen
899bc1d205 Update E2E cron job environment variables to use consistent naming convention 2024-04-26 19:19:38 +01:00
Simon Larsen
308dba7f24 Add CORS configuration to OTelCollector HTTP receiver 2024-04-26 19:12:38 +01:00
Simon Larsen
a0e565485b Update environment variables and configurations in E2E and HelmChart templates 2024-04-26 19:07:20 +01:00
Simon Larsen
35c21d7611 Update E2E workflow to include failed webhook URL 2024-04-26 18:54:23 +01:00
Simon Larsen
a0ef85b8cd Refactor test files to use consistent formatting 2024-04-26 18:46:22 +01:00
Simon Larsen
818f8cc421 Update E2E workflow to use environment variables from config.env in test.e2e.yaml 2024-04-26 18:46:10 +01:00
Simon Larsen
eaeb40ec49 Update Kubernetes metadata and environment variables in HelmChart templates 2024-04-26 18:10:26 +01:00
Simon Larsen
74273e6e9b Refactor E2E workflow to use environment variables from config.env in test.e2e.yaml 2024-04-26 18:01:15 +01:00
Aakash Singh
c092adfa3d Update nginx service name and host variable in cert helper scripts 2024-04-26 16:58:09 +00:00
Simon Larsen
9eec9042bd Refactor E2E workflow to use npm run prerun command before running docker-compose in test.e2e.yaml 2024-04-26 16:40:02 +01:00
Simon Larsen
496c2ca32c Update Kubernetes metadata in HelmChart templates 2024-04-26 15:05:30 +01:00
Simon Larsen
499ab07cd3 Update E2E cron job environment variables to use quoted values 2024-04-26 15:01:17 +01:00
Simon Larsen
c634526215 Update OpenTelemetry exporter configuration in HelmChart 2024-04-26 14:56:33 +01:00
Simon Larsen
cda9921f5d Update OpenTelemetry exporter configuration in HelmChart 2024-04-26 14:54:10 +01:00
Simon Larsen
d3ca5a97ea Update OpenTelemetry exporter configuration in HelmChart 2024-04-26 14:53:25 +01:00
Simon Larsen
f22ae5844d Refactor E2E workflow to use status-check.sh script for server availability check 2024-04-26 14:45:01 +01:00
Simon Larsen
a71190493a Refactor code to remove unused imports and routes 2024-04-26 14:30:17 +01:00
Simon Larsen
caf3377cee Refactor E2E workflow to use parentheses for command grouping in docker-compose run step 2024-04-26 13:36:52 +01:00
Simon Larsen
f0e4d6bf71 Update E2E workflow to use --abort-on-container-exit flag in docker-compose command 2024-04-26 13:36:40 +01:00
Simon Larsen
f34e4a23d6 Update E2E workflow to use docker-compose for running E2E tests 2024-04-26 13:35:25 +01:00
Simon Larsen
e03ecb0e0d Update E2E package.json scripts order 2024-04-26 12:59:05 +01:00
Simon Larsen
0a8574678c Update E2E workflow to wait for 60 minutes for server to be up 2024-04-26 10:54:55 +01:00
Simon Larsen
0fdf63ce0c Add npm install command for Common directory in E2E workflow 2024-04-25 22:56:26 +01:00
Simon Larsen
d1586f75da Add data test IDs to BasicForm fields 2024-04-25 22:05:10 +01:00
Simon Larsen
f47b53c5b9 Fix formatting issues in code blocks 2024-04-25 22:03:12 +01:00
Simon Larsen
7523c3ad4c Merge pull request #1354 from UnkAtreus/fix/table-header-button-state-not-re-render
fix: setting header buttons in BaseModelTable
2024-04-25 21:54:54 +01:00
Simon Larsen
11d580a373 Add E2E test environment variables and update E2E tests 2024-04-25 21:53:51 +01:00
Simon Larsen
9a78c4c24d Refactor Docker Compose file to use common variables 2024-04-25 19:22:02 +01:00
Simon Larsen
ec936b43e2 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-25 19:15:16 +01:00
Simon Larsen
3bc2e639d9 Add Jest and Babel ESLint parser to devDependencies 2024-04-25 19:15:14 +01:00
Simon Larsen
fa672be557 Merge pull request #1355 from OneUptime/snyk-upgrade-50073c5b5ba8c99a5ba48e8562e31e3c
[Snyk] Upgrade reactflow from 11.10.4 to 11.11.0
2024-04-25 18:55:05 +01:00
Simon Larsen
695f16ca1e Add _id field to Acknowledge Incident and Resolve Incident elements 2024-04-25 18:50:13 +01:00
snyk-bot
003b638170 fix: upgrade reactflow from 11.10.4 to 11.11.0
Snyk has created this PR to upgrade reactflow from 11.10.4 to 11.11.0.

See this package in npm:
https://www.npmjs.com/package/reactflow

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-04-25 17:35:16 +00:00
Simon Larsen
1cf208387f Add server readiness check before running E2E tests 2024-04-25 18:34:13 +01:00
UnkAtreus
625cb49939 fix: setting header buttons in BaseModelTable 2024-04-25 23:41:57 +07:00
Simon Larsen
7d44eb1a33 Update preinstall script in E2E package.json to include install-deps command 2024-04-25 16:20:30 +01:00
Simon Larsen
ab42ca1ef9 Add test-e2e job to GitHub Actions workflow 2024-04-25 15:30:08 +01:00
Simon Larsen
910aa113b5 Add npm install step for Common directory 2024-04-25 15:22:52 +01:00
Simon Larsen
1516f81180 Refactor E2E configuration and Docker Compose file 2024-04-25 15:07:33 +01:00
Simon Larsen
b9f86d029a Update Dockerfile.tpl to use non-Alpine Node.js image for Playwright compatibility 2024-04-25 15:04:05 +01:00
Simon Larsen
ecfc47ee59 Update dependencies and test directory in E2E package files 2024-04-25 13:50:33 +01:00
Simon Larsen
5d9a11fb48 Refactor E2E tests and Docker configuration 2024-04-25 12:58:39 +01:00
Simon Larsen
894d15918b Fix BASE_URL construction in Config.ts and SignUp.test.ts 2024-04-25 12:45:08 +01:00
Simon Larsen
73e6a20503 Refactor e2e-cron.yml to include common environment variables and change restart policy 2024-04-25 12:33:58 +01:00
Simon Larsen
ef0dc5305a Update test.e2e.yaml to free up disk space in GitHub Actions runner 2024-04-25 12:32:22 +01:00
Simon Larsen
73dc057c99 Update test.e2e.yaml and Config.ts files 2024-04-25 12:31:38 +01:00
Simon Larsen
092564434f Refactor Dockerfile.tpl to remove duplicate CMD instruction 2024-04-25 12:27:36 +01:00
Simon Larsen
7623fe7df4 Add Docker build step for E2E tests 2024-04-25 12:08:58 +01:00
Simon Larsen
da03636bd0 Add Docker build step for E2E tests 2024-04-25 12:01:49 +01:00
Simon Larsen
21b119d8a0 Refactor import statements in E2E test files to use Config instead of Utils/BaseURL 2024-04-25 12:01:13 +01:00
Simon Larsen
4ee62fcca4 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-25 11:53:43 +01:00
Simon Larsen
8acfb0f798 add e2e tests 2024-04-25 11:53:11 +01:00
Simon Larsen
6e2d343264 Update package-lock.json and package.json with latest dependencies 2024-04-25 11:51:26 +01:00
Simon Larsen
3dd03cda46 Refactor and remove unused test files in E2E/Tests/Home directory 2024-04-25 11:46:22 +01:00
Simon Larsen
87c8993141 Merge pull request #1350 from OneUptime/snyk-upgrade-83479794e36d11372eff5b3bc5f5d6ec
[Snyk] Upgrade css-loader from 6.10.0 to 6.11.0
2024-04-25 09:01:07 +01:00
Simon Larsen
323601db3a Merge pull request #1352 from OneUptime/snyk-fix-eecb134aa680c310c30f2dd5bd870f70
[Snyk] Security upgrade nginx from 1.25.4-alpine to 1.25.5-alpine
2024-04-25 09:00:57 +01:00
snyk-bot
1ac7d4920f fix: Nginx/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
2024-04-25 03:39:23 +00:00
snyk-bot
617a436eb5 fix: upgrade css-loader from 6.10.0 to 6.11.0
Snyk has created this PR to upgrade css-loader from 6.10.0 to 6.11.0.

See this package in npm:
https://www.npmjs.com/package/css-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-04-24 20:10:37 +00:00
Simon Larsen
7e6af77d70 Refactor Schedule component to include run method in WebhookTrigger 2024-04-24 19:33:38 +01:00
Simon Larsen
59a6771e73 Refactor initialization code and add WorkflowFeatureSet to App/Index.ts 2024-04-24 19:17:38 +01:00
Simon Larsen
b88320bcbb Refactor cleanup cron jobs in HelmChart/Public/oneuptime/templates/cron-job.yaml and values.yaml 2024-04-24 18:50:13 +01:00
Simon Larsen
06bafdfce6 Refactor cleanup cron jobs in HelmChart/Public/oneuptime/templates/cron-job.yaml and HelmChart/Public/oneuptime/values.yaml 2024-04-24 18:44:00 +01:00
Simon Larsen
441aef4823 Refactor initialization code in Nginx/Index.ts 2024-04-24 18:31:16 +01:00
Simon Larsen
0f86812258 Add new configurations for 'ingestor' in HelmChart/Public/oneuptime/values.yaml and Nginx/Index.ts 2024-04-24 18:26:13 +01:00
Simon Larsen
f601e93101 Refactor status API to return JSON object with status 'ok' 2024-04-24 18:00:35 +01:00
Simon Larsen
bf8d4757b1 Refactor logging statements in StatementGenerator.test.ts 2024-04-24 17:54:54 +01:00
Simon Larsen
4b69717687 Refactor initialization code and add PromiseVoidFunction type to addDefaultRoutes in StartServer.ts 2024-04-24 17:46:02 +01:00
Simon Larsen
0647f7d22a Refactor initialization code and add default routes in multiple files 2024-04-24 17:44:29 +01:00
Simon Larsen
ae6852d5eb Refactor connection check methods for Redis, Postgres, and Clickhouse 2024-04-24 17:05:50 +01:00
Simon Larsen
d4902784c2 Refactor Redis, Postgres, and Clickhouse connection check methods 2024-04-24 14:55:48 +01:00
Simon Larsen
e2644586b6 Refactor connection check methods for Redis, Postgres, and Clickhouse 2024-04-24 14:30:29 +01:00
Simon Larsen
cc80f6fa54 Refactor initialization code in multiple files 2024-04-24 14:02:17 +01:00
Simon Larsen
32c78f24e9 Refactor Redis, Postgres, and Clickhouse connection check methods 2024-04-24 13:03:07 +01:00
Simon Larsen
8b0f23e18f Refactor Express routing in Notification and Identity FeatureSets 2024-04-24 12:20:04 +01:00
Simon Larsen
b76d16262c Update logging statements in StatementGenerator.ts 2024-04-24 12:04:03 +01:00
Simon Larsen
4c60f080f0 Add cron job to delete completed pods 2024-04-24 11:34:01 +01:00
Simon Larsen
5f40c393b1 Update cron job schedule to run every 5 minutes 2024-04-24 10:18:43 +01:00
Simon Larsen
7b22d293f2 add cron job to clean up crash loop backoff states 2024-04-24 10:18:17 +01:00
Simon Larsen
7f6c247652 Update dependencies versions in HelmChart 2024-04-24 10:02:29 +01:00
Simon Larsen
267950bb54 Refactor Tab component to include countBadge and tabType properties 2024-04-23 20:56:16 +01:00
Simon Larsen
d4b6bf6ca0 Merge pull request #1349 from OneUptime/nginx-crash-prevention
Refactor Tab component to include countBadge and tabType properties
2024-04-23 20:46:35 +01:00
Simon Larsen
9d0c110a74 Update dependencies versions in HelmChart 2024-04-23 20:38:08 +01:00
Simon Larsen
9d3c4df5e7 Update Greenlock packageRoot path in app.yaml 2024-04-23 16:41:36 +01:00
Simon Larsen
ca89818cc1 Update Greenlock packageRoot path in StatusPageCerts.ts and app.yaml 2024-04-23 16:39:43 +01:00
Simon Larsen
6b2caebd0d Refactor Tab component to include countBadge and tabType properties 2024-04-23 15:34:37 +01:00
Simon Larsen
f716ece35f Refactor Tab component to include countBadge and tabType properties 2024-04-23 14:03:37 +01:00
Simon Larsen
6dcc72e708 Refactor getEvents function in SpanViewer.tsx to separate events and exceptions 2024-04-23 13:44:46 +01:00
Simon Larsen
47a718ad2a Refactor SpanViewer component to display exceptions and events separately 2024-04-23 13:39:37 +01:00
Simon Larsen
e4e3d5d362 Update component types and import statements in Accordion.tsx and SpanViewer.tsx 2024-04-23 13:34:24 +01:00
Simon Larsen
73b4987b32 Update dependencies versions in HelmChart 2024-04-23 12:02:42 +01:00
Simon Larsen
7574d3921a Refactor logging implementation and remove console log statements 2024-04-23 10:22:58 +01:00
Simon Larsen
c6b47c3a1b Refactor import statements and update component types in Accordion.tsx and SpanViewer.tsx 2024-04-22 22:05:35 +01:00
Simon Larsen
a5fec2560a Refactor import statements and update component types in multiple files 2024-04-22 20:41:36 +01:00
Simon Larsen
b139d667d2 Refactor SpanUtil class and JSONFunctions class 2024-04-22 20:19:35 +01:00
Simon Larsen
906a42c218 Update TableColumnType enum to include JSONArray type 2024-04-22 19:02:03 +01:00
Simon Larsen
529b22c97c Refactor import statements and update component types in JSONFunctions.ts 2024-04-22 13:39:46 +01:00
Simon Larsen
89f3508ce0 Refactor import statements and update component types in Detail.tsx, CodeEditor.tsx, and JSONFunctions.ts 2024-04-22 13:35:58 +01:00
Simon Larsen
a9cc7f41ba Refactor import statements and update component types in Tabs.tsx, SpanViewer.tsx, HiddenText.test.tsx, Tabs.test.tsx, and Detail.tsx 2024-04-22 12:09:21 +01:00
Simon Larsen
cc517d36dc Refactor import statements and update component types in SpanViewer.tsx 2024-04-22 11:07:23 +01:00
Simon Larsen
8363279050 Refactor import statements and update component types in SpanViewer.tsx and TeamView.tsx 2024-04-22 11:05:54 +01:00
Simon Larsen
7c0f9c307a Refactor import statements and update component types in TeamView.tsx 2024-04-22 11:00:15 +01:00
Simon Larsen
3a7c9f7fab Refactor import statements and update component types in multiple files 2024-04-22 10:47:40 +01:00
Simon Larsen
ba993ba09a Refactor import statements and update component types in multiple files 2024-04-22 10:14:53 +01:00
Simon Larsen
fca1f80243 Refactor import statements and update component types in multiple files 2024-04-22 10:04:28 +01:00
Simon Larsen
96926ffa63 Refactor import statements and update component types in multiple files 2024-04-22 09:24:58 +01:00
Simon Larsen
48b850d350 Refactor field types and import statements in multiple components 2024-04-21 21:14:22 +01:00
Simon Larsen
ab6a01e59b Refactor field types and import statements in multiple components 2024-04-21 18:50:34 +01:00
Simon Larsen
cd5eb62f61 Refactor field types and import statements in multiple components 2024-04-21 18:44:40 +01:00
Simon Larsen
d04aa43b6d Refactor component types and import statements in multiple files 2024-04-21 18:37:15 +01:00
Simon Larsen
308fe269fc Refactor component types and import statements in multiple files 2024-04-21 18:17:36 +01:00
Simon Larsen
0f92e37712 Refactor field types, import statements, and column types in multiple components 2024-04-21 18:08:31 +01:00
Simon Larsen
7f41cebdf7 Refactor field types in multiple components to use specific model types 2024-04-21 18:06:21 +01:00
Simon Larsen
351734d661 Refactor labels handling in multiple components 2024-04-21 17:59:35 +01:00
Simon Larsen
961de94f81 Refactor import statements in Email and Probes settings pages 2024-04-21 17:47:18 +01:00
Simon Larsen
2a89d57560 Refactor Filter interface to include Array<DropdownValue> in FilterData 2024-04-21 17:44:41 +01:00
Simon Larsen
039e0b17a4 Refactor Filter interface to use keyof T for key variable 2024-04-21 17:37:02 +01:00
Simon Larsen
77802eec58 Refactor key variable in Field interface to use keyof T | null 2024-04-21 17:16:00 +01:00
Simon Larsen
5db4cc8d21 Refactor column types and field types to use generic objects 2024-04-21 16:59:05 +01:00
Simon Larsen
f44260ee41 Refactor column types and field types to use generic objects 2024-04-21 09:42:41 +01:00
Simon Larsen
895bacfc11 Refactor ModelDetail component to use keyof TBaseModel for key variable 2024-04-20 20:44:28 +01:00
Simon Larsen
de6363574c Refactor model table column types and field types to use generic objects 2024-04-20 19:33:25 +01:00
Simon Larsen
2a07d62146 Refactor model table column types and field types to use generic objects 2024-04-20 19:16:03 +01:00
Simon Larsen
3138415bd0 Refactor SpanViewer component to import TelemetryServiceElement and use it for fieldType.Element 2024-04-20 18:01:57 +01:00
Simon Larsen
527ba63c94 Refactor Tabs component to improve UI and fix styling issues 2024-04-20 17:29:16 +01:00
Simon Larsen
6910648daf Update Nginx Helm chart to include a new volume for /var/run and /var/cache/nginx 2024-04-20 16:59:40 +01:00
Simon Larsen
9fb68afe79 Update Nginx Helm chart to include a new volume for /var/run 2024-04-20 16:54:50 +01:00
Simon Larsen
350f808b44 Update SideOver component to use "Close" instead of "Cancel" for the close button title 2024-04-19 18:16:55 +01:00
Simon Larsen
6438953c91 update values for nginx 2024-04-19 18:11:58 +01:00
Simon Larsen
7f98e469cc Update Nginx and Docker ports to use custom ports 7849 and 7850 2024-04-19 18:11:48 +01:00
Simon Larsen
d49ba093f0 tabs test update 2024-04-19 17:59:50 +01:00
Simon Larsen
1ebcbeeba2 Refactor Tabs component to remove unused code and improve readability 2024-04-19 17:51:25 +01:00
Simon Larsen
c4eb6cd44a Refactor SpanViewer component to simplify conditional rendering of span 2024-04-19 16:43:19 +01:00
Simon Larsen
48a58951e8 Update SideOver component to use "Close" instead of "Cancel" for the close button title 2024-04-19 16:40:13 +01:00
Simon Larsen
414f8c7208 Update SideOver component to use "Close" instead of "Cancel" for the close button title 2024-04-19 16:22:12 +01:00
Simon Larsen
cb1d640c56 Update import paths for DashboardLogsViewer in Index.tsx and View/Index.tsx 2024-04-19 15:45:54 +01:00
Simon Larsen
8a271608e8 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-19 14:23:48 +01:00
Simon Larsen
dd3627dca8 Refactor GanttChart components to support multi-select feature 2024-04-19 14:23:45 +01:00
Simon Larsen
fe6c917862 Merge pull request #1347 from OneUptime/snyk-upgrade-f72cdda21b6b90f7a0a31bdba3eab5ed
[Snyk] Upgrade reflect-metadata from 0.2.1 to 0.2.2
2024-04-19 13:27:21 +01:00
Simon Larsen
0dfa3f912e Refactor TraceView component to improve readability and add missing font styles 2024-04-19 13:26:29 +01:00
Simon Larsen
d8bfab3ae0 Update BarLabel component to use label prop instead of title prop in Bar component 2024-04-19 12:32:59 +01:00
Simon Larsen
d7a9adf791 Update BrandColors imports to use Green instead of Green500 2024-04-19 11:56:24 +01:00
Simon Larsen
fb070b9448 Update BrandColors imports to use Green instead of Green500 2024-04-19 11:53:28 +01:00
Simon Larsen
add313980c Update SendMessageToChannel.ts to include msteams width in AdaptiveCard 2024-04-19 10:14:34 +01:00
snyk-bot
29a909d547 fix: upgrade reflect-metadata from 0.2.1 to 0.2.2
Snyk has created this PR to upgrade reflect-metadata from 0.2.1 to 0.2.2.

See this package in npm:
https://www.npmjs.com/package/reflect-metadata

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-04-19 02:31:24 +00:00
Simon Larsen
13b10ca874 Merge pull request #1346 from OneUptime/helm-dep-update
Helm dep update
2024-04-18 23:01:42 +01:00
Simon Larsen
d0738ad64d Update Helm dependencies and versions 2024-04-18 23:00:56 +01:00
Simon Larsen
a21b9ca555 Update Helm dependencies and versions 2024-04-18 22:55:21 +01:00
Simon Larsen
f0e2910bd5 update helm dep 2024-04-18 22:06:09 +01:00
Simon Larsen
8f84027813 Refactor HelmChart templates to fix volume mount paths in haraka.yaml and nginx.yaml 2024-04-18 20:38:29 +01:00
Simon Larsen
970b6fbb92 Merge pull request #1345 from OneUptime/error-spans
Error spans
2024-04-18 13:34:41 +01:00
Simon Larsen
c8db6f237f Refactor GanttChartRow component to improve readability and add padding to child rows 2024-04-18 13:34:25 +01:00
Simon Larsen
01477fd102 Merge branch 'master' into error-spans 2024-04-18 12:58:21 +01:00
Simon Larsen
0bd173dd93 Add basic ops query to check size of tables in Clickhouse 2024-04-18 12:04:48 +01:00
Simon Larsen
87b7bbad16 Refactor HelmChart templates to use emptyDir volumes for haraka.yaml 2024-04-18 11:04:38 +01:00
Simon Larsen
2524684b1f Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-18 11:01:35 +01:00
Simon Larsen
6cc00a1e5b Refactor HelmChart templates to use emptyDir volumes instead of persistentVolumeClaim 2024-04-18 11:00:21 +01:00
Simon Larsen
c2285848cd add enable to haraka 2024-04-18 10:43:31 +01:00
Simon Larsen
506a89aeb3 Merge pull request #1344 from OneUptime/snyk-upgrade-6271cd99ae391fe1209a66241b751143
[Snyk] Upgrade @types/lodash from 4.14.202 to 4.17.0
2024-04-17 13:04:03 +01:00
snyk-bot
7c0221e6b8 fix: upgrade @types/lodash from 4.14.202 to 4.17.0
Snyk has created this PR to upgrade @types/lodash from 4.14.202 to 4.17.0.

See this package in npm:
https://www.npmjs.com/package/@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-04-17 00:48:15 +00:00
Simon Larsen
e9d8c5b2bc Refactor GanttChart components and update import paths for Row and GanttChartRow 2024-04-16 22:14:55 +01:00
Simon Larsen
8e5fc32f4d Refactor GanttChart components and update row level in Row component 2024-04-16 20:54:56 +01:00
Simon Larsen
2eaeec326f Refactor GanttChart components and update title and description types to support React elements 2024-04-16 20:22:47 +01:00
Simon Larsen
c5823308af Refactor GanttChart components and fix line wrapping issue in TraceView component 2024-04-16 20:04:23 +01:00
Simon Larsen
f0e255eb24 Refactor GanttChart components and fix line wrapping issue in SendMessageToChannel.ts 2024-04-16 15:29:08 +01:00
Simon Larsen
bccd2fd5d2 Refactor GanttChart components and fix line wrapping issue in SendMessageToChannel.ts 2024-04-16 15:27:01 +01:00
Simon Larsen
534c798028 Merge branch 'master' into error-spans 2024-04-16 13:31:57 +01:00
Simon Larsen
2a48b585a4 Refactor color variables in BrandColors.test.ts to use updated hex codes 2024-04-16 13:29:41 +01:00
Simon Larsen
8de699cb94 Refactor unique span filtering logic in TraceView component 2024-04-16 13:27:26 +01:00
Simon Larsen
03ffeba683 Merge branch 'master' into error-spans 2024-04-16 13:14:29 +01:00
Simon Larsen
153d55b774 Refactor field types and filters in Telemetry/Services/View/Traces/View/Index.tsx component 2024-04-16 13:14:26 +01:00
Simon Larsen
1b95dfa5ed Fix line wrapping issue in SendMessageToChannel.ts 2024-04-16 13:12:05 +01:00
Simon Larsen
d9451af991 Fix line wrapping issue in SendMessageToChannel.ts 2024-04-16 13:08:26 +01:00
Simon Larsen
da375dce63 Refactor BaseModelTable and TelemetryServiceElement components 2024-04-16 13:04:48 +01:00
Simon Larsen
d12e2f7622 Refactor spanId variable name in TraceView component 2024-04-16 12:38:35 +01:00
Simon Larsen
d0e9120559 Refactor TracesList component in Index.tsx to remove unused imports and update span status colors 2024-04-16 12:19:02 +01:00
Simon Larsen
d35ae2f075 Refactor BrandColors.test.ts and ProjectService.ts to use the new color variables 2024-04-16 12:03:04 +01:00
Simon Larsen
92076dad8b Refactor class names and variables for Gray to Gray500 2024-04-16 11:56:51 +01:00
Simon Larsen
a1ded23b46 Refactor field types and filters in BrandColors.ts and LineChart.tsx components 2024-04-16 11:56:22 +01:00
Simon Larsen
4d618e6d93 Fix casing of "Gray" in class names and variables 2024-04-16 11:54:57 +01:00
Simon Larsen
d3e461e0bd Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-16 11:30:20 +01:00
Simon Larsen
7a94f4fcbc Add TelemetryServiceColor migration to DataMigrations 2024-04-16 11:30:08 +01:00
Simon Larsen
2758b5273b Add TelemetryServiceColor migration to DataMigrations 2024-04-16 11:28:18 +01:00
Simon Larsen
79d18ab920 Refactor field types and filters in BrandColors.ts and LineChart.tsx components 2024-04-16 11:27:09 +01:00
Simon Larsen
13dd7c2db5 Merge pull request #1342 from OneUptime/snyk-upgrade-52e97e539fcfb5c5cd429cca08838406
[Snyk] Upgrade posthog-js from 1.111.0 to 1.116.6
2024-04-15 19:58:27 +01:00
snyk-bot
2486cd93c0 fix: upgrade posthog-js from 1.111.0 to 1.116.6
Snyk has created this PR to upgrade posthog-js from 1.111.0 to 1.116.6.

See this package in npm:
https://www.npmjs.com/package/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-04-15 18:53:20 +00:00
Simon Larsen
980c82ce31 Merge pull request #1339 from OneUptime/snyk-upgrade-e8ac578e50c1c3aa78c497fb48d0d3b1
[Snyk] Upgrade posthog-js from 1.111.0 to 1.116.5
2024-04-15 13:17:39 +01:00
Simon Larsen
1f6a4dbf40 Merge pull request #1340 from OneUptime/snyk-upgrade-3db1fd0a1346faee5053fb7c52f22d07
[Snyk] Upgrade @babel/runtime from 7.24.0 to 7.24.1
2024-04-15 12:40:07 +01:00
Simon Larsen
b14f518461 Merge pull request #1341 from OneUptime/snyk-fix-df93c133d994b2d52436acb86973db95
[Snyk] Security upgrade OpenTelemetry.Instrumentation.AspNetCore from 1.5.1-beta.1 to 1.8.1
2024-04-15 11:56:17 +01:00
snyk-bot
70d243aa7b fix: Examples/otel-dotnet/otel-dotnet.csproj to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DOTNET-OPENTELEMETRYINSTRUMENTATIONASPNETCORE-6613064
2024-04-14 23:00:18 +00:00
Simon Larsen
3f3996b155 Refactor variable name in BrandColors.test.ts for consistency 2024-04-14 19:30:22 +01:00
snyk-bot
5b3915fc65 fix: upgrade @babel/runtime from 7.24.0 to 7.24.1
Snyk has created this PR to upgrade @babel/runtime from 7.24.0 to 7.24.1.

See this package in npm:
https://www.npmjs.com/package/@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-04-14 17:11:21 +00:00
snyk-bot
53d33eb0fb fix: upgrade posthog-js from 1.111.0 to 1.116.5
Snyk has created this PR to upgrade posthog-js from 1.111.0 to 1.116.5.

See this package in npm:
https://www.npmjs.com/package/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-04-14 17:11:17 +00:00
Simon Larsen
c2722cb66a Refactor field types and filters in BrandColors.ts and Index.tsx components 2024-04-14 12:31:44 +01:00
Simon Larsen
2ccc7a8061 Refactor field types and filters in ExecutionLogsTable, ExecutionLogsTimelineTable, and Escalation components 2024-04-12 12:13:48 +01:00
Simon Larsen
97244b5c2c Refactor field types and filters in various components 2024-04-12 12:05:39 +01:00
Simon Larsen
90a0988e06 Refactor field types and filters in Invoices.tsx component 2024-04-12 11:59:41 +01:00
Simon Larsen
a3778b8ce6 Refactor field types and filters in various components 2024-04-12 11:56:37 +01:00
Simon Larsen
79bac7fd3f Refactor filter handling and permissions in List, ListBody, and BaseModelTable components 2024-04-12 11:29:28 +01:00
Simon Larsen
112863a52b Refactor field types and filters in various components 2024-04-12 09:48:26 +01:00
Simon Larsen
c1150c06e0 Refactor field types in WorkflowStatus, Variable, IncidentState, MonitorStatus, IncidentSeverity, and ScheduledMaintenanceState components 2024-04-11 21:58:45 +01:00
Simon Larsen
fcfb3f7e50 Refactor FilterComponent to handle additional field types in Filter.tsx 2024-04-11 21:41:55 +01:00
Simon Larsen
7c6c5ccac1 Refactor filter dropdown options in Domains.tsx and SMSSubscribers.tsx components 2024-04-11 21:39:06 +01:00
Simon Larsen
03ad9bf349 Refactor date fields to use FieldType.Date instead of FieldType.DateTime 2024-04-11 21:33:18 +01:00
Simon Larsen
f95ab83ae2 Refactor filter handling and permissions in List, ListBody, and BaseModelTable components 2024-04-11 21:05:49 +01:00
Simon Larsen
a25951f330 Refactor filter handling and permissions in Labels, Variable, Services, MonitorProbes, Users, MonitorTable, APIKeys, Domains, Variable, Call, Teams, SSO, Owners, and ModelTable components 2024-04-11 20:35:38 +01:00
Simon Larsen
5b0f450802 Merge branch 'master' into error-spans 2024-04-11 17:29:04 +01:00
Simon Larsen
be2b32822b Update Kubernetes configurations for OneUptime chart 2024-04-11 17:07:37 +01:00
Simon Larsen
6ebc601121 Update port configurations in HelmChart/Public/oneuptime/values.yaml and templates 2024-04-11 17:04:24 +01:00
Simon Larsen
14d049bd0f Refactor ShowTableAs to ShowAs in MonitorStatus, IncidentState, IncidentSeverity, ScheduledMaintenanceState, PublicNote, and Escalation components 2024-04-11 16:56:36 +01:00
Simon Larsen
47b5f44796 Refactor filter handling and permissions in Labels, Variable, Services, MonitorProbes, Users, MonitorTable, APIKeys, Domains, Variable, Call, Teams, and SSO components 2024-04-11 16:27:57 +01:00
Simon Larsen
ec8bb3d67b Refactor MonitorTypeHelper to include doesMonitorTypeHaveDocumentation and doesMonitorTypeHaveInterval methods 2024-04-11 15:19:10 +01:00
Simon Larsen
71abac2c3f Refactor MonitorTypeHelper to include isProbableMonitors method 2024-04-11 15:05:06 +01:00
Simon Larsen
21a227d67a Refactor filter handling and permissions in Owners components 2024-04-11 13:23:59 +01:00
Simon Larsen
df0783e4d4 Refactor filter handling and permissions in ModelTable components 2024-04-11 13:04:58 +01:00
Simon Larsen
a9a14b1253 Add filters to IncidentSeverity, PrivateUser, SMSSubscribers, and Announcements components 2024-04-11 11:42:42 +01:00
Simon Larsen
dc13aacb13 Refactor filter handling and permissions in WebhookSubscribers, IncidentState, StateTimeline, and MonitorOwners components 2024-04-11 11:30:05 +01:00
Simon Larsen
7f7d4c7388 Refactor filter handling and permissions in Projects, Probes, and Users components 2024-04-11 10:54:24 +01:00
Simon Larsen
f6642d5582 Refactor filter handling and permissions in EmailLog and IncidentNoteTemplates components 2024-04-10 21:31:12 +01:00
Simon Larsen
e85f216b9e Refactor filter handling and permissions in MonitorGroupResources, IncidentDelete, and MonitorProbes components 2024-04-10 21:27:59 +01:00
Simon Larsen
04289df987 Refactor filter handling and permissions in NewIncidents, ProjectInvitations, Domains, and Billing components 2024-04-10 21:19:28 +01:00
Simon Larsen
5e0bb766d6 Refactor filter handling and permissions in Owners, Labels, and TeamView components 2024-04-10 20:34:19 +01:00
Simon Larsen
e23c979911 Refactor filter handling and permissions in BaseModelTable component 2024-04-10 20:30:44 +01:00
Simon Larsen
cf43a3fb4e Refactor filter handling and permissions in BaseModelTable component 2024-04-10 20:12:44 +01:00
Simon Larsen
5d809015ee Refactor filter handling and permissions in BaseModelTable component 2024-04-10 18:30:32 +01:00
Simon Larsen
6b30e9aa2f Refactor BaseModelTable component to improve filter handling and permissions 2024-04-10 17:33:26 +01:00
Simon Larsen
29c4a43968 Refactor Table and ModelTable components to remove unused imports and properties 2024-04-10 17:20:46 +01:00
Simon Larsen
3a29d7b703 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-10 13:23:59 +01:00
Simon Larsen
a4cbe21683 Refactor BaseAPI/Index.ts to remove unnecessary console.log and error handling 2024-04-10 13:23:40 +01:00
Simon Larsen
113a42b17f Update port configurations in HelmChart/Public/oneuptime/values.yaml and templates 2024-04-10 13:19:10 +01:00
Simon Larsen
4682467bde Update port configurations in HelmChart/Public/oneuptime/values.yaml and templates 2024-04-10 13:12:43 +01:00
Simon Larsen
f7c2415b63 Refactor BaseAPI/Index.ts to remove unnecessary console.log and error handling 2024-04-10 12:22:25 +01:00
Simon Larsen
c243409a0e Merge pull request #1337 from OneUptime/error-spans
Error spans
2024-04-10 12:22:07 +01:00
Simon Larsen
b89760ab1a Refactor BaseAPI/Index.ts to remove unnecessary console.log and error handling 2024-04-10 12:20:05 +01:00
Simon Larsen
3acb419667 Add support for Port2 in otel-collector deployment and service 2024-04-10 12:19:21 +01:00
Simon Larsen
12a98bcb5f Add error handling for API endpoint in BaseAPI/Index.ts and OTelIngest.ts 2024-04-10 10:16:11 +01:00
Simon Larsen
bca41d7dbc Merge pull request #1336 from snikch/patch-1
Fix typo
2024-04-09 22:36:17 +01:00
Mal Curtis
1875d97d6f Fix typo 2024-04-10 09:16:24 +12:00
Simon Larsen
b49336a224 Update Span class to include SpanStatus enum and use it in OTelIngest.ts 2024-04-09 19:34:55 +01:00
Simon Larsen
95ac77ac4e Merge pull request #1335 from OneUptime/error-spans
Error spans
2024-04-09 19:25:15 +01:00
Simon Larsen
6ef91fd1b7 Add OpenTelemetry error handling in StartServer.ts 2024-04-09 19:24:51 +01:00
Simon Larsen
e0bcfd31bf Add OpenTelemetry error handling in StartServer.ts 2024-04-09 15:11:15 +01:00
Simon Larsen
4b5cc40542 Update Dockerfile.tpl to include package.json in CommonUI directory 2024-04-09 13:22:17 +01:00
Simon Larsen
44db5b57e5 Update Dockerfile.tpl files to include package.json in CommonUI directory 2024-04-09 13:21:12 +01:00
Simon Larsen
382c71be93 Update Dockerfile.tpl files to set APP_VERSION to 1.0.0 if not set 2024-04-09 13:03:32 +01:00
Simon Larsen
445a8d3f35 Update Dockerfile.tpl files to set APP_VERSION to 1.0.0 if not set 2024-04-09 12:53:42 +01:00
Simon Larsen
356bacf9a0 Update Dockerfile.tpl files to set APP_VERSION to 2.0.0 if not set 2024-04-09 12:53:13 +01:00
Simon Larsen
5a84cc1b1d Merge pull request #1334 from OneUptime/snyk-upgrade-59d0168c2bceaebf8d1a11c3be25cb6b
[Snyk] Upgrade posthog-js from 1.111.0 to 1.116.2
2024-04-09 12:39:55 +01:00
Simon Larsen
2e7ea183e6 Add InfrastructureAgent files to .gitignore and update daemon management logic in Index.ts 2024-04-09 12:38:56 +01:00
Simon Larsen
f8eaeb52a1 Add IsBillingEnabled check in UserService.ts 2024-04-09 09:19:37 +01:00
snyk-bot
b23aac7b21 fix: upgrade posthog-js from 1.111.0 to 1.116.2
Snyk has created this PR to upgrade posthog-js from 1.111.0 to 1.116.2.

See this package in npm:
https://www.npmjs.com/package/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-04-08 22:49:22 +00:00
Simon Larsen
1ca9ecede1 Refactor daemon management logic in InfrastructureAgent/Index.ts 2024-04-08 21:26:37 +01:00
Simon Larsen
39d7b76e23 Refactor InfrastructureAgent/Index.ts and update daemon management logic 2024-04-08 20:09:20 +01:00
Simon Larsen
bcefa8ae3a Refactor MonitorInfrastructure class and extract monitorServerMetrics method 2024-04-08 14:50:37 +01:00
Simon Larsen
3c022e30ea Refactor MonitorInfrastructure class and extract monitorServerMetrics method 2024-04-08 14:06:54 +01:00
Simon Larsen
1401daab06 Update tsconfig.json files with resolveJsonModule option 2024-04-08 14:03:07 +01:00
Simon Larsen
11fd2d3c65 Add OneUptime isolatedVM Service and autoscaler 2024-04-07 10:40:00 +01:00
Simon Larsen
210420d180 Update axios version in package.json and package-lock.json 2024-04-06 21:25:10 +01:00
Simon Larsen
d8f9e64aa4 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-06 21:10:59 +01:00
Simon Larsen
f57596391d Refactor JSONFunctions and JavaScriptCode classes 2024-04-06 21:10:29 +01:00
Simon Larsen
8282669fbd Fix async/await issue in VM.ts 2024-04-06 20:49:23 +01:00
Simon Larsen
f38d8ae452 Fix async bug in VM.ts 2024-04-06 20:48:17 +01:00
Simon Larsen
7726bad4e2 Fix code formatting and remove unnecessary lines 2024-04-06 17:38:15 +01:00
Simon Larsen
a50510819b Add Isolated VM debugging configuration and handle exceptions in code execution 2024-04-06 16:34:42 +01:00
Simon Larsen
27e9ee9721 Remove vm2 dependency and add ISOLATED_VM_PORT variable 2024-04-06 15:56:04 +01:00
Simon Larsen
d43765645e Update isolated-vm server port in Nginx configuration 2024-04-06 15:53:38 +01:00
Simon Larsen
0c73bd8292 Add logging statements to VM.ts 2024-04-06 15:48:03 +01:00
Simon Larsen
ad1c6152a0 Fix import statements and update VMUtil usage 2024-04-06 15:04:12 +01:00
Simon Larsen
9b8b1a87fe Refactor VMUtil to use API.post for running code in sandbox 2024-04-06 14:53:59 +01:00
Simon Larsen
58b17bd27b Merge pull request #1328 from OneUptime/snyk-upgrade-04ffcdee04209dbf9881949c830040ed
[Snyk] Upgrade socket.io-client from 4.7.4 to 4.7.5
2024-04-06 14:48:58 +01:00
Simon Larsen
e6f348ed0d Merge pull request #1319 from OneUptime/snyk-fix-e4902ce8cdb101e0297360a530f0ac4b
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:42 +01:00
Simon Larsen
dbd8ebcb35 Merge pull request #1320 from OneUptime/snyk-fix-07b1b26eca3341afed9f4d511c442c8c
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:37 +01:00
Simon Larsen
d5c58356fc Merge pull request #1321 from OneUptime/snyk-fix-c12e9be9fb5f6824d59754b917d4e5ba
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:33 +01:00
Simon Larsen
aedbda27c4 Merge pull request #1322 from OneUptime/snyk-fix-3c32f22572d890ca8d596a27f97ea320
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:30 +01:00
Simon Larsen
2715d544e7 Merge pull request #1323 from OneUptime/snyk-fix-f4106457200ff974e6c0646c5ede59ba
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:24 +01:00
Simon Larsen
41f1470685 Merge pull request #1324 from OneUptime/snyk-fix-161f543984a5181295d0bcb4cd09665f
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:20 +01:00
Simon Larsen
00670b46de Merge pull request #1325 from OneUptime/snyk-fix-4a88009a598b3e1088f99374b93ec693
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:14 +01:00
Simon Larsen
40ec2b54ec Merge pull request #1326 from OneUptime/snyk-fix-74c86641ac06e263376b409355fd4866
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:09 +01:00
Simon Larsen
06303618c8 Merge pull request #1327 from OneUptime/snyk-fix-ddc235f0e0b36cebcb1729d8da2694e8
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:03 +01:00
Simon Larsen
e66ac04566 Merge pull request #1329 from OneUptime/snyk-upgrade-e03fef4dd6643cb876f1a78d78f49de7
[Snyk] Upgrade posthog-js from 1.111.0 to 1.116.0
2024-04-06 14:47:31 +01:00
Simon Larsen
65b124ca22 Merge pull request #1330 from OneUptime/snyk-upgrade-4f0d40ccf5c6a347e44d0b346c511e15
[Snyk] Upgrade axios from 1.6.7 to 1.6.8
2024-04-06 14:47:24 +01:00
Simon Larsen
25ee0404ee Merge pull request #1331 from OneUptime/snyk-upgrade-fc04dcb8d150135d6023732c05e7bafa
[Snyk] Upgrade axios from 1.6.7 to 1.6.8
2024-04-06 14:47:18 +01:00
Simon Larsen
0334117a40 Add VM API endpoint for running code in sandbox 2024-04-06 14:47:00 +01:00
Simon Larsen
5d3d19d210 Update OneUptime app deployment and add isolated-vm upstream in Nginx configuration 2024-04-06 13:30:01 +01:00
Simon Larsen
ad4c29b74a Merge branch 'master' into isolatedvm 2024-04-06 12:20:29 +01:00
Simon Larsen
74ad8fc725 Remove unnecessary whitespace 2024-04-06 12:03:44 +01:00
Simon Larsen
fd5e7272de Fix formatting issues in code 2024-04-06 11:52:02 +01:00
snyk-bot
730d01a73f fix: upgrade axios from 1.6.7 to 1.6.8
Snyk has created this PR to upgrade axios from 1.6.7 to 1.6.8.

See this package in npm:
https://www.npmjs.com/package/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-04-05 20:35:07 +00:00
snyk-bot
7f23c0e5a9 fix: upgrade axios from 1.6.7 to 1.6.8
Snyk has created this PR to upgrade axios from 1.6.7 to 1.6.8.

See this package in npm:
https://www.npmjs.com/package/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-04-05 20:35:03 +00:00
snyk-bot
e2671832e8 fix: upgrade posthog-js from 1.111.0 to 1.116.0
Snyk has created this PR to upgrade posthog-js from 1.111.0 to 1.116.0.

See this package in npm:
https://www.npmjs.com/package/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-04-05 20:35:02 +00:00
snyk-bot
0e7f96856c fix: upgrade socket.io-client from 4.7.4 to 4.7.5
Snyk has created this PR to upgrade socket.io-client from 4.7.4 to 4.7.5.

See this package in npm:
https://www.npmjs.com/package/socket.io-client

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-04-05 20:35:01 +00:00
snyk-bot
59fff01663 fix: Tests/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564548
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564550
2024-04-05 20:35:00 +00:00
snyk-bot
e8c6c3c0a7 fix: Dashboard/Dockerfile.tpl to reduce vulnerabilities 2024-04-05 20:35:00 +00:00
snyk-bot
3d00471677 fix: Haraka/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564548
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564550
2024-04-05 20:35:00 +00:00
snyk-bot
692ebdb006 fix: StatusPage/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564548
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564550
2024-04-05 20:34:59 +00:00
snyk-bot
37ee7b25f2 fix: TestServer/Dockerfile.tpl to reduce vulnerabilities 2024-04-05 20:34:59 +00:00
snyk-bot
2bca4963a0 fix: AdminDashboard/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564548
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564550
2024-04-05 20:34:59 +00:00
snyk-bot
efded8947f fix: Ingestor/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564548
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564550
2024-04-05 20:34:59 +00:00
snyk-bot
d663b0c65f fix: Accounts/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564548
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564550
2024-04-05 20:34:59 +00:00
snyk-bot
9f354383f7 fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564548
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564550
2024-04-05 20:34:59 +00:00
Simon Larsen
73be1fa956 Add VMUtil class for running code in a sandbox 2024-04-05 21:23:40 +01:00
Simon Larsen
07b10cfdf7 Add logger.info statement to App initialization 2024-04-05 21:14:15 +01:00
Simon Larsen
630f6767ab Fix typo in values.yaml 2024-04-05 21:05:45 +01:00
Simon Larsen
4d1c007d68 Update package name to @oneuptime/isolated-vm 2024-04-05 20:22:50 +01:00
Simon Larsen
3b85e4fe99 Update test script in package.json 2024-04-05 20:22:15 +01:00
Simon Larsen
35daff14d9 Update runs-on to ubuntu-latest in test.probe.yaml 2024-04-05 20:09:25 +01:00
Simon Larsen
73f3ef7622 Delete PingMonitor.test.ts 2024-04-05 20:09:14 +01:00
Simon Larsen
f11f1c23c5 Remove unused import and variable declaration in Index.ts 2024-04-05 20:07:22 +01:00
Simon Larsen
c52501ef0e Add SERVER_ISOLATED_VM_HOSTNAME to docker-compose.base.yml 2024-04-05 20:03:00 +01:00
Simon Larsen
78e9ad439c Add IsolatedVMHostname to EnvironmentConfig.ts and docker-compose files 2024-04-05 20:02:33 +01:00
Simon Larsen
e35dba93ce Add npm install for CommonServer 2024-04-05 19:55:03 +01:00
Simon Larsen
1991977af1 Fix dependencies in IsolatedVM package.json and package-lock.json 2024-04-05 18:59:43 +01:00
Simon Larsen
acf35e1c4c Update IsolatedVM dependencies and add docker build for IsolatedVM 2024-04-05 18:38:57 +01:00
Simon Larsen
36f290edf0 Add isolatedVMP port and update Dockerfile for IsolatedVM 2024-04-05 18:33:52 +01:00
Simon Larsen
1ad1aebc1b Refactor code for improved performance 2024-04-05 18:22:29 +01:00
Simon Larsen
e11b781fc5 Add log level configuration 2024-04-05 17:52:34 +01:00
Simon Larsen
bc1ca32991 Add scroll to top functionality in SideMenuItem component 2024-04-05 14:11:42 +01:00
Simon Larsen
b668281ad6 Remove unnecessary code in Billing.tsx 2024-04-05 14:00:55 +01:00
Simon Larsen
2cbabe7a67 Add debug logging capability to Logger class 2024-04-05 13:23:03 +01:00
Simon Larsen
03e1545ebd Remove unused OpenTelemetry dependencies 2024-04-05 12:37:56 +01:00
Simon Larsen
2a16389a37 Update security context in HelmChart 2024-04-05 12:30:20 +01:00
Simon Larsen
32a10892a4 Update security context settings in Helm chart 2024-04-05 10:56:10 +01:00
Simon Larsen
39f0e66b35 Fix missing comma in companyName field assignment 2024-04-05 10:37:01 +01:00
Simon Larsen
ed7e70aa8d Refactor user creation and update logic in Authentication.ts 2024-04-05 10:35:21 +01:00
Simon Larsen
d1697c37df Refactor Telemetry class in Utils package 2024-04-05 10:01:17 +01:00
Simon Larsen
0c2774214a Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-05 09:50:00 +01:00
Simon Larsen
9bc98e0a35 Refactor Telemetry class to conditionally enable instrumentations 2024-04-05 09:49:37 +01:00
Simon Larsen
20dff66769 Fix issues with totalCostInUSD calculation and service token caching 2024-04-05 09:40:36 +01:00
Simon Larsen
6ac98d2531 Merge pull request #1316 from OneUptime/snyk-upgrade-a7578ebc13c2523a31a5afb23c7f060c
[Snyk] Upgrade posthog-js from 1.111.0 to 1.115.0
2024-04-05 08:45:28 +01:00
snyk-bot
586cbdb424 fix: upgrade posthog-js from 1.111.0 to 1.115.0
Snyk has created this PR to upgrade posthog-js from 1.111.0 to 1.115.0.

See this package in npm:
https://www.npmjs.com/package/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-04-05 01:18:12 +00:00
Simon Larsen
689de266a1 Update telemetry price description 2024-04-04 21:15:53 +01:00
Simon Larsen
0015906bac Fix formatting and import issues 2024-04-04 21:07:34 +01:00
Simon Larsen
5070d8137a Merge pull request #1315 from eltociear/patch-1
Update ProductCompare.ts
2024-04-04 21:07:09 +01:00
Simon Larsen
d4d8848124 Update import statement for ProductType in OTelIngest.ts 2024-04-04 20:56:48 +01:00
Simon Larsen
abcde37960 Update import statements for ProductType in multiple files 2024-04-04 20:56:03 +01:00
Simon Larsen
1fbdc19645 Update MeteredPlanUtil to use TelemetryMeteredPlanType 2024-04-04 19:59:22 +01:00
Simon Larsen
c17740b315 Refactor telemetry usage billing service and metered plans 2024-04-04 19:53:16 +01:00
Ikko Eltociear Ashimine
1568f5ef94 Update ProductCompare.ts
seperate -> separate
2024-04-05 02:59:28 +09:00
Simon Larsen
c4d7f345e2 Update UsageBillingService imports to TelemetryUsageBillingService 2024-04-04 15:55:19 +01:00
Simon Larsen
ec0c1b102f Update import statements in Label.ts, Index.ts, MonitorProbe.ts, MonitorOwnerTeam.ts, IncidentOwnerTeam.ts, StatusPageOwnerTeam.ts, MonitorGroupOwnerTeam.ts, and MonitorOwnerUser.ts 2024-04-04 15:22:35 +01:00
Simon Larsen
72559f146d Remove unused import and update modelId in ServiceDelete component 2024-04-04 15:11:34 +01:00
Simon Larsen
37829e3ef6 Add projectId to select and filter properties in DeleteOldData.ts 2024-04-04 14:45:53 +01:00
Simon Larsen
389397d31b Add TelemetryService job and update QueryHelper class 2024-04-04 14:44:58 +01:00
Simon Larsen
6d68154855 Fix formatting and styling issues 2024-04-04 14:16:02 +01:00
Simon Larsen
9d50cbb889 implement slider in pricing 2024-04-04 13:16:32 +01:00
Simon Larsen
b6932d07ac Remove SETTINGS_DATA_RETENTION from PageMap and related components 2024-04-04 12:29:21 +01:00
Simon Larsen
d8b1ed9516 Merge branch 'master' into otel-v2 2024-04-03 21:38:23 +01:00
Simon Larsen
8a0b94a18f Fix eslint-disable comment in Object.ts 2024-04-03 21:04:23 +01:00
Simon Larsen
a03524496d Update ObjectUtil to use GlobalObject type 2024-04-03 20:59:31 +01:00
Simon Larsen
ebc9835374 Refactor ObjectUtil.isEmpty() method and fix variable declaration in SslMonitor.ts 2024-04-03 20:54:35 +01:00
Simon Larsen
9bfcc4f0c8 Update SSL to SSLCertificate in MonitorType 2024-04-03 20:52:40 +01:00
Simon Larsen
7ed0d55479 Refactor ObjectUtil and MonitorService, and fix SSLMonitorCriteria 2024-04-03 20:29:42 +01:00
Simon Larsen
74b57c6d83 Add SSL certificate validation logic and error handling 2024-04-03 20:22:52 +01:00
Simon Larsen
34697dd8ca Add support for SSL monitor type 2024-04-03 15:30:54 +01:00
Simon Larsen
c390a88866 Remove unused filterType property in CriteriaFilterElement component 2024-04-03 14:07:02 +01:00
Simon Larsen
8a5984faad Refactor SSL monitor criteria class 2024-04-03 13:53:53 +01:00
Simon Larsen
80f2e12a1f Add SSL monitor support and criteria filters 2024-04-03 13:46:33 +01:00
Simon Larsen
5f3d208557 Add new filter type for invalid certificates 2024-04-03 12:44:41 +01:00
Simon Larsen
b2492db82a Add SSL monitor type and criteria filters 2024-04-03 12:24:12 +01:00
Simon Larsen
6a6fa1876d Update installation instructions for ServerMonitor 2024-04-03 11:57:18 +01:00
Simon Larsen
57db166e8a Merge pull request #1311 from OneUptime/process-infra
Process infra
2024-04-03 11:56:16 +01:00
Simon Larsen
afdc891942 Remove debugger statement and trim threshold process name 2024-04-03 11:55:37 +01:00
Simon Larsen
37a13ce853 Refactor ServerMonitorCriteria class to improve code readability and remove redundant code 2024-04-03 11:52:22 +01:00
Simon Larsen
8ebcb1b659 Update infrastructure agent to use tsx instead of ts-node 2024-04-03 10:47:02 +01:00
Simon Larsen
0e2e440a90 Update domain selection description 2024-04-03 09:58:17 +01:00
Simon Larsen
fa06d208dc Merge pull request #1313 from OneUptime/snyk-upgrade-d03fbabff64bdc826c22ab69a5362cfc
[Snyk] Upgrade posthog-js from 1.111.0 to 1.114.2
2024-04-03 09:23:49 +01:00
Simon Larsen
69cac18ca7 Merge pull request #1312 from OneUptime/snyk-upgrade-c8ca40b9ff205959a700db37078e3741
[Snyk] Upgrade react-big-calendar from 1.11.1 to 1.11.2
2024-04-03 09:23:40 +01:00
snyk-bot
40ba8bd2de fix: upgrade posthog-js from 1.111.0 to 1.114.2
Snyk has created this PR to upgrade posthog-js from 1.111.0 to 1.114.2.

See this package in npm:
https://www.npmjs.com/package/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-04-02 23:11:57 +00:00
snyk-bot
a89e7db46e fix: upgrade react-big-calendar from 1.11.1 to 1.11.2
Snyk has created this PR to upgrade react-big-calendar from 1.11.1 to 1.11.2.

See this package in npm:
https://www.npmjs.com/package/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-04-02 23:11:00 +00:00
Simon Larsen
1f8c0e6b71 Add logging for server processes 2024-04-02 20:29:12 +01:00
Simon Larsen
d547660284 Add ArrayUtil.removeDuplicates() method and refactor ServerProcessUtil.getProcesses() method 2024-04-02 20:26:39 +01:00
Simon Larsen
d99f5310e7 Add server process criteria filters to monitor 2024-04-02 20:09:08 +01:00
Simon Larsen
fcc9231d1e Add ServerProcess interface and processes field to ServerMonitorResponse 2024-04-02 19:47:22 +01:00
Simon Larsen
68ea2c4e9a Merge branch 'master' into otel-v2 2024-04-02 19:01:38 +01:00
Simon Larsen
dfaa31ba41 Add deletedByUser and deletedByUserId properties to StatusPageResource model 2024-04-02 18:32:09 +01:00
Simon Larsen
1e1fe04eb0 erge branch 'master' into otel-v2 2024-04-02 17:09:30 +01:00
Simon Larsen
6612e44ae5 Fix null and undefined checks in CompareCriteria 2024-04-02 17:07:56 +01:00
Simon Larsen
206f0199e9 Add @opentelemetry/auto-instrumentations-node package 2024-04-02 16:36:39 +01:00
Simon Larsen
90ceb9cfc6 Remove infrastructure-agent service from docker-compose.dev.yml 2024-04-02 10:10:44 +01:00
Simon Larsen
f503a45f3b Remove unused code and comments 2024-04-02 10:07:55 +01:00
Simon Larsen
375afe288a Update homepage heading to be more concise 2024-04-02 09:18:44 +01:00
Simon Larsen
0e0bd71ead Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-04-01 19:23:15 +01:00
Simon Larsen
e3017f1680 Update monitoring feature names 2024-04-01 19:23:12 +01:00
Simon Larsen
f5c9ba7e3d Merge pull request #1308 from OneUptime/snyk-upgrade-4faf36859b1cbed01e787727fc356ff4
[Snyk] Upgrade posthog-js from 1.111.0 to 1.113.2
2024-04-01 19:00:33 +01:00
Simon Larsen
ab92f256a5 Merge pull request #1309 from OneUptime/snyk-upgrade-2828c364c449b636db71e062447859ea
[Snyk] Upgrade react-router-dom from 6.22.2 to 6.22.3
2024-04-01 19:00:27 +01:00
snyk-bot
af1f3a3bae fix: upgrade react-router-dom from 6.22.2 to 6.22.3
Snyk has created this PR to upgrade react-router-dom from 6.22.2 to 6.22.3.

See this package in npm:
https://www.npmjs.com/package/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-04-01 15:58:06 +00:00
snyk-bot
a30392730e fix: upgrade posthog-js from 1.111.0 to 1.113.2
Snyk has created this PR to upgrade posthog-js from 1.111.0 to 1.113.2.

See this package in npm:
https://www.npmjs.com/package/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-04-01 15:58:05 +00:00
Simon Larsen
eb6c3888ad Merge pull request #1306 from OneUptime/snyk-upgrade-f54a1e8470e64dbe6ff815d799492ac6
[Snyk] Upgrade react-router-dom from 6.22.2 to 6.22.3
2024-04-01 15:47:46 +01:00
Simon Larsen
e22d39eea2 Fix typo in installation instructions 2024-04-01 15:41:39 +01:00
Simon Larsen
1d93fdf73b Add installation instructions for Windows and MacOS 2024-04-01 15:41:12 +01:00
Simon Larsen
641c8de84b Add seriesName and seriesColor to LineChartPoint 2024-04-01 13:49:37 +01:00
Simon Larsen
2fb509b98c Refactor MonitorChart.tsx to improve readability and maintainability 2024-04-01 13:33:17 +01:00
Simon Larsen
39c7f6f2ba Add ChartColors and MonitorMetricsMiscData, Update MonitorView component, and Refactor MonitorProbes component 2024-04-01 13:26:27 +01:00
Simon Larsen
3f5f16cb74 Refactor MonitorCharts class to improve readability and maintainability 2024-04-01 12:28:52 +01:00
Simon Larsen
038684e512 Fix probeId conversion to string in ProbeMonitorResponseService 2024-04-01 12:23:29 +01:00
Simon Larsen
28f4f0f37c Fix drivelist import bug in BasicMetrics.ts 2024-04-01 11:54:44 +01:00
Simon Larsen
e793456980 Remove unused import in MonitorInfrastructure.ts 2024-04-01 11:40:13 +01:00
Simon Larsen
bbff753799 Add deprecated comment to ServerMonitor route and refactor BasicMetrics to get disk paths dynamically 2024-04-01 11:33:59 +01:00
Simon Larsen
5246f9f9cb Update variable name in BasicMetrics.ts 2024-04-01 11:17:59 +01:00
Simon Larsen
fb35f23971 Add miscData field to monitorMetricsByMinute object 2024-04-01 11:12:32 +01:00
Simon Larsen
30db649f40 Remove unnecessary lines of code in ProbeMonitorResponse.ts 2024-04-01 11:09:49 +01:00
Simon Larsen
5088a14665 Refactor ProbeMonitorResponseService class 2024-04-01 11:08:48 +01:00
Simon Larsen
4f2302aa3c Fix diskMetrics condition in ProbeMonitorResponse.ts and remove VERSION import in Documentation.tsx 2024-03-31 19:48:43 +01:00
Simon Larsen
559c124294 Update ServerMonitorDocumentation to remove version number from agent command 2024-03-31 19:36:35 +01:00
snyk-bot
b285caeea4 fix: upgrade react-router-dom from 6.22.2 to 6.22.3
Snyk has created this PR to upgrade react-router-dom from 6.22.2 to 6.22.3.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-31 15:56:03 +00:00
Simon Larsen
ed3e0e05c4 Merge pull request #1293 from OneUptime/nivo-chart
Add @nivo/bar, @nivo/core, and @nivo/line dependencies***
2024-03-31 14:53:05 +01:00
Simon Larsen
f61e44f1d7 Update Date.ts, Index.tsx, MonitorChartTooltip.tsx, JSONFunctions.ts, and LineChart.tsx 2024-03-31 14:49:22 +01:00
Simon Larsen
c6e47ddc83 Merge branch 'master' into nivo-chart 2024-03-31 14:00:57 +01:00
Simon Larsen
bc72200378 Update Nginx configuration for proxy settings 2024-03-31 14:00:25 +01:00
Simon Larsen
1b61d7a641 Refactor Nginx configuration to handle billing redirection*** 2024-03-31 13:55:50 +01:00
Simon Larsen
1ac7c646d5 Merge pull request #1305 from go0die/patch-1
Update default.conf.template
2024-03-31 13:52:28 +01:00
Simon Larsen
fedb247972 Remove unnecessary blank lines in StatusPageAPI.ts 2024-03-31 13:47:21 +01:00
Simon Larsen
4da6d9f492 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-31 13:44:35 +01:00
Simon Larsen
899649d55e Update sort order for monitorStatusTimelines 2024-03-31 13:44:31 +01:00
Simon Larsen
fac6e23b7e Merge pull request #1304 from Re-ms/patch-1
Adding .ovh TLD to Domain.ts
2024-03-31 10:15:55 +01:00
go0die
f7739ab4a8 Update default.conf.template
Fix custom domains status pages NGINX configuration.
2024-03-31 12:12:41 +03:00
Re-ms
f7c33cb799 Adding .ovh to Domain.ts 2024-03-31 05:26:42 +02:00
Simon Larsen
466ebc8c41 Remove @nivo/bar package and update posthog-js version 2024-03-30 19:50:07 +00:00
Simon Larsen
676e2c654d Merge branch 'master' into nivo-chart 2024-03-30 19:47:08 +00:00
Simon Larsen
ac0bafe560 Merge pull request #1302 from OneUptime/snyk-upgrade-53fb8e17b0abab72eef5329087945d87
[Snyk] Upgrade posthog-js from 1.111.0 to 1.112.0
2024-03-30 19:43:01 +00:00
Simon Larsen
5d90c2992f Merge pull request #1303 from OneUptime/snyk-upgrade-46500c2addf58e24b538ef6a0cb3457d
[Snyk] Upgrade react-router-dom from 6.22.2 to 6.22.3
2024-03-30 19:42:53 +00:00
Simon Larsen
8e8019a9f8 Add Port Monitoring and Status Report 2024-03-30 13:32:35 +00:00
snyk-bot
267d9ccd0d fix: upgrade react-router-dom from 6.22.2 to 6.22.3
Snyk has created this PR to upgrade react-router-dom from 6.22.2 to 6.22.3.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-29 22:54:17 +00:00
snyk-bot
8dabddd5ed fix: upgrade posthog-js from 1.111.0 to 1.112.0
Snyk has created this PR to upgrade posthog-js from 1.111.0 to 1.112.0.

See this package in npm:
https://www.npmjs.com/package/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-03-29 22:53:18 +00:00
Simon Larsen
c052cadc98 Fix probe issue with ping and ICMP 2024-03-29 20:56:07 +00:00
Simon Larsen
c893990722 Fix offline check issues in Probe.ts 2024-03-29 20:45:15 +00:00
Simon Larsen
1fbc80db8e Add probe service and autoscaler configuration 2024-03-29 20:00:34 +00:00
Simon Larsen
1c3e184566 Fix probe offline notification template and update probe registration process 2024-03-29 17:15:04 +00:00
Simon Larsen
4335377285 Add HOSTNAME environment variable to Probe Config and update Probe Index and Email Template Type 2024-03-29 16:47:56 +00:00
Simon Larsen
4c27494b7a Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-29 15:43:09 +00:00
Simon Larsen
95f487c3d4 Remove unnecessary blank line 2024-03-29 14:05:05 +00:00
Simon Larsen
830393c74f Refactor Probe.ts and StatusPageGroup.ts 2024-03-29 14:00:11 +00:00
Simon Larsen
393336ad60 Fix formatting in ProbeOffline template 2024-03-29 13:38:32 +00:00
Simon Larsen
8c8b323a14 Add podId field to ProbeOffline template and update Probe.ts to send email notifications 2024-03-29 13:37:48 +00:00
Simon Larsen
85551a5608 Update email settings and add probe status report endpoint 2024-03-29 13:02:40 +00:00
Simon Larsen
ec5b1fc88d Merge pull request #1300 from OneUptime/snyk-upgrade-7ff8055f1a78b439a2eea0792a742e0b
[Snyk] Upgrade posthog-js from 1.111.0 to 1.111.3
2024-03-29 12:35:04 +00:00
Simon Larsen
bab7f6331e Merge pull request #1301 from OneUptime/snyk-upgrade-5d0fcde6d60f9f83910e30eebef4b31c
[Snyk] Upgrade react-router-dom from 6.22.2 to 6.22.3
2024-03-29 12:34:59 +00:00
Simon Larsen
592ff4efb7 Refactor online check in monitor types 2024-03-29 11:46:33 +00:00
Simon Larsen
3e0c5e8846 Refactor OnlineCheck to use URL instead of Hostname 2024-03-29 11:11:59 +00:00
Simon Larsen
c9d5d92934 Add support for FindOperator in QueryHelper 2024-03-29 09:25:27 +00:00
Simon Larsen
15739f99b5 Update sort order for monitorStatusTimelines 2024-03-29 09:10:48 +00:00
Simon Larsen
8513d969db Update limit to use LIMIT_INFINITY constant 2024-03-29 08:52:04 +00:00
Simon Larsen
0def943102 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-29 08:43:10 +00:00
Simon Larsen
da8fb1e032 Add deletedByUserId property to StatusPageAnnouncement model 2024-03-29 08:43:07 +00:00
snyk-bot
48087e1ce4 fix: upgrade react-router-dom from 6.22.2 to 6.22.3
Snyk has created this PR to upgrade react-router-dom from 6.22.2 to 6.22.3.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-28 23:21:26 +00:00
snyk-bot
56187ed256 fix: upgrade posthog-js from 1.111.0 to 1.111.3
Snyk has created this PR to upgrade posthog-js from 1.111.0 to 1.111.3.

See this package in npm:
https://www.npmjs.com/package/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-03-28 23:03:26 +00:00
Simon Larsen
80ff772e48 Merge pull request #1297 from OneUptime/snyk-upgrade-24390df2a46def1f7ae2d45ea147ed82
[Snyk] Upgrade react-big-calendar from 1.11.0 to 1.11.1
2024-03-28 19:38:28 +00:00
Simon Larsen
e82fffdc55 Merge pull request #1298 from OneUptime/snyk-upgrade-3639fcb1250bcc358b3c7877fc0ac4f3
[Snyk] Upgrade react-error-boundary from 4.0.12 to 4.0.13
2024-03-28 19:38:24 +00:00
Simon Larsen
547beaf890 Merge pull request #1299 from OneUptime/snyk-upgrade-0c8d07f2619af3a9652c63130b096e5e
[Snyk] Upgrade react-router-dom from 6.22.1 to 6.22.2
2024-03-28 19:38:16 +00:00
Simon Larsen
e2da673f53 Fix formatting issues in MonitorChart and MonitorChartTooltip components 2024-03-28 18:50:28 +00:00
Simon Larsen
32473b0d51 Update axis types in LineChart and MonitorChart 2024-03-28 18:34:30 +00:00
Simon Larsen
ed404dfdd1 Refactor line chart tooltip and monitor view 2024-03-28 18:29:19 +00:00
Simon Larsen
57b99e2e99 Fix y-axis formatting in LineChart and add y-scale for usage percentages in MonitorChart 2024-03-28 18:19:46 +00:00
Simon Larsen
34d7c9b152 Fix import statement for MonitorCharts component 2024-03-28 18:03:45 +00:00
Simon Larsen
87ad6dd73b Refactor MonitorChart and MonitorChartTooltip components 2024-03-28 17:57:37 +00:00
Simon Larsen
c188d23e0c Update LineChart and MonitorChart components 2024-03-28 17:45:28 +00:00
Simon Larsen
d7ecd18975 Refactor code formatting and fix function parameter spacing 2024-03-28 16:54:48 +00:00
Simon Larsen
67d241bb5e Add title and description to Chart interface and display them in LineChart component 2024-03-28 16:51:30 +00:00
Simon Larsen
a41bbb301a Add new method to get local hour and minute from date 2024-03-28 13:35:46 +00:00
Simon Larsen
672f2ecd70 Add MonitorMetricsByMinute API endpoint and fix CriteriaFilterUtil bug 2024-03-28 13:27:57 +00:00
Simon Larsen
8428677714 Refactor chart components and add new utility function 2024-03-28 12:57:55 +00:00
Simon Larsen
efa0990250 Update onMouseEnter to onMouseMove in LineChart component 2024-03-28 11:46:05 +00:00
Simon Larsen
c03d250a62 Refactor LineChart component to use generic types 2024-03-28 11:36:40 +00:00
snyk-bot
0c9cedafa1 fix: upgrade react-router-dom from 6.22.1 to 6.22.2
Snyk has created this PR to upgrade react-router-dom from 6.22.1 to 6.22.2.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-28 04:17:29 +00:00
Simon Larsen
39f0834cc2 Add sync functionality to ChartGroup component 2024-03-27 17:21:34 +00:00
snyk-bot
151b8c2262 fix: upgrade react-error-boundary from 4.0.12 to 4.0.13
Snyk has created this PR to upgrade react-error-boundary from 4.0.12 to 4.0.13.

See this package in npm:
https://www.npmjs.com/package/react-error-boundary

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-03-27 16:45:36 +00:00
snyk-bot
cdb9c0ee5a fix: upgrade react-big-calendar from 1.11.0 to 1.11.1
Snyk has created this PR to upgrade react-big-calendar from 1.11.0 to 1.11.1.

See this package in npm:
https://www.npmjs.com/package/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-03-27 16:45:30 +00:00
Simon Larsen
48427a341c Remove unused code and fix formatting in BaseChart.tsx and Bar.tsx 2024-03-27 16:29:12 +00:00
Simon Larsen
7477aeca94 Remove react-google-charts dependency and update LineChart component 2024-03-27 13:51:01 +00:00
Simon Larsen
04415198fc Merge branch 'master' into nivo-chart 2024-03-27 12:45:14 +00:00
Simon Larsen
d9cfd750a4 Merge pull request #1295 from OneUptime/snyk-fix-51a8a60e54b7973c2d9cd4f21fb62941
[Snyk] Security upgrade express from 4.18.2 to 4.19.2
2024-03-27 12:01:41 +00:00
Simon Larsen
57e3b7ba9b Merge pull request #1294 from OneUptime/snyk-upgrade-1a70acb042812427f2f0623d9a1d7e52
[Snyk] Upgrade posthog-js from 1.110.0 to 1.111.0
2024-03-27 12:01:27 +00:00
Simon Larsen
95fc43f3a5 Merge pull request #1296 from OneUptime/snyk-fix-9a1923e0e905758c8792768640ca8549
[Snyk] Security upgrade express from 4.18.2 to 4.19.2
2024-03-27 12:01:19 +00:00
snyk-bot
90689bfb1a fix: CommonServer/package.json & CommonServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-EXPRESS-6474509
2024-03-27 03:45:54 +00:00
snyk-bot
c484a8484c 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-EXPRESS-6474509
2024-03-27 03:42:11 +00:00
snyk-bot
0dbbbfda61 fix: upgrade posthog-js from 1.110.0 to 1.111.0
Snyk has created this PR to upgrade posthog-js from 1.110.0 to 1.111.0.

See this package in npm:
https://www.npmjs.com/package/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-03-27 03:39:00 +00:00
Simon Larsen
4278b1014c Merge remote-tracking branch 'origin/snyk-upgrade-bca4f4c2714cd0f79dbf79658ebcc160' 2024-03-26 19:58:38 +00:00
Simon Larsen
3954e7600c Fix bug in login functionality 2024-03-26 19:58:00 +00:00
Simon Larsen
ea04be214f Add react-google-charts package 2024-03-26 19:56:38 +00:00
Simon Larsen
4bcd12b659 Merge branch 'master' into nivo-chart 2024-03-26 18:27:31 +00:00
Simon Larsen
13de53166a Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-26 18:21:35 +00:00
Simon Larsen
b01e4ecbd7 Add security context configuration 2024-03-26 18:21:30 +00:00
Simon Larsen
61d6ca9a20 Add @nivo/bar, @nivo/core, and @nivo/line dependencies***
***Add Indigo500 color to BrandColors.ts***
***Import LineChart component in MonitorView
2024-03-26 18:14:35 +00:00
Simon Larsen
08c9fc9311 Merge pull request #1292 from OneUptime/snyk-fix-3c6c902c811ceedfbac3862a662ef58f
[Snyk] Security upgrade express from 4.18.3 to 4.19.2
2024-03-26 18:00:20 +00:00
Simon Larsen
ac46ba74d0 Merge pull request #1287 from OneUptime/snyk-upgrade-e5d426435aa30ff3fdefc67f8a5de771
[Snyk] Upgrade @opentelemetry/instrumentation-xml-http-request from 0.48.0 to 0.49.1
2024-03-26 17:59:37 +00:00
Simon Larsen
a382a6f207 Merge pull request #1288 from OneUptime/snyk-upgrade-3915bfe54818a95e70c8f440f7e29262
[Snyk] Upgrade react-router-dom from 6.22.1 to 6.22.2
2024-03-26 17:59:33 +00:00
Simon Larsen
9dfb9f0dc6 Merge pull request #1290 from OneUptime/snyk-upgrade-3a01fea3034d28ce6f6ac8a48749c813
[Snyk] Upgrade @opentelemetry/context-zone from 1.21.0 to 1.22.0
2024-03-26 17:59:19 +00:00
snyk-bot
7b98ccb590 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-EXPRESS-6474509
2024-03-26 17:02:37 +00:00
snyk-bot
0803f44407 fix: upgrade @opentelemetry/context-zone from 1.21.0 to 1.22.0
Snyk has created this PR to upgrade @opentelemetry/context-zone from 1.21.0 to 1.22.0.

See this package in npm:
https://www.npmjs.com/package/@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-03-25 15:58:30 +00:00
snyk-bot
36182cbe95 fix: upgrade @opentelemetry/api from 1.7.0 to 1.8.0
Snyk has created this PR to upgrade @opentelemetry/api from 1.7.0 to 1.8.0.

See this package in npm:
https://www.npmjs.com/package/@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-03-25 15:58:26 +00:00
snyk-bot
6e894d7b79 fix: upgrade react-router-dom from 6.22.1 to 6.22.2
Snyk has created this PR to upgrade react-router-dom from 6.22.1 to 6.22.2.

See this package in npm:
https://www.npmjs.com/package/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-03-25 15:58:21 +00:00
snyk-bot
4bb0c36050 fix: upgrade @opentelemetry/instrumentation-xml-http-request from 0.48.0 to 0.49.1
Snyk has created this PR to upgrade @opentelemetry/instrumentation-xml-http-request from 0.48.0 to 0.49.1.

See this package in npm:
https://www.npmjs.com/package/@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-03-25 15:58:18 +00:00
snyk-bot
044347296c fix: upgrade @opentelemetry/instrumentation from 0.48.0 to 0.49.1
Snyk has created this PR to upgrade @opentelemetry/instrumentation from 0.48.0 to 0.49.1.

See this package in npm:
https://www.npmjs.com/package/@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-03-25 15:58:14 +00:00
Simon Larsen
59ef638ad9 Merge remote-tracking branch 'origin/snyk-upgrade-fbb1d2ca2b9c0b40a214a0885d2e15a8' 2024-03-25 09:43:59 +00:00
Simon Larsen
8a9902941d Merge remote-tracking branch 'origin/snyk-upgrade-fbb433b1199f80e892a8e5c2eae24646' 2024-03-25 09:43:02 +00:00
Simon Larsen
dd6a36df65 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-25 09:42:18 +00:00
Simon Larsen
6c238e0e6b Merge remote-tracking branch 'origin/snyk-upgrade-b30dfbc77442260873df5fa299a93daf' 2024-03-25 09:42:12 +00:00
Simon Larsen
a61c496a78 Merge pull request #1283 from OneUptime/snyk-upgrade-f77c957cb9ff9e1d7fa755ddec88fe39
[Snyk] Upgrade @opentelemetry/exporter-trace-otlp-http from 0.48.0 to 0.49.1
2024-03-24 21:05:36 +00:00
Simon Larsen
8b2a819bd5 Merge pull request #1284 from OneUptime/snyk-upgrade-3c30d36113425e4ac5ca2ae1e9cde064
[Snyk] Upgrade @opentelemetry/instrumentation-fetch from 0.48.0 to 0.49.1
2024-03-24 21:05:32 +00:00
Simon Larsen
e3a28bf0e7 Update nginx.yaml to reflect deployment changes 2024-03-24 20:44:50 +00:00
Simon Larsen
c149991884 Add Microsoft Teams integration to Workflow Components 2024-03-24 20:21:12 +00:00
snyk-bot
544bb37581 fix: upgrade @opentelemetry/instrumentation-fetch from 0.48.0 to 0.49.1
Snyk has created this PR to upgrade @opentelemetry/instrumentation-fetch from 0.48.0 to 0.49.1.

See this package in npm:
https://www.npmjs.com/package/@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-03-24 16:56:48 +00:00
snyk-bot
5c1b8d420d fix: upgrade @opentelemetry/exporter-trace-otlp-http from 0.48.0 to 0.49.1
Snyk has created this PR to upgrade @opentelemetry/exporter-trace-otlp-http from 0.48.0 to 0.49.1.

See this package in npm:
https://www.npmjs.com/package/@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-03-24 16:56:45 +00:00
Simon Larsen
d76eebceb0 Add missing import statement for ActiveMonitoringMeteredPlan 2024-03-24 13:11:46 +00:00
Simon Larsen
993a01659b Add ActiveMonitoringMeteredPlan to telemetry reporting 2024-03-24 13:08:43 +00:00
Simon Larsen
8e08dea7ec Fix proration behavior in BillingService 2024-03-24 13:01:00 +00:00
Simon Larsen
82e5977e15 Add proration behavior for metered plans and subscription changes 2024-03-24 12:59:38 +00:00
Simon Larsen
53481a58eb Update billing anchor to start billing cycle now 2024-03-24 12:56:52 +00:00
Simon Larsen
faa225d275 Add billing anchor and update deployment commands 2024-03-24 12:56:31 +00:00
Simon Larsen
263d659761 Update replica count in probe.yaml 2024-03-24 12:39:25 +00:00
Simon Larsen
7f0535459e Update Clickhouse.md with correct username for Postgres user 2024-03-24 11:17:02 +00:00
Simon Larsen
4901749ae6 Update CLICKHOUSE_PORT value in _helpers.tpl and add clickhouse.service.ports.http in values.yaml 2024-03-24 11:14:23 +00:00
Simon Larsen
bab36f9b86 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-24 10:52:55 +00:00
Simon Larsen
2757bc01c7 Update database port in _helpers.tpl and values.yaml 2024-03-24 10:52:52 +00:00
Simon Larsen
d6affe3949 Merge pull request #1263 from OneUptime/snyk-upgrade-a8976e7174e38a62275d1d9617d0a0c5
[Snyk] Upgrade nodemailer from 6.9.9 to 6.9.10
2024-03-24 09:53:24 +00:00
Simon Larsen
3304191b29 Merge pull request #1281 from OneUptime/snyk-upgrade-b8833dbb21460bebe74dc69315d6daaa
[Snyk] Upgrade react-router-dom from 6.22.1 to 6.22.2
2024-03-24 09:52:58 +00:00
Simon Larsen
6a6b60afe8 Update backup and restore commands in Postgres.md 2024-03-23 20:27:32 +00:00
Simon Larsen
400ebf994d Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-23 19:07:01 +00:00
Simon Larsen
328a5d49f4 Refactor Navbar component and add tests for Toggle component 2024-03-23 19:06:57 +00:00
Simon Larsen
52acb22acc Refactor Toggle component and update NavBar component 2024-03-22 17:59:06 +00:00
Simon Larsen
08339a5247 Merge pull request #1280 from OneUptime/snyk-upgrade-278d90abadc25e2c6ae9608c052c80de
[Snyk] Upgrade react-router-dom from 6.22.1 to 6.22.2
2024-03-22 17:50:55 +00:00
Simon Larsen
f9bf1e45be Merge pull request #1282 from OneUptime/snyk-upgrade-4c3e8a6f3c06adf100e2941bafb49e9c
[Snyk] Upgrade @opentelemetry/exporter-logs-otlp-http from 0.48.0 to 0.49.1
2024-03-22 17:50:49 +00:00
Simon Larsen
ba59f77563 Refactor Navbar component to conditionally render right element 2024-03-22 14:37:05 +00:00
snyk-bot
316fefbf53 fix: upgrade @opentelemetry/exporter-logs-otlp-http from 0.48.0 to 0.49.1
Snyk has created this PR to upgrade @opentelemetry/exporter-logs-otlp-http from 0.48.0 to 0.49.1.

See this package in npm:
https://www.npmjs.com/package/@opentelemetry/exporter-logs-otlp-http

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-22 14:31:36 +00:00
snyk-bot
ab9619ca40 fix: upgrade react-router-dom from 6.22.1 to 6.22.2
Snyk has created this PR to upgrade react-router-dom from 6.22.1 to 6.22.2.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-22 14:31:34 +00:00
snyk-bot
735a476097 fix: upgrade react-router-dom from 6.22.1 to 6.22.2
Snyk has created this PR to upgrade react-router-dom from 6.22.1 to 6.22.2.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-22 14:31:30 +00:00
Simon Larsen
7538367b0a remove email domains 2024-03-22 11:24:59 +00:00
Simon Larsen
b73a11992c Merge branch 'monitor-metrics' 2024-03-22 11:15:56 +00:00
Simon Larsen
94412fb515 Fix formatting issues in Dropdown component and remove unnecessary code***
***Remove extra line in CustomCallSMSTable component***
***Remove extra line in Domains component***
***Remove extra line in BillingInvoice model***
***Remove extra line in OnCallDutyPolicyEscalationRule model***
***Remove extra line in OnCallDutyPolicyEscalationRuleSchedule model***
***Remove extra line in OnCallDutyPolicyExecutionLog model***
***Remove extra line in OnCallDutyPolicySchedule model***
***Remove extra line in OnCallDutyPolicyScheduleLayer model***
***Remove extra line in OnCallDutyPolicyScheduleLayerUser model
2024-03-22 11:15:45 +00:00
Simon Larsen
a3916be807 Refactor Dropdown component to use useLayoutEffect and useRef 2024-03-22 10:58:48 +00:00
Simon Larsen
3576fdfbb5 Fix Toggle component props check 2024-03-22 10:42:57 +00:00
Simon Larsen
14016d23d8 Add deletedByUserId property to several models 2024-03-22 10:28:33 +00:00
Simon Larsen
1056123d31 Fix typo in BasicMetrics.ts 2024-03-21 18:37:14 +00:00
Simon Larsen
96a5f75731 Merge pull request #1273 from OneUptime/snyk-upgrade-5de44a4064198e684a16d4974b493a51
[Snyk] Upgrade react-router-dom from 6.22.1 to 6.22.2
2024-03-21 18:17:29 +00:00
Simon Larsen
18e8b7cb00 Merge pull request #1277 from OneUptime/snyk-upgrade-45f558246d9cf563b81347018cd88743
[Snyk] Upgrade express from 4.18.2 to 4.18.3
2024-03-21 18:17:11 +00:00
Simon Larsen
e64c9f6e4c Merge pull request #1278 from OneUptime/snyk-upgrade-cf5a95d96106729341e88bb0acf4986e
[Snyk] Upgrade @opentelemetry/exporter-trace-otlp-proto from 0.48.0 to 0.49.1
2024-03-21 18:17:05 +00:00
Simon Larsen
5976fc22f5 Fix formatting issues in APIRequestCriteria and CompareCriteria 2024-03-21 18:16:14 +00:00
Simon Larsen
750fe2867c Fix import statements in APIRequestCriteria, CompareCriteria, EvaluateOverTime, IncomingRequestCriteria, and ServerMonitorCriteria 2024-03-21 18:10:34 +00:00
snyk-bot
5c89ed97e6 fix: upgrade express from 4.18.2 to 4.18.3
Snyk has created this PR to upgrade express from 4.18.2 to 4.18.3.

See this package in npm:
https://www.npmjs.com/package/express

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-21 17:07:50 +00:00
snyk-bot
27090a346c fix: upgrade @opentelemetry/exporter-trace-otlp-proto from 0.48.0 to 0.49.1
Snyk has created this PR to upgrade @opentelemetry/exporter-trace-otlp-proto from 0.48.0 to 0.49.1.

See this package in npm:
https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-proto

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-21 17:07:50 +00:00
snyk-bot
d23aff2e73 fix: upgrade @opentelemetry/exporter-metrics-otlp-proto from 0.48.0 to 0.49.1
Snyk has created this PR to upgrade @opentelemetry/exporter-metrics-otlp-proto from 0.48.0 to 0.49.1.

See this package in npm:
https://www.npmjs.com/package/@opentelemetry/exporter-metrics-otlp-proto

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-21 17:07:46 +00:00
snyk-bot
f1852a95d0 fix: upgrade @opentelemetry/api-logs from 0.48.0 to 0.49.1
Snyk has created this PR to upgrade @opentelemetry/api-logs from 0.48.0 to 0.49.1.

See this package in npm:
https://www.npmjs.com/package/@opentelemetry/api-logs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-21 17:07:43 +00:00
snyk-bot
6eb3b1f80d fix: upgrade @opentelemetry/sdk-logs from 0.48.0 to 0.49.1
Snyk has created this PR to upgrade @opentelemetry/sdk-logs from 0.48.0 to 0.49.1.

See this package in npm:
https://www.npmjs.com/package/@opentelemetry/sdk-logs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-21 17:07:37 +00:00
snyk-bot
8dc65283d8 fix: upgrade react-router-dom from 6.22.1 to 6.22.2
Snyk has created this PR to upgrade react-router-dom from 6.22.1 to 6.22.2.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-21 17:07:27 +00:00
Simon Larsen
324572d37d Update Probe.ts and delete EvaluateOverTime.ts 2024-03-21 15:56:56 +00:00
Simon Larsen
aa764cdb14 Merge pull request #1269 from OneUptime/snyk-upgrade-b877b3453fac70a0d00e31c442374920
[Snyk] Upgrade react-big-calendar from 1.10.3 to 1.11.0
2024-03-21 15:43:59 +00:00
Simon Larsen
0ca18bebd5 Refactor server and API request criteria classes 2024-03-21 15:39:40 +00:00
Simon Larsen
f742fcb3c4 Merge pull request #1270 from OneUptime/snyk-upgrade-d3e67beb45bccf2eb8d315827e5bb788
[Snyk] Upgrade posthog-js from 1.108.4 to 1.110.0
2024-03-21 14:07:44 +00:00
Simon Larsen
0839cbe297 Refactor code to improve performance and readability 2024-03-21 14:01:48 +00:00
Simon Larsen
0914ae6bda Add query parameter for EvaluateOverTime criteria 2024-03-21 13:54:30 +00:00
Simon Larsen
e7dd5adb2a Add EvaluateOverTime functionality to ServerMonitorCriteria 2024-03-21 11:42:59 +00:00
Simon Larsen
b85ec355f5 Fix server monitor result type in ProbeMonitorResponse.ts 2024-03-20 20:12:02 +00:00
Simon Larsen
ec0dafb7a6 Fix import path in Probe.ts 2024-03-20 20:06:44 +00:00
Simon Larsen
e8316078c8 Merge branch 'master' into monitor-metrics 2024-03-20 19:41:54 +00:00
Simon Larsen
0b1069f9a8 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-20 19:41:43 +00:00
Simon Larsen
bd3959e844 Fix formatting of description in SMTP settings form field 2024-03-20 19:41:41 +00:00
Simon Larsen
bf8561a166 Refactor saveMonitorMetrics function to improve code readability and maintainability 2024-03-20 19:39:41 +00:00
Simon Larsen
e92ee600c9 Update BasicMetrics.ts and ProbeMonitorResponse.ts 2024-03-20 19:38:58 +00:00
Simon Larsen
31fc399a5e Refactor NavBar component 2024-03-20 17:57:43 +00:00
Simon Larsen
1acfedeebb Refactor Navbar component to include a right element 2024-03-20 17:42:01 +00:00
Simon Larsen
5895f515a0 Fix formatting and add missing commas 2024-03-20 14:29:40 +00:00
Simon Larsen
2830293949 Add Monitor Metrics job to Workers Index.ts 2024-03-20 14:28:27 +00:00
Simon Larsen
2d060e335d Update MonitorMetricsByMinute model to use CheckOn type for metricType 2024-03-20 14:04:37 +00:00
Simon Larsen
6b01d73903 Add MonitorMetricsByMinuteService and MonitorMetricsByMinute model 2024-03-20 14:01:46 +00:00
snyk-bot
10ebfda7d0 fix: upgrade posthog-js from 1.108.4 to 1.110.0
Snyk has created this PR to upgrade posthog-js from 1.108.4 to 1.110.0.

See this package in npm:
https://www.npmjs.com/package/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-03-20 13:51:59 +00:00
Simon Larsen
98c3581022 Add support for milliseconds in CriteriaFilterUtil 2024-03-20 13:29:12 +00:00
Simon Larsen
859aca85a7 Fix dropdown value comparison bug 2024-03-20 13:09:50 +00:00
Simon Larsen
b94402525e Add id prop to Dropdown, FormField, and Toggle components 2024-03-20 12:50:20 +00:00
Simon Larsen
efbdc85ade Update Toggle component props 2024-03-20 12:01:55 +00:00
Simon Larsen
efd8a0e79f Add FormValues import and update createInitialValues prop 2024-03-20 11:24:36 +00:00
Simon Larsen
6067babb9f Refactor OnCallDutyRoutes and CriteriaFilterUtil classes 2024-03-20 11:19:45 +00:00
Simon Larsen
4451b5343d Fix OnCallDutyRoutes rendering issue 2024-03-20 11:16:41 +00:00
Simon Larsen
6ebeef5397 Refactor CriteriaFilterUtil class to improve readability and add support for evaluating percentage values over time 2024-03-20 10:19:11 +00:00
Simon Larsen
56d2d348fb Update EvaluateOverTimeType enum values 2024-03-19 17:51:13 +00:00
snyk-bot
3a21e8df47 fix: upgrade react-big-calendar from 1.10.3 to 1.11.0
Snyk has created this PR to upgrade react-big-calendar from 1.10.3 to 1.11.0.

See this package in npm:
https://www.npmjs.com/package/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-03-19 17:24:50 +00:00
Simon Larsen
81ab8d135f Refactor dropdown component and criteria filter 2024-03-19 17:23:10 +00:00
Simon Larsen
f9c9b9addf Update EvaluateOverTimeMinutes enum values to be strings 2024-03-19 17:19:54 +00:00
Simon Larsen
b29a19c6e9 Refactor CriteriaFilterUtil to filter out invalid options 2024-03-19 16:41:10 +00:00
Simon Larsen
d1d1734183 Merge pull request #1266 from OneUptime/snyk-upgrade-287996f9faf249b96863f2cdd9a8415b
[Snyk] Upgrade posthog-js from 1.108.3 to 1.108.4
2024-03-19 16:28:43 +00:00
Simon Larsen
decc09e3b9 Fix formatting issues and update descriptions in SMTP settings and CriteriaFilter 2024-03-19 16:27:54 +00:00
Simon Larsen
1a3f8fca1a Add EvaluateOverTimeType and EvaluateOverTimeOptions to CriteriaFilter 2024-03-19 16:23:40 +00:00
Simon Larsen
b5ff064a27 Update SMTP SSL/TLS description 2024-03-19 14:40:31 +00:00
Simon Larsen
d91e944c2e Fix bug in login functionality 2024-03-19 09:32:41 +00:00
Simon Larsen
98b8e89d71 Add deployment scripts for test and prod environments 2024-03-19 09:32:28 +00:00
Simon Larsen
b516a7a350 Refactor InternalSmtpHost initialization in Config.ts 2024-03-19 08:38:47 +00:00
Simon Larsen
ebc1724093 Update SMTP host configuration and environment variables in app.yaml and Config.ts 2024-03-19 08:35:23 +00:00
Simon Larsen
0954336a69 Add deletedByUserId column to StatusPageSubscriber model 2024-03-19 08:09:13 +00:00
Simon Larsen
8552556289 Update API Documentation to API Reference 2024-03-19 07:54:01 +00:00
Simon Larsen
d329160fc0 Fix missing comma in githubPath assignment 2024-03-19 07:43:46 +00:00
Simon Larsen
d1af2e62bf Add githubPath to rendered content 2024-03-19 07:41:24 +00:00
Simon Larsen
a06e5035df Delete unused images and infrastructure agent installation script 2024-03-19 07:32:17 +00:00
Simon Larsen
b2a15ff460 Delete unused images and infrastructure agent installation script 2024-03-19 07:30:52 +00:00
Simon Larsen
eb53b5a81d Update title of local development section 2024-03-19 07:29:48 +00:00
Simon Larsen
363f7b81e8 Update installation links in README.md 2024-03-19 07:29:06 +00:00
Simon Larsen
4e55541026 Remove pagination from Index.ejs 2024-03-18 21:39:03 +00:00
Simon Larsen
deb0aaf35f Merge branch 'release' 2024-03-18 21:34:16 +00:00
Simon Larsen
fdcf8c66fa Update imports and links 2024-03-18 21:33:37 +00:00
Simon Larsen
f9f9aa4433 Update image paths in telemetry documentation 2024-03-18 21:24:10 +00:00
Simon Larsen
5f50a11786 Update content includes category and link information 2024-03-18 21:16:31 +00:00
Simon Larsen
4648d5232a Delete unused images and update Config.ts and Index.ts 2024-03-18 19:32:49 +00:00
Simon Larsen
f282344c78 Merge pull request #1267 from OneUptime/release
Release
2024-03-18 18:44:55 +00:00
Simon Larsen
b12d6c713e Fix capitalization of index file in render method 2024-03-18 18:41:56 +00:00
snyk-bot
6d6e7ce013 fix: upgrade posthog-js from 1.108.3 to 1.108.4
Snyk has created this PR to upgrade posthog-js from 1.108.3 to 1.108.4.

See this package in npm:
https://www.npmjs.com/package/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-03-18 16:46:04 +00:00
Simon Larsen
99aa76ea81 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-18 13:22:45 +00:00
Simon Larsen
dbd2462958 Remove Linux installation script and update server monitor documentation 2024-03-18 13:22:24 +00:00
Simon Larsen
1dbfea9051 Add Docs feature set and configure Nginx proxy for /docs endpoint 2024-03-18 13:12:39 +00:00
Simon Larsen
aae6abd9d8 Merge pull request #1264 from OneUptime/snyk-upgrade-380cba6388c50afe55c5be83ca05eac9
[Snyk] Upgrade react-router-dom from 6.22.0 to 6.22.1
2024-03-18 10:06:57 +00:00
Simon Larsen
a15e91d4bf Merge pull request #1265 from OneUptime/simlarsen-patch-1
Update IPAddress.md
2024-03-18 10:06:37 +00:00
Simon Larsen
cb4b845caa Update IPAddress.md 2024-03-18 10:06:28 +00:00
snyk-bot
3586895494 fix: upgrade react-router-dom from 6.22.0 to 6.22.1
Snyk has created this PR to upgrade react-router-dom from 6.22.0 to 6.22.1.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-17 17:21:34 +00:00
Simon Larsen
a20be2441e Update OneUptime deployment message 2024-03-17 13:51:31 +00:00
Simon Larsen
4efca8a758 Add OpenTelemetry headers to probe and other services 2024-03-17 13:46:49 +00:00
Simon Larsen
4c49189315 Refactor environment variables in _helpers.tpl and probe.yaml 2024-03-17 13:22:46 +00:00
Simon Larsen
74322a72e7 Fix encryption secret and database password in Helm chart*** 2024-03-17 12:26:31 +00:00
Simon Larsen
80c39d8e64 Update secret values in HelmChart templates 2024-03-17 12:14:26 +00:00
Simon Larsen
e7bbe30a88 Update Postgres backup and restore scripts 2024-03-17 11:46:32 +00:00
Simon Larsen
9cf2ae4326 Update backup and restore commands in Postgres.md 2024-03-17 11:14:36 +00:00
Simon Larsen
9b70dd2ce6 Remove Postgres Ops instructions from Helm.md 2024-03-17 11:10:10 +00:00
Simon Larsen
af06b616b3 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-17 09:09:32 +00:00
Simon Larsen
4c8fb5db10 Fix import statement and update package dependencies 2024-03-17 09:09:16 +00:00
Simon Larsen
901ba63487 Merge pull request #1251 from xuebingli/remove-obsolete-code
Remove obsolete code
2024-03-16 19:24:26 +00:00
Simon Larsen
40a14275d2 Merge pull request #1258 from OneUptime/snyk-upgrade-a7e3165a4bba338ce0985395c02f4c62
[Snyk] Upgrade react-router-dom from 6.22.0 to 6.22.1
2024-03-16 19:20:02 +00:00
Simon Larsen
45005c9473 Merge pull request #1261 from OneUptime/snyk-upgrade-e698dc420c0e9fe051da272c8404172c
[Snyk] Upgrade dotenv from 16.4.4 to 16.4.5
2024-03-16 19:19:59 +00:00
Simon Larsen
1a4a2c7c93 Merge pull request #1262 from OneUptime/snyk-upgrade-6ba918b573d1d835e3618cbc824ec836
[Snyk] Upgrade posthog-js from 1.108.0 to 1.108.3
2024-03-16 19:19:53 +00:00
Simon Larsen
a3a194a26a Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-16 19:17:41 +00:00
Simon Larsen
f4f9629350 Refactor command line argument parsing and update API endpoint 2024-03-16 19:17:38 +00:00
Simon Larsen
98e1c3a41d Update OneUptime URL and secret key 2024-03-16 19:13:51 +00:00
Simon Larsen
6524b09b75 Fix import paths and update dependencies 2024-03-16 19:04:42 +00:00
snyk-bot
9a11bfbed7 fix: upgrade nodemailer from 6.9.9 to 6.9.10
Snyk has created this PR to upgrade nodemailer from 6.9.9 to 6.9.10.

See this package in npm:
https://www.npmjs.com/package/nodemailer

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-16 18:50:36 +00:00
snyk-bot
0b75bced0d fix: upgrade posthog-js from 1.108.0 to 1.108.3
Snyk has created this PR to upgrade posthog-js from 1.108.0 to 1.108.3.

See this package in npm:
https://www.npmjs.com/package/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-03-16 18:48:41 +00:00
snyk-bot
a4d5e089aa fix: upgrade dotenv from 16.4.4 to 16.4.5
Snyk has created this PR to upgrade dotenv from 16.4.4 to 16.4.5.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-16 18:48:24 +00:00
Simon Larsen
d15fa225f3 Update npm install commands 2024-03-16 18:43:48 +00:00
Simon Larsen
f12e2eebc5 Remove "type" field from package.json files 2024-03-16 18:42:59 +00:00
Simon Larsen
5da16c2c09 Add "type" field to package.json files 2024-03-16 18:40:16 +00:00
Simon Larsen
6a4f9a09bd Add @types/node-cron dependency and update package name and license 2024-03-16 18:34:14 +00:00
Simon Larsen
9f8632bf02 Add system package manager checks and installations*** 2024-03-16 16:40:15 +00:00
Simon Larsen
f5ddaea15c Merge pull request #1259 from OneUptime/snyk-upgrade-be92ab809e45a9e0a2986468cbd971a5
[Snyk] Upgrade dotenv from 16.4.4 to 16.4.5
2024-03-16 16:35:44 +00:00
Simon Larsen
cfc0a64c23 Merge pull request #1260 from OneUptime/snyk-upgrade-2b86108a0744c954542e3d4837df6f9a
[Snyk] Upgrade dotenv from 16.4.4 to 16.4.5
2024-03-16 16:35:39 +00:00
snyk-bot
2bddbbe2a9 fix: upgrade dotenv from 16.4.4 to 16.4.5
Snyk has created this PR to upgrade dotenv from 16.4.4 to 16.4.5.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-15 18:35:30 +00:00
snyk-bot
972184b3f3 fix: upgrade dotenv from 16.4.4 to 16.4.5
Snyk has created this PR to upgrade dotenv from 16.4.4 to 16.4.5.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-15 18:35:22 +00:00
snyk-bot
bde6c65538 fix: upgrade react-router-dom from 6.22.0 to 6.22.1
Snyk has created this PR to upgrade react-router-dom from 6.22.0 to 6.22.1.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-15 18:35:19 +00:00
Simon Larsen
b482a2fd6c Add NVM installation and Node.js setup to Linux.sh script 2024-03-15 17:51:46 +00:00
Simon Larsen
ea7a234556 Refactor installation and running of agent in ServerMonitorDocumentation.tsx 2024-03-15 16:53:36 +00:00
Simon Larsen
1c6ad0f67a Refactor Linux installation script and remove unnecessary code 2024-03-15 16:52:59 +00:00
Simon Larsen
cd53f7eb02 Update installation script in ServerMonitor documentation 2024-03-15 16:51:41 +00:00
Simon Larsen
ae51ceeb62 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-15 16:46:49 +00:00
Simon Larsen
7ec14d5104 Update infrastructure agent installation scripts and add redirect endpoint 2024-03-15 16:43:49 +00:00
Simon Larsen
5ae46e7bde Merge pull request #1256 from OneUptime/snyk-upgrade-2fa088c586d27de90ac736a942d73a53
[Snyk] Upgrade react-router-dom from 6.22.0 to 6.22.1
2024-03-15 15:45:50 +00:00
Simon Larsen
999fa00e4f Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-15 15:44:34 +00:00
Simon Larsen
d767d58dde Update package dependencies and versions 2024-03-15 15:43:31 +00:00
Simon Larsen
a7b14ea18a Update package.json name to "@oneuptime/root" 2024-03-15 15:39:50 +00:00
Simon Larsen
a01827fb6b Merge pull request #1254 from xuebingli/fix-workflow-breadcrumbs
Fix workflow breadcrumbs and avoid self links
2024-03-15 15:05:19 +00:00
Simon Larsen
b6c97b6e4f Merge pull request #1255 from xuebingli/fix-flaky-tests
Fix flaky tests
2024-03-15 15:02:39 +00:00
Simon Larsen
a169a0a5d3 Merge pull request #1257 from OneUptime/snyk-upgrade-4f73194c8d440f0af839227c646c1846
[Snyk] Upgrade react-big-calendar from 1.10.2 to 1.10.3
2024-03-15 15:02:22 +00:00
snyk-bot
1d595dd9d8 fix: upgrade react-big-calendar from 1.10.2 to 1.10.3
Snyk has created this PR to upgrade react-big-calendar from 1.10.2 to 1.10.3.

See this package in npm:
https://www.npmjs.com/package/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-03-15 14:47:28 +00:00
snyk-bot
16a84a32f1 fix: upgrade react-router-dom from 6.22.0 to 6.22.1
Snyk has created this PR to upgrade react-router-dom from 6.22.0 to 6.22.1.

See this package in npm:
https://www.npmjs.com/package/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-03-15 14:47:24 +00:00
Xuebing Li
0c6cf62361 Fix OneUptime/oneuptime#1253
1. Disable self links in breadcrumbs
2. Make the disabled link unclickable
2024-03-15 22:31:49 +09:00
Xuebing Li
7bb87f58a2 Drop /workflow from Workflow routes
For example, `dashboard/some-uuid/workflows/workflow/another-uuid`
becomes `dashboard/some-uuid/workflows/another-uuid`. This change brings
2 benefits:

1. Fix OneUptime/oneuptime#1252
2. Make Workflow routes consistent with other routes (e.g. Incidents)
2024-03-15 22:31:49 +09:00
Xuebing Li
7cb955e284 Remove empty file 2024-03-15 22:27:23 +09:00
Xuebing Li
24c55f42a2 Remove duplicate code
The code segment with `select` is the same as the code segment with
`selectColumns` below. It also doesn't appear to be used anywhere.
2024-03-15 22:27:23 +09:00
Xuebing Li
e1fce39fbc Delete ProjectTestService.ts
ProjectTestService.ts is identical to ProjectServiceHelper.ts. In
addition, it doesn't appear to be used anywhere.
2024-03-15 22:27:23 +09:00
Xuebing Li
261299fc3a Increase test timeout to 60 sec for TeamMemberService.test.ts
GitHub runners are slow thus the default 5 second timeout is not enough.
2024-03-15 21:55:00 +09:00
Simon Larsen
4b076a8000 Update shebang in Index.ts 2024-03-15 12:46:16 +00:00
Simon Larsen
633d60c0af Update server monitor query to use lessThanEqualToOrNull function 2024-03-15 12:45:37 +00:00
Simon Larsen
a1e407ce15 Update ChangelogConfig template 2024-03-15 12:40:06 +00:00
Simon Larsen
e87e3b0724 Remove unused helm commands and files 2024-03-15 12:25:57 +00:00
Simon Larsen
2c3b238ef5 Update ChangelogConfig.json with empty_template message 2024-03-15 11:48:38 +00:00
Simon Larsen
d8651ac951 Refactor ChangelogConfig.json 2024-03-15 11:29:12 +00:00
Simon Larsen
04283133d9 Update start script in InfrastructureAgent package.json 2024-03-15 11:17:37 +00:00
Simon Larsen
d0dd20c314 Update release workflow configuration 2024-03-15 10:52:51 +00:00
Simon Larsen
a7d1ab5d71 Add release-changelog-builder-action to build changelog 2024-03-15 10:47:07 +00:00
Simon Larsen
d305c2b368 Update PACKAGE_VERSION in publish-npm-packages job 2024-03-15 10:28:07 +00:00
Simon Larsen
48c7fefe93 Update shebang to use npx ts-node 2024-03-15 10:25:40 +00:00
Simon Larsen
b8fcc4c40c Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-14 15:30:38 +00:00
Simon Larsen
e37271021a Remove unnecessary steps in build and release workflows 2024-03-14 15:30:19 +00:00
Simon Larsen
632ebe77e8 Merge pull request #1234 from OneUptime/server-monitor
Add server monitor
2024-03-14 15:27:25 +00:00
Simon Larsen
f296483088 Update workflow to publish npm packages 2024-03-14 14:39:50 +00:00
Simon Larsen
7a83337391 Remove unnecessary build steps for infrastructure agent 2024-03-14 14:35:06 +00:00
Simon Larsen
e3c8cfd8eb Add command to show content of npmrc file 2024-03-14 14:31:12 +00:00
Simon Larsen
6664284b37 Update package.json licenses to Apache-2.0 2024-03-14 14:22:54 +00:00
Simon Larsen
aa2e2187f9 Refactor CommonUI README.md to update project description 2024-03-14 14:07:07 +00:00
Simon Larsen
fa108743d4 Update README with installation instructions for OneUptime Infrastructure Agent 2024-03-14 14:03:11 +00:00
Simon Larsen
eb2fb1c51e Fix npm publish script 2024-03-14 13:56:53 +00:00
Simon Larsen
6a9a7bfd32 Update build workflow and remove unused script 2024-03-14 13:56:39 +00:00
Simon Larsen
9a25f8ea00 Update package names 2024-03-14 13:43:21 +00:00
Simon Larsen
2310ab0929 Update author information in package.json files 2024-03-14 13:20:47 +00:00
Simon Larsen
2e9cb1de23 Update package.json licenses 2024-03-14 13:19:04 +00:00
Simon Larsen
23dc041541 Update script to use Write-Host instead of echo 2024-03-14 13:15:34 +00:00
Simon Larsen
16a945e142 Update email in npmrc file 2024-03-14 13:10:14 +00:00
Simon Larsen
befacef639 Fix npm version variable 2024-03-14 12:12:04 +00:00
Simon Larsen
7c13b66c40 Add npm version command to PublishPackage.sh script 2024-03-14 12:08:19 +00:00
Simon Larsen
58c7860f9b Add npm install commands for Common, Model, CommonServer, and CommonUI 2024-03-14 12:07:16 +00:00
Simon Larsen
01e5964207 Update package-lock.json and package.json 2024-03-14 12:04:27 +00:00
Simon Larsen
d3957363c3 Add Open Source Commitment partial to blog views 2024-03-14 11:47:43 +00:00
Simon Larsen
c255205f9c Fix formatting issues in RouteMap and MonitorView components 2024-03-14 11:23:13 +00:00
Simon Larsen
463f4c2e18 Add echo statement to display script directory 2024-03-14 11:15:12 +00:00
Simon Larsen
cc2e65445d Update build path in package.json 2024-03-14 11:14:22 +00:00
Simon Larsen
78863b4700 Merge pull request #1249 from OneUptime/snyk-upgrade-7b3b421a91f5e41dbf3b2c06736a259d
[Snyk] Upgrade posthog-js from 1.105.8 to 1.108.0
2024-03-14 10:46:16 +00:00
Simon Larsen
7caf1cff35 Merge pull request #1250 from xuebingli/fix-accidental-workflow-triggering
Fix accidental workflow triggering
2024-03-14 10:45:40 +00:00
Simon Larsen
a8cc459558 Merge pull request #1247 from OneUptime/snyk-upgrade-0fa870474f58a85ba40d19adac8a5d59
[Snyk] Upgrade react-router-dom from 6.22.0 to 6.22.1
2024-03-14 10:44:46 +00:00
Simon Larsen
ea5fca175e Merge pull request #1246 from OneUptime/snyk-upgrade-35ef278dfe4f31df6a76dff2334c4ab2
[Snyk] Upgrade dotenv from 16.4.2 to 16.4.5
2024-03-14 10:40:44 +00:00
Xuebing Li
af73638cb9 Fixes OneUptime/oneuptime#1113
Adds a check before workflow triggers, ensuring that multiple identical
updates (e.g. updating `currentScheduledMaintenanceStateId` twice to the
 same value) only trigger workflow once.
2024-03-14 17:02:16 +09:00
snyk-bot
ad220634e5 fix: upgrade posthog-js from 1.105.8 to 1.108.0
Snyk has created this PR to upgrade posthog-js from 1.105.8 to 1.108.0.

See this package in npm:
https://www.npmjs.com/package/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-03-13 21:13:31 +00:00
snyk-bot
15f3f9f6d3 fix: upgrade react-router-dom from 6.22.0 to 6.22.1
Snyk has created this PR to upgrade react-router-dom from 6.22.0 to 6.22.1.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-13 20:47:54 +00:00
snyk-bot
0060965116 fix: upgrade dotenv from 16.4.2 to 16.4.5
Snyk has created this PR to upgrade dotenv from 16.4.2 to 16.4.5.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-13 20:47:51 +00:00
Simon Larsen
cf9bdb4eb1 Fix package.json publish command 2024-03-13 20:24:21 +00:00
Simon Larsen
aaa0a12bac Add new monitor view documentation route 2024-03-13 19:21:27 +00:00
Simon Larsen
5d37de0c71 Update build and UI components 2024-03-13 18:41:32 +00:00
Simon Larsen
f5c128fd6a Update build scripts and package.json 2024-03-13 18:14:43 +00:00
Simon Larsen
075212aec8 Add dependencies and update styles in CommonUI package.json, update InlineCode component styles, and fix layout issue in Card component 2024-03-13 17:59:41 +00:00
Simon Larsen
261436e968 Fix path in Linux.sh script 2024-03-13 17:22:38 +00:00
Simon Larsen
f4b92789e7 Update component descriptions and add InlineCode component 2024-03-13 17:22:07 +00:00
Simon Larsen
c76132fec0 Update Windows build script to use bash command instead of relative path 2024-03-13 17:03:13 +00:00
Simon Larsen
d6d699f0b5 Update OneUptime Host URL 2024-03-13 16:59:58 +00:00
Simon Larsen
b1cc8098b4 Refactor command line options and add error handling 2024-03-13 16:57:28 +00:00
Simon Larsen
e3d0ed4d48 Update InfrastructureAgent Index.ts and package.json 2024-03-13 16:26:58 +00:00
Simon Larsen
b8da25e982 Merge branch 'master' into server-monitor 2024-03-13 13:32:10 +00:00
Simon Larsen
64e0d3e7fa Update dep-check command in package.json 2024-03-13 13:32:00 +00:00
Simon Larsen
e5dcc61f14 Update package-lock.json version 2024-03-13 13:30:58 +00:00
Simon Larsen
2be50afabc Update dep-check script in package.json 2024-03-13 13:16:08 +00:00
Simon Larsen
2a63edcc09 Add @babel/runtime dependency 2024-03-13 13:12:35 +00:00
Simon Larsen
b6a331fed4 Remove unused dependencies and update package version 2024-03-13 12:54:43 +00:00
Simon Larsen
ee64fb75bc Delete Config.ts and update start script in package.json 2024-03-13 12:27:59 +00:00
Simon Larsen
4a11a26d9e Update build script to run Base.sh instead of npm commands 2024-03-13 11:46:06 +00:00
Simon Larsen
a0dd4c3847 Refactor build scripts to use Base.sh and update sea-config.json path 2024-03-13 11:45:03 +00:00
Simon Larsen
8937839b2a Add npm install command to build scripts 2024-03-13 11:32:24 +00:00
Simon Larsen
0f45d050b5 Update package-lock.json and package.json with new dependencies 2024-03-13 11:31:27 +00:00
Simon Larsen
4eac714258 Update Windows build script 2024-03-13 11:30:26 +00:00
Simon Larsen
f393a65ddc Merge branch 'master' into server-monitor 2024-03-13 11:25:25 +00:00
Simon Larsen
d069a141b8 Update dependencies in package.json and package-lock.json 2024-03-13 11:25:14 +00:00
Simon Larsen
59b2839067 Add binary release workflows for infrastructure agent on macOS, Windows, and Linux 2024-03-13 11:23:22 +00:00
Simon Larsen
17483bc03e Add publish step for Infrastructure Agent 2024-03-13 11:20:53 +00:00
Simon Larsen
4e99b45c2e Merge branch 'master' into server-monitor 2024-03-13 10:52:52 +00:00
Simon Larsen
d4963d3966 Merge remote-tracking branch 'origin/snyk-upgrade-1682d4fd0819106795b1e350f9ec5c87 2024-03-13 10:52:01 +00:00
Simon Larsen
12bd7c995a Merge pull request #1241 from OneUptime/snyk-upgrade-a0eae4da4989497e44b37c17c83fc645
[Snyk] Upgrade react-router-dom from 6.22.0 to 6.22.1
2024-03-13 10:50:28 +00:00
Simon Larsen
011c91b863 Update package dependencies 2024-03-13 10:50:10 +00:00
Simon Larsen
5c2c40aa38 Fix typo in Dockerfile path for InfrastructureAgent and update package.json name 2024-03-13 10:47:54 +00:00
Simon Larsen
90c7f9abbf Merge pull request #1244 from OneUptime/snyk-upgrade-be1e9bcfc054697acc4c031fdb99ce7e
[Snyk] Upgrade dotenv from 16.4.2 to 16.4.4
2024-03-13 10:16:46 +00:00
Simon Larsen
2c63122985 Merge pull request #1243 from OneUptime/snyk-upgrade-b3bdb62c8c1799e6ee202f00fe2fb7a4
[Snyk] Upgrade @clickhouse/client from 0.2.9 to 0.2.10
2024-03-13 10:16:10 +00:00
Simon Larsen
9856ee8557 Merge pull request #1245 from OneUptime/snyk-upgrade-1b9d93feca6afab3df2dc3e95077c048
[Snyk] Upgrade react-big-calendar from 1.10.1 to 1.10.2
2024-03-13 10:16:03 +00:00
Simon Larsen
1cb0e281ab Update Linux installation script to check for curl and download binary from latest release 2024-03-13 08:13:56 +00:00
Simon Larsen
65f01802e4 Fix typos and update import paths 2024-03-12 14:06:02 +00:00
Simon Larsen
ba47793317 Add build step to Linux, Mac, and Windows scripts 2024-03-12 13:51:03 +00:00
Simon Larsen
c6edb20fd5 Update sea-config.json and .gitignore, and add build script to package.json 2024-03-12 13:47:37 +00:00
Simon Larsen
be23196ad0 Update build scripts to include npm run compile 2024-03-12 13:24:16 +00:00
Simon Larsen
fab0c18b1f Add infrastructure agent binary release workflows*** 2024-03-12 13:20:39 +00:00
Simon Larsen
424f1ac9c4 Fix formatting and remove unnecessary code 2024-03-12 11:33:08 +00:00
Simon Larsen
92e3164071 Add logging statements and update environment variables in InfrastructureAgent 2024-03-12 11:30:19 +00:00
Simon Larsen
a2ad789f5a Remove unnecessary files and update dependencies 2024-03-12 11:06:45 +00:00
Simon Larsen
49a2cbd579 fix newline 2024-03-12 10:43:14 +00:00
Simon Larsen
6c08d12f4c Fix file path typo in Dockerfile and add secret key for development 2024-03-12 10:17:13 +00:00
Simon Larsen
024992c831 Fix server-monitor location path and add disk path validation 2024-03-12 10:09:47 +00:00
Simon Larsen
2aa1289705 Fix BaseModel.fromJSON() method to handle BaseModel and Array<BaseModel> inputs correctly. Update MonitorsTable component to exclude MonitorType.Server. Update BasicMetrics class to calculate percentFree and percentUsed. Update package.json main file path. Add ServerMonitorAPI to Ingestor. Update Nginx configuration for server-monitor endpoint. 2024-03-12 08:50:54 +00:00
Simon Larsen
706078e56c Fix monitor destination validation 2024-03-12 08:30:59 +00:00
snyk-bot
3353860e16 fix: upgrade react-big-calendar from 1.10.1 to 1.10.2
Snyk has created this PR to upgrade react-big-calendar from 1.10.1 to 1.10.2.

See this package in npm:
https://www.npmjs.com/package/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-03-12 01:39:28 +00:00
snyk-bot
96729e6d69 fix: upgrade dotenv from 16.4.2 to 16.4.4
Snyk has created this PR to upgrade dotenv from 16.4.2 to 16.4.4.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-11 19:26:49 +00:00
snyk-bot
cb9b763f96 fix: upgrade @clickhouse/client from 0.2.9 to 0.2.10
Snyk has created this PR to upgrade @clickhouse/client from 0.2.9 to 0.2.10.

See this package in npm:
https://www.npmjs.com/package/@clickhouse/client

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-11 19:18:18 +00:00
Simon Larsen
8ee2d53d1a Add support for Server monitor type in MonitorCriteriaInstance.ts and update start script in package.json 2024-03-11 13:04:31 +00:00
Simon Larsen
d82c54521d Fix server monitor response type and remove unnecessary code 2024-03-11 12:37:05 +00:00
Simon Larsen
6446c06215 add server monitor job 2024-03-11 12:29:37 +00:00
Simon Larsen
f03f4c67eb Refactor ProbeMonitorResponse and TelemetryIngest middleware 2024-03-11 12:29:00 +00:00
Simon Larsen
b1ab64ad83 Merge pull request #1240 from OneUptime/snyk-upgrade-398e2d76f4583f702532b6f3d191ba3e
[Snyk] Upgrade dotenv from 16.4.2 to 16.4.4
2024-03-11 12:03:12 +00:00
Simon Larsen
a982fff251 Merge pull request #1242 from OneUptime/snyk-upgrade-82ad4e58e5137bc855b8855424e24ca1
[Snyk] Upgrade reactflow from 11.10.3 to 11.10.4
2024-03-11 12:03:05 +00:00
Simon Larsen
fcfe8c5ba8 Merge pull request #1233 from OneUptime/snyk-upgrade-3d2516a1b6f070572c1b320b8f719c4b
[Snyk] Upgrade posthog-js from 1.105.7 to 1.105.8
2024-03-11 08:55:32 +00:00
Simon Larsen
15f5cd540c Update CheckHeartbeat cron job and ServerMonitorResponse interface 2024-03-09 18:52:45 +00:00
snyk-bot
47cfb3b165 fix: upgrade reactflow from 11.10.3 to 11.10.4
Snyk has created this PR to upgrade reactflow from 11.10.3 to 11.10.4.

See this package in npm:
https://www.npmjs.com/package/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-03-09 15:31:29 +00:00
Simon Larsen
66b1d10282 Fix formatting and remove unnecessary code 2024-03-09 10:51:45 +00:00
Simon Larsen
7a56f88fc0 Update User Settings Layout title to include current project name 2024-03-09 10:45:52 +00:00
Simon Larsen
d9569a1993 Add secret key to incoming request monitor and fix logger message 2024-03-09 10:41:16 +00:00
Simon Larsen
7fd912b83a Update dependencies and fix API endpoints 2024-03-09 09:57:03 +00:00
snyk-bot
80aeaf6987 fix: upgrade react-router-dom from 6.22.0 to 6.22.1
Snyk has created this PR to upgrade react-router-dom from 6.22.0 to 6.22.1.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-08 20:38:36 +00:00
snyk-bot
05c7796f77 fix: upgrade dotenv from 16.4.2 to 16.4.4
Snyk has created this PR to upgrade dotenv from 16.4.2 to 16.4.4.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-08 15:35:43 +00:00
Simon Larsen
a75eb5821e Merge pull request #1238 from OneUptime/snyk-upgrade-1293d7c6da9aed81d1d475e9eadf6c82
[Snyk] Upgrade reactflow from 11.10.3 to 11.10.4
2024-03-08 12:55:08 +00:00
Simon Larsen
6981cd0c85 Merge pull request #1237 from OneUptime/snyk-upgrade-17d7e14333abd25bb26b8854be640d4b
[Snyk] Upgrade react-big-calendar from 1.10.0 to 1.10.1
2024-03-08 12:55:02 +00:00
Simon Larsen
c855540b15 Merge pull request #1236 from OneUptime/snyk-upgrade-7eaef71bdd61a1f41d57a6969e1b0dc2
[Snyk] Upgrade dotenv from 16.4.2 to 16.4.4
2024-03-08 12:54:42 +00:00
Simon Larsen
38be8badc0 Refactor server monitor request handling 2024-03-08 12:49:14 +00:00
Simon Larsen
ab1932f499 Fix formatting and remove unnecessary code 2024-03-08 09:10:26 +00:00
snyk-bot
5460dcc86f fix: upgrade reactflow from 11.10.3 to 11.10.4
Snyk has created this PR to upgrade reactflow from 11.10.3 to 11.10.4.

See this package in npm:
https://www.npmjs.com/package/reactflow

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-07 19:27:45 +00:00
Simon Larsen
75f22b4bee Add secret keys for server and incoming request monitors 2024-03-07 14:47:35 +00:00
Simon Larsen
6fbb5948fb Add server monitor options and disk path field to CriteriaFilter 2024-03-07 13:53:36 +00:00
snyk-bot
8879a6763a fix: upgrade react-big-calendar from 1.10.0 to 1.10.1
Snyk has created this PR to upgrade react-big-calendar from 1.10.0 to 1.10.1.

See this package in npm:
https://www.npmjs.com/package/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-03-06 18:53:13 +00:00
Simon Larsen
6ed56361f4 Fix type annotations in BasicMetrics.ts 2024-03-06 18:27:20 +00:00
Simon Larsen
01abbf570c Update BasicMetrics and OSType files 2024-03-06 17:25:02 +00:00
snyk-bot
44d5ca9aa6 fix: upgrade dotenv from 16.4.2 to 16.4.4
Snyk has created this PR to upgrade dotenv from 16.4.2 to 16.4.4.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-06 16:09:03 +00:00
Simon Larsen
6515de9536 Add Server monitor type 2024-03-06 15:55:48 +00:00
Simon Larsen
439a38fbf2 Update Node.js version in GitHub workflows 2024-03-06 15:47:50 +00:00
Simon Larsen
eccefe30df Fix file name typo in .gitignore and update build scripts for InfrastructureAgent 2024-03-06 15:42:06 +00:00
Simon Larsen
3ad5955f89 Merge pull request #1235 from OneUptime/snyk-upgrade-dedf333eb6f6bed2ce6186bbd45203d1
[Snyk] Upgrade dotenv from 16.4.2 to 16.4.4
2024-03-06 14:58:23 +00:00
Simon Larsen
cbca931460 Add binary release workflows for infrastructure agent 2024-03-06 14:58:04 +00:00
Simon Larsen
e4b6daf9d8 Update build command in test-release.yaml 2024-03-06 14:55:58 +00:00
Simon Larsen
9224748eff Add infrastructure agent binary build workflow***
***Update gitignore to include infrastructure agent files***

***Update package.json and tsconfig.json for infrastructure agent
2024-03-06 14:55:26 +00:00
Simon Larsen
1cbd6fa403 Add infrastructure agent compilation workflow*** 2024-03-06 12:47:07 +00:00
Simon Larsen
da577b4906 Add BasicMetrics to InfrastructureAgent/Index.ts 2024-03-06 12:46:14 +00:00
Simon Larsen
5a1acbce2e Add start, compile, clear-modules, dev, audit, and dep-check scripts to package.json 2024-03-06 12:19:15 +00:00
Simon Larsen
4d5a2b24c1 Update code formatting and fix bug in file processing 2024-03-06 10:37:47 +00:00
snyk-bot
b912a71df0 fix: upgrade dotenv from 16.4.2 to 16.4.4
Snyk has created this PR to upgrade dotenv from 16.4.2 to 16.4.4.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-05 19:20:41 +00:00
snyk-bot
58332e519e fix: upgrade posthog-js from 1.105.7 to 1.105.8
Snyk has created this PR to upgrade posthog-js from 1.105.7 to 1.105.8.

See this package in npm:
https://www.npmjs.com/package/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-03-05 16:22:33 +00:00
Simon Larsen
2bdc0b60f9 Fix bug in login functionality 2024-03-05 16:05:46 +00:00
Simon Larsen
429435cbe9 Merge pull request #1232 from OneUptime/snyk-upgrade-64debcb2b76df24ed09635a6676403ce
[Snyk] Upgrade dotenv from 16.4.1 to 16.4.2
2024-03-05 12:11:33 +00:00
Simon Larsen
e423779da3 Update tsconfig.json to remove "jest" from the "types" array 2024-03-05 12:05:49 +00:00
Simon Larsen
b44d1b94e9 Update Nginx package.json scripts 2024-03-05 09:33:41 +00:00
snyk-bot
6b33fb1260 fix: upgrade dotenv from 16.4.1 to 16.4.2
Snyk has created this PR to upgrade dotenv from 16.4.1 to 16.4.2.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-04 19:16:44 +00:00
Simon Larsen
b581981815 Refactor FetchCertificates.ts to improve code readability 2024-03-04 18:21:35 +00:00
Simon Larsen
9c9195e4c1 Update code formatting and styling 2024-03-04 18:18:44 +00:00
Simon Larsen
e876e01234 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-04 16:58:34 +00:00
Simon Larsen
b3236c046f format 2024-03-04 16:58:32 +00:00
Simon Larsen
dc15725194 Update code to include syntax highlighting for code blocks 2024-03-04 16:58:14 +00:00
Simon Larsen
407b8a4b8e Merge pull request #1231 from OneUptime/snyk-upgrade-e7dc86890a84351cbf2feb3573afe780
[Snyk] Upgrade dotenv from 16.4.1 to 16.4.2
2024-03-04 16:18:16 +00:00
snyk-bot
9384385f66 fix: upgrade dotenv from 16.4.1 to 16.4.2
Snyk has created this PR to upgrade dotenv from 16.4.1 to 16.4.2.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-04 16:17:42 +00:00
Simon Larsen
2165db9d1f Update compile.yml and FetchCertificates.ts 2024-03-04 16:12:06 +00:00
Simon Larsen
3d294af5ac Merge pull request #1228 from OneUptime/blogs
Blogs
2024-03-04 13:02:13 +00:00
Simon Larsen
d131ae2494 Refactor JSONFunctions.parse to JSONFunctions.parseJSONObject in MonitorUtil 2024-03-04 12:28:07 +00:00
Simon Larsen
190be32d9c Update blog title and description 2024-03-04 12:24:14 +00:00
Simon Larsen
1075d70cd9 Fix JSON parsing in BlogAPI and BaseAPI 2024-03-04 12:15:38 +00:00
Simon Larsen
54776576a7 Refactor code for improved performance and readability 2024-03-04 12:01:55 +00:00
Simon Larsen
38006459cf Refactor BlogPostUtil class 2024-03-04 11:36:27 +00:00
Simon Larsen
30c1932ca1 Fix rendering server error and parseJSONObject function***
***Update Blog ListByTag view
2024-03-04 11:32:59 +00:00
Simon Larsen
54b6eb8b74 Update JSON parsing functions and fix file paths in BlogAPI 2024-03-04 10:06:47 +00:00
Simon Larsen
684eec0a9e Merge pull request #1229 from OneUptime/snyk-upgrade-e70f2227950b98f52092556735b0c38a
[Snyk] Upgrade posthog-js from 1.105.6 to 1.105.7
2024-03-04 10:06:21 +00:00
Simon Larsen
cd4b9afe3e Merge pull request #1230 from OneUptime/snyk-upgrade-b9f53a0f4902ee49c5a9116a3a4739f9
[Snyk] Upgrade dotenv from 16.4.1 to 16.4.2
2024-03-04 10:05:56 +00:00
snyk-bot
76c0ed7323 fix: upgrade dotenv from 16.4.1 to 16.4.2
Snyk has created this PR to upgrade dotenv from 16.4.1 to 16.4.2.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-04 01:18:28 +00:00
snyk-bot
c3c7549df7 fix: upgrade posthog-js from 1.105.6 to 1.105.7
Snyk has created this PR to upgrade posthog-js from 1.105.6 to 1.105.7.

See this package in npm:
https://www.npmjs.com/package/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-03-04 01:14:02 +00:00
Simon Larsen
31d1850148 Merge pull request #1227 from OneUptime/snyk-upgrade-d785758028f4998bfbbf4b55e4b233ba
[Snyk] Upgrade dotenv from 16.4.1 to 16.4.2
2024-03-03 20:47:24 +00:00
Simon Larsen
708280aaf9 Refactor code formatting 2024-03-03 20:37:41 +00:00
Simon Larsen
d2ff892569 Update footer and BlogPostUtil*** 2024-03-02 20:44:31 +00:00
Simon Larsen
8325ba5c08 Add API for Blog 2024-03-02 19:42:48 +00:00
snyk-bot
e84da1cf86 fix: upgrade dotenv from 16.4.1 to 16.4.2
Snyk has created this PR to upgrade dotenv from 16.4.1 to 16.4.2.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-02 19:18:39 +00:00
Simon Larsen
95ab4ab682 Merge pull request #1224 from OneUptime/snyk-upgrade-33d78bcf941f30785ee7e976ded37ede
[Snyk] Upgrade twilio from 4.21.0 to 4.22.0
2024-03-02 18:52:27 +00:00
Simon Larsen
76ee8ba13e Merge pull request #1223 from OneUptime/snyk-upgrade-b15923514984c54813b953822dbc236f
[Snyk] Upgrade posthog-js from 1.105.4 to 1.105.6
2024-03-02 18:52:18 +00:00
Simon Larsen
2945cb497a Merge pull request #1226 from OneUptime/snyk-upgrade-8a243dea36893113a82af01e9799694c
[Snyk] Upgrade react-big-calendar from 1.9.2 to 1.10.0
2024-03-02 18:52:09 +00:00
snyk-bot
62444f12dc fix: upgrade react-big-calendar from 1.9.2 to 1.10.0
Snyk has created this PR to upgrade react-big-calendar from 1.9.2 to 1.10.0.

See this package in npm:
https://www.npmjs.com/package/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-03-02 18:29:33 +00:00
Simon Larsen
df04029668 Delete unused blog.ejs file and update routing logic in Index.ts and BlogAPI.ts 2024-03-02 18:28:58 +00:00
Simon Larsen
1e637a4546 Fix file paths and include partials correctly 2024-03-02 17:48:59 +00:00
Simon Larsen
0bb9a493a7 Delete unused files and code 2024-03-02 17:47:48 +00:00
Simon Larsen
295fa606c5 Delete unused files and code 2024-03-02 17:47:30 +00:00
Simon Larsen
332e3b0018 Remove unused code and update logger class name 2024-03-02 08:41:11 +00:00
snyk-bot
084ea8baad fix: upgrade twilio from 4.21.0 to 4.22.0
Snyk has created this PR to upgrade twilio from 4.21.0 to 4.22.0.

See this package in npm:
https://www.npmjs.com/package/twilio

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-02 04:35:55 +00:00
snyk-bot
20f718d6d9 fix: upgrade posthog-js from 1.105.4 to 1.105.6
Snyk has created this PR to upgrade posthog-js from 1.105.4 to 1.105.6.

See this package in npm:
https://www.npmjs.com/package/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-03-02 02:19:54 +00:00
Simon Larsen
25517d505a Update blog.ejs and Index.ts files 2024-03-01 22:12:02 +00:00
Simon Larsen
975c175920 Refactor BlogPostUtil and update blog.ejs template 2024-03-01 22:07:08 +00:00
Simon Larsen
18f8f787d2 Add blog post route and server error page 2024-03-01 20:46:34 +00:00
Simon Larsen
56f22fea18 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-03-01 18:55:50 +00:00
Simon Larsen
14b336e927 Add changelog generation step 2024-03-01 18:55:46 +00:00
Simon Larsen
9b1470ee8a Update release-changelog-builder-action to v4.2.0 2024-03-01 18:52:11 +00:00
Simon Larsen
6f65c777a8 Merge pull request #1222 from OneUptime/snyk-upgrade-7b47115b493e0b2061cce3bca419eb0d
[Snyk] Upgrade react-big-calendar from 1.9.1 to 1.9.2
2024-03-01 18:50:07 +00:00
snyk-bot
5fc3acc0ee fix: upgrade react-big-calendar from 1.9.1 to 1.9.2
Snyk has created this PR to upgrade react-big-calendar from 1.9.1 to 1.9.2.

See this package in npm:
https://www.npmjs.com/package/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-03-01 18:29:38 +00:00
Simon Larsen
a01616fe58 Merge pull request #1221 from OneUptime/snyk-upgrade-f2a84da2fadf716fdd5d091f4417a4c2
[Snyk] Upgrade react-router-dom from 6.21.3 to 6.22.0
2024-03-01 14:18:19 +00:00
Simon Larsen
99f43bfb18 Fix status assignment in BillingInvoiceService.ts 2024-03-01 12:05:52 +00:00
Simon Larsen
3f05c6dcc4 Update BillingInvoice status to use enum 2024-03-01 12:04:32 +00:00
snyk-bot
f5017e8c65 fix: upgrade react-router-dom from 6.21.3 to 6.22.0
Snyk has created this PR to upgrade react-router-dom from 6.21.3 to 6.22.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-03-01 02:58:40 +00:00
Simon Larsen
18af825228 Merge branch 'release' of github.com-simon:OneUptime/oneuptime into release 2024-02-29 20:15:43 +00:00
Simon Larsen
3f7c2ebb43 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-29 18:38:50 +00:00
Simon Larsen
2ae8bd0da4 Fix formatting and indentation issues in StatementGenerator.ts and LogsViewer.tsx 2024-02-29 18:38:27 +00:00
Simon Larsen
d1efe9ef84 Refactor LogsViewer component to make telemetryServiceIds optional 2024-02-29 18:33:43 +00:00
Simon Larsen
58770cc090 Add condition to handle empty string in IsNull check 2024-02-29 18:27:13 +00:00
Simon Larsen
95cf29a2f9 Update server_name in Nginx config 2024-02-29 16:50:58 +00:00
Simon Larsen
5cc77b94b8 Refactor incident state fetching and handling 2024-02-29 13:36:40 +00:00
Simon Larsen
2f4712196b Fix formatting issues and improve code readability 2024-02-29 13:19:09 +00:00
Simon Larsen
7a93632ddb Add method to get unresolved incident states 2024-02-29 12:34:09 +00:00
Simon Larsen
43ed6def0f Update incident-related code 2024-02-29 11:30:56 +00:00
Simon Larsen
b0f90861af Add Includes import and use it in Home component 2024-02-29 10:47:17 +00:00
Simon Larsen
c9406b551f Merge pull request #1215 from OneUptime/snyk-upgrade-8750b22f15c08e1a9cbe48942b1c496c
[Snyk] Upgrade react-router-dom from 6.21.3 to 6.22.0
2024-02-29 10:04:07 +00:00
Simon Larsen
27f44e9187 Merge pull request #1218 from OneUptime/snyk-upgrade-1dcb0bb05c1c54e42d9318793e1d62e0
[Snyk] Upgrade posthog-js from 1.104.4 to 1.105.4
2024-02-29 10:04:02 +00:00
Simon Larsen
9cc47cd3a5 Merge pull request #1220 from OneUptime/snyk-upgrade-31e7ce25dc93f33e187c0fa35a682857
[Snyk] Upgrade react-big-calendar from 1.8.7 to 1.9.1
2024-02-29 09:32:44 +00:00
snyk-bot
cd554565e9 fix: upgrade react-big-calendar from 1.8.7 to 1.9.1
Snyk has created this PR to upgrade react-big-calendar from 1.8.7 to 1.9.1.

See this package in npm:
https://www.npmjs.com/package/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-02-29 07:15:20 +00:00
snyk-bot
f17c6aeed9 fix: upgrade posthog-js from 1.104.4 to 1.105.4
Snyk has created this PR to upgrade posthog-js from 1.104.4 to 1.105.4.

See this package in npm:
https://www.npmjs.com/package/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-02-29 05:09:40 +00:00
Simon Larsen
85cc4318c5 Merge pull request #1216 from OneUptime/attributes
Attributes
2024-02-28 21:02:37 +00:00
Simon Larsen
c833d8fe88 Add attributes column to Log and Span models 2024-02-28 21:00:20 +00:00
Simon Larsen
4d4180358e Add attributes display to LogItem component 2024-02-28 20:54:52 +00:00
Simon Larsen
5795762e12 Add attribute column to span and log 2024-02-28 20:46:54 +00:00
Simon Larsen
559e77a614 Fix JSON parsing error in CommonModel.ts and add debugger statement in AnalyticsDatabaseService.ts 2024-02-28 20:31:31 +00:00
Simon Larsen
636586cffe Refactor Detail component to handle Markdown field and adjust grid layout 2024-02-28 20:16:54 +00:00
Simon Larsen
86466a503f Merge pull request #1217 from OneUptime/master
Release
2024-02-28 20:13:24 +00:00
Simon Larsen
3586e53341 Add support for JSONObject in RecordValue 2024-02-28 20:06:03 +00:00
Simon Larsen
2d1d07de1a Refactor LogsViewer and add flattenObject function to JSONFunctions 2024-02-28 19:35:20 +00:00
snyk-bot
b3eaf4aead fix: upgrade react-router-dom from 6.21.3 to 6.22.0
Snyk has created this PR to upgrade react-router-dom from 6.21.3 to 6.22.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-28 19:06:49 +00:00
Simon Larsen
285fee22d3 Add attributes field to Log and Span models 2024-02-28 14:51:23 +00:00
Simon Larsen
7915b62555 Merge pull request #1210 from OneUptime/snyk-upgrade-9a4497534ad64f8ab9508c3e5348355d
[Snyk] Upgrade twilio from 4.19.3 to 4.21.0
2024-02-28 12:26:20 +00:00
Simon Larsen
134d53b481 Merge pull request #1212 from OneUptime/snyk-upgrade-19fbc4f43ad7c3139f964a8d7b745bd1
[Snyk] Upgrade axios from 1.6.5 to 1.6.7
2024-02-28 12:26:11 +00:00
Simon Larsen
976bcdc982 Merge pull request #1213 from OneUptime/snyk-upgrade-756f505b4513b13bd42910e3286487ab
[Snyk] Upgrade socket.io from 4.7.2 to 4.7.4
2024-02-28 12:26:07 +00:00
Simon Larsen
aed44be095 Merge pull request #1214 from OneUptime/snyk-upgrade-22482fc5adfd540d859f392f253052d6
[Snyk] Upgrade @clickhouse/client from 0.2.7 to 0.2.9
2024-02-28 12:25:53 +00:00
Simon Larsen
27184994a2 Refactor cron jobs in FetchCertificates.ts 2024-02-28 12:25:33 +00:00
Simon Larsen
c4757b562b Refactor Table component layout 2024-02-28 12:22:24 +00:00
snyk-bot
0ee6913e69 fix: upgrade @clickhouse/client from 0.2.7 to 0.2.9
Snyk has created this PR to upgrade @clickhouse/client from 0.2.7 to 0.2.9.

See this package in npm:
https://www.npmjs.com/package/@clickhouse/client

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-28 03:45:28 +00:00
snyk-bot
cbf29026f1 fix: upgrade socket.io from 4.7.2 to 4.7.4
Snyk has created this PR to upgrade socket.io from 4.7.2 to 4.7.4.

See this package in npm:
https://www.npmjs.com/package/socket.io

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-28 03:45:23 +00:00
snyk-bot
a6ecb26cdd fix: upgrade axios from 1.6.5 to 1.6.7
Snyk has created this PR to upgrade axios from 1.6.5 to 1.6.7.

See this package in npm:
https://www.npmjs.com/package/axios

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-28 03:45:20 +00:00
snyk-bot
41abb4f174 fix: upgrade @elastic/elasticsearch from 8.11.0 to 8.12.1
Snyk has created this PR to upgrade @elastic/elasticsearch from 8.11.0 to 8.12.1.

See this package in npm:
https://www.npmjs.com/package/@elastic/elasticsearch

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-28 03:45:17 +00:00
snyk-bot
ce84a5683e fix: upgrade twilio from 4.19.3 to 4.21.0
Snyk has created this PR to upgrade twilio from 4.19.3 to 4.21.0.

See this package in npm:
https://www.npmjs.com/package/twilio

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-28 03:45:12 +00:00
Simon Larsen
22a7ca9e79 Refactor helper functions in TestingUtils/Services/Helpers.ts 2024-02-27 21:59:12 +00:00
Simon Larsen
79fd515f58 Fix type error in BillingService.test.ts 2024-02-27 18:58:55 +00:00
Simon Larsen
4285331835 Merge pull request #1208 from OneUptime/snyk-upgrade-2b77818e659d5879d64d38003bdadaea
[Snyk] Upgrade react-router-dom from 6.21.3 to 6.22.0
2024-02-27 18:32:48 +00:00
Simon Larsen
b1e798948e Merge pull request #1209 from OneUptime/snyk-upgrade-e257964249ff643bdde25cc194a56935
[Snyk] Upgrade moment-timezone from 0.5.44 to 0.5.45
2024-02-27 18:32:35 +00:00
Simon Larsen
44d405fb8c Fix formatting issues in code 2024-02-27 18:32:04 +00:00
Simon Larsen
17cfffa16e Fix bugs and improve code 2024-02-27 18:29:29 +00:00
snyk-bot
de953528f2 fix: upgrade moment-timezone from 0.5.44 to 0.5.45
Snyk has created this PR to upgrade moment-timezone from 0.5.44 to 0.5.45.

See this package in npm:
https://www.npmjs.com/package/moment-timezone

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-02-27 18:27:35 +00:00
snyk-bot
d281a9ad33 fix: upgrade react-router-dom from 6.21.3 to 6.22.0
Snyk has created this PR to upgrade react-router-dom from 6.21.3 to 6.22.0.

See this package in npm:
https://www.npmjs.com/package/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-02-27 18:27:31 +00:00
Simon Larsen
68d60f1068 Update import paths in CommonUI components 2024-02-27 18:19:24 +00:00
Simon Larsen
fbbe29fd19 Refactor code formatting 2024-02-27 17:53:58 +00:00
Simon Larsen
04e049f028 Fix import paths and update function signatures 2024-02-27 17:53:39 +00:00
Simon Larsen
fa2282b48f Add type annotations to GenericObject and GenericFunction***
***Update GConstructor type in Mixins***
***Update ReflectionMetadataType in Reflection***
***Update connectToDatabase function in Redis***
***Update MockRouterForMethodFunction in Helpers***
***Update DefaultValidateFunction type in BasicForm***
***Update result type in BaseAPI.test***
***Update startUserNotificationRuleExecution function in OnCallDutyPolicyEscalationRuleService***
***Update getTableColumn and getTableColumns functions in TableColumn***
***Update getColumnBillingAccessControl and getColumnBillingAccessControlForAllColumns functions in ColumnBillingAccessControl
2024-02-27 17:40:15 +00:00
Simon Larsen
b87027b5c1 Refactor code and update type annotations 2024-02-27 17:34:33 +00:00
Simon Larsen
4262379a87 Fix import paths in GenericFunction.ts and related files 2024-02-27 17:23:25 +00:00
Simon Larsen
c3a95b0442 Update annotations to use GenericFunction 2024-02-27 17:13:16 +00:00
Simon Larsen
7db3e2f0ca Add PromiseVoidFunction import and type annotations 2024-02-27 17:10:59 +00:00
Simon Larsen
715875ab46 Fix type annotations and formatting in GenericObject.ts, ModelForm.tsx, Step.tsx, Steps.tsx, and ModelDetail.tsx 2024-02-27 17:02:19 +00:00
Simon Larsen
e144e6bb35 Add imports and type annotations 2024-02-27 17:00:24 +00:00
Simon Larsen
739f7a0aef Fix import paths and types in various files 2024-02-27 16:54:50 +00:00
Simon Larsen
26e3025a95 Refactor function types and imports 2024-02-27 16:51:35 +00:00
Simon Larsen
af44b4d959 Add PromiseVoidFunction import to multiple files 2024-02-27 16:43:15 +00:00
Simon Larsen
eaf93f43b0 Refactor code and fix formatting issues 2024-02-27 16:36:27 +00:00
Simon Larsen
abd3385bff Update function types and fix error handling in email component 2024-02-27 16:33:38 +00:00
Simon Larsen
6956338c47 Refactor code and handle errors in fetchCount() function 2024-02-27 16:27:13 +00:00
Simon Larsen
5876aba680 Fix async/await usage in code 2024-02-27 16:21:37 +00:00
Simon Larsen
ac9442e085 Fix formatting and remove unnecessary code 2024-02-27 16:15:26 +00:00
Simon Larsen
7e256ab68c Refactor code and fix imports 2024-02-27 16:14:23 +00:00
Simon Larsen
ad29eaad78 Fix import statements and add missing types 2024-02-27 15:56:47 +00:00
Simon Larsen
4ea0d0c8ec Refactor function parameter formatting in SideOver.test.tsx, ListRow.tsx, DayUptimeGraph.tsx, RestrictionTimesFieldElement.tsx, and Image.tsx 2024-02-27 15:50:30 +00:00
Simon Larsen
79469d79e5 Add PromiseVoidFunction import to relevant files 2024-02-27 15:47:17 +00:00
Simon Larsen
006a01d0a5 Refactor function signatures and handle errors in fetchCount 2024-02-27 15:42:27 +00:00
Simon Larsen
1034587fbe Update function types in Git repository 2024-02-27 15:37:49 +00:00
Simon Larsen
35744b938f Update import paths for FunctionsTypes 2024-02-27 15:18:22 +00:00
Simon Larsen
31875081e5 Update function type names 2024-02-27 15:17:39 +00:00
Simon Larsen
50770eb6e8 Refactor code formatting and types 2024-02-27 15:16:02 +00:00
Simon Larsen
dd9893184e Refactor getAnouncementsParsedData function signature 2024-02-27 13:56:33 +00:00
Simon Larsen
2c2bdd9fe3 Refactor form and modal test files 2024-02-27 13:54:41 +00:00
Simon Larsen
512af9015d Add import statements for new function types 2024-02-27 13:50:47 +00:00
Simon Larsen
ba0ddf01b2 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-27 13:31:58 +00:00
Simon Larsen
b423d2c5e8 Fix PromiseRejectErrorFunctionType in code 2024-02-27 13:31:55 +00:00
Simon Larsen
13d0bc0967 Merge pull request #1205 from OneUptime/snyk-upgrade-2f7af411ccf6aacd554ea7678324829c
[Snyk] Upgrade typeorm from 0.3.19 to 0.3.20
2024-02-27 13:30:05 +00:00
Simon Larsen
f89c2a1580 Merge pull request #1201 from OneUptime/snyk-upgrade-17c0759e6f84b4c825faefda97634069
[Snyk] Upgrade react-router-dom from 6.21.3 to 6.22.0
2024-02-27 13:29:53 +00:00
Simon Larsen
4d2b0a7fbe Merge pull request #1204 from OneUptime/snyk-upgrade-3e2c0305247e4dfc1f3d383f515d5494
[Snyk] Upgrade moment-timezone from 0.5.44 to 0.5.45
2024-02-27 13:29:49 +00:00
Simon Larsen
e5d34c4cde Merge pull request #1206 from OneUptime/snyk-upgrade-6b9be75050424fe3cf9e3e58b5975521
[Snyk] Upgrade @opentelemetry/sdk-node from 0.45.1 to 0.48.0
2024-02-27 13:29:42 +00:00
Simon Larsen
73fa83e79c Merge pull request #1207 from OneUptime/snyk-upgrade-a6ce7e9f75dd45ae2f4570ed1548eee8
[Snyk] Upgrade dotenv from 16.3.1 to 16.4.1
2024-02-27 13:29:37 +00:00
Simon Larsen
1d19789573 Add new function types and update existing functions***
***Refactor function declarations to use type aliases***
***Fix function signature in FilePicker component***
***Refactor function declaration in DashboardHeader component***
***Fix type declaration in BaseAPI.test.ts***
***Import missing function type in PortMonitor.ts***
***Refactor type declaration in Helpers.ts
2024-02-27 13:29:06 +00:00
Simon Larsen
e0159e0582 Fix async function types in code 2024-02-27 13:20:59 +00:00
Simon Larsen
0b1838fe57 Add import statement for GetReactElementFunctionType 2024-02-27 13:16:30 +00:00
Simon Larsen
3cda3b90c7 Update function parameter types 2024-02-27 13:15:08 +00:00
Simon Larsen
c99f5d79c2 Add new function types and update function signatures 2024-02-27 13:12:45 +00:00
Simon Larsen
a1496c1149 Add VoidFunctionType to refreshFields 2024-02-27 13:10:25 +00:00
Simon Larsen
22bf6eb908 Add GetReactElementFunctionType import and update function signature in BaseModelTable.tsx and List.tsx 2024-02-27 13:07:56 +00:00
Simon Larsen
d4d389d792 Add PromiseVoidFunctionType import to BaseModelTable and Resources components 2024-02-27 12:45:21 +00:00
Simon Larsen
ac59d9fe2b Fix import formatting in various files 2024-02-27 12:43:50 +00:00
Simon Larsen
5da560f533 Refactor async function declarations 2024-02-27 12:40:23 +00:00
Simon Larsen
5cd81147b9 Refactor getIncidentEventItem function signature 2024-02-27 12:37:43 +00:00
Simon Larsen
3e7070e5e8 Update import statements for PromiseVoidFunctionType 2024-02-27 12:29:43 +00:00
Simon Larsen
45b706d7d5 Add ExpressAPIFunctionType to processIncomingRequest and returnResponse 2024-02-27 12:28:24 +00:00
Simon Larsen
2a94700348 Refactor function types in code 2024-02-27 12:23:41 +00:00
Simon Larsen
74d126225e Update apm.png 2024-02-27 12:06:29 +00:00
Simon Larsen
7dc326fb42 Refactor getBarTooltip function in TraceView component 2024-02-27 11:59:15 +00:00
Simon Larsen
b96a450d21 Refactor dropdown handling in Card and BasicForm components 2024-02-27 11:44:03 +00:00
Simon Larsen
d47e217215 Update form-related types and references 2024-02-27 11:16:45 +00:00
snyk-bot
94d7e97c8a fix: upgrade dotenv from 16.3.1 to 16.4.1
Snyk has created this PR to upgrade dotenv from 16.3.1 to 16.4.1.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-27 03:01:25 +00:00
snyk-bot
efe8196c53 fix: upgrade @opentelemetry/sdk-node from 0.45.1 to 0.48.0
Snyk has created this PR to upgrade @opentelemetry/sdk-node from 0.45.1 to 0.48.0.

See this package in npm:
https://www.npmjs.com/package/@opentelemetry/sdk-node

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-27 03:01:21 +00:00
snyk-bot
bf2b94cfa2 fix: upgrade typeorm from 0.3.19 to 0.3.20
Snyk has created this PR to upgrade typeorm from 0.3.19 to 0.3.20.

See this package in npm:
https://www.npmjs.com/package/typeorm

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-27 03:01:17 +00:00
Simon Larsen
b32dd31121 Refactor getRowsFromBars function in TraceView component 2024-02-26 15:19:42 +00:00
Simon Larsen
3e2937d07f Add GanttChartBar and GanttChartRow components 2024-02-26 13:53:14 +00:00
Simon Larsen
d2cbd2819a Update NavBar titles and icons 2024-02-26 13:17:32 +00:00
Simon Larsen
ea53172b43 Refactor HelmChart/Tests/index.sh script 2024-02-26 13:01:36 +00:00
Simon Larsen
dbc95aad55 Remove unnecessary CSS class in LogsFilters component 2024-02-26 11:28:06 +00:00
Simon Larsen
617bd266f9 Refactor column definitions in StatementGenerator.test.ts 2024-02-26 11:00:24 +00:00
Simon Larsen
b47dd5656d Update required field for variable 2024-02-26 10:41:20 +00:00
snyk-bot
5b6bf12ad3 fix: upgrade moment-timezone from 0.5.44 to 0.5.45
Snyk has created this PR to upgrade moment-timezone from 0.5.44 to 0.5.45.

See this package in npm:
https://www.npmjs.com/package/moment-timezone

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-02-26 00:31:08 +00:00
Simon Larsen
6f12eb2414 Change severityNumber column type from Text to Number 2024-02-25 19:31:33 +00:00
Simon Larsen
f59c9d6c42 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-25 19:00:39 +00:00
Simon Larsen
d112eaee28 Change severity column type from text to number 2024-02-25 19:00:36 +00:00
Simon Larsen
73a6b2d1fa Fix data migration issues and improve code readability 2024-02-25 18:59:34 +00:00
Simon Larsen
625a2c410c Add duration column to span table and change log severity column type 2024-02-25 18:53:15 +00:00
Simon Larsen
f0e14af0e6 Merge pull request #1203 from OneUptime/snyk-fix-ee9fb43be6ff8dbd15e7d02d69988075
[Snyk] Security upgrade bullmq from 3.15.8 to 5.3.3
2024-02-25 18:32:26 +00:00
Simon Larsen
47b1d83102 Add duration column to Span table 2024-02-25 18:07:50 +00:00
snyk-bot
6f64f78b3f fix: CommonServer/package.json & CommonServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
2024-02-25 14:35:36 +00:00
Simon Larsen
31c73193f0 Add column and modify database service statements 2024-02-25 12:19:57 +00:00
Simon Larsen
ab5044e472 Fix formatting issues in AnalyticsDatabaseService and StatementGenerator 2024-02-25 11:30:14 +00:00
Simon Larsen
ccc5a51482 Refactor AnalyticsDatabaseService and StatementGenerator classes 2024-02-25 11:28:49 +00:00
Simon Larsen
bd77be13f7 Update testimonials and add APM section to README 2024-02-24 19:44:23 +00:00
Simon Larsen
63e77118ba Refactor route for /product/apm in Index.ts 2024-02-24 11:21:18 +00:00
Simon Larsen
c238341636 Update log management and APM views and routes 2024-02-24 11:18:45 +00:00
Simon Larsen
07f1bd24d7 Update product tabs in home view 2024-02-24 10:51:13 +00:00
Simon Larsen
823c6538d0 Update OpenTelemetry dependencies 2024-02-24 09:08:54 +00:00
Simon Larsen
1d67af5359 Update margin left calculation in GanttChart Bar component 2024-02-23 17:55:10 +00:00
Simon Larsen
150e6b9207 Fix formatting issues and optimize code 2024-02-23 17:38:06 +00:00
Simon Larsen
29092b23ba Refactor GanttChart component to set timeline width dynamically 2024-02-23 17:36:11 +00:00
snyk-bot
50a8bd8057 fix: upgrade react-router-dom from 6.21.3 to 6.22.0
Snyk has created this PR to upgrade react-router-dom from 6.21.3 to 6.22.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-23 16:46:48 +00:00
Simon Larsen
61be62740a Update bar opacity and add cursor pointer to bar tooltip 2024-02-23 15:13:33 +00:00
Simon Larsen
a8fa15d38b Merge pull request #1198 from OneUptime/snyk-upgrade-dcc938af591a97121e8898fdfcbab657
[Snyk] Upgrade react-router-dom from 6.21.3 to 6.22.0
2024-02-23 14:50:23 +00:00
Simon Larsen
747104dd87 Merge pull request #1200 from OneUptime/snyk-upgrade-268994f04e0f321944ca3e20815fee2c
[Snyk] Upgrade posthog-js from 1.103.1 to 1.104.4
2024-02-23 14:50:18 +00:00
Simon Larsen
24b40d8ab1 Refactor Telemetry initialization in Telemetry.ts 2024-02-23 14:49:53 +00:00
Simon Larsen
f8810d0711 Add telemetry initialization for each service 2024-02-23 13:50:47 +00:00
Simon Larsen
dfbf9a827f Update telemetry imports 2024-02-23 13:26:45 +00:00
Simon Larsen
ccb960f30e Fix formatting issues and update dependencies 2024-02-23 13:25:15 +00:00
Simon Larsen
07ab132946 Refactor OpenTelemetry exporter configuration and convert base64 IDs to hex 2024-02-23 13:15:08 +00:00
Simon Larsen
7ced477ec9 Add OpenTelemetry OTLP HTTP exporter and headers 2024-02-23 12:47:14 +00:00
snyk-bot
5b5501474f fix: upgrade posthog-js from 1.103.1 to 1.104.4
Snyk has created this PR to upgrade posthog-js from 1.103.1 to 1.104.4.

See this package in npm:
https://www.npmjs.com/package/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-02-23 12:21:23 +00:00
Simon Larsen
bc47842e35 Add telemetry for monitoring application performance 2024-02-23 12:01:29 +00:00
Simon Larsen
392fcd7b27 Update installation wait time for OneUptime 2024-02-23 11:45:07 +00:00
Simon Larsen
b064102f62 Fix formatting in features-table.ejs 2024-02-23 11:18:49 +00:00
snyk-bot
1f0bda90f1 fix: upgrade react-router-dom from 6.21.3 to 6.22.0
Snyk has created this PR to upgrade react-router-dom from 6.21.3 to 6.22.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-22 21:12:56 +00:00
Simon Larsen
f50d32e029 Update pod readiness check in index.sh 2024-02-22 19:52:32 +00:00
Simon Larsen
35ddcd5db8 sleep for 10 min 2024-02-22 19:51:39 +00:00
Simon Larsen
7594e7deb9 increase sleep time for helm test 2024-02-22 19:49:51 +00:00
Simon Larsen
d18ff841ab Add OpenTelemetry instrumentation for Express and HTTP 2024-02-22 19:01:22 +00:00
Simon Larsen
7a9e597f8b Remove unused OpenTelemetry auto-instrumentation package 2024-02-22 18:57:08 +00:00
Simon Larsen
555e67076f Remove unnecessary dependencies and links from docker-compose file 2024-02-22 18:26:07 +00:00
Simon Larsen
52f40369a8 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-22 18:18:52 +00:00
Simon Larsen
31bff7ff94 Refactor telemetry configuration and remove unused code 2024-02-22 18:18:14 +00:00
Simon Larsen
2ff93a1440 Refactor BearerTokenAuthorization and Telemetry classes 2024-02-22 18:17:01 +00:00
Simon Larsen
b9afe175b0 Remove unnecessary whitespace in TelemetryIngest.ts 2024-02-22 17:58:05 +00:00
Simon Larsen
9ab9d537c1 Fix telemetry endpoint URL and update telemetryServiceId parameter 2024-02-22 17:53:29 +00:00
Simon Larsen
803f52381e Refactor code to improve performance and readability 2024-02-22 17:22:05 +00:00
Simon Larsen
17fbae7cd5 Update telemetry environment variables 2024-02-22 17:07:33 +00:00
Simon Larsen
5dc625c34b Add OpenTelemetry HTTP and Express instrumentations 2024-02-22 16:54:34 +00:00
Simon Larsen
b12582ab67 Refactor OpenTelemetryRequestMiddleware and TelemetryIngest classes 2024-02-22 16:28:20 +00:00
Simon Larsen
19e73ec2c7 Merge pull request #1195 from OneUptime/brower-apm
Brower apm
2024-02-22 14:15:33 +00:00
Simon Larsen
841892f2df Refactor CopyTextButton and Bar components 2024-02-22 14:15:12 +00:00
Simon Larsen
7a81de1b17 Update CopyTextButton and LogItem components 2024-02-22 14:07:46 +00:00
Simon Larsen
309562c6f6 Add CopyTextButton component to LogItem 2024-02-22 13:35:56 +00:00
Simon Larsen
8689f884bf Fix formatting and add selectedBarIds functionality 2024-02-22 13:01:04 +00:00
Simon Larsen
a9293f272b Remove debugger statements 2024-02-22 12:43:45 +00:00
Simon Larsen
f328b38b1f Fix initialization of private variable in Includes class and add debugger statement in Statement class 2024-02-22 12:28:26 +00:00
Simon Larsen
3ed422145d Add Dictionary import and fix Statement.toColumnType method 2024-02-22 12:18:51 +00:00
Simon Larsen
406ee71b8b Add debugger statement and calculate duration in Unix Nano for spans 2024-02-22 11:55:59 +00:00
Simon Larsen
ed601cc187 Refactor AnalyticsDatabaseService and Statement classes 2024-02-22 11:41:49 +00:00
Simon Larsen
c9df4deb16 Fix deserialization issue and improve serialization in Includes and Statement classes 2024-02-22 11:39:07 +00:00
Simon Larsen
b9d5fc29db Fix formatting issues in StartServer.ts, BaseAnalyticsAPI.ts, Includes.ts, and Statement.ts 2024-02-22 11:27:52 +00:00
Simon Larsen
4ca2ced020 Fix formatting issues and remove unused code 2024-02-22 11:27:15 +00:00
Simon Larsen
2519e819cc Add real-time log updates to DashboardLogsViewer component 2024-02-22 10:57:37 +00:00
Simon Larsen
e3bbe0f916 Merge pull request #1194 from OneUptime/brower-apm
Update dependencies and remove unnecessary code
2024-02-22 08:26:51 +00:00
Simon Larsen
3c48005d90 Update dependencies and remove unnecessary code 2024-02-22 08:26:20 +00:00
Simon Larsen
f5fec459fa Update logger and telemetry imports 2024-02-22 08:21:59 +00:00
Simon Larsen
3f159aa515 Add OpenTelemetry logger provider and log record processor 2024-02-21 19:57:35 +00:00
Simon Larsen
2ff44ebd16 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-21 19:52:36 +00:00
Simon Larsen
eb9c30e9c4 Fix initialization and formatting issues 2024-02-21 19:52:33 +00:00
Simon Larsen
ab01ad7b7a Merge pull request #1188 from OneUptime/snyk-upgrade-8ef786d11a1fae4d078f3d615ffea556
[Snyk] Upgrade posthog-js from 1.102.1 to 1.103.1
2024-02-21 19:51:25 +00:00
Simon Larsen
8d4a9c6f12 Merge pull request #1187 from OneUptime/snyk-upgrade-3a3f31ccb03c75c07356099d5ea4ea95
[Snyk] Upgrade typeorm from 0.3.19 to 0.3.20
2024-02-21 19:51:18 +00:00
Simon Larsen
da7a16f985 Merge pull request #1193 from OneUptime/snyk-upgrade-31602a8cdb14da86c7800af8d78a14dd
[Snyk] Upgrade css-loader from 6.9.1 to 6.10.0
2024-02-21 19:51:08 +00:00
Simon Larsen
de2bbb1f08 Fix unknown metric type logging 2024-02-21 18:46:25 +00:00
Simon Larsen
efdce26756 Fix error handling in executePendingNotificationLog function 2024-02-21 18:43:30 +00:00
Simon Larsen
83d069ee5b Update imports and refactor logger 2024-02-21 18:33:13 +00:00
Simon Larsen
c118faef0a Fix color in SpanUtil and remove extra whitespace in Bar component 2024-02-21 16:52:33 +00:00
Simon Larsen
04b143b6e7 Fix totalItemsCount display in Pagination component 2024-02-21 16:09:22 +00:00
Simon Larsen
8232c4a4dc Refactor code and remove unnecessary blank lines 2024-02-21 16:00:54 +00:00
Simon Larsen
ed2574c449 Add OpenTelemetry SDK and start it***
***Remove unnecessary code from Logger.ts***
***Update OpenTelemetry.ts to use auto-instrumentations***
***Remove OpenTelemetry import from StartServer.ts***
***Update Bar component to show label outside bar if it doesn't fit
2024-02-21 15:49:16 +00:00
Simon Larsen
c1c82530ed Add AWS X-Ray ID generator for OpenTelemetry 2024-02-21 13:45:16 +00:00
Simon Larsen
e1f534ce70 Add severityNumber property to LogsViewer component and update dependencies 2024-02-21 12:48:12 +00:00
Simon Larsen
8f1826c69c Refactor code and fix formatting issues 2024-02-21 11:34:45 +00:00
Simon Larsen
bdc811661c Add OpenTelemetry logging support 2024-02-21 11:20:58 +00:00
Simon Larsen
2de7d00fa2 Refactor getBarTooltip function to accept divisibilityFactorAndIntervalUnit parameter 2024-02-20 19:18:49 +00:00
Simon Larsen
dd144d00ac Add utility functions for converting time units and calculating divisibility factor 2024-02-20 19:06:55 +00:00
Simon Larsen
af5a5332e5 Add Color import to TraceView component 2024-02-20 18:44:02 +00:00
snyk-bot
e21a583a68 fix: upgrade css-loader from 6.9.1 to 6.10.0
Snyk has created this PR to upgrade css-loader from 6.9.1 to 6.10.0.

See this package in npm:
https://www.npmjs.com/package/css-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-20 18:35:51 +00:00
Simon Larsen
b55ae93ade Fix OpenTelemetry and GanttChart Bar bugs 2024-02-20 15:39:31 +00:00
Simon Larsen
633a790973 Refactor DropdownUtil to include an optional parameter for using key as label. Update Span class to use enum for kind. Update Filter component to handle different input types. Update OTelIngest API to handle missing projectId or serviceId. 2024-02-20 14:41:46 +00:00
Simon Larsen
8513b4b13e Remove auto-instrumentation and update sorting in TracesList 2024-02-20 13:20:44 +00:00
Simon Larsen
aeaf9f55e4 Add OpenTelemetry HTTP and Express instrumentations 2024-02-20 13:14:27 +00:00
Simon Larsen
30d9cbe9a3 Refactor OpenTelemetry configuration 2024-02-20 13:01:58 +00:00
Simon Larsen
fb7fe8af1e Add OpenTelemetry headers from environment variables 2024-02-20 11:49:58 +00:00
Simon Larsen
80b19d03ed Merge pull request #1191 from OneUptime/readme-update
Readme update
2024-02-20 11:26:19 +00:00
Simon Larsen
18a39c5c2e Fix bug in login functionality***
***Add validation for user input***

***Refactor code for better readability***

***Update README with installation instructions***

***Implement new feature for user profile page
2024-02-20 11:24:12 +00:00
Simon Larsen
e389de20b7 Update status page image in README 2024-02-20 11:15:43 +00:00
Simon Larsen
9187c633d4 Update monitor image styling 2024-02-20 11:05:06 +00:00
Simon Larsen
03591a4d3a Update README.md with OneUptime features 2024-02-20 11:01:06 +00:00
Simon Larsen
c857918b3f Update README.md with new header format 2024-02-20 10:59:58 +00:00
Simon Larsen
8acbd49d52 Update README.md with new section headings 2024-02-20 10:59:23 +00:00
Simon Larsen
811927e5a3 Refactored README.md to improve readability and add section headings 2024-02-20 10:58:33 +00:00
Simon Larsen
29f0cd0280 Update README.md with new images and descriptions 2024-02-20 10:56:13 +00:00
Simon Larsen
bc30df272f Add monitor image to README 2024-02-20 10:52:43 +00:00
Simon Larsen
9bec7568dc Add monitor image to README.md 2024-02-20 10:51:17 +00:00
Simon Larsen
c6a5ee81b3 Update OpenTelemetry configuration 2024-02-19 20:31:01 +00:00
Simon Larsen
0cf5edc8e9 Add OpenTelemetry OTLP exporters and environment variables 2024-02-19 20:08:51 +00:00
Simon Larsen
c637f889e2 Add OpenTelemetry for tracing and metrics 2024-02-19 19:21:08 +00:00
Simon Larsen
3f83cf77df fix timeout 2024-02-19 16:05:34 +00:00
Simon Larsen
6a5f2c26ae Refactor Gantt chart timeline calculation 2024-02-19 14:48:16 +00:00
Simon Larsen
0816b5e7ba Fix data type conversion issues and filter duplicate spans 2024-02-19 14:29:28 +00:00
Simon Larsen
6c9b62dc2d Refactor span timeline calculations in TraceView component 2024-02-19 13:08:50 +00:00
Simon Larsen
99dcf4c222 Refactor GanttChart component and TraceView component 2024-02-19 13:05:16 +00:00
Simon Larsen
eeffd749d4 Refactor ServiceDelete component to TraceView 2024-02-19 12:53:38 +00:00
Simon Larsen
fa61d74671 Refactor code and fix formatting issues 2024-02-19 12:51:56 +00:00
Simon Larsen
2b4990c3c6 Add getMillisecondsBetweenTwoUnixNanoDates method to OneUptimeDate class and fix path in TelemetryRoutes 2024-02-19 12:51:36 +00:00
Simon Larsen
b819083bb9 Fix formatting and add missing semicolon 2024-02-19 11:31:17 +00:00
Simon Larsen
7764d946cf Fix ObjectID conversion issue in CommonModel and ObjectID class 2024-02-19 11:29:50 +00:00
Simon Larsen
c8edc321bf Enable trace viewing in TracesList component 2024-02-19 11:18:13 +00:00
Simon Larsen
602bfd5e7e Delete unnecessary files and update .gitignore 2024-02-19 10:55:14 +00:00
Simon Larsen
f0e543d7fc Add appname label to deployment spec 2024-02-19 07:40:04 +00:00
snyk-bot
bec568c589 fix: upgrade posthog-js from 1.102.1 to 1.103.1
Snyk has created this PR to upgrade posthog-js from 1.102.1 to 1.103.1.

See this package in npm:
https://www.npmjs.com/package/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-02-19 00:09:22 +00:00
snyk-bot
6a952742d8 fix: upgrade typeorm from 0.3.19 to 0.3.20
Snyk has created this PR to upgrade typeorm from 0.3.19 to 0.3.20.

See this package in npm:
https://www.npmjs.com/package/typeorm

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-02-19 00:09:18 +00:00
Simon Larsen
b087551a04 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-18 20:37:25 +00:00
Simon Larsen
3613c4b599 Remove unused InternalSmtpUsername variable and update MailService to use InternalSmtpEmail 2024-02-18 20:37:20 +00:00
Simon Larsen
91ea029676 Merge pull request #1186 from OneUptime/snyk-upgrade-f1af88a2ea70ba833920fdff73bc7ffc
[Snyk] Upgrade typeorm from 0.3.19 to 0.3.20
2024-02-18 20:26:04 +00:00
Simon Larsen
5125d96981 Remove unused SMTP_USERNAME variable 2024-02-18 20:16:18 +00:00
Simon Larsen
eb24c2c727 Update SMTP_EMAIL in haraka.yaml 2024-02-18 20:07:57 +00:00
Simon Larsen
2be0f5d965 fix auth with haraka 2024-02-18 20:05:34 +00:00
snyk-bot
de0ede0a24 fix: upgrade typeorm from 0.3.19 to 0.3.20
Snyk has created this PR to upgrade typeorm from 0.3.19 to 0.3.20.

See this package in npm:
https://www.npmjs.com/package/typeorm

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-02-18 02:44:07 +00:00
Simon Larsen
f996f36edb Merge pull request #1184 from OneUptime/snyk-upgrade-e6147b2f95c1e1842dbd395511b4ba5e
[Snyk] Upgrade dotenv from 16.3.2 to 16.4.1
2024-02-17 19:25:54 +00:00
Simon Larsen
d2b6719088 Merge pull request #1181 from OneUptime/snyk-upgrade-4877dca6bb18a0901f05b27b37ce5d89
[Snyk] Upgrade react-big-calendar from 1.8.6 to 1.8.7
2024-02-17 19:25:41 +00:00
Simon Larsen
f60c0539d4 Merge pull request #1182 from OneUptime/snyk-upgrade-ddda3196acb3a031ac87c005f49616fa
[Snyk] Upgrade reactflow from 11.10.2 to 11.10.3
2024-02-17 19:25:35 +00:00
Simon Larsen
a7ca645268 Merge pull request #1183 from OneUptime/snyk-upgrade-dc7ad18ae840065fd2184bce8c46ba2b
[Snyk] Upgrade typeorm from 0.3.19 to 0.3.20
2024-02-17 19:25:31 +00:00
Simon Larsen
b57587b0ae Merge pull request #1185 from OneUptime/snyk-upgrade-235b1d93f0cbddf6dfee17d3642ea86e
[Snyk] Upgrade axios from 1.6.6 to 1.6.7
2024-02-17 19:25:22 +00:00
snyk-bot
bc3510b114 fix: upgrade axios from 1.6.6 to 1.6.7
Snyk has created this PR to upgrade axios from 1.6.6 to 1.6.7.

See this package in npm:
https://www.npmjs.com/package/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-02-17 17:53:30 +00:00
snyk-bot
2aeeb77154 fix: upgrade dotenv from 16.3.2 to 16.4.1
Snyk has created this PR to upgrade dotenv from 16.3.2 to 16.4.1.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-17 01:46:24 +00:00
snyk-bot
596b80bd71 fix: upgrade typeorm from 0.3.19 to 0.3.20
Snyk has created this PR to upgrade typeorm from 0.3.19 to 0.3.20.

See this package in npm:
https://www.npmjs.com/package/typeorm

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/95df775c-d36f-4060-828c-d0ddc8c9f28e?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-17 01:41:44 +00:00
snyk-bot
c1d6978ffc fix: upgrade reactflow from 11.10.2 to 11.10.3
Snyk has created this PR to upgrade reactflow from 11.10.2 to 11.10.3.

See this package in npm:
https://www.npmjs.com/package/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-02-16 17:57:57 +00:00
snyk-bot
3c68f56d79 fix: upgrade react-big-calendar from 1.8.6 to 1.8.7
Snyk has created this PR to upgrade react-big-calendar from 1.8.6 to 1.8.7.

See this package in npm:
https://www.npmjs.com/package/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-02-16 17:57:54 +00:00
Simon Larsen
50e07a7947 Merge pull request #1174 from OneUptime/snyk-upgrade-f87bc2db7d38ab19029aa142240a3bac
[Snyk] Upgrade posthog-js from 1.102.0 to 1.102.1
2024-02-16 09:15:42 +00:00
Simon Larsen
b6d53c02cd Merge pull request #1177 from OneUptime/snyk-upgrade-24a93d36a29352f444c5da712b8506eb
[Snyk] Upgrade dotenv from 16.4.0 to 16.4.1
2024-02-16 09:15:37 +00:00
Simon Larsen
5a71f70a37 Merge pull request #1178 from OneUptime/snyk-fix-7e01c5c64b53e6ac07214f0a35a132f4
[Snyk] Security upgrade nginx from 1.25.3-alpine to 1.25.4-alpine
2024-02-16 09:15:26 +00:00
Simon Larsen
0472c8115f Merge pull request #1179 from OneUptime/snyk-upgrade-13d7e11b673345545747b6dd3847130f
[Snyk] Upgrade reactflow from 11.10.2 to 11.10.3
2024-02-16 09:15:20 +00:00
Simon Larsen
b952f0666b Merge pull request #1180 from OneUptime/snyk-upgrade-31c1a2457789279317cffb063f11b971
[Snyk] Upgrade axios from 1.6.6 to 1.6.7
2024-02-16 09:15:15 +00:00
Simon Larsen
abc5526507 Refactor import statements in AnalyticsModelTable and BaseModelTable 2024-02-16 07:48:29 +00:00
Simon Larsen
96787b6905 Update import statements in ModelTable components 2024-02-16 07:46:31 +00:00
Simon Larsen
519daba294 Remove root user from Dockerfiles 2024-02-16 07:40:22 +00:00
snyk-bot
3ade0146ec fix: upgrade axios from 1.6.6 to 1.6.7
Snyk has created this PR to upgrade axios from 1.6.6 to 1.6.7.

See this package in npm:
https://www.npmjs.com/package/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-02-16 02:25:17 +00:00
snyk-bot
48001b1383 fix: upgrade reactflow from 11.10.2 to 11.10.3
Snyk has created this PR to upgrade reactflow from 11.10.2 to 11.10.3.

See this package in npm:
https://www.npmjs.com/package/reactflow

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-16 02:15:59 +00:00
snyk-bot
5c3eb0bb11 fix: Nginx/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-EXPAT-6241039
- https://snyk.io/vuln/SNYK-ALPINE318-EXPAT-6241040
- https://snyk.io/vuln/SNYK-ALPINE318-LIBXML2-6245694
2024-02-16 02:13:30 +00:00
snyk-bot
2ff5aae91a fix: upgrade dotenv from 16.4.0 to 16.4.1
Snyk has created this PR to upgrade dotenv from 16.4.0 to 16.4.1.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-16 02:13:29 +00:00
snyk-bot
d7b033bb2a fix: upgrade posthog-js from 1.102.0 to 1.102.1
Snyk has created this PR to upgrade posthog-js from 1.102.0 to 1.102.1.

See this package in npm:
https://www.npmjs.com/package/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-02-15 14:47:48 +00:00
Simon Larsen
82e30a0a04 Merge pull request #1172 from OneUptime/snyk-upgrade-e677790239304d003a044378abc28ba6
[Snyk] Upgrade dotenv from 16.3.2 to 16.4.1
2024-02-15 14:14:09 +00:00
Simon Larsen
9792983b5e Merge pull request #1173 from OneUptime/snyk-upgrade-4cfd59425aabcbe4d52ff653899e338d
[Snyk] Upgrade axios from 1.6.5 to 1.6.6
2024-02-15 14:14:04 +00:00
Simon Larsen
6bdce925b7 Merge branch 'refactor-model-table' 2024-02-15 14:05:58 +00:00
Simon Larsen
e53666860e Fix TracesList component and TelemetryRoutes*** 2024-02-15 14:05:18 +00:00
Simon Larsen
8e689e79e2 Add TelemetryServiceViewTrace component and update RouteMap 2024-02-15 14:02:40 +00:00
Simon Larsen
a9c9ea8057 Add modelId to TracesList query 2024-02-15 13:55:36 +00:00
Simon Larsen
88feb381db Fix formatting and remove unnecessary lines 2024-02-15 13:50:37 +00:00
Simon Larsen
f4d5b9c492 Update OTel exporter headers and endpoints 2024-02-15 13:45:13 +00:00
Simon Larsen
6b0dd27052 Add SpanService API route and permissions for Telemetry Service Traces 2024-02-15 12:50:34 +00:00
Simon Larsen
d2df65e2ff Refactor ModelTable component to AnalyticsModelTable***
***Import AnalyticsModelTable in TracesList component
2024-02-15 12:36:49 +00:00
Simon Larsen
4118edf4f2 Refactor LogsViewer and IncidentState components 2024-02-15 08:54:02 +00:00
Simon Larsen
2185048eea Update import statements in multiple files 2024-02-15 08:51:43 +00:00
Simon Larsen
2f3e436db5 Fix formatting and import issues 2024-02-15 08:23:31 +00:00
Simon Larsen
15203520d8 Update code in ModelTable and ModelAPI 2024-02-15 08:17:39 +00:00
Simon Larsen
6438943f05 Add ModelFormModal and showCreateModal function to ModelTable 2024-02-15 07:57:44 +00:00
Simon Larsen
6891119c1a Refactor model table and add column check 2024-02-15 07:46:07 +00:00
Simon Larsen
8de1cec844 Add billing plan access control to BaseModel and AnalyticsBaseModel 2024-02-15 07:35:35 +00:00
snyk-bot
43c0301ee9 fix: upgrade axios from 1.6.5 to 1.6.6
Snyk has created this PR to upgrade axios from 1.6.5 to 1.6.6.

See this package in npm:
https://www.npmjs.com/package/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-02-15 02:12:42 +00:00
snyk-bot
af5a33e41f fix: upgrade dotenv from 16.3.2 to 16.4.1
Snyk has created this PR to upgrade dotenv from 16.3.2 to 16.4.1.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-15 00:42:22 +00:00
Simon Larsen
19979e99b8 Merge pull request #1171 from OneUptime/snyk-upgrade-9b94016b3c63f811bc1f248484bdddfa
[Snyk] Upgrade dotenv from 16.3.2 to 16.4.0
2024-02-14 21:26:17 +00:00
snyk-bot
9e92a351e8 fix: upgrade dotenv from 16.3.2 to 16.4.0
Snyk has created this PR to upgrade dotenv from 16.3.2 to 16.4.0.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-14 17:40:32 +00:00
Simon Larsen
f7b4b671dc Add getReadPermissions, getCreatePermissions, getUpdatePermissions, and getDeletePermissions methods to BaseModel and AnalyticsBaseModel 2024-02-14 17:21:17 +00:00
Simon Larsen
438855fb12 Add new methods to AnalyticsModelTable and AnalyticsModelAPI 2024-02-14 17:11:05 +00:00
Simon Larsen
aec156e154 Fix model table and API imports 2024-02-14 16:50:14 +00:00
Simon Larsen
92e16ddd15 Add BaseListResult import and update ListResult interface 2024-02-14 14:29:13 +00:00
Simon Larsen
5b373ced11 Add tableName property to AnalyticsBaseModel 2024-02-13 14:44:53 +00:00
Simon Larsen
b13e021d83 Update import statements in ModelPermission.ts 2024-02-13 14:39:54 +00:00
Simon Larsen
a8b4a0a57a Update import statements in multiple files 2024-02-13 14:35:46 +00:00
Simon Larsen
333c9d1199 Refactor AnalyticsBaseModel and CommonModel classes 2024-02-13 14:31:54 +00:00
Simon Larsen
337f46b0d3 Update user authentication logic 2024-02-13 14:28:44 +00:00
Simon Larsen
7852aa909e Update imports in Realtime.ts 2024-02-13 14:26:05 +00:00
Simon Larsen
0de12ec66e Update modelType references to use BaseModelType 2024-02-13 14:14:32 +00:00
Simon Larsen
5d5f0c9294 Refactor AnalyticsBaseModel and CommonModel classes 2024-02-13 14:08:42 +00:00
Simon Larsen
39dc11fb37 Update import paths for Select and Query 2024-02-13 14:03:28 +00:00
Simon Larsen
7f0d5f43d8 Update import paths for AnalyticsModelAPI 2024-02-13 13:40:58 +00:00
Simon Larsen
26b6533810 Refactor TracesList component to use ModelTable 2024-02-13 13:31:11 +00:00
Simon Larsen
3e9476ea16 Merge branch 'master' into apm 2024-02-13 13:11:14 +00:00
Simon Larsen
9e3bd114dd Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-13 09:56:14 +00:00
Simon Larsen
d797e4b36c Add timeout and retry logic for pod readiness check 2024-02-13 09:56:11 +00:00
Simon Larsen
7e5ffd7d98 Merge pull request #1168 from OneUptime/snyk-upgrade-97d8dcdbeca02db5298d32e98781de4e
[Snyk] Upgrade @types/crypto-js from 4.2.1 to 4.2.2
2024-02-13 09:41:23 +00:00
Simon Larsen
757df64cdc Merge pull request #1169 from OneUptime/snyk-upgrade-0a9908133ecae8e6c0f854beb0828c8d
[Snyk] Upgrade dotenv from 16.3.1 to 16.3.2
2024-02-13 09:41:14 +00:00
Simon Larsen
e74b2cf84f Add hover functionality and tooltip to GanttChartBar component 2024-02-13 08:49:12 +00:00
Simon Larsen
803045aeb8 Update GanttChart Bar styling and add new bars to Traces view 2024-02-13 08:37:59 +00:00
Simon Larsen
7ea5f79085 Update BarLabel and Bar styles 2024-02-13 08:29:25 +00:00
Simon Larsen
7d90a71091 Merge branch 'master' into apm 2024-02-13 08:24:25 +00:00
Simon Larsen
57e78b53cb Add CheckOn import and implement shouldProcessRequest function 2024-02-13 07:25:29 +00:00
snyk-bot
f0c08c14e8 fix: upgrade dotenv from 16.3.1 to 16.3.2
Snyk has created this PR to upgrade dotenv from 16.3.1 to 16.3.2.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-13 00:25:59 +00:00
Simon Larsen
0ecb344a5f Refactor JavaScriptCode class to improve code readability and maintainability 2024-02-12 19:13:13 +00:00
snyk-bot
2390c1c561 fix: upgrade @types/crypto-js from 4.2.1 to 4.2.2
Snyk has created this PR to upgrade @types/crypto-js from 4.2.1 to 4.2.2.

See this package in npm:
https://www.npmjs.com/package/@types/crypto-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-02-12 16:52:29 +00:00
Simon Larsen
ce143583f1 Merge branch 'master' into apm 2024-02-12 15:31:11 +00:00
Simon Larsen
514e726ad4 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-12 15:31:00 +00:00
Simon Larsen
1653c5d8ed Update README.md: Added Logs Management feature 2024-02-12 15:30:58 +00:00
Simon Larsen
5a7a5b7550 Fix color conversion issue in BarLabel and calculate bar width dynamically 2024-02-12 15:27:58 +00:00
Simon Larsen
8aaa63d2ca Fix GanttChart styling issues 2024-02-12 13:47:35 +00:00
Simon Larsen
e572458d07 Merge pull request #1166 from OneUptime/snyk-upgrade-ee5bbd066bbfb01bc8a8a117b94c2efa
[Snyk] Upgrade dotenv from 16.3.1 to 16.3.2
2024-02-12 07:36:51 +00:00
Simon Larsen
74d82286da Merge pull request #1167 from OneUptime/snyk-upgrade-09ccd8e31a4d38369f8ab8583ede5668
[Snyk] Upgrade css-loader from 6.9.0 to 6.9.1
2024-02-12 07:36:40 +00:00
snyk-bot
ce7c789f36 fix: upgrade css-loader from 6.9.0 to 6.9.1
Snyk has created this PR to upgrade css-loader from 6.9.0 to 6.9.1.

See this package in npm:
https://www.npmjs.com/package/css-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-12 00:29:37 +00:00
snyk-bot
d738c23078 fix: upgrade dotenv from 16.3.1 to 16.3.2
Snyk has created this PR to upgrade dotenv from 16.3.1 to 16.3.2.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-11 16:36:45 +00:00
Simon Larsen
346bba4708 Merge remote-tracking branch 'origin/snyk-upgrade-bc86844472225f3f865c0427becc29a3' 2024-02-11 09:54:39 +00:00
Simon Larsen
42a0d09c68 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-11 09:52:43 +00:00
Simon Larsen
894ed95560 increase timeout 2024-02-11 09:52:40 +00:00
Simon Larsen
e645b88542 Merge pull request #1163 from OneUptime/snyk-upgrade-da8d138aeffb15c4996f482de400e2c6
[Snyk] Upgrade react-router-dom from 6.21.2 to 6.21.3
2024-02-11 07:52:07 +00:00
Simon Larsen
69f2f8df5b Merge pull request #1164 from OneUptime/snyk-upgrade-45f6a71748af2acac6a1cb221e3f9191
[Snyk] Upgrade dotenv from 16.3.1 to 16.3.2
2024-02-11 07:52:01 +00:00
snyk-bot
38c356f891 fix: upgrade dotenv from 16.3.1 to 16.3.2
Snyk has created this PR to upgrade dotenv from 16.3.1 to 16.3.2.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-10 17:21:29 +00:00
snyk-bot
15c4013b4f fix: upgrade react-router-dom from 6.21.2 to 6.21.3
Snyk has created this PR to upgrade react-router-dom from 6.21.2 to 6.21.3.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-10 17:21:25 +00:00
Simon Larsen
6d6f5c7746 Refactor GanttChart component to improve readability and formatting 2024-02-10 09:13:07 +00:00
Simon Larsen
0a0a9f7899 Remove unnecessary whitespace and clean up code 2024-02-10 09:09:15 +00:00
Simon Larsen
9b0b8ad3d3 Refactor GanttChart component and related files 2024-02-10 09:06:03 +00:00
Simon Larsen
4efa6bf809 Merge pull request #1161 from OneUptime/snyk-upgrade-50fbbf475c429d596766b8af09e9a2a6
[Snyk] Upgrade dotenv from 16.3.1 to 16.3.2
2024-02-10 08:24:50 +00:00
Simon Larsen
3c2e4dde9e Merge pull request #1162 from OneUptime/snyk-upgrade-7e22832acc0689217ba893f8d3de59d9
[Snyk] Upgrade react-router-dom from 6.21.2 to 6.21.3
2024-02-10 08:24:45 +00:00
Simon Larsen
263ef045ff Merge branch 'master' into apm 2024-02-10 08:21:21 +00:00
Simon Larsen
b96bc5d0a6 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-02-10 08:21:02 +00:00
Simon Larsen
43710eccef Update image and link in logs-management and product-tabs views 2024-02-10 08:19:40 +00:00
Simon Larsen
e3a6c30969 refactor chart 2024-02-10 08:03:29 +00:00
snyk-bot
12b1cc5736 fix: upgrade react-router-dom from 6.21.2 to 6.21.3
Snyk has created this PR to upgrade react-router-dom from 6.21.2 to 6.21.3.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-10 01:31:17 +00:00
Simon Larsen
2bacd4466f Refactor GanttChart component and add onCardWidthChange prop to Card component 2024-02-09 18:19:27 +00:00
snyk-bot
4fc32260bf fix: upgrade dotenv from 16.3.1 to 16.3.2
Snyk has created this PR to upgrade dotenv from 16.3.1 to 16.3.2.

See this package in npm:
https://www.npmjs.com/package/dotenv

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-09 18:00:12 +00:00
snyk-bot
1e44f5afaa fix: upgrade css-loader from 6.9.0 to 6.9.1
Snyk has created this PR to upgrade css-loader from 6.9.0 to 6.9.1.

See this package in npm:
https://www.npmjs.com/package/css-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-09 18:00:08 +00:00
Simon Larsen
355e28ca79 Refactor Timeline component to use a minimum interval width 2024-02-09 14:17:17 +00:00
Simon Larsen
29bb09a379 Refactor GanttChart components 2024-02-09 14:17:09 +00:00
Simon Larsen
cc343fb489 Refactor GanttChart components 2024-02-09 08:55:38 +00:00
Simon Larsen
31a653bf8b Merge pull request #1157 from OneUptime/snyk-upgrade-735401e9a0bab12b59860ba0ff7713a0
[Snyk] Upgrade react-router-dom from 6.21.2 to 6.21.3
2024-02-09 08:12:46 +00:00
Simon Larsen
be4bdc5871 Merge pull request #1158 from OneUptime/snyk-upgrade-f2a25c95cec01d8ac35f7e339bb8a289
[Snyk] Upgrade reactflow from 11.10.1 to 11.10.2
2024-02-09 08:12:38 +00:00
snyk-bot
3bbb722195 fix: upgrade reactflow from 11.10.1 to 11.10.2
Snyk has created this PR to upgrade reactflow from 11.10.1 to 11.10.2.

See this package in npm:
https://www.npmjs.com/package/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-02-09 01:14:00 +00:00
snyk-bot
785ae35d3c fix: upgrade react-router-dom from 6.21.2 to 6.21.3
Snyk has created this PR to upgrade react-router-dom from 6.21.2 to 6.21.3.

See this package in npm:
https://www.npmjs.com/package/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-02-09 01:13:57 +00:00
Simon Larsen
8d61372243 Refactor code for improved performance and readability 2024-02-08 18:11:07 +00:00
Simon Larsen
c560bd0310 Merge pull request #1154 from OneUptime/snyk-upgrade-2bfd4b8030d3c88a4514611fff686838
[Snyk] Upgrade react-router-dom from 6.21.1 to 6.21.2
2024-02-08 17:56:17 +00:00
Simon Larsen
7f6a1b05ea Merge pull request #1155 from OneUptime/snyk-upgrade-908f9c832b1c554acf2147d49c14c779
[Snyk] Upgrade reactflow from 11.10.1 to 11.10.2
2024-02-08 14:27:22 +00:00
snyk-bot
52d496236f fix: upgrade reactflow from 11.10.1 to 11.10.2
Snyk has created this PR to upgrade reactflow from 11.10.1 to 11.10.2.

See this package in npm:
https://www.npmjs.com/package/reactflow

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-08 01:33:39 +00:00
snyk-bot
6d78e864f6 fix: upgrade react-router-dom from 6.21.1 to 6.21.2
Snyk has created this PR to upgrade react-router-dom from 6.21.1 to 6.21.2.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-08 01:33:35 +00:00
Simon Larsen
5e3a5460d5 Merge pull request #1150 from OneUptime/snyk-upgrade-b37a9661abc0085b43a9a9fc696d9b92
[Snyk] Upgrade style-loader from 3.3.3 to 3.3.4
2024-02-07 08:23:46 +00:00
Simon Larsen
3539c537e3 Merge pull request #1151 from OneUptime/snyk-fix-942252a30d535a2b7815b8d52f5a84b0
[Snyk] Security upgrade fastapi from 0.103.2 to 0.109.1
2024-02-07 08:23:38 +00:00
Simon Larsen
3e57270a0e Merge pull request #1152 from OneUptime/snyk-upgrade-9facedc502dcfceebdce1c255c9548bd
[Snyk] Upgrade protobufjs from 7.2.5 to 7.2.6
2024-02-07 08:23:23 +00:00
Simon Larsen
4a8a78eb83 Merge pull request #1153 from OneUptime/snyk-upgrade-fd44b33aa24b61551427f7fc27bd38c1
[Snyk] Upgrade react-router-dom from 6.21.1 to 6.21.2
2024-02-07 08:23:12 +00:00
snyk-bot
768fd118c5 fix: upgrade react-router-dom from 6.21.1 to 6.21.2
Snyk has created this PR to upgrade react-router-dom from 6.21.1 to 6.21.2.

See this package in npm:
https://www.npmjs.com/package/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-02-07 01:44:01 +00:00
snyk-bot
37f0829f05 fix: upgrade protobufjs from 7.2.5 to 7.2.6
Snyk has created this PR to upgrade protobufjs from 7.2.5 to 7.2.6.

See this package in npm:
https://www.npmjs.com/package/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-02-07 00:48:23 +00:00
snyk-bot
bdd7f58bfa fix: Llama/requirements.txt to reduce vulnerabilities
The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-FASTAPI-6228055
2024-02-06 14:43:53 +00:00
snyk-bot
2a9be4e512 fix: upgrade style-loader from 3.3.3 to 3.3.4
Snyk has created this PR to upgrade style-loader from 3.3.3 to 3.3.4.

See this package in npm:
https://www.npmjs.com/package/style-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-06 14:43:41 +00:00
Simon Larsen
3635a4d839 Merge pull request #1145 from OneUptime/snyk-upgrade-37712a3e2e0ada984d4eb5e44e3aa144
[Snyk] Upgrade style-loader from 3.3.3 to 3.3.4
2024-02-06 09:27:09 +00:00
Simon Larsen
aac3f169ae Merge pull request #1147 from OneUptime/snyk-upgrade-7ca2324934c58bd8cb3bc42eb4b1b48f
[Snyk] Upgrade react-router-dom from 6.21.1 to 6.21.2
2024-02-06 09:26:52 +00:00
Simon Larsen
450c9f7107 Merge pull request #1149 from OneUptime/snyk-upgrade-72c6c1a628d7824c0f164fe792903c0c
[Snyk] Upgrade socket.io-client from 4.7.3 to 4.7.4
2024-02-06 09:26:41 +00:00
Simon Larsen
088aba033b Fix formatting in README.md 2024-02-03 21:04:26 +00:00
Simon Larsen
80bae0c0a6 Add instructions for adding a custom domain to the status page 2024-02-03 12:51:02 +00:00
Simon Larsen
166fd1ca36 Update OneUptime service token in fluent.conf 2024-02-03 11:35:36 +00:00
Simon Larsen
1a47402ce3 Update Fluentd endpoint and service token 2024-02-03 09:10:57 +00:00
Simon Larsen
29ef61df88 Update Nginx configuration to include /fluentd/logs location 2024-02-03 09:08:29 +00:00
snyk-bot
0b5110b604 fix: upgrade socket.io-client from 4.7.3 to 4.7.4
Snyk has created this PR to upgrade socket.io-client from 4.7.3 to 4.7.4.

See this package in npm:
https://www.npmjs.com/package/socket.io-client

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-02-03 02:09:12 +00:00
Simon Larsen
37c87130b6 Update Fluentd and Nginx configurations 2024-02-02 19:00:19 +00:00
Simon Larsen
60e25b5954 Add new features to features table 2024-02-02 18:52:35 +00:00
Simon Larsen
423324bc2d Update SVG images and import paths 2024-02-02 17:05:57 +00:00
Simon Larsen
ec672ea631 Add Fluentd integration for telemetry documentation 2024-02-02 14:59:20 +00:00
Simon Larsen
d46085f30b Update Fluentd endpoint URLs 2024-02-02 14:43:40 +00:00
Simon Larsen
ddc9eaafba Add example configuration for Fluentd 2024-02-02 13:09:32 +00:00
Simon Larsen
ee99d10be1 Update Fluentd README with OneUptime integration 2024-02-02 13:08:03 +00:00
Simon Larsen
0233919f3b Fix code formatting and add missing imports 2024-02-02 12:59:23 +00:00
Simon Larsen
5f735a316f Add Fluent Ingest API endpoint 2024-02-02 12:21:29 +00:00
Simon Larsen
899422812d Refactor OTelIngest and TelemetryIngest modules 2024-02-02 11:05:34 +00:00
Simon Larsen
e8e735d8d2 Refactor OTelIngest.ts to improve middleware structure 2024-02-02 11:02:02 +00:00
Simon Larsen
0518cc4840 Merge pull request #1144 from OneUptime/snyk-upgrade-306017fd1e0e493e1973f84b1c6083d5
[Snyk] Upgrade css-loader from 6.8.1 to 6.9.0
2024-02-02 07:00:05 +00:00
Simon Larsen
19eb4fe9ef Merge pull request #1146 from OneUptime/snyk-fix-5c080a6d99bc8e8c5f65b5dd4e482653
[Snyk] Security upgrade nodemailer from 6.9.7 to 6.9.9
2024-02-02 06:59:55 +00:00
snyk-bot
d9d648829e fix: upgrade react-router-dom from 6.21.1 to 6.21.2
Snyk has created this PR to upgrade react-router-dom from 6.21.1 to 6.21.2.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-01 16:54:39 +00:00
snyk-bot
d65d24af09 fix: CommonServer/package.json & CommonServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-NODEMAILER-6219989
2024-02-01 16:52:54 +00:00
Simon Larsen
6c163cc14e Refactor publicNote assignment in IncidentStateTimelineService and ScheduledMaintenanceStateTimelineService 2024-02-01 16:43:37 +00:00
Simon Larsen
888aa25975 Update terminationGracePeriodSeconds for PostgreSQL and ClickHouse pods 2024-02-01 14:41:35 +00:00
Simon Larsen
29ac16def5 Add public note functionality to IncidentStateTimeline and ScheduledMaintenanceStateTimeline 2024-02-01 07:26:39 +00:00
Simon Larsen
6fbff4dcf1 Update email validation regex 2024-02-01 06:49:39 +00:00
snyk-bot
8f6a088e3d fix: upgrade style-loader from 3.3.3 to 3.3.4
Snyk has created this PR to upgrade style-loader from 3.3.3 to 3.3.4.

See this package in npm:
https://www.npmjs.com/package/style-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-31 14:33:38 +00:00
snyk-bot
4bcee2e0ac fix: upgrade css-loader from 6.8.1 to 6.9.0
Snyk has created this PR to upgrade css-loader from 6.8.1 to 6.9.0.

See this package in npm:
https://www.npmjs.com/package/css-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-31 14:33:35 +00:00
Simon Larsen
c1b8841fb5 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-01-31 14:02:54 +00:00
Simon Larsen
7719eaf4d8 Update OneUptime messaging in features table 2024-01-31 14:02:51 +00:00
Simon Larsen
08a5fe5cdd Merge pull request #1143 from OneUptime/snyk-upgrade-a8e750adadd035a3b11b7f37d25341be
[Snyk] Upgrade style-loader from 3.3.3 to 3.3.4
2024-01-31 13:28:42 +00:00
Simon Larsen
5473694d33 Add data migration scripts for incident and monitor status timelines 2024-01-31 10:48:54 +00:00
Simon Larsen
4edec7d3c8 Add OneUptimeDate import and update StateTimeline component 2024-01-31 10:25:00 +00:00
Simon Larsen
564440e119 Add logic to update the end date of the previous state when deleting a state in the IncidentStateTimelineService 2024-01-31 09:57:21 +00:00
Simon Larsen
491977ac68 Adjust times of other timeline events 2024-01-31 09:47:20 +00:00
Simon Larsen
040f932afb Adjust times of other timeline events when deleting a status timeline 2024-01-31 09:46:22 +00:00
Simon Larsen
38843596e6 Comment out unused imports and migrations 2024-01-31 09:35:37 +00:00
Simon Larsen
55ad18118c Add new data migration scripts and fix error handling in Workers/Index.ts 2024-01-31 09:25:01 +00:00
Simon Larsen
7f5aaa9df3 Refactor database migration in WorkersFeatureSet.init() 2024-01-31 08:50:07 +00:00
Simon Larsen
2b1f0de86f Add startsAt field to MonitorStatusTimeline, IncidentStateTimeline, and ScheduledMaintenanceStateTimeline 2024-01-31 08:48:23 +00:00
Simon Larsen
4b3e6871b9 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-01-31 08:38:00 +00:00
Simon Larsen
c4147e2836 Refactor StatusPageAPI to include monitorStatusTimelines in the query 2024-01-31 05:11:27 +00:00
snyk-bot
d2c8468a69 fix: upgrade style-loader from 3.3.3 to 3.3.4
Snyk has created this PR to upgrade style-loader from 3.3.3 to 3.3.4.

See this package in npm:
https://www.npmjs.com/package/style-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-31 05:10:09 +00:00
Simon Larsen
8e44491e2c Fix range condition in QueryHelper.ts 2024-01-31 05:06:12 +00:00
Simon Larsen
bdd1c7f83c Add QueryHelper import to AddEndDateToMonitorStatusTimeline 2024-01-30 20:05:32 +00:00
Simon Larsen
35e541001a Merge pull request #1142 from OneUptime/snyk-upgrade-51ad4416138f2e4c722002320bc87df6
[Snyk] Upgrade css-loader from 6.8.1 to 6.9.0
2024-01-30 18:21:04 +00:00
Simon Larsen
e979eaa97e Merge pull request #1141 from OneUptime/snyk-upgrade-2298a2c0a04e0bbf7d3beec7aefce607
[Snyk] Upgrade style-loader from 3.3.3 to 3.3.4
2024-01-30 18:20:49 +00:00
Simon Larsen
a9bc14e416 Add new methods and properties to QueryHelper and MonitorStatusTimeline 2024-01-30 18:10:59 +00:00
snyk-bot
15fcec5d20 fix: upgrade css-loader from 6.8.1 to 6.9.0
Snyk has created this PR to upgrade css-loader from 6.8.1 to 6.9.0.

See this package in npm:
https://www.npmjs.com/package/css-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-30 17:35:12 +00:00
snyk-bot
9335513d9f fix: upgrade style-loader from 3.3.3 to 3.3.4
Snyk has created this PR to upgrade style-loader from 3.3.3 to 3.3.4.

See this package in npm:
https://www.npmjs.com/package/style-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-30 17:35:08 +00:00
Simon Larsen
f64a349e4e Add onDeleteSuccess and onBeforeDelete hooks to ScheduledMaintenanceService 2024-01-30 12:47:47 +00:00
Simon Larsen
d80c1faa0a Refactor ChangeIncidentState component 2024-01-30 11:10:24 +00:00
Simon Larsen
c619102138 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-01-30 11:09:51 +00:00
Simon Larsen
de4c131d75 Add ModelFormModal for changing incident state 2024-01-30 11:09:48 +00:00
Simon Larsen
69f147272e Merge pull request #1140 from OneUptime/simlarsen-patch-1
Update IPAddress.md
2024-01-30 10:51:53 +00:00
Simon Larsen
24ccb48f94 Update IPAddress.md 2024-01-30 10:51:44 +00:00
Simon Larsen
5712e96df5 Update event notification titles 2024-01-30 10:34:41 +00:00
Simon Larsen
0018afc67f Update boolean types for status page subscriber notifications 2024-01-30 10:30:03 +00:00
Simon Larsen
4188923af6 Refactor changeScheduledMaintenanceState method to use an object parameter 2024-01-30 10:14:51 +00:00
Simon Larsen
6f7ee8b00a Refactor incident and scheduled maintenance state change functions 2024-01-30 09:07:53 +00:00
Simon Larsen
9987053366 Add flag to notify status page subscribers on event creation 2024-01-30 08:29:05 +00:00
Simon Larsen
beb5c90169 Update ScheduledMaintenanceTable and ScheduledMaintenanceView components 2024-01-30 08:28:08 +00:00
Simon Larsen
348f36fa5b Add shouldStatusPageSubscribersBeNotified field to SendNotificationToSubscribers.ts and StateTimeline.tsx 2024-01-30 08:19:31 +00:00
Simon Larsen
b2b4a5bd29 Add shouldStatusPageSubscribersBeNotified field to IncidentStateTimeline and related components 2024-01-30 08:16:21 +00:00
Simon Larsen
7c62a83024 Add form steps and fields for creating status page announcements 2024-01-30 07:55:34 +00:00
Simon Larsen
37d50cfa9b Add shouldStatusPageSubscribersBeNotifiedOnNoteCreated field to SendNotificationToSubscribers.ts and PublicNote.tsx 2024-01-30 07:44:16 +00:00
Simon Larsen
43b535d544 Fix formatting issues and remove unnecessary code 2024-01-30 07:33:03 +00:00
Simon Larsen
42b1b7f517 Update CheckboxViewer component and add CheckboxViewer to IncidentView and PublicNote 2024-01-30 07:30:59 +00:00
Simon Larsen
b426670d48 Add CircleClose icon and CheckboxViewer component 2024-01-30 07:26:36 +00:00
Simon Larsen
5367953ab0 Add notification feature for status page subscribers 2024-01-30 07:05:05 +00:00
Simon Larsen
144795d412 Add notification feature for status page subscribers 2024-01-30 06:58:29 +00:00
Simon Larsen
c70a5e2da8 Merge pull request #1139 from OneUptime/snyk-upgrade-55b457e0c5cff802da62f71c0bd78201
[Snyk] Upgrade react-big-calendar from 1.8.5 to 1.8.6
2024-01-30 06:44:52 +00:00
Simon Larsen
a505c4d28b Add network and storage high availability documentation 2024-01-30 06:44:20 +00:00
Simon Larsen
985748e2b4 Add high availability documentation for MicroCeph and MicroK8s 2024-01-30 06:42:22 +00:00
Simon Larsen
0b79a4751a Remove CephRook.md documentation 2024-01-29 19:23:50 +00:00
Simon Larsen
304aa0c640 Update IP addresses in values.yaml file 2024-01-29 18:16:41 +00:00
Simon Larsen
7582b39a8d Fix nginx service configuration 2024-01-29 18:15:45 +00:00
Simon Larsen
ad9d565d4d Add support for external IPs in nginx service 2024-01-29 18:14:12 +00:00
snyk-bot
cb6de455b1 fix: upgrade react-big-calendar from 1.8.5 to 1.8.6
Snyk has created this PR to upgrade react-big-calendar from 1.8.5 to 1.8.6.

See this package in npm:
https://www.npmjs.com/package/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-01-29 16:33:21 +00:00
Simon Larsen
0d2946407f Update MicroK8s and package.json 2024-01-29 13:29:35 +00:00
Simon Larsen
350aabd85e Fix bug in login functionality
Add validation for user input

Refactor code for better readability

Update error handling in API calls

Optimize database queries for improved performance

Implement new feature for user profile customization

Update dependencies to latest versions

Fix formatting issues in code

Remove unused variables and functions

Improve error messages for better user experience
2024-01-29 13:04:06 +00:00
Simon Larsen
b9b3580ca3 Add check for ONEUPTIME_URL in Config.ts 2024-01-29 12:54:43 +00:00
Simon Larsen
4a191b6282 Update environment variable name in probe.yaml 2024-01-29 12:18:23 +00:00
Simon Larsen
41474cb42c Update ONEUPTIME_URL in config.example.env 2024-01-29 12:16:46 +00:00
Simon Larsen
5137a07167 Update ONEUPTIME_URL in probe configuration and docker-compose file 2024-01-29 12:15:34 +00:00
Simon Larsen
90a8b7b015 Remove unnecessary dependencies and links in docker-compose file 2024-01-29 12:09:35 +00:00
Simon Larsen
b551b15c08 Add "run-probes" script to package.json 2024-01-29 11:59:02 +00:00
Simon Larsen
06d4f89c42 Add envsubst-on-templates.sh script and update Nginx configuration 2024-01-29 09:15:02 +00:00
Simon Larsen
54871d8dd9 Update FetchCertificates.ts and run.sh 2024-01-29 08:47:51 +00:00
Simon Larsen
fb0c6d0540 Update Nginx run script and initialize FetchCertificateJobs 2024-01-29 08:45:51 +00:00
Simon Larsen
ea4d3f37c9 Create subdirectory for StatusPageCerts in Nginx/Jobs/FetchCertificates.ts 2024-01-29 07:26:58 +00:00
Simon Larsen
66fb6f8b90 Refactor environment variable assignments and update port number 2024-01-29 07:25:11 +00:00
Simon Larsen
865c7f0996 Update dependencies and remove unused code 2024-01-29 07:23:24 +00:00
Simon Larsen
a146717798 Update Nginx Dockerfile to use multi-stage build 2024-01-28 16:27:16 +00:00
Simon Larsen
29e2ac1b53 nginx 2024-01-28 16:23:52 +00:00
Simon Larsen
d101114480 Merge pull request #1134 from OneUptime/snyk-fix-a47eb13c90cf7dbf219a0eb82d79b888
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.6-alpine3.18
2024-01-28 10:39:19 +00:00
Simon Larsen
0d257efe08 Merge pull request #1132 from OneUptime/snyk-fix-4f914cd9a1c943579ea6910382a845b9
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.6-alpine3.18
2024-01-28 06:09:45 +00:00
Simon Larsen
8235149acd Merge pull request #1133 from OneUptime/snyk-upgrade-da52d4336f2225518d3da4ac1176245c
[Snyk] Upgrade axios from 1.6.4 to 1.6.5
2024-01-28 06:09:40 +00:00
Simon Larsen
e9bc9677f3 Merge pull request #1135 from OneUptime/snyk-fix-c9393a1d9be2cda78638c88b645a96a2
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.6-alpine3.18
2024-01-28 06:09:32 +00:00
snyk-bot
b3d384e0b4 fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6191692
2024-01-28 04:04:37 +00:00
snyk-bot
de3620c011 fix: Dashboard/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6191692
2024-01-28 04:00:47 +00:00
snyk-bot
4d1fd2db17 fix: upgrade axios from 1.6.4 to 1.6.5
Snyk has created this PR to upgrade axios from 1.6.4 to 1.6.5.

See this package in npm:
https://www.npmjs.com/package/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-01-28 03:57:19 +00:00
snyk-bot
49696226fb fix: Accounts/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6191692
2024-01-28 03:50:59 +00:00
Simon Larsen
59858b8c19 Merge pull request #1125 from OneUptime/snyk-upgrade-ffb7c22b4e838057262d8ed9f92d54e2
[Snyk] Upgrade react-router-dom from 6.20.1 to 6.21.1
2024-01-27 19:10:26 +00:00
Simon Larsen
b0ffcf8986 Merge pull request #1122 from OneUptime/snyk-upgrade-e109a9b0bbf2f658e1a1ee38a1e65f1f
[Snyk] Upgrade typeorm from 0.3.18 to 0.3.19
2024-01-27 19:10:13 +00:00
Simon Larsen
a27cedb470 Merge pull request #1126 from OneUptime/snyk-fix-527e83ee5a2b303636d8c67aff7d8854
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.6-alpine3.18
2024-01-27 19:09:58 +00:00
Simon Larsen
80432d3ca1 Merge pull request #1127 from OneUptime/snyk-fix-1cb25f30f3f4c99bee4709936fbc03dd
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.6-alpine3.18
2024-01-27 19:09:52 +00:00
Simon Larsen
37a9e7622d Merge pull request #1128 from OneUptime/snyk-fix-bdef80a083677bcccde6e2af1a842b11
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.6-alpine3.18
2024-01-27 19:09:19 +00:00
Simon Larsen
a80e8b6512 Merge pull request #1129 from OneUptime/snyk-fix-b9a4b2f0b33d6b2c09e304029e80a9b0
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.6-alpine3.18
2024-01-27 19:09:13 +00:00
Simon Larsen
f283c1a497 Merge pull request #1130 from OneUptime/snyk-fix-e0a6d0b05f6a5e7cfa66b402a0eea68d
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.6-alpine3.18
2024-01-27 19:09:08 +00:00
Simon Larsen
ebd8a75dd0 Merge pull request #1131 from OneUptime/snyk-fix-0f5417766905922082aa4b580803b071
[Snyk] Security upgrade node from 21.2-alpine3.18 to 21.6-alpine3.18
2024-01-27 19:09:01 +00:00
Simon Larsen
343b767e68 Update Ceph Rook installation and MicroK8s setup 2024-01-27 19:02:34 +00:00
snyk-bot
d7b7818793 fix: Ingestor/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
2024-01-27 11:36:41 +00:00
snyk-bot
595690a789 fix: Haraka/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
2024-01-27 11:29:07 +00:00
snyk-bot
9ba0863998 fix: AdminDashboard/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
2024-01-27 11:23:02 +00:00
snyk-bot
9aad7acd41 fix: StatusPage/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
2024-01-27 11:19:38 +00:00
snyk-bot
033f3503f1 fix: Tests/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
2024-01-27 11:15:48 +00:00
snyk-bot
ce02d545dd fix: TestServer/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
2024-01-27 11:14:27 +00:00
Simon Larsen
2e815457ae Add DowntimeMonitorStatus to StatusPage 2024-01-27 07:38:05 +00:00
snyk-bot
c95e69df25 fix: upgrade react-router-dom from 6.20.1 to 6.21.1
Snyk has created this PR to upgrade react-router-dom from 6.20.1 to 6.21.1.

See this package in npm:
https://www.npmjs.com/package/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-01-26 19:19:51 +00:00
Simon Larsen
84615274de Add Downtime Monitor Status to Status Page 2024-01-26 17:58:13 +00:00
Simon Larsen
ec7749c0c6 Merge pull request #1124 from OneUptime/tolerations
Tolerations
2024-01-26 15:20:12 +00:00
Simon Larsen
a50da80f85 Refactor code for improved readability and maintainability 2024-01-26 15:13:57 +00:00
Simon Larsen
c24ded8b34 Fix formatting issues and add missing commas 2024-01-26 15:11:31 +00:00
Simon Larsen
3bdc8d5737 Add default bar color to MonitorView and MonitorGroupView components 2024-01-26 14:43:10 +00:00
Simon Larsen
aff7362aec Refactor code to improve readability and maintainability 2024-01-26 14:26:17 +00:00
Simon Larsen
01e705340d Add onBeforeCreate hook to StatusPageService 2024-01-26 14:15:44 +00:00
Simon Larsen
509c6a1150 Refactor code to improve readability and maintainability 2024-01-26 14:08:07 +00:00
Simon Larsen
6002678ba0 Fix downtime monitor status issue 2024-01-26 14:03:57 +00:00
Simon Larsen
b106ee90b2 Refactor MonitorView component to use downtimeMonitorStatues 2024-01-26 14:01:56 +00:00
Simon Larsen
98cace628f Refactor downtimeMonitorStatus to downtimeMonitorStatuses 2024-01-26 14:00:10 +00:00
Simon Larsen
b86cfd3bb8 Add eventStatusId to UptimeUtil and MonitorOverview 2024-01-26 13:52:54 +00:00
Simon Larsen
cd9a72aa36 Update titles and icons in status page components 2024-01-26 12:38:40 +00:00
Simon Larsen
b1e299ecfd Add FieldType.Percent and ColorInput component
Update BaseAPI instantiation
Update TableRow component to handle FieldType.Percent and FieldType.Color
Update OverviewPageBranding component to use FieldType.Percent
2024-01-26 10:41:21 +00:00
Simon Larsen
b27d5953c1 Add StatusPageHistoryChartBarColorRule API endpoint and ModelTable component 2024-01-26 10:25:45 +00:00
Simon Larsen
778d043bfe Add new icon and page for overview page branding 2024-01-26 09:50:59 +00:00
Simon Larsen
a3334a9205 Add StatusPageHistoryChartBarColorRuleService to services 2024-01-26 07:15:11 +00:00
Simon Larsen
9343165edd Add status page history chart bar color rule permissions 2024-01-26 07:13:20 +00:00
Simon Larsen
8d1659ef56 Merge pull request #1123 from OneUptime/snyk-upgrade-9a4bf5daa45d2593967bfd2856807320
[Snyk] Upgrade react-router-dom from 6.20.1 to 6.21.1
2024-01-26 06:38:01 +00:00
snyk-bot
20bb6d31cf fix: upgrade react-router-dom from 6.20.1 to 6.21.1
Snyk has created this PR to upgrade react-router-dom from 6.20.1 to 6.21.1.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-25 23:18:39 +00:00
snyk-bot
d30469cbf0 fix: upgrade typeorm from 0.3.18 to 0.3.19
Snyk has created this PR to upgrade typeorm from 0.3.18 to 0.3.19.

See this package in npm:
https://www.npmjs.com/package/typeorm

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-01-25 23:00:13 +00:00
Simon Larsen
e2d986c968 Fix SSO query parameter indentation 2024-01-25 18:19:52 +00:00
Simon Larsen
79d440036f Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2024-01-25 18:15:34 +00:00
Simon Larsen
8e0047e055 Add statusPageId to SSO query 2024-01-25 18:15:30 +00:00
Simon Larsen
507ba46237 Merge pull request #1121 from OneUptime/snyk-upgrade-2ace110fcff1c4ffe0f3c940643d64d5
[Snyk] Upgrade typeorm from 0.3.18 to 0.3.19
2024-01-25 17:34:07 +05:30
Simon Larsen
63935adbdd Refactor API URL construction in StatusPageCertificateService 2024-01-25 11:57:12 +00:00
Simon Larsen
dfa38e3cf0 Merge branch 'master' into release 2024-01-25 11:48:43 +00:00
Simon Larsen
580fd97030 Update retry interval for endpoint status script 2024-01-25 11:32:16 +00:00
Simon Larsen
224943206e Remove unnecessary endpoint status checks 2024-01-25 11:30:48 +00:00
Simon Larsen
726a66bdee Update API endpoint in StatusPageCertificateService 2024-01-25 10:44:19 +00:00
Simon Larsen
b702113357 Update launch.json and API routes 2024-01-25 10:41:00 +00:00
Simon Larsen
90ccae645a Update react-router-dom version 2024-01-25 09:18:21 +00:00
Simon Larsen
fb5e7cc8fa Remove react-router dependency 2024-01-25 09:17:22 +00:00
Simon Larsen
60c0e04c75 Update react-router imports to react-router-dom 2024-01-25 09:16:46 +00:00
snyk-bot
5bed6ed8a5 fix: upgrade typeorm from 0.3.18 to 0.3.19
Snyk has created this PR to upgrade typeorm from 0.3.18 to 0.3.19.

See this package in npm:
https://www.npmjs.com/package/typeorm

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/95df775c-d36f-4060-828c-d0ddc8c9f28e?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-25 06:57:04 +00:00
Simon Larsen
e8829ac697 Add local logging configuration to services 2024-01-25 06:50:45 +00:00
Simon Larsen
721d6d7008 Merge remote-tracking branch 'origin/snyk-upgrade-47748be6ada0462c1ce2d47a5808deaa' 2024-01-25 06:31:01 +00:00
Simon Larsen
56c3cf8cf6 Merge remote-tracking branch 'origin/snyk-upgrade-e4be90a8f176fe1400084854f4f2e0c6' 2024-01-25 06:28:53 +00:00
Simon Larsen
c5fd57de9e Fix bug in login functionality
Update error handling in user registration

Refactor code for better performance

Add new feature for user profile customization

Fix formatting issues in UI

Update dependencies to latest versions

Remove unused code

Fix security vulnerability in authentication

Optimize database queries for faster response time

Add unit tests for new functionality
2024-01-25 06:27:33 +00:00
Simon Larsen
225c6aa2b6 Merge pull request #1118 from OneUptime/snyk-upgrade-ffaccda8ec798b579b4a5189781e061b
[Snyk] Upgrade moment-timezone from 0.5.43 to 0.5.44
2024-01-25 11:54:50 +05:30
Simon Larsen
ef1846d8b2 Merge pull request #1120 from OneUptime/snyk-upgrade-b5a79920e8e2a06b50624168400adc14
[Snyk] Upgrade socket.io-client from 4.7.2 to 4.7.3
2024-01-25 11:54:40 +05:30
snyk-bot
3303029ff5 fix: upgrade socket.io-client from 4.7.2 to 4.7.3
Snyk has created this PR to upgrade socket.io-client from 4.7.2 to 4.7.3.

See this package in npm:
https://www.npmjs.com/package/socket.io-client

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-01-24 21:19:24 +00:00
Simon Larsen
ae3c59f01e Merge pull request #1117 from OneUptime/snyk-upgrade-2b2067034bf1b25bd5f1c73ced568ba5
[Snyk] Upgrade sass-loader from 13.3.2 to 13.3.3
2024-01-23 10:51:59 +05:30
snyk-bot
f01cf72e13 fix: upgrade moment-timezone from 0.5.43 to 0.5.44
Snyk has created this PR to upgrade moment-timezone from 0.5.43 to 0.5.44.

See this package in npm:
https://www.npmjs.com/package/moment-timezone

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-01-22 23:14:54 +00:00
snyk-bot
6dda58907c fix: upgrade sass-loader from 13.3.2 to 13.3.3
Snyk has created this PR to upgrade sass-loader from 13.3.2 to 13.3.3.

See this package in npm:
https://www.npmjs.com/package/sass-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-22 14:25:45 +00:00
snyk-bot
a8356c5008 fix: upgrade react-router-dom from 6.21.0 to 6.21.1
Snyk has created this PR to upgrade react-router-dom from 6.21.0 to 6.21.1.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-22 14:25:40 +00:00
Simon Larsen
c5c69b875a Merge pull request #1109 from OneUptime/snyk-upgrade-0aa9f48356dd27f3eb906fbe339af3dd
[Snyk] Upgrade react-router-dom from 6.20.1 to 6.21.1
2024-01-22 13:21:56 +05:30
Simon Larsen
c40f9d968d Merge pull request #1111 from OneUptime/snyk-upgrade-46adcc69676efc0e25afa44ee7fb59aa
[Snyk] Upgrade sass-loader from 13.3.2 to 13.3.3
2024-01-22 13:21:26 +05:30
Simon Larsen
a3ec71c1d2 Merge pull request #1114 from OneUptime/snyk-upgrade-ac957e29df49a77fa019e606429af165
[Snyk] Upgrade moment-timezone from 0.5.43 to 0.5.44
2024-01-22 11:09:29 +05:30
snyk-bot
38843561e4 fix: upgrade moment-timezone from 0.5.43 to 0.5.44
Snyk has created this PR to upgrade moment-timezone from 0.5.43 to 0.5.44.

See this package in npm:
https://www.npmjs.com/package/moment-timezone

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-01-19 17:10:27 +00:00
snyk-bot
5e9ef8168f fix: upgrade moment from 2.29.4 to 2.30.1
Snyk has created this PR to upgrade moment from 2.29.4 to 2.30.1.

See this package in npm:
https://www.npmjs.com/package/moment

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-01-17 23:11:07 +00:00
snyk-bot
dd88069681 fix: upgrade sass-loader from 13.3.2 to 13.3.3
Snyk has created this PR to upgrade sass-loader from 13.3.2 to 13.3.3.

See this package in npm:
https://www.npmjs.com/package/sass-loader

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-16 17:01:08 +00:00
Simon Larsen
074e0a54ba Merge pull request #1110 from OneUptime/snyk-upgrade-94dc46a22d7501696279d1fed1709a7b
[Snyk] Upgrade react-router from 6.21.0 to 6.21.1
2024-01-15 20:26:47 +05:30
Simon Larsen
4ff97c2d2e Add logging for certificate order process 2024-01-13 01:11:36 +05:30
snyk-bot
0c3c253bb7 fix: upgrade react-router from 6.21.0 to 6.21.1
Snyk has created this PR to upgrade react-router from 6.21.0 to 6.21.1.

See this package in npm:
https://www.npmjs.com/package/react-router

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-12 16:56:08 +00:00
Simon Larsen
8772071aa0 Refactor database property classes to handle string values in toDatabase method 2024-01-12 10:51:16 +05:30
Simon Larsen
9848af4a08 Fix email value conversion in Email class 2024-01-12 09:57:20 +05:30
snyk-bot
8e72363eae fix: upgrade react-router-dom from 6.20.1 to 6.21.1
Snyk has created this PR to upgrade react-router-dom from 6.20.1 to 6.21.1.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-11 17:07:36 +00:00
Simon Larsen
28d7b698fa Add FeatureSet import and type annotation 2024-01-11 19:25:07 +05:30
Simon Larsen
f7cc8d2343 Update proxy_pass in Nginx configuration
Delete unused files and dependencies
Update API hostname in WorkflowService
Update API hostname in AnalyticsDatabaseService
2024-01-11 19:16:11 +05:30
Simon Larsen
c7f51cdade Fix async initialization of Workers and remove unused workflow service 2024-01-11 19:10:00 +05:30
Simon Larsen
29bbcbe6f3 Update .gitignore and nodemon.json
This commit updates the .gitignore file to include the /.greenlockrc file and removes the trailing newline in the .gitignore file. It also adds an ignore rule for the greenlock.d/ directory in the nodemon.json file.
2024-01-11 19:05:18 +05:30
Simon Larsen
241391e27e Update APP_NAME in Index.ts to 'api/workers' 2024-01-11 17:49:04 +05:30
Simon Larsen
e979729d38 Refactor WorkersFeatureSet in Index.ts 2024-01-11 17:47:41 +05:30
Simon Larsen
225d00e4c2 Update proxy_pass URL in Nginx configuration 2024-01-11 17:47:17 +05:30
Simon Larsen
3ea66f64b0 Update file paths and hostnames 2024-01-11 17:45:54 +05:30
Simon Larsen
7bf8b1b189 Add volume for certs in app.yaml and remove workers.yaml 2024-01-11 16:30:44 +05:30
Simon Larsen
4dc06ad879 Add Workers initialization in App/Index.ts 2024-01-11 16:25:58 +05:30
Simon Larsen
bfe7497c52 Remove unnecessary files and code 2024-01-11 16:20:57 +05:30
Simon Larsen
6f85d4c647 Add greenlock dependency 2024-01-11 16:19:55 +05:30
Simon Larsen
44079f3d00 Merge pull request #1105 from OneUptime/snyk-upgrade-7607830943e540dea4850c6e40325010
[Snyk] Upgrade reflect-metadata from 0.1.14 to 0.2.1
2024-01-11 13:32:12 +05:30
Simon Larsen
f3323b2803 Merge pull request #1106 from OneUptime/snyk-upgrade-77b2ca8717b067a5a2d92b1e1a0fcaa1
[Snyk] Upgrade react-router-dom from 6.20.1 to 6.21.0
2024-01-11 13:32:01 +05:30
Simon Larsen
ed51fd0a23 Merge pull request #1107 from OneUptime/snyk-upgrade-574cde23974e10b3091cb53ddaf0d0b6
[Snyk] Upgrade react-error-boundary from 4.0.11 to 4.0.12
2024-01-11 13:31:47 +05:30
Simon Larsen
1cf3576cbb Merge pull request #1108 from OneUptime/snyk-upgrade-38e32730cfeecebdc5f404f3fd6edea9
[Snyk] Upgrade react-router from 6.20.1 to 6.21.0
2024-01-11 13:31:36 +05:30
snyk-bot
2095cfd1d6 fix: upgrade react-router from 6.20.1 to 6.21.0
Snyk has created this PR to upgrade react-router from 6.20.1 to 6.21.0.

See this package in npm:
https://www.npmjs.com/package/react-router

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/8ca4ee75-8bc5-43a1-a3bc-244ceebf1437?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-10 23:58:42 +00:00
snyk-bot
bc715a9d6c fix: upgrade react-error-boundary from 4.0.11 to 4.0.12
Snyk has created this PR to upgrade react-error-boundary from 4.0.11 to 4.0.12.

See this package in npm:
https://www.npmjs.com/package/react-error-boundary

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-01-10 19:25:21 +00:00
snyk-bot
50e6e6da79 fix: upgrade react-router-dom from 6.20.1 to 6.21.0
Snyk has created this PR to upgrade react-router-dom from 6.20.1 to 6.21.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-10 16:41:10 +00:00
snyk-bot
6540da7daa fix: upgrade reflect-metadata from 0.1.14 to 0.2.1
Snyk has created this PR to upgrade reflect-metadata from 0.1.14 to 0.2.1.

See this package in npm:
https://www.npmjs.com/package/reflect-metadata

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-01-10 15:47:38 +00:00
snyk-bot
ad56e6f67f fix: upgrade posthog-js from 1.94.4 to 1.96.1
Snyk has created this PR to upgrade posthog-js from 1.94.4 to 1.96.1.

See this package in npm:
https://www.npmjs.com/package/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-01-10 15:47:34 +00:00
Simon Larsen
1cde5428bd Merge branch 'snyk-upgrade-ad60e4244a925158d31eb2e9ce555064' 2024-01-10 17:17:24 +05:30
Simon Larsen
422fe5c98a Merge branch 'master' into snyk-upgrade-ad60e4244a925158d31eb2e9ce555064 2024-01-10 17:16:25 +05:30
Simon Larsen
621f944ae3 Merge pull request #1103 from OneUptime/release
Release
2024-01-10 17:04:27 +05:30
Simon Larsen
57032ab6c0 Merge branch 'master' into release 2024-01-10 16:57:34 +05:30
Simon Larsen
8099eb7999 Merge pull request #1089 from OneUptime/snyk-fix-ef8b7d92517d3814af329593def076b9
[Snyk] Security upgrade typeorm from 0.3.17 to 0.3.18
2024-01-10 16:45:22 +05:30
Simon Larsen
8efa823b45 Merge pull request #1090 from OneUptime/snyk-fix-438d412e065c29886867b4c06fdf7406
[Snyk] Security upgrade typeorm from 0.3.17 to 0.3.18
2024-01-10 16:45:15 +05:30
Simon Larsen
6d74c12f7c Merge pull request #1091 from OneUptime/snyk-fix-a87d49090f6bd9edeab990f73c4641f6
[Snyk] Security upgrade typeorm from 0.3.17 to 0.3.18
2024-01-10 16:45:01 +05:30
Simon Larsen
7183cb25b9 Merge pull request #1093 from OneUptime/snyk-upgrade-2198ecc436e1250ea2ae48cc5035d344
[Snyk] Upgrade @elastic/elasticsearch from 8.10.0 to 8.11.0
2024-01-10 16:44:32 +05:30
Simon Larsen
263d197a7d Merge pull request #1094 from OneUptime/snyk-fix-417283f18acd7f5a7e7e5fbf14d5acb2
[Snyk] Security upgrade typeorm from 0.3.17 to 0.3.18
2024-01-09 22:26:50 +05:30
Simon Larsen
c2e91ac646 Merge pull request #1095 from OneUptime/snyk-fix-069081e2aa6ff87db4d38e978eb81f7d
[Snyk] Security upgrade axios from 1.6.3 to 1.6.4
2024-01-09 15:25:14 +05:30
Simon Larsen
a493ae5101 Merge pull request #1096 from OneUptime/snyk-fix-24d3c11e4fa067917d528af52fba892c
[Snyk] Security upgrade axios from 1.6.3 to 1.6.4
2024-01-09 15:25:05 +05:30
Simon Larsen
b7f87d336a Merge pull request #1097 from OneUptime/snyk-fix-4642a73b81f2fb7e18c8188e8ee8d999
[Snyk] Security upgrade axios from 1.6.3 to 1.6.4
2024-01-09 15:25:00 +05:30
Simon Larsen
6d3fba6eb0 Merge pull request #1098 from OneUptime/snyk-fix-f127107d1c3f91a14c2301e128fecf0e
[Snyk] Security upgrade axios from 1.6.3 to 1.6.4
2024-01-09 15:24:52 +05:30
snyk-bot
c3244f885e 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-AXIOS-6144788
2024-01-05 20:14:02 +00:00
snyk-bot
acd85183d4 fix: Probe/package.json & Probe/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6144788
2024-01-05 17:05:37 +00:00
snyk-bot
0e13f40ce6 fix: Workers/package.json & Workers/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6144788
2024-01-05 16:41:20 +00:00
snyk-bot
9a85e8f6a7 fix: CommonServer/package.json & CommonServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6144788
2024-01-05 16:29:05 +00:00
Simon Larsen
8bb72887bb fix default_server 2024-01-05 12:03:59 +05:30
Simon Larsen
095aa484c6 Update LIMIT_PER_PROJECT constant value 2024-01-05 01:18:40 +05:30
Simon Larsen
38e810a461 Merge branch 'release' 2024-01-04 18:56:57 +05:30
Simon Larsen
39bb2f4379 Update LIMIT_PER_PROJECT to LIMIT_MAX in MonitorView component 2024-01-04 18:55:38 +05:30
Simon Larsen
381e2bb603 Merge branch 'release' 2024-01-04 14:31:32 +05:30
Simon Larsen
49bf2b5e41 Refactor conditional statement in StatusPageAPI.ts 2024-01-04 14:31:16 +05:30
Simon Larsen
cebbdcfc68 Add showUptimePercent to monitorsOnStatusPageForTimeline 2024-01-04 14:30:15 +05:30
snyk-bot
047191ee19 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-INFLIGHT-6095116
2024-01-04 02:53:42 +00:00
snyk-bot
7d5a70e305 fix: upgrade @elastic/elasticsearch from 8.10.0 to 8.11.0
Snyk has created this PR to upgrade @elastic/elasticsearch from 8.10.0 to 8.11.0.

See this package in npm:
https://www.npmjs.com/package/@elastic/elasticsearch

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-04 01:11:43 +00:00
snyk-bot
4b7c33a038 fix: upgrade @clickhouse/client from 0.2.6 to 0.2.7
Snyk has created this PR to upgrade @clickhouse/client from 0.2.6 to 0.2.7.

See this package in npm:
https://www.npmjs.com/package/@clickhouse/client

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-04 01:11:38 +00:00
snyk-bot
3116f0bfde fix: CommonServer/package.json & CommonServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
2024-01-04 01:11:24 +00:00
snyk-bot
545e6028b2 fix: Model/package.json & Model/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
2024-01-03 20:29:05 +00:00
snyk-bot
fa266d282e fix: package.json & package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
2024-01-03 17:06:22 +00:00
Simon Larsen
09096f7653 Fix typo in breadcrumb route method 2024-01-03 14:44:05 +05:30
Simon Larsen
c39146d59e Update BILLING_ENABLED to use environment variable 2024-01-03 14:42:05 +05:30
Simon Larsen
3e728139a6 Merge pull request #1067 from soknaly/perf/improve-flashy-loading
perf: improve flashy loading while lazy loading
2024-01-03 14:38:33 +05:30
Sokna Ly
f2d47e1a60 perf: improve flashy loading for user settings page 2024-01-02 22:28:00 +07:00
Sokna Ly
9169155aef perf: improve flashy loading monitor group pages 2024-01-02 22:16:13 +07:00
Sokna Ly
a5d08f685f perf: improve flashy loading for settings pages 2024-01-02 22:04:40 +07:00
Sokna Ly
92d25fe0f4 perf: improve flashy loading for telemetry pages 2024-01-02 21:02:32 +07:00
Sokna Ly
6fd3728dfa Merge branch 'master' into perf/improve-flashy-loading 2024-01-02 20:43:51 +07:00
Simon Larsen
6095503855 Merge pull request #1088 from umar23faiz/master
Made description optional
2024-01-02 10:57:21 +00:00
umar23faiz
550ccac2b9 Made description optional 2024-01-02 11:13:51 +05:30
Simon Larsen
82a4c48767 Merge pull request #1087 from soknaly/fix/update-on-call-duty-breadcrumbs
fix: update on-call duty wrong breadcrumbs
2024-01-01 08:05:28 +00:00
Sokna Ly
9a74a35369 perf: improve flashy loading for on-call duty pages 2024-01-01 15:01:47 +07:00
Sokna Ly
52cebec954 fix: update on call duty wrong breadcrumbs 2024-01-01 14:17:45 +07:00
Sokna Ly
81ff3e73b0 Merge branch 'master' into perf/improve-flashy-loading 2024-01-01 13:28:17 +07:00
Simon Larsen
b13e927f19 Refactor LogsFilters component 2023-12-31 16:42:11 +00:00
Simon Larsen
daed8e96de Fix isSqlQuery state initialization 2023-12-31 16:40:40 +00:00
Simon Larsen
d6d674510d Comment out OTLP exporter configuration 2023-12-31 15:11:37 +00:00
Simon Larsen
8b8caed4ac Fix OTLP exporter configuration 2023-12-31 15:09:29 +00:00
Simon Larsen
1b8a5f8ddb Fix import statement for AnalyticsTableManagement 2023-12-31 13:47:55 +00:00
Simon Larsen
7a4ffd9f10 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-31 12:08:39 +00:00
Simon Larsen
48c3a00d71 Update timeout for pod readiness check in index.sh 2023-12-31 12:08:36 +00:00
Simon Larsen
0cb5835d6b Merge pull request #1085 from soknaly/fix/update-workflow-wrong-breadcrumbs
fix: update wrong workflow breadcrumbs
2023-12-31 09:52:23 +00:00
Simon Larsen
6d61214fb8 Merge pull request #1083 from OneUptime/snyk-upgrade-80f5fd778bb7b82fe1a07ec89b8fd973
[Snyk] Upgrade ts-node from 10.9.1 to 10.9.2
2023-12-31 09:52:06 +00:00
Simon Larsen
3d5fa6286e Merge pull request #1084 from soknaly/fix/wrong-status-page-html-css-breadcrumb
fix: update status page html css page breadcrump
2023-12-31 09:51:57 +00:00
Sokna Ly
8f1630b72e fix: update workflow wrong breadcrumbs 2023-12-31 14:05:46 +07:00
Sokna Ly
363a989a2a perf: improve flashy loading for workflows pages 2023-12-31 13:51:16 +07:00
Sokna Ly
7740fe301b perf: improve flashy loading for status pages 2023-12-31 12:43:01 +07:00
Sokna Ly
06ec8ab315 fix: update status page html css page breadcrump 2023-12-31 11:53:16 +07:00
Simon Larsen
0225c64058 Remove RealTimeService and ALERT_PORT 2023-12-30 23:11:54 +00:00
Simon Larsen
47491eff12 Update port configurations for OpenTelemetry collector 2023-12-30 23:10:18 +00:00
Simon Larsen
af5fd47fdd Update OpenTelemetry collector endpoint in README.md 2023-12-30 23:04:32 +00:00
Simon Larsen
9d431ac170 Update Nginx listen port to include HTTP/2 support 2023-12-30 22:56:31 +00:00
Simon Larsen
2c8e044057 Update API endpoints to use "/otlp" instead of "/otel" 2023-12-30 22:55:14 +00:00
Simon Larsen
3bfa08e84d Update helm test command 2023-12-30 22:50:27 +00:00
Simon Larsen
bf2f9d800c Update OpenTelemetry endpoints and add support for custom collector endpoint 2023-12-30 22:45:29 +00:00
Simon Larsen
d433a64fa1 Update OTLP Exporter configuration 2023-12-30 22:41:57 +00:00
Simon Larsen
a6d1b29770 Update OpenTelemetry exporter configuration 2023-12-30 22:08:37 +00:00
Simon Larsen
a27c94395e Refactor otel-collector environment variable in Helm chart and OTelCollector config
Update environment variables in docker-compose.base.yml
2023-12-30 21:51:44 +00:00
Simon Larsen
1cd94a39bc Update wait command in index.sh 2023-12-30 21:40:00 +00:00
Simon Larsen
e340e56483 Add OneUptime installation and get pods in test script 2023-12-30 18:30:54 +00:00
snyk-bot
ef06accc7d fix: upgrade ts-node from 10.9.1 to 10.9.2
Snyk has created this PR to upgrade ts-node from 10.9.1 to 10.9.2.

See this package in npm:
https://www.npmjs.com/package/ts-node

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
2023-12-30 18:30:46 +00:00
Simon Larsen
52ea17cbe3 Update Helm commands to use microk8s 2023-12-30 18:23:24 +00:00
Simon Larsen
a1f79d4972 Add commands to check cluster status and storage classes 2023-12-30 18:17:25 +00:00
Simon Larsen
98418a860b Refactor function to improve performance 2023-12-30 18:16:09 +00:00
Simon Larsen
2cc522c3a1 Delete test-helm-chart.yaml and add test-helm-chart job 2023-12-30 18:02:43 +00:00
Simon Larsen
8ac394c1e2 Add aliases and source bash_aliases file 2023-12-30 17:51:39 +00:00
Simon Larsen
ad8ce09fe5 Merge pull request #1081 from OneUptime/snyk-upgrade-d7b58517b75c76bf759cdda4461ca130
[Snyk] Upgrade ts-node from 10.9.1 to 10.9.2
2023-12-30 17:47:35 +00:00
Simon Larsen
401a2441c2 Fix environment variable assignment in app.yaml 2023-12-30 17:46:09 +00:00
Sokna Ly
c092ceedd2 Merge branch 'master' into perf/improve-flashy-loading 2023-12-31 00:45:32 +07:00
Sokna Ly
9310c0c681 perf: improve flashy loading for scheduled maintenace pages 2023-12-31 00:42:51 +07:00
Simon Larsen
ae71d925d6 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-30 17:41:16 +00:00
Simon Larsen
44e3d415df Update index.sh script in HelmChart/Tests
This commit updates the index.sh script in the HelmChart/Tests directory. The changes include removing the command to add the current user to the microk8s group and updating the aliases for kubectl and helm.
2023-12-30 17:41:14 +00:00
Simon Larsen
e9511aedb2 Merge pull request #1082 from soknaly/fix/schedule-ongoing-error
fix: schedule ongoing error
2023-12-30 17:39:39 +00:00
Sokna Ly
1a3f034185 fix: schedule ongoing error 2023-12-30 23:39:05 +07:00
Simon Larsen
b8decc8924 Update otel-collector port in Helm chart 2023-12-30 14:33:55 +00:00
Simon Larsen
f5803d34ff Fix bug in login functionality 2023-12-30 14:22:47 +00:00
Simon Larsen
8d35f5eb2d Add Helm Chart test workflow 2023-12-30 14:19:49 +00:00
Simon Larsen
d8d4acc100 Update OpenTelemetry exporter configuration 2023-12-30 14:07:30 +00:00
Simon Larsen
2d2f2b0521 Fix totalCostInUSD calculation and update Otel Collector port 2023-12-30 13:32:41 +00:00
Simon Larsen
018d3b7fcd Update usageCount and totalCostInUSD to use Decimal type 2023-12-30 13:22:57 +00:00
Simon Larsen
03a503b080 Refactor OpenTelemetry exporter configuration 2023-12-30 12:29:35 +00:00
Simon Larsen
3fe3bc06fa Update OpenTelemetry Collector configuration 2023-12-30 12:17:51 +00:00
Simon Larsen
6c2ae8dec0 Update OTEL_COLLECTOR_HOSTNAME variable name 2023-12-30 12:12:24 +00:00
Simon Larsen
7492b178f2 Add Book icon and update Image component props 2023-12-30 11:42:32 +00:00
Simon Larsen
b3e02b3dac Delete Logs component and add TelemetryServicesViewDocumentation component 2023-12-30 10:56:47 +00:00
Simon Larsen
c65a38f59c Add Reliability Autopilot feature 2023-12-30 09:21:27 +00:00
Simon Larsen
68a24675c6 Refactor static file serving in /docs route 2023-12-30 09:06:42 +00:00
Sokna Ly
e8e8e5bf80 perf: improve flashy loading for incident pages 2023-12-30 15:27:56 +07:00
Sokna Ly
e9b1eb9497 Merge branch 'master' into perf/improve-flashy-loading 2023-12-30 14:11:28 +07:00
Simon Larsen
335caa9fdb Update logo image path in README.md 2023-12-29 22:14:33 +00:00
Simon Larsen
fcfe03e9ca Update logo image path 2023-12-29 22:11:57 +00:00
Simon Larsen
3111e78eeb Update function to handle edge cases
This commit updates the function to handle edge cases, as shown in the git diff.
2023-12-29 21:27:05 +00:00
Simon Larsen
78029c9c44 Remove Telemetry documentation 2023-12-29 20:54:30 +00:00
Simon Larsen
11dd6cf22c Update OneUptime collector endpoint URL 2023-12-29 20:53:30 +00:00
Simon Larsen
0e4f4bd7b0 Update telemetry configuration 2023-12-29 20:52:53 +00:00
Simon Larsen
7fc3260888 Update telemetry exporter endpoint 2023-12-29 20:51:51 +00:00
Simon Larsen
c3c204a807 Delete telemetry logs and images 2023-12-29 20:51:12 +00:00
Simon Larsen
43fb1e5278 Update code formatting and fix minor bugs 2023-12-29 20:49:20 +00:00
snyk-bot
789b4edafb fix: upgrade ts-node from 10.9.1 to 10.9.2
Snyk has created this PR to upgrade ts-node from 10.9.1 to 10.9.2.

See this package in npm:
https://www.npmjs.com/package/ts-node

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f8557d79-3b3d-4201-8e2b-598120aedb5c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-29 15:36:48 +00:00
Simon Larsen
107917e688 Update icon URLs in HelmChart/Public/index.yaml and HelmChart/Public/oneuptime/Chart.yaml 2023-12-29 15:34:07 +00:00
Simon Larsen
04dcb80124 Refactor endpoint status checks in status-check.sh script 2023-12-29 14:06:46 +00:00
Simon Larsen
4b97eaa785 Fix formatting of editButtonText in DataRentention.tsx 2023-12-29 13:54:48 +00:00
Simon Larsen
e375346cd0 Update API route from DashboardApiRoute to AppApiRoute 2023-12-29 13:50:17 +00:00
Simon Larsen
b43a3736db Update port value for dashboardApi 2023-12-29 13:49:03 +00:00
Simon Larsen
2aaf43cbfe Update text in nav and status-page views 2023-12-29 13:47:30 +00:00
Simon Larsen
ab4a29999d Update logs-management.ejs to reflect changes in Incident Management description 2023-12-29 13:37:45 +00:00
Simon Larsen
446c436913 Update images and add edit button for data retention 2023-12-29 13:31:46 +00:00
Simon Larsen
99d3ea9363 Update test script and remove unnecessary comments 2023-12-29 13:18:14 +00:00
Simon Larsen
ea73ca0651 Update text and formatting in logs-management.ejs 2023-12-29 13:13:12 +00:00
Simon Larsen
a3a0d8a7bb Delete test.home.yaml workflow file 2023-12-29 12:49:44 +00:00
Simon Larsen
7123427656 Add Jest type definitions 2023-12-29 12:49:18 +00:00
Simon Larsen
231dbf43b8 Refactor API reference routes and remove unused code 2023-12-29 12:03:31 +00:00
Simon Larsen
3650c8bf4b Refactor UI layout in Home views 2023-12-29 11:57:37 +00:00
Simon Larsen
0fa4f82369 Update text size and image in home and monitoring views 2023-12-29 11:52:06 +00:00
Simon Larsen
0387df9e2b Remove dark logo roll and adjust spacing in index.ejs 2023-12-29 11:37:59 +00:00
Simon Larsen
52c1da7983 Update logging messages in Program.cs 2023-12-29 11:24:43 +00:00
Simon Larsen
dc970eda5e Update CodeExamplesPath in Pagination and Model files 2023-12-28 21:36:59 +00:00
Simon Larsen
1462d8d6bc Add CodeExamplesPath to Config.ts 2023-12-28 20:09:59 +00:00
Simon Larsen
698f41b7ec Delete unused images and files 2023-12-28 20:05:03 +00:00
Simon Larsen
422687aceb Add ViewsPath import to Pagination and Model files 2023-12-28 19:59:28 +00:00
Simon Larsen
104fa3809a Add ViewsPath import to PageNotFound.ts 2023-12-28 19:57:41 +00:00
Simon Larsen
7cf592a4d7 Update view engine configuration and file paths 2023-12-28 19:57:21 +00:00
Simon Larsen
7366e92d42 Update Dockerfile paths for App 2023-12-28 19:30:58 +00:00
Simon Larsen
a85bf8b228 Refactor API class and remove unused variables
Update _helpers.tpl and remove SERVER_HOME_HOSTNAME variable

Remove SERVER_HOME_HOSTNAME from docker-compose.base.yml
2023-12-28 19:30:18 +00:00
Simon Larsen
ed595f714f Remove unused code and ports 2023-12-28 19:27:47 +00:00
Simon Larsen
a4e0d1b42f Remove api-reference and home templates 2023-12-28 16:59:01 +00:00
Simon Larsen
40cac6e629 Update APP_URL to APP_API_URL 2023-12-28 16:58:38 +00:00
Simon Larsen
456516c7f2 Update server and API hostnames and ports 2023-12-28 16:56:05 +00:00
Simon Larsen
4d2afa7cf4 Add new endpoint status checks 2023-12-28 16:51:21 +00:00
Simon Larsen
2e8ee1d51b Remove unused launch configurations and update port values 2023-12-28 16:49:47 +00:00
Simon Larsen
d11a5e1d1e Update package name and hostnames 2023-12-28 15:54:27 +00:00
Simon Larsen
c4ba05990a Remove unnecessary files and configurations 2023-12-28 15:51:47 +00:00
Simon Larsen
539127ff33 Update workflows to remove unused steps 2023-12-28 15:51:33 +00:00
Simon Larsen
ed1b77aa8d Delete unused files and images 2023-12-28 15:48:12 +00:00
Simon Larsen
684ce2f068 Delete unused files and images 2023-12-28 15:47:22 +00:00
Simon Larsen
486d4b1075 Fix formatting in logs-management.ejs file 2023-12-28 15:38:40 +00:00
Simon Larsen
2613e4092d Update text and styling in status-page, monitoring, workflows, incident-management, and on-call views 2023-12-28 15:35:58 +00:00
Simon Larsen
f585eb437b Add logs management route and update product tabs 2023-12-28 15:22:43 +00:00
Simon Larsen
3dc7065265 Refactor variable names for clarity and consistency 2023-12-28 14:16:35 +00:00
Simon Larsen
6527120a05 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-28 14:09:39 +00:00
Simon Larsen
70e12ec917 Update licensing information and logo images 2023-12-28 14:06:59 +00:00
Simon Larsen
d0c089dc82 Merge pull request #1077 from OneUptime/snyk-fix-c7b84a4a4bf64f781e260d3b3c4389ae
[Snyk] Security upgrade axios from 1.6.2 to 1.6.3
2023-12-27 19:53:48 +00:00
Simon Larsen
1eadd1e0d9 Merge pull request #1075 from OneUptime/snyk-fix-c9475d2aa1eb73be5cccf9815aa6b7c3
[Snyk] Security upgrade axios from 1.6.2 to 1.6.3
2023-12-27 19:53:38 +00:00
Simon Larsen
47ef14d9a6 Merge pull request #1076 from OneUptime/snyk-fix-4ca20fca35b34f332f8b3658998fa23a
[Snyk] Security upgrade axios from 1.6.2 to 1.6.3
2023-12-27 19:53:28 +00:00
Simon Larsen
cd83580436 Merge pull request #1078 from OneUptime/snyk-fix-6d11136b4f2ce7d2d2d4881467d6b4a4
[Snyk] Security upgrade axios from 1.6.2 to 1.6.3
2023-12-27 19:53:22 +00:00
snyk-bot
f929c52025 fix: CommonServer/package.json & CommonServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6124857
2023-12-27 19:49:14 +00:00
Simon Larsen
d3b00243ac Refactor SMS and Call services 2023-12-27 19:14:39 +00:00
Simon Larsen
7a537cedd4 Refactor SMS and Call Services 2023-12-27 19:08:45 +00:00
Simon Larsen
aa5187f0e4 Fix TwilioConfig undefined error in Call and SMS APIs 2023-12-27 18:55:23 +00:00
Simon Larsen
9538dc81d7 Update Twilio configuration and add phone number field to call and SMS logs 2023-12-27 18:47:49 +00:00
Simon Larsen
c38975c27d Fix Twilio configuration in code 2023-12-27 18:34:04 +00:00
snyk-bot
9756f6ba87 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-AXIOS-6124857
2023-12-27 18:11:02 +00:00
snyk-bot
30fe3c2ce4 fix: Workers/package.json & Workers/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6124857
2023-12-27 16:12:54 +00:00
Simon Larsen
1a59c381cb Add projectId to API endpoints for testing 2023-12-27 14:51:52 +00:00
Simon Larsen
01221422e7 Update CallSMSConfigTable, CustomSMTPView, and SideMenu
Description:
- Updated the `submitButtonText` in the `CallSMSConfigTable` component to 'Close'.
- Renamed the `SETTINGS_CUSTOM_SMTP` route in `PageMap` to `SETTINGS_NOTIFICATION_SETTINGS`.
- Removed the `SideMenuItem` for 'Custom SMTP' in the `DashboardSideMenu` component.

Affected Files:
- `Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx`
- `Dashboard/src/Components/CustomSMTP/CustomSMTPView.tsx`
- `Dashboard/src/Pages/Settings/SideMenu.tsx`
- `Dashboard/src/Utils/PageMap.ts`
- `Dashboard/src/Utils/RouteMap.ts
2023-12-27 14:50:26 +00:00
Simon Larsen
507a1c3858 Refactor Twilio configuration in SMS service 2023-12-27 14:44:47 +00:00
Simon Larsen
f9b04a8afd Add callSmsConfig to SMS service 2023-12-27 14:39:05 +00:00
Simon Larsen
a625375605 Add TwilioConfig to CallService and SmsService 2023-12-27 14:34:13 +00:00
Simon Larsen
06759a5702 Refactor code to improve performance and readability 2023-12-27 14:31:43 +00:00
snyk-bot
96f1e72e39 fix: Probe/package.json & Probe/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6124857
2023-12-27 14:25:27 +00:00
Simon Larsen
5499e499a6 Fix SMS and CallService bugs 2023-12-27 14:02:43 +00:00
Simon Larsen
4a00ed114c Refactor file API routing 2023-12-27 13:40:53 +00:00
Simon Larsen
85a906c59b Refactor SubscriberSettings component 2023-12-27 13:28:12 +00:00
Simon Larsen
1f8c9807f5 Add Twilio Config for SMS in Subscriber Settings 2023-12-27 13:25:44 +00:00
Simon Larsen
71400935da Remove unnecessary blank lines in StatusPage.ts 2023-12-27 13:15:27 +00:00
Simon Larsen
55a205b381 Fix import and add new columns to StatusPage model 2023-12-27 13:13:26 +00:00
Simon Larsen
1ba2bd77e6 Refactor CallSMSConfigTable component 2023-12-27 13:08:58 +00:00
Simon Larsen
4aaaf4973e Add CustomCallSMSTable component to NotificationSettings 2023-12-27 13:07:26 +00:00
Simon Larsen
a64f992176 Fix formatting and naming conventions in code 2023-12-27 12:44:53 +00:00
Simon Larsen
c6ca8579c1 Add UsageBillingService and ProjectCallSMSConfigService to services 2023-12-27 12:30:03 +00:00
Simon Larsen
3fd6f522cc Remove unnecessary blank lines and import TwilioConfig 2023-12-27 12:22:45 +00:00
Simon Larsen
1af9e36593 Add permissions for Call and SMS configuration 2023-12-27 12:16:24 +00:00
Simon Larsen
8da9d62825 Remove unnecessary whitespace and fix indentation 2023-12-27 11:36:42 +00:00
Simon Larsen
a965f04036 Remove custom SMTP feature from status page view 2023-12-27 11:32:37 +00:00
Simon Larsen
ca1040fec3 Fix useEffect dependencies and reset service token 2023-12-27 11:29:10 +00:00
Simon Larsen
0b79352309 Add Reload icon and implement Reset API Key functionality 2023-12-27 11:20:43 +00:00
Simon Larsen
a8b5bf5680 Add settings page for telemetry services view 2023-12-27 10:59:31 +00:00
Simon Larsen
13b2236264 Update environment variable in dashboard-api.yaml and docker-compose.base.yml 2023-12-27 10:52:07 +00:00
Simon Larsen
c783db4084 Update InternalSmtpFromName in Config.ts 2023-12-27 10:49:57 +00:00
Simon Larsen
9ac8bded2b Refactor DashboardHeader component to improve readability and maintainability 2023-12-27 10:29:44 +00:00
Simon Larsen
ec0b3d96a2 Update feature descriptions in features-table.ejs 2023-12-26 20:11:20 +00:00
Simon Larsen
c7f1ecd838 Update features table and headings 2023-12-26 19:59:29 +00:00
Simon Larsen
dc2b667691 Add OneUptimeDate import and update updatedAt value in StatementGenerator.test.ts
Update tick icons in features-table.ejs
2023-12-26 19:48:18 +00:00
Simon Larsen
fae7183d84 Update pricing and telemetry sections in pricing.ejs 2023-12-26 19:43:45 +00:00
Simon Larsen
61ed698182 Add support for Date type in CommonModel and Statement 2023-12-26 19:16:34 +00:00
Simon Larsen
a610a21a2a Refactor code formatting and spacing 2023-12-26 18:39:01 +00:00
Simon Larsen
e648393262 Add InBetween type and update Statement and StatementGenerator 2023-12-26 18:37:39 +00:00
Simon Larsen
bbb531867b Add LogSeverity enum and filter options to LogsViewer 2023-12-26 17:43:42 +00:00
Simon Larsen
e6c53378d3 Refactor Statement and StatementGenerator classes 2023-12-26 17:10:13 +00:00
Simon Larsen
36ba8bb848 Update database types in CommonModel and StatementGenerator 2023-12-26 15:26:53 +00:00
Simon Larsen
b5a44f6b31 Refactor code and fix bugs 2023-12-26 15:16:58 +00:00
Simon Larsen
e33999b62b Add Search and NotEqual types to CommonModel and StatementGenerator 2023-12-26 15:10:20 +00:00
Simon Larsen
e7e7f3426d Update imports and add search functionality 2023-12-26 12:59:06 +00:00
Simon Larsen
d822be5203 Update import paths for database types 2023-12-26 12:53:30 +00:00
Simon Larsen
7493f40692 Update import paths for BaseDatabase 2023-12-26 12:47:51 +00:00
Simon Larsen
d1c6a6c79e Update user authentication logic 2023-12-26 11:55:26 +00:00
Simon Larsen
c3f1165eb9 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-26 11:48:19 +00:00
Simon Larsen
206c5023d7 Add import for ProductType from 'Model/Models/UsageBilling' in Helpers.ts 2023-12-26 11:47:13 +00:00
Simon Larsen
0fd7d5f3d1 Merge pull request #1074 from OneUptime/otel
Otel
2023-12-26 11:32:29 +00:00
Simon Larsen
8584726d22 Refactor code formatting and remove unnecessary whitespace 2023-12-26 11:23:18 +00:00
Simon Larsen
ba7a2fb057 Update PostgresConfig and Init files 2023-12-26 11:13:00 +00:00
Simon Larsen
334ac4d623 Add DiskSize class with conversion methods and update UsageHistory component 2023-12-25 20:33:51 +00:00
Simon Larsen
e9dc7bcab9 Add totalCostInUSD to usageBilling select query and calculate totalCostInCents for reporting 2023-12-25 20:10:35 +00:00
Simon Larsen
ec1942af8f Refactor billing unit names and remove debugger statements 2023-12-25 19:51:36 +00:00
Simon Larsen
224eff0d3d Update launch.json and ObjectID.ts, add debugger statement, modify BillingService.test.ts, Statement.ts, and NavBar.tsx, and update OTelIngest.ts 2023-12-25 19:21:04 +00:00
Simon Larsen
937679d544 Update test setup in CommonServer workflow and PostgresConfig 2023-12-25 18:42:48 +00:00
Simon Larsen
0af8d7359b Refactor billing configuration and add database setup in tests 2023-12-25 18:31:23 +00:00
Simon Larsen
e57963cad1 Refactor rendering code in SSO.ts 2023-12-25 15:04:27 +00:00
Simon Larsen
8a0b977a17 Update test command in CommonServer workflow 2023-12-25 14:32:08 +00:00
Simon Larsen
c4f8826084 Commented out unused code in NavBar.tsx 2023-12-25 14:19:34 +00:00
Simon Larsen
c543e2ab90 Update file paths in SSO.ts 2023-12-25 14:10:15 +00:00
Simon Larsen
f41978c16d Refactor file picker overrideRequestUrl parameter 2023-12-25 13:52:52 +00:00
Simon Larsen
1fcc5fc7b5 Refactor notification API routes and file paths 2023-12-25 13:51:37 +00:00
Simon Larsen
1e37f03792 Update API routes for notifications 2023-12-25 13:43:26 +00:00
Simon Larsen
15850380c4 Fix file picker and notification proxy URLs 2023-12-25 13:39:11 +00:00
Simon Larsen
284752631e Remove unnecessary endpoint status checks 2023-12-25 13:30:46 +00:00
Simon Larsen
2d843605c7 Update environment variables in dashboard-api.yaml and docker-compose.base.yml 2023-12-25 13:27:28 +00:00
Simon Larsen
9512d97671 fix fmt 2023-12-25 13:22:16 +00:00
Simon Larsen
5140f92b1a Update dependencies in ActiveMonitoringMeteredPlan.ts and package.json 2023-12-25 13:17:26 +00:00
Simon Larsen
7cda0565ba Update API endpoints in CallService, MailService, and SmsService 2023-12-25 13:12:19 +00:00
Simon Larsen
224824f1f1 Remove notification service and related configurations 2023-12-25 13:09:41 +00:00
Simon Larsen
72589c060e Delete unused files and templates 2023-12-25 13:03:33 +00:00
Simon Larsen
501e78aae1 Merge branch 'logs-final' into remove-servicess 2023-12-25 12:49:05 +00:00
Simon Larsen
62b309c18c Add dependencies for XML parsing and cryptography 2023-12-25 12:46:09 +00:00
Simon Larsen
4359b74f26 Remove unused files and configurations 2023-12-25 12:42:20 +00:00
Simon Larsen
25fd18b958 Add import for Identity feature set 2023-12-25 12:35:36 +00:00
Simon Larsen
5dfe813bc2 Refactor docker-compose files to remove unused services 2023-12-25 12:28:15 +00:00
Simon Larsen
ca56f83f08 Update Nginx configuration for file proxy 2023-12-25 12:24:09 +00:00
Simon Larsen
cef7df73bb Remove unused files and configurations 2023-12-25 12:23:13 +00:00
Simon Larsen
901d9dd80c Add File API endpoint to DashboardAPI 2023-12-25 12:21:13 +00:00
Simon Larsen
09e7e1811d Delete unused files and templates 2023-12-25 12:16:54 +00:00
Simon Larsen
f6df07b002 Delete volumes.yaml file 2023-12-25 11:40:38 +00:00
Simon Larsen
184ad1b2b8 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-24 19:22:58 +00:00
Simon Larsen
82b17ebc8e Fix capitalization in file paths and update helm install commands 2023-12-24 19:22:54 +00:00
Simon Larsen
4d1c557ee6 Add ActiveMonitoring to ProductType enum 2023-12-22 17:42:05 +00:00
Simon Larsen
22d63c3c80 Update metered plan reporting in ReportTelemetryMeteredPlan.ts 2023-12-22 17:20:15 +00:00
Simon Larsen
a865f987f8 Refactor TelemetryMeteredPlan class to use correct spelling for productType 2023-12-22 17:16:52 +00:00
Simon Larsen
fdb64c5cd9 Update import statements and remove unused code 2023-12-22 17:15:14 +00:00
Simon Larsen
e08d2bb8eb Refactor metered plan handling and add new telemetry plan 2023-12-22 17:00:39 +00:00
Simon Larsen
8f8c443a72 Remove unused metered plan active monitoring configuration 2023-12-22 14:34:54 +00:00
Simon Larsen
190df60a3f Add data retention settings and update telemetry service 2023-12-22 14:34:09 +00:00
Simon Larsen
f374459c5a Fix formatting and add missing commas 2023-12-22 12:18:14 +00:00
Simon Larsen
d42d95f28e Add usage history page to settings menu 2023-12-22 12:12:13 +00:00
Simon Larsen
c5f1621ac0 Merge pull request #1070 from OneUptime/dependabot/pip/Llama/transformers-4.36.0
Bump transformers from 4.34.0 to 4.36.0 in /Llama
2023-12-21 22:40:20 +00:00
Simon Larsen
d788332221 Add usage billing functionality and report to Usage Service 2023-12-21 19:59:29 +00:00
Simon Larsen
d17cef4692 Add new jobs for metered plan telemetry 2023-12-21 19:07:48 +00:00
Simon Larsen
fd8eb66146 Fix bug in login functionality
Add validation for user input

Refactor code for better readability

Update error handling in API calls

Optimize database queries for improved performance
2023-12-21 19:06:43 +00:00
Simon Larsen
e6943d38d5 Refactor metered plan reporting in BillingService and MonitorService 2023-12-21 18:54:05 +00:00
Simon Larsen
53c25a4a4f Fix billing service and usage billing model 2023-12-21 18:49:14 +00:00
Simon Larsen
4eff4b91e9 Update metered plans in config.example.env 2023-12-21 17:40:03 +00:00
Simon Larsen
b0cb902fab Delete UsageBillingService.ts and add UsageBillingService to DashboardAPI/Index.ts 2023-12-21 15:06:50 +00:00
Simon Larsen
1af2ed32fc Add UsageBilling and telemetry retention settings 2023-12-21 15:02:57 +00:00
Simon Larsen
f9b0716769 Add reseller service and reseller model to ProjectAPI 2023-12-21 13:11:54 +00:00
Simon Larsen
7509dbb766 Refactor LogsFilters and NavBar components 2023-12-21 12:47:19 +00:00
Simon Larsen
2d4a084aee Fix formatting issues in Project.ts and Header.tsx 2023-12-21 12:05:56 +00:00
Simon Larsen
03b9627da7 Add id attribute to status page logo 2023-12-21 12:03:02 +00:00
Simon Larsen
fba576b248 Add ColumnBillingAccessControl to Project model 2023-12-21 11:29:20 +00:00
dependabot[bot]
80a925d77d Bump transformers from 4.34.0 to 4.36.0 in /Llama
Bumps [transformers](https://github.com/huggingface/transformers) from 4.34.0 to 4.36.0.
- [Release notes](https://github.com/huggingface/transformers/releases)
- [Commits](https://github.com/huggingface/transformers/compare/v4.34.0...v4.36.0)

---
updated-dependencies:
- dependency-name: transformers
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-20 21:14:11 +00:00
Simon Larsen
781c40e7c5 Refactor status page notification code 2023-12-20 16:36:36 +00:00
Simon Larsen
60430eb6f5 Add status page notification functionality 2023-12-20 16:32:23 +00:00
Simon Larsen
f12a793951 Fix UI styling and update field descriptions in FormField and IncidentsTable 2023-12-20 16:15:26 +00:00
Simon Larsen
7d795408ed Fix initial value bug in Category component 2023-12-20 16:11:52 +00:00
Simon Larsen
81c8758630 Update FormField component to include title and description in Modal 2023-12-20 16:05:56 +00:00
Simon Larsen
b925b876de Fix formatting in selectByAccessControlProps in Field.ts 2023-12-20 15:56:28 +00:00
Simon Larsen
815270cfbc Refactor FormField component to use selectByAccessControlProps 2023-12-20 15:54:15 +00:00
Simon Larsen
5d4f8c623a Update function to handle edge cases
This commit updates the function to handle edge cases, ensuring that the code is more robust and handles unexpected scenarios.
2023-12-20 15:46:55 +00:00
Simon Larsen
84a76da280 Fix import statement and formatting in CategoryCheckboxTypes.ts and FormField.tsx 2023-12-20 14:54:00 +00:00
Simon Larsen
c7ae1844c5 Update component props and types 2023-12-20 14:52:31 +00:00
Simon Larsen
8636b5bc69 Refactor getFieldDescription function in FormField.tsx 2023-12-20 14:22:30 +00:00
Simon Larsen
147e104bc4 Update FieldLabel and FormField components 2023-12-20 14:20:53 +00:00
Simon Larsen
52f2c8ad14 Refactor Text.trimLines method to use arrow function with explicit return 2023-12-20 13:30:23 +00:00
Simon Larsen
3c06af91ba Add Text.trimLines() method and use it in SmsService.sendSms() 2023-12-20 13:29:23 +00:00
Simon Larsen
fbcda678f8 Refactor ConfirmModal test code 2023-12-20 13:11:51 +00:00
Simon Larsen
1b019af98d Merge pull request #1069 from Srdeveloper1004/feature/commonui-test
Add new confirm modal test of commonui
2023-12-20 12:52:33 +00:00
Simon Larsen
c8a23df5b6 Refactor code formatting and fix indentation
Update error message for user limit reached in free plan

Remove unused import statement

Fix indentation in Home/Index.ts

Fix indentation and add line breaks in HardDeleteItemsInDatabase.ts
2023-12-20 12:37:55 +00:00
code dev
b4fb4f72b6 Add new confirm modal test of commonui 2023-12-20 13:36:21 +01:00
Simon Larsen
3208e99469 Update pricing and plan names 2023-12-20 12:04:28 +00:00
Simon Larsen
fdff20a2f9 Add user limit check for free plan 2023-12-20 11:54:26 +00:00
Simon Larsen
b483cf1601 Add billing check before performing hard delete 2023-12-20 11:50:14 +00:00
Simon Larsen
21df6c0b7c Add hard delete for items older than 120 days 2023-12-20 11:48:14 +00:00
Simon Larsen
0408bf96db Update hard delete threshold to 3 days 2023-12-20 11:45:05 +00:00
Simon Larsen
8e0b2dd8dd Update CodeEditor configuration 2023-12-19 19:44:30 +00:00
Simon Larsen
667b326c8b Refactor ModelAPI.getItem in SMTP settings page 2023-12-19 17:58:07 +00:00
Simon Larsen
f5342d066c Update update access control to PlanSelect.Scale 2023-12-19 17:50:59 +00:00
Simon Larsen
d67ee57bf0 Add showEvenIfPermissionDoesNotExist property to Field interface 2023-12-19 17:42:54 +00:00
Simon Larsen
9a6d8c9459 Update unsubscribe message and add forceShow to form fields 2023-12-19 17:40:48 +00:00
Simon Larsen
4c71eb7fca Refactor code for better readability and maintainability 2023-12-19 17:25:23 +00:00
Simon Larsen
97f7a6e4ef Add webpack-dev-server for development environment 2023-12-19 17:23:53 +00:00
Simon Larsen
23a79ca158 Refactor code to improve readability and maintainability 2023-12-19 15:56:12 +00:00
Simon Larsen
777adada5a Add allowSubscribersToChooseResources flag to notification logic 2023-12-19 15:52:44 +00:00
Simon Larsen
1887f1d238 Update unsubscribe message in notification templates 2023-12-19 15:40:23 +00:00
Simon Larsen
dcc25fa0c4 Add webpack-cli as a development dependency 2023-12-19 15:30:28 +00:00
Simon Larsen
0c293c8362 Refactor StatusPageAPI.ts to use explicit type for subscriber 2023-12-19 14:45:32 +00:00
Simon Larsen
585b7bc239 Fix formatting issues and remove unnecessary code 2023-12-19 14:41:33 +00:00
Simon Larsen
fc50511b7f Fix monitor retrieval and on-call schedule loading 2023-12-19 14:31:41 +00:00
Simon Larsen
006e398322 Refactor API calls in Settings, EmailSubscribers, TeamView, UserView, ProjectInvitations, and PublicNote components 2023-12-19 14:09:41 +00:00
Simon Larsen
0e442f0134 Refactor API calls and update select options 2023-12-19 13:55:35 +00:00
Simon Larsen
7d01474d0f Refactor API calls in Register and VerifyEmail pages 2023-12-19 13:22:17 +00:00
Simon Larsen
dbce4f90ab Update ModelAPI and related components 2023-12-19 13:20:22 +00:00
Simon Larsen
eccb035bf2 Fix bug in login functionality
Refactor code to improve performance

Update README with new instructions

Add new feature for user authentication

Fix formatting issues in CSS file

Update dependencies to latest versions

Remove unused variables

Add error handling for edge cases

Fix broken links in documentation

Optimize database queries for faster response times
2023-12-19 12:59:03 +00:00
Simon Larsen
fad319016b Disable word-based suggestions in CodeEditor 2023-12-19 12:46:34 +00:00
Simon Larsen
9a09b6562d Fix subscription API endpoints and update subscription form 2023-12-19 12:43:53 +00:00
Simon Larsen
8dc689fd5a Update API URLs in ModelForm component 2023-12-19 12:33:01 +00:00
Simon Larsen
bbeaeb047e Fix required field validation in FormField component 2023-12-19 12:27:49 +00:00
Simon Larsen
576c220b31 Fix formatting issue in UpdateSubscription.tsx 2023-12-19 12:03:09 +00:00
Simon Larsen
59ab24ba36 Refactor unsubscribe URL generation in StatusPageSubscriberService 2023-12-19 11:43:41 +00:00
Simon Larsen
32e72a8817 Update subscription routes and components 2023-12-19 11:34:15 +00:00
Simon Larsen
d03ffc83b2 Add Unsubscribe page and routes 2023-12-18 23:00:31 +00:00
Simon Larsen
c88a59cddb Fix bug in login functionality
Update error handling in API calls

Refactor code for improved readability

Add new feature for user authentication

Optimize database queries for faster performance

Update dependencies to latest versions

Fix formatting issues in code

Add unit tests for new functionality

Remove unused code

Update documentation for new API endpoints
2023-12-18 22:36:28 +00:00
Simon Larsen
c2305da404 Fix bug in login functionality 2023-12-18 22:34:59 +00:00
Simon Larsen
36dcb1597f Fix formatting and remove unnecessary code 2023-12-18 22:32:17 +00:00
Simon Larsen
24f499bcc2 Fix subscription logic and update form field validation 2023-12-18 22:25:05 +00:00
Simon Larsen
6a3f287822 Refactor Checkbox and FormField components 2023-12-18 22:11:09 +00:00
Simon Larsen
37d2d8bedf Fix category and checkbox onChange event handling 2023-12-18 22:01:37 +00:00
Simon Larsen
e51c3c5c56 Update Checkbox and SubscribePage components 2023-12-18 20:00:17 +00:00
Simon Larsen
13ee850a67 Add isSubscribedToAllResources field and update EmailSubscribe component 2023-12-18 17:21:52 +00:00
Simon Larsen
fa586c0667 Add BaseModel import and sanitize initial values in CategoryCheckbox component 2023-12-18 17:18:12 +00:00
Simon Larsen
16a858d2e2 Update StatusPage and EmailSubscribers components 2023-12-18 15:39:59 +00:00
Simon Larsen
51f4f4c23c Fix formatting issues and improve code readability 2023-12-18 15:24:33 +00:00
Simon Larsen
15a81ed14d Add canReadOnRelationQuery property to StatusPageGroup model and import SubscriberUtil in EmailSubscribe component 2023-12-18 15:19:15 +00:00
Simon Larsen
c520d09351 Add validation for status page resources 2023-12-16 21:14:07 +00:00
Simon Larsen
14c6bdb3b4 Refactor EventItem component to use div instead of p tags for event descriptions 2023-12-16 21:01:57 +00:00
Simon Larsen
ec9e6252a1 Add support for subscribers to choose resources 2023-12-16 21:00:23 +00:00
Simon Larsen
8fd03008b7 Add column access control for allowSubscribersToChooseResources and enableSmsSubscribers 2023-12-16 20:49:33 +00:00
Simon Larsen
b1922ea4a9 Refactor Checkbox and HorizontalRule components 2023-12-16 20:43:03 +00:00
Simon Larsen
63fcfbc6f6 Fix typos and add functionality to Checkbox components 2023-12-16 20:38:45 +00:00
Simon Larsen
cf5fceb981 Refactor CategoryCheckbox component and fix Checkbox styling 2023-12-16 19:27:58 +00:00
Simon Larsen
c95f845a5c Add HorizontalRule component and update Category component 2023-12-16 19:18:22 +00:00
Simon Larsen
b42a69b154 Refactor code formatting in Index.tsx and Checkbox.tsx
Fix formatting and add error handling in EmailSubscribe.tsx
2023-12-16 14:01:51 +00:00
Simon Larsen
b0ef3be85e Fix formatting and remove unnecessary code 2023-12-16 14:01:15 +00:00
Simon Larsen
07b72310fc Refactor Overview component 2023-12-16 13:56:48 +00:00
Simon Larsen
3707ee7b9d Update code editor settings and UI labels 2023-12-16 13:36:23 +00:00
Simon Larsen
f5bc142112 Add category checkbox for undefined category
Update ModelForm import in EmailSubscribe.tsx
2023-12-16 13:20:50 +00:00
Simon Larsen
90e01e9fb8 Add allowSubscribersToChooseResources state variable 2023-12-16 13:12:37 +00:00
Simon Larsen
93fc5b68ff Add option to allow subscribers to choose resources 2023-12-16 13:11:06 +00:00
Simon Larsen
54600cf358 Add description for allowing subscribers to choose resources 2023-12-16 13:04:54 +00:00
Simon Larsen
ba90733f72 Add advanced subscriber settings to SubscriberSettings.tsx and StatusPage model 2023-12-16 13:03:23 +00:00
Simon Larsen
acc610e253 Refactor CategoryCheckbox component and add description to CheckboxCategory 2023-12-16 13:00:49 +00:00
Simon Larsen
a4c17c7bf6 Add order property to select query in StatusPageAPI.ts and CategoryCheckboxProps interface 2023-12-16 12:42:10 +00:00
Simon Larsen
5f2479abce Add API endpoint to get status page resources 2023-12-16 12:09:53 +00:00
Simon Larsen
b2042baa04 Add ManyToMany relationship with StatusPageResource 2023-12-16 12:06:50 +00:00
Simon Larsen
cfba3386b7 Add Checkbox and CategoryCheckbox options to FormFieldSchemaType and Field interface 2023-12-16 11:37:37 +00:00
Simon Larsen
06b34c4e9d Refactor CategoryCheckbox component 2023-12-16 11:13:00 +00:00
Simon Larsen
074055aec4 Refactor code for improved performance and readability 2023-12-16 11:05:27 +00:00
Simon Larsen
5ef0b908d8 Update wordBasedSuggestions in CodeEditor.tsx 2023-12-14 19:15:12 +00:00
Simon Larsen
cbc9445b84 Update notification sending in incident and scheduled maintenance jobs 2023-12-14 19:12:32 +00:00
Simon Larsen
eebfb79b06 Fix code formatting and update variable declaration 2023-12-14 16:54:14 +00:00
Simon Larsen
c0ff01e7f6 Update SmsLog and SmsService classes, and SendNotificationToSubscribers job 2023-12-14 16:51:15 +00:00
Simon Larsen
16a65fcb4c Update import statements and add new data migration 2023-12-14 16:23:49 +00:00
Simon Larsen
f62930abb1 Fix formatting issues and enable SMS subscribers 2023-12-14 16:07:09 +00:00
Simon Larsen
379252bddf Add SMS notification feature and update side menu 2023-12-14 16:04:56 +00:00
Simon Larsen
69eed8d7cf Update code editor settings and side menu icons 2023-12-14 15:47:58 +00:00
Simon Larsen
2a37f62a82 Add enableSMSSubscribers flag to NavBar and MasterPage components 2023-12-14 15:26:30 +00:00
Simon Larsen
0fb652abf2 Enable email subscribers instead of subscribers 2023-12-14 15:13:46 +00:00
Sokna Ly
6285d031eb fix: revert type change for editor component (error on my local) 2023-12-13 23:26:14 +07:00
Sokna Ly
1a8e3eb747 perf: improve flashy loading when lazy loading 2023-12-13 23:04:48 +07:00
Nawaz Dhandala
c4f058cbec Merge pull request #1066 from soknaly/fix/update-wrong-breadcrumbs
fix: update monitor wrong breadcrumbs
2023-12-13 15:46:12 +00:00
Sokna Ly
3ca7d83d96 fix: update monitor wrong breadcrumbs 2023-12-13 22:36:15 +07:00
Simon Larsen
3787985d23 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-13 13:53:57 +00:00
Simon Larsen
632ed7b782 Fix retry logic for response times exceeding 10 seconds 2023-12-13 13:53:55 +00:00
Nawaz Dhandala
3ae76dde91 Merge pull request #1065 from OneUptime/snyk-upgrade-432a38389fa3774d65991245b8bf3f20
[Snyk] Upgrade @types/lodash from 4.14.201 to 4.14.202
2023-12-13 13:45:44 +00:00
Simon Larsen
dc6ce43e0d Update fileMock.js path in jest.config.json 2023-12-13 13:43:05 +00:00
Simon Larsen
0ca9c2db9b Update moduleNameMapper in jest.config.json 2023-12-13 13:37:48 +00:00
Simon Larsen
552415713e Update dependencies in jest.config.json and package-lock.json 2023-12-13 13:31:01 +00:00
snyk-bot
f4c7304d38 fix: upgrade @types/lodash from 4.14.201 to 4.14.202
Snyk has created this PR to upgrade @types/lodash from 4.14.201 to 4.14.202.

See this package in npm:
https://www.npmjs.com/package/@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
2023-12-12 18:50:23 +00:00
Simon Larsen
12e90da3a1 Update webpack configurations 2023-12-12 18:09:50 +00:00
Simon Larsen
6db5bea724 Add express dependency to package.json 2023-12-12 17:54:35 +00:00
Simon Larsen
b3ac3771b1 Add dotenv package to package.json files 2023-12-12 17:20:16 +00:00
Simon Larsen
4ca1def4c8 Update webpack-cli installation in Dockerfile.tpl 2023-12-12 16:58:03 +00:00
Simon Larsen
911872ac3c Add webpack-cli installation to Dockerfile.tpl 2023-12-12 16:21:29 +00:00
Simon Larsen
dab7f81073 Add devDependency @types/node to package.json and update playwright.config.ts 2023-12-12 16:13:22 +00:00
Simon Larsen
c0d8155ad7 Update package.json dependencies 2023-12-12 16:07:26 +00:00
Simon Larsen
4e0d7e32b2 Update package.json dependencies and fix wordBasedSuggestions in CodeEditor 2023-12-12 15:59:56 +00:00
Simon Larsen
b527f47837 Fix wordBasedSuggestions value in CodeEditor.tsx and update devDependencies in package.json 2023-12-12 15:22:21 +00:00
Simon Larsen
2b8b818bc7 Update dependencies and package.json files 2023-12-12 15:11:04 +00:00
Simon Larsen
01c3b9e8be Remove unused files and dependencies 2023-12-12 15:03:08 +00:00
Simon Larsen
c991cd859f Update package.json scripts 2023-12-12 14:58:10 +00:00
Simon Larsen
62862a2ace Remove unused devDependencies and fix formatting in package.json files 2023-12-12 14:51:53 +00:00
Simon Larsen
ba5f3e7355 Remove unused dependencies and update package.json 2023-12-12 14:49:37 +00:00
Simon Larsen
18bc817701 Update package.json dependencies 2023-12-12 14:45:18 +00:00
Simon Larsen
bcabf7daad Update package.json files 2023-12-12 14:41:50 +00:00
Simon Larsen
7433ed39bc Remove unused dependencies from package.json 2023-12-12 14:33:25 +00:00
Simon Larsen
48cbd60ebc Update dependencies in package.json 2023-12-12 14:30:01 +00:00
Simon Larsen
4544c1225e Fix dep-check command in package.json 2023-12-12 14:27:51 +00:00
Simon Larsen
77c3b4f329 Fix formatting in package.json files 2023-12-12 14:27:05 +00:00
Simon Larsen
9cbfce967d Add dependency check to npm run compile commands in workflows 2023-12-12 13:49:17 +00:00
Simon Larsen
c84cbe5575 Add dep-check script to package.json files 2023-12-12 13:48:44 +00:00
Simon Larsen
b7965229f1 Remove unused dependency "i" 2023-12-12 13:41:52 +00:00
Simon Larsen
d661b2961c Remove unnecessary npm dependency 2023-12-12 13:40:10 +00:00
Simon Larsen
6c2f1acf39 Merge pull request #1064 from OneUptime/snyk-fix-a860abc8298edff3a5a3c26b62688bb9
[Snyk] Security upgrade npm from 8.19.4 to 10.2.2
2023-12-12 13:38:25 +00:00
snyk-bot
ad53b442a0 fix: CommonUI/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
2023-12-12 13:38:01 +00:00
Simon Larsen
526df139b1 Update Dockerfile and launch configurations 2023-12-11 19:37:18 +00:00
Simon Larsen
c60eaccc90 Merge pull request #1063 from OneUptime/remove-link-shortner
Remove link shortner
2023-12-11 19:32:43 +00:00
Simon Larsen
f2d13ec4ad Refactor API routes and remove LinkShortenerAPI 2023-12-11 19:32:29 +00:00
Simon Larsen
259659133e Remove LinkShortener files and dependencies 2023-12-11 19:07:34 +00:00
Simon Larsen
a35462b3c9 Remove link-shortener service and related configurations 2023-12-11 19:03:04 +00:00
Simon Larsen
19b717019b Update queryText condition in QueryHelper.ts 2023-12-11 18:58:26 +00:00
Simon Larsen
0a688459ee Commented out logging option in PostgresConfig.ts 2023-12-11 18:46:36 +00:00
Simon Larsen
f4ffc4f115 Add replaceAll method to Text class and update component id in Manual.ts 2023-12-11 18:45:22 +00:00
Simon Larsen
4825e57821 Update RouteMap.ts to include API key view route
This commit updates the RouteMap.ts file to include a new route for viewing API keys. The route is added to the SettingsRoutePath dictionary and the RouteMap dictionary. This allows users to navigate to the API key view page.
2023-12-11 16:43:56 +00:00
Simon Larsen
d574be9ab5 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-10 10:12:58 +00:00
Simon Larsen
7a5c04cec4 Merge remote-tracking branch 'origin/snyk-upgrade-03b42086b70cdb33a8fe1c558fff1f61' 2023-12-10 10:12:55 +00:00
Simon Larsen
aee2d10db6 Merge remote-tracking branch 'origin/snyk-upgrade-c8ed9bb51506dd37c942287d5c170911' 2023-12-10 10:11:42 +00:00
Simon Larsen
aec8258939 Merge remote-tracking branch 'origin/snyk-upgrade-96956e3257665a9bb586b4a6fdc7e1ff' 2023-12-10 10:10:43 +00:00
Simon Larsen
38be1286c7 Merge pull request #1060 from soknaly/fix/navitem-active-only-first-route
fix: NavbarItem is active only for the specific route
2023-12-08 17:05:32 +00:00
Sokna Ly
ebab1b2010 fix: remove console for lint 2023-12-08 23:46:27 +07:00
Sokna Ly
6ab771f3ee fix: NavbarItem is active only for specific route 2023-12-08 23:23:27 +07:00
Simon Larsen
e874913d38 Update IS_SERVER variable values in docker-compose.base.yml 2023-12-08 15:06:16 +00:00
Simon Larsen
706f0ebb27 Remove typescript-remove-decorators-transformer package 2023-12-08 14:51:14 +00:00
Simon Larsen
f83df55a9c Add video script to multiple pages 2023-12-08 14:48:03 +00:00
Simon Larsen
e08ff80312 Fix videoId formatting in status-page.ejs 2023-12-08 13:50:03 +00:00
Simon Larsen
ec40c16eed Remove unnecessary heading in pricing-compare.ejs 2023-12-07 20:27:27 +00:00
Simon Larsen
16fe15ac22 Refactor cookie banner code 2023-12-07 19:10:10 +00:00
snyk-bot
507fad9490 fix: upgrade react-router-dom from 6.18.0 to 6.19.0
Snyk has created this PR to upgrade react-router-dom from 6.18.0 to 6.19.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-07 18:31:11 +00:00
Simon Larsen
81fa79ac57 Add banner components to monitor, on-call duty,
on-call duty schedule, status pages, and workflows
pages
2023-12-07 16:52:29 +00:00
Simon Larsen
5078e084a4 Add watch demo video to workflow builder 2023-12-07 16:29:25 +00:00
Simon Larsen
18508e763b Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-07 13:41:57 +00:00
Simon Larsen
27398d4b95 Add watch demo videos to monitoring and on-call
pages
2023-12-07 13:41:42 +00:00
Simon Larsen
e781c6032a Merge pull request #1056 from OneUptime/snyk-upgrade-ad2462895ced76c22eab830dd32b5a69
[Snyk] Upgrade body-parser from 1.20.1 to 1.20.2
2023-12-07 11:19:21 +00:00
Simon Larsen
4f6e89550f Merge pull request #1058 from soknaly/chore/remove-typeorm-decorators-in-bundle
perf: remove typeorm decorators in frontend to reduce bundle size
2023-12-07 09:32:20 +00:00
Simon Larsen
435d0b2df3 Merge pull request #1057 from OneUptime/snyk-upgrade-0506dcd0512d3151753019a6facc3dd5
[Snyk] Upgrade ejs from 3.1.8 to 3.1.9
2023-12-07 09:30:24 +00:00
Sokna Ly
1aa466d3f2 core: remove typeorm decorators in bundle to reduce bundle size 2023-12-07 12:55:00 +07:00
snyk-bot
6852f89827 fix: upgrade ejs from 3.1.8 to 3.1.9
Snyk has created this PR to upgrade ejs from 3.1.8 to 3.1.9.

See this package in npm:
https://www.npmjs.com/package/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5a2fa790-dc76-4e5f-90cc-f4da8ad2caf7?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-06 22:31:05 +00:00
snyk-bot
f20131668e fix: upgrade body-parser from 1.20.1 to 1.20.2
Snyk has created this PR to upgrade body-parser from 1.20.1 to 1.20.2.

See this package in npm:
https://www.npmjs.com/package/body-parser

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5a2fa790-dc76-4e5f-90cc-f4da8ad2caf7?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-06 22:31:01 +00:00
Simon Larsen
bfcc0fa511 Merge pull request #1055 from OneUptime/snyk-upgrade-5fe2f2752e83205b554153ed739f8c33
[Snyk] Upgrade body-parser from 1.20.1 to 1.20.2
2023-12-06 20:28:12 +00:00
Simon Larsen
bf57922bde Merge pull request #1054 from OneUptime/snyk-upgrade-a94823791dcff6266c07be328e63be48
[Snyk] Upgrade ejs from 3.1.8 to 3.1.9
2023-12-06 20:28:03 +00:00
Simon Larsen
b80357d345 Merge pull request #1053 from OneUptime/snyk-fix-2ff6686696365a35f8bd44c5c59bee8a
[Snyk] Security upgrade npm from 8.19.4 to 9.6.3
2023-12-06 20:27:54 +00:00
snyk-bot
5b2bf8b31e fix: upgrade body-parser from 1.20.1 to 1.20.2
Snyk has created this PR to upgrade body-parser from 1.20.1 to 1.20.2.

See this package in npm:
https://www.npmjs.com/package/body-parser

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/102b46c1-e36e-406c-acd1-31c8200a6c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-06 17:56:06 +00:00
snyk-bot
f9b5079458 fix: upgrade ejs from 3.1.8 to 3.1.9
Snyk has created this PR to upgrade ejs from 3.1.8 to 3.1.9.

See this package in npm:
https://www.npmjs.com/package/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/102b46c1-e36e-406c-acd1-31c8200a6c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-06 17:56:02 +00:00
snyk-bot
f366b5cdcc fix: CommonUI/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
2023-12-06 17:52:41 +00:00
Simon Larsen
e9dd4ba84f Add On-Call Rotation feature 2023-12-06 17:14:01 +00:00
Simon Larsen
b4230344c7 Refactor SideOver component 2023-12-06 14:57:49 +00:00
Simon Larsen
74ee0f6224 Fix typo in StatusPage.ts 2023-12-06 14:52:57 +00:00
Simon Larsen
3f2c1ccef4 Remove unused import and update schedule in
ExecutePendingExecutions.ts
2023-12-06 14:48:46 +00:00
Simon Larsen
c869b49e23 Update model references in
OnCallDutyPolicyExecutionLogTimeline and
UserOnCallLog
2023-12-06 14:13:56 +00:00
Simon Larsen
0ce1a58600 Fix whitespace and remove unnecessary lines 2023-12-06 14:04:10 +00:00
Simon Larsen
2f8a436fd0 Add onCallScheduleId to
UserNotificationRuleService and UserOnCallLog
models
2023-12-06 13:55:36 +00:00
Simon Larsen
e6d544fabc Merge pull request #961 from soknaly/refactor/lazy-load-pages
refactor: implement lazy load and separate routes
2023-12-06 12:12:11 +00:00
Simon Larsen
878ab8566e Merge pull request #1045 from OneUptime/snyk-upgrade-c8d138532a8ee40cb2b4b6b2a4ff795c
[Snyk] Upgrade @types/lodash from 4.14.200 to 4.14.201
2023-12-06 11:28:23 +00:00
Simon Larsen
fd98e2e1f3 Merge pull request #1047 from OneUptime/snyk-upgrade-7b95ffd21ffa3b848a5bc0928c37c1a2
[Snyk] Upgrade xml-crypto from 3.0.1 to 3.2.0
2023-12-06 11:28:14 +00:00
Simon Larsen
cffdd4d7c2 Merge pull request #1048 from OneUptime/snyk-upgrade-8a07047bdc86943d6e3a0d408c4f106f
[Snyk] Upgrade ejs from 3.1.8 to 3.1.9
2023-12-06 11:28:10 +00:00
Simon Larsen
503d028677 Merge pull request #1049 from soknaly/chore/typo-for-javascript-code-workflow-document
chore: Update typo in Javascript Code component's document in Workflow
2023-12-06 11:27:50 +00:00
Sokna Ly
a3aaefe843 chore: Update typo in Javascript Code component's document in Workflow 2023-12-06 12:03:54 +07:00
snyk-bot
94d47bc54a fix: upgrade ejs from 3.1.8 to 3.1.9
Snyk has created this PR to upgrade ejs from 3.1.8 to 3.1.9.

See this package in npm:
https://www.npmjs.com/package/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/274dd1b5-2589-4279-bb73-2a2367ad9639?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-05 23:31:03 +00:00
snyk-bot
579d635699 fix: upgrade xml-crypto from 3.0.1 to 3.2.0
Snyk has created this PR to upgrade xml-crypto from 3.0.1 to 3.2.0.

See this package in npm:
https://www.npmjs.com/package/xml-crypto

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/274dd1b5-2589-4279-bb73-2a2367ad9639?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-05 23:30:59 +00:00
snyk-bot
6526b6d59b fix: upgrade xml2js from 0.5.0 to 0.6.2
Snyk has created this PR to upgrade xml2js from 0.5.0 to 0.6.2.

See this package in npm:
https://www.npmjs.com/package/xml2js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/274dd1b5-2589-4279-bb73-2a2367ad9639?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-05 23:30:53 +00:00
snyk-bot
22fe6a8859 fix: upgrade @types/lodash from 4.14.200 to 4.14.201
Snyk has created this PR to upgrade @types/lodash from 4.14.200 to 4.14.201.

See this package in npm:
https://www.npmjs.com/package/@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
2023-12-05 23:02:38 +00:00
Simon Larsen
b64cf8127b Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-05 19:40:37 +00:00
Simon Larsen
dc3d262b45 Fix indentation and formatting issues in LayerUtil
class
2023-12-05 19:40:06 +00:00
Simon Larsen
87497ba998 Fix restriction times for event 2023-12-05 19:38:15 +00:00
Simon Larsen
161536fb5b Fix weekly restriction bug in LayerUtil 2023-12-05 18:56:01 +00:00
Simon Larsen
f0b2c92065 Merge pull request #1043 from OneUptime/snyk-upgrade-42c9ce24c5b0bf3ca5e47cdd656e46b1
[Snyk] Upgrade react-icons from 4.11.0 to 4.12.0
2023-12-05 18:26:00 +00:00
Simon Larsen
bd9638f402 Merge pull request #1044 from OneUptime/snyk-fix-7c489554fcd9da33f61452df75f4b2b0
[Snyk] Security upgrade @sendgrid/mail from 7.7.0 to 8.0.0
2023-12-05 18:25:47 +00:00
snyk-bot
99793c7a37 fix: Notification/package.json & Notification/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6032459
2023-12-05 18:16:42 +00:00
snyk-bot
50b0b435cd fix: upgrade react-icons from 4.11.0 to 4.12.0
Snyk has created this PR to upgrade react-icons from 4.11.0 to 4.12.0.

See this package in npm:
https://www.npmjs.com/package/react-icons

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-05 18:15:38 +00:00
Simon Larsen
d43b63c8f5 Merge pull request #1039 from OneUptime/snyk-upgrade-4e0318c06bddc286eca43f7543206607
[Snyk] Upgrade @types/try-to-catch from 3.0.0 to 3.0.3
2023-12-05 18:14:12 +00:00
Simon Larsen
97b6f2702e Merge pull request #1038 from OneUptime/snyk-upgrade-81d6105f73ae497dd6bf41d8f180827a
[Snyk] Upgrade @types/compression from 1.7.2 to 1.7.5
2023-12-05 18:13:50 +00:00
Simon Larsen
ae5911c0b4 Merge pull request #1040 from OneUptime/snyk-upgrade-3da39d4ae5da57b5272149805701c146
[Snyk] Upgrade xmlbuilder2 from 3.0.2 to 3.1.1
2023-12-05 18:13:40 +00:00
Simon Larsen
4d1dc9198a Merge pull request #1042 from OneUptime/snyk-upgrade-a1ea33981137bf9bca654d6fce8f9bb4
[Snyk] Upgrade @types/body-parser from 1.19.4 to 1.19.5
2023-12-05 18:13:32 +00:00
snyk-bot
8cda8eff8e fix: upgrade @types/body-parser from 1.19.4 to 1.19.5
Snyk has created this PR to upgrade @types/body-parser from 1.19.4 to 1.19.5.

See this package in npm:
https://www.npmjs.com/package/@types/body-parser

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/102b46c1-e36e-406c-acd1-31c8200a6c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-05 18:08:04 +00:00
snyk-bot
e43068d391 fix: upgrade @types/ejs from 3.1.4 to 3.1.5
Snyk has created this PR to upgrade @types/ejs from 3.1.4 to 3.1.5.

See this package in npm:
https://www.npmjs.com/package/@types/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/102b46c1-e36e-406c-acd1-31c8200a6c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-05 18:07:59 +00:00
snyk-bot
93eda19560 fix: upgrade xmlbuilder2 from 3.0.2 to 3.1.1
Snyk has created this PR to upgrade xmlbuilder2 from 3.0.2 to 3.1.1.

See this package in npm:
https://www.npmjs.com/package/xmlbuilder2

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/102b46c1-e36e-406c-acd1-31c8200a6c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-05 18:07:54 +00:00
snyk-bot
970f4e30bc fix: upgrade @types/try-to-catch from 3.0.0 to 3.0.3
Snyk has created this PR to upgrade @types/try-to-catch from 3.0.0 to 3.0.3.

See this package in npm:
https://www.npmjs.com/package/@types/try-to-catch

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/102b46c1-e36e-406c-acd1-31c8200a6c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-05 18:07:50 +00:00
snyk-bot
db1d2d3dce fix: upgrade @types/compression from 1.7.2 to 1.7.5
Snyk has created this PR to upgrade @types/compression from 1.7.2 to 1.7.5.

See this package in npm:
https://www.npmjs.com/package/@types/compression

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/102b46c1-e36e-406c-acd1-31c8200a6c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-05 18:07:45 +00:00
Simon Larsen
91691a05d6 Fix overlapping date comparison logic 2023-12-05 17:58:54 +00:00
Sokna Ly
01ad5604ba refactor: separate routes and lazy load pages for user profiles 2023-12-06 00:30:26 +07:00
Sokna Ly
27bb1d87b4 refactor: separate routes and lazy load pages for monitor groups 2023-12-06 00:07:56 +07:00
Sokna Ly
b6742c93d7 refactor: lazy load for settings pages 2023-12-05 23:28:19 +07:00
Sokna Ly
cb2a3619fc refactor: separate routes and lazy load for on-call duty 2023-12-05 23:21:08 +07:00
Simon Larsen
418c7f9da6 Fix sorting and removal of events in LayerUtil and
update layerUsers in Layers component
2023-12-05 15:59:49 +00:00
Sokna Ly
cbb716c102 refactor: convert pages to lazy pages for incidents 2023-12-05 22:51:14 +07:00
Sokna Ly
1ce1058f72 refactor: implement lazy load for MarkdownViewer component to reduce main bundle size 2023-12-05 22:44:32 +07:00
Simon Larsen
133a46a3cf Refactor date overlapping logic and trim events 2023-12-05 15:26:28 +00:00
Simon Larsen
6a50b0a4cc Fix overlapping events and update layer priority 2023-12-05 15:12:17 +00:00
Sokna Ly
ff9b2e4fd0 Merge branch 'master' into refactor/lazy-load-pages 2023-12-05 22:08:48 +07:00
Simon Larsen
07ecf31473 Fix date calculation bug in LayerUtil class 2023-12-05 14:52:16 +00:00
Simon Larsen
f24e540fc6 Fix issue with updating layers in
OnCallScheduleLayer component
2023-12-05 14:18:20 +00:00
Simon Larsen
ca93e786c9 Update onCallDutySchedule to onCallSchedules 2023-12-05 14:05:47 +00:00
Simon Larsen
f42b25ef9d Remove
OnCallDutyPolicyEscalationRuleOnCallSchedule and
add OnCallDutyPolicyEscalationRuleSchedule
2023-12-05 14:02:29 +00:00
Simon Larsen
3dcdb5f0c2 Fix formatting issues and improve code readability 2023-12-05 13:56:14 +00:00
Simon Larsen
606c0cb69d Add OnCallDutyScheduleView component to
OnCallPolicyDelete
2023-12-05 13:53:50 +00:00
Simon Larsen
b187773f99 Add
OnCallDutyPolicyEscalationRuleOnCallScheduleService
and OnCallDutyPolicySchedule
2023-12-05 13:43:37 +00:00
Simon Larsen
1949946cd3 Add careers link to footer 2023-12-05 13:33:08 +00:00
Simon Larsen
f3e4958d36 Fix bug in login functionality 2023-12-05 13:30:54 +00:00
Simon Larsen
09b9454633 Merge branch 'master' into multiple-layers 2023-12-05 13:15:18 +00:00
Simon Larsen
0cfc424116 Update stripe package version 2023-12-05 13:14:44 +00:00
Simon Larsen
4bccc7ce96 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-05 13:13:52 +00:00
Simon Larsen
4ad1182a48 merge 2023-12-05 13:13:48 +00:00
Simon Larsen
69e6e22e1f Merge pull request #1033 from OneUptime/snyk-upgrade-2a781cf5d1b40902b325ee1bf4fcce95
[Snyk] Upgrade @types/body-parser from 1.19.4 to 1.19.5
2023-12-05 13:11:18 +00:00
Simon Larsen
eaacaf7489 Merge pull request #1035 from junedkhatri31/master
fix: Double window opening on image selection
2023-12-05 12:59:06 +00:00
Simon Larsen
868ac191a9 Merge pull request #1036 from soknaly/refactor/lodash-tree-shaking
refactor: optimize tree-shaking for lodash to reduce bundle size
2023-12-05 12:58:39 +00:00
Sokna Ly
912f1ecfc8 refactor: optimize tree-shaking for lodash to reduce bundle size 2023-12-05 19:33:18 +07:00
Juned Khatri
72ade144e5 fix: Double window opening on image selection 2023-12-05 00:55:25 +05:30
Simon Larsen
db92624920 Fix formatting issues and add
OnCallDutyPolicyEscalationRuleOnCallSchedule API
endpoint
2023-12-04 18:20:07 +00:00
Simon Larsen
cbd7211690 Add On-Call Duty Policy Escalation Rule Schedule
permissions
2023-12-04 18:16:19 +00:00
Simon Larsen
8c217fcfe1 Add showFieldLabel prop to LayerPreview component 2023-12-04 18:03:26 +00:00
Simon Larsen
046f7dd0c2 Refactor OnCallScheduleLayer components 2023-12-04 17:56:38 +00:00
Simon Larsen
ea2ae6e1e1 Add LayersPreview component and Card component to
Layers.tsx
2023-12-04 17:46:41 +00:00
Simon Larsen
a29cf250b9 Add onLayerUsersUpdateOrLoaded callback to Layer
component
2023-12-04 17:44:29 +00:00
Sokna Ly
77ff3673cd chore: add webpack bundle analyzer to anylze and optimize sizes 2023-12-05 00:07:59 +07:00
Sokna Ly
222d3e8c84 refactor: implement lazy load and separate routes for project settings 2023-12-04 23:54:59 +07:00
Sokna Ly
d0280da995 refactor: implement lazy load and separate routes for scheduled events 2023-12-04 23:24:53 +07:00
Sokna Ly
957604636d refactor: implement lazy load and separate routes for incidents 2023-12-04 22:48:44 +07:00
Sokna Ly
2c8b559b08 refactor: update statuspages routes and lazy pages 2023-12-04 22:25:42 +07:00
Simon Larsen
541847b5fb Remove commented out code in SideMenu.tsx 2023-12-04 14:45:56 +00:00
Simon Larsen
a5a236e0cb Merge branch 'release' of github.com-simon:OneUptime/oneuptime into release 2023-12-04 14:45:17 +00:00
Simon Larsen
53f3426543 Remove unnecessary padding in SideOver component 2023-12-04 14:44:53 +00:00
Simon Larsen
dedf42ca84 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-12-04 14:16:56 +00:00
Simon Larsen
2a1c300b04 Add trigger arguments to BaseModelComponent and
OnTriggerBaseModel
2023-12-04 14:16:53 +00:00
Simon Larsen
58cf02b50a Merge pull request #1032 from OneUptime/snyk-upgrade-fcb4d148909cd5a2854fc5b7240d8ca1
[Snyk] Upgrade xmlbuilder2 from 3.0.2 to 3.1.1
2023-12-04 13:43:51 +00:00
Simon Larsen
277180907a Merge pull request #1034 from OneUptime/snyk-upgrade-8813fd872c1a056cf6de811a0cf6d765
[Snyk] Upgrade @types/ejs from 3.1.4 to 3.1.5
2023-12-04 13:43:40 +00:00
Simon Larsen
55924cac1f Remove integration related build and deploy
workflows
2023-12-04 13:05:08 +00:00
Simon Larsen
48d87d61ef fmt fix 2023-12-04 13:02:36 +00:00
Simon Larsen
d5220593dc fix fmt 2023-12-04 12:46:27 +00:00
Simon Larsen
553d2aaea5 Merge branch 'layer-preview' 2023-12-04 12:40:22 +00:00
snyk-bot
52778bdb2d fix: upgrade @types/ejs from 3.1.4 to 3.1.5
Snyk has created this PR to upgrade @types/ejs from 3.1.4 to 3.1.5.

See this package in npm:
https://www.npmjs.com/package/@types/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5a2fa790-dc76-4e5f-90cc-f4da8ad2caf7?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:31:35 +00:00
snyk-bot
5b67f517d8 fix: upgrade @types/body-parser from 1.19.4 to 1.19.5
Snyk has created this PR to upgrade @types/body-parser from 1.19.4 to 1.19.5.

See this package in npm:
https://www.npmjs.com/package/@types/body-parser

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5a2fa790-dc76-4e5f-90cc-f4da8ad2caf7?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:31:32 +00:00
snyk-bot
084b3b4bcc fix: upgrade xmlbuilder2 from 3.0.2 to 3.1.1
Snyk has created this PR to upgrade xmlbuilder2 from 3.0.2 to 3.1.1.

See this package in npm:
https://www.npmjs.com/package/xmlbuilder2

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5a2fa790-dc76-4e5f-90cc-f4da8ad2caf7?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:31:28 +00:00
Simon Larsen
440c405023 Merge pull request #1031 from OneUptime/snyk-upgrade-7f14cd3d26a4d6cbb9b3e798937d41e9
[Snyk] Upgrade reactflow from 11.9.4 to 11.10.1
2023-12-03 17:24:49 +00:00
Simon Larsen
d3fa233759 Merge pull request #1029 from OneUptime/snyk-upgrade-4439de81fe43cb8862c0298432f53b25
[Snyk] Upgrade @heroicons/react from 2.0.13 to 2.0.18
2023-12-03 17:24:32 +00:00
snyk-bot
863756fa57 fix: upgrade reactflow from 11.9.4 to 11.10.1
Snyk has created this PR to upgrade reactflow from 11.9.4 to 11.10.1.

See this package in npm:
https://www.npmjs.com/package/reactflow

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:17:44 +00:00
snyk-bot
cf802c0d4a fix: upgrade @stripe/react-stripe-js from 1.16.1 to 1.16.5
Snyk has created this PR to upgrade @stripe/react-stripe-js from 1.16.1 to 1.16.5.

See this package in npm:
https://www.npmjs.com/package/@stripe/react-stripe-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:17:40 +00:00
snyk-bot
e7e0ca5172 fix: upgrade @heroicons/react from 2.0.13 to 2.0.18
Snyk has created this PR to upgrade @heroicons/react from 2.0.13 to 2.0.18.

See this package in npm:
https://www.npmjs.com/package/@heroicons/react

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:17:36 +00:00
Simon Larsen
9801232a8c Merge pull request #1025 from OneUptime/snyk-upgrade-ae228c91abe943bf5f30641698c015a7
[Snyk] Upgrade node-cron from 3.0.2 to 3.0.3
2023-12-03 17:15:12 +00:00
Simon Larsen
cb4e18b472 Merge pull request #1026 from OneUptime/snyk-upgrade-32522cb26613558894bb22275628e18f
[Snyk] Upgrade @types/ping from 0.4.3 to 0.4.4
2023-12-03 17:14:47 +00:00
Simon Larsen
69d0d1aac3 Merge pull request #1027 from OneUptime/snyk-upgrade-4b1ca73ee243d4d7b54bb359bf94fe85
[Snyk] Upgrade @types/saml2-js from 3.0.1 to 3.0.4
2023-12-03 17:14:40 +00:00
Simon Larsen
8932ebf52d Merge pull request #1028 from OneUptime/snyk-upgrade-472e546493dc3e5c644ff3b458d8b2b9
[Snyk] Upgrade @types/xml2js from 0.4.11 to 0.4.14
2023-12-03 17:14:29 +00:00
snyk-bot
fa21d220ac fix: upgrade @types/xml2js from 0.4.11 to 0.4.14
Snyk has created this PR to upgrade @types/xml2js from 0.4.11 to 0.4.14.

See this package in npm:
https://www.npmjs.com/package/@types/xml2js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/274dd1b5-2589-4279-bb73-2a2367ad9639?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:12:25 +00:00
snyk-bot
28204919a0 fix: upgrade @types/saml2-js from 3.0.1 to 3.0.4
Snyk has created this PR to upgrade @types/saml2-js from 3.0.1 to 3.0.4.

See this package in npm:
https://www.npmjs.com/package/@types/saml2-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/274dd1b5-2589-4279-bb73-2a2367ad9639?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:12:21 +00:00
snyk-bot
565da66333 fix: upgrade @types/ping from 0.4.3 to 0.4.4
Snyk has created this PR to upgrade @types/ping from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@types/ping

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
2023-12-03 17:11:27 +00:00
snyk-bot
6efb29faa1 fix: upgrade node-cron from 3.0.2 to 3.0.3
Snyk has created this PR to upgrade node-cron from 3.0.2 to 3.0.3.

See this package in npm:
https://www.npmjs.com/package/node-cron

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
2023-12-03 17:11:23 +00:00
Sokna Ly
10bef3fff0 Merge branch 'master' into refactor/lazy-load-pages 2023-12-03 23:43:35 +07:00
Simon Larsen
cc47bced8a Refactor LayerUtil to support multi-layer events 2023-12-03 16:39:24 +00:00
Simon Larsen
df4f47ce66 Merge pull request #1024 from soknaly/fix/workflow-crash-manually-run
fix: workflow crash on manually run
2023-12-03 16:19:37 +00:00
Sokna Ly
0c735578f8 fix: workflow crash on manually run 2023-12-03 22:47:00 +07:00
Simon Larsen
8fb7ef1e2b Fix issue with same start and end time in
OnCallDutyPolicy/Layer.ts
2023-12-03 15:45:48 +00:00
Simon Larsen
97a326cb51 Refactor date calculation methods in LayerUtil
class
2023-12-03 15:38:11 +00:00
Simon Larsen
57cc4edcca Fix interval calculation in LayerUtil 2023-12-03 15:36:08 +00:00
Simon Larsen
f3ac74e59b Refactor date handling in OneUptimeDate class and
fix initial value in RestrictionTimesFieldElement
component
2023-12-03 15:20:43 +00:00
Simon Larsen
849c3e560a Fix date and time handling in input components 2023-12-03 14:53:03 +00:00
Simon Larsen
3af8c91d5e Fix checked attribute in BasicRadioButton
component
2023-12-03 13:58:55 +00:00
Simon Larsen
31b9eac7ad Fix range selection in CalendarElement component 2023-12-03 13:45:40 +00:00
Simon Larsen
4b432014f9 Merge pull request #1023 from OneUptime/snyk-upgrade-de2242ad9c35b62dcf48b1a93c9065ae
[Snyk] Upgrade node-cron from 3.0.2 to 3.0.3
2023-12-02 20:21:40 +00:00
snyk-bot
163f3db2ca fix: upgrade node-cron from 3.0.2 to 3.0.3
Snyk has created this PR to upgrade node-cron from 3.0.2 to 3.0.3.

See this package in npm:
https://www.npmjs.com/package/node-cron

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/53798e83-e133-4bf4-bad9-b856237bab63?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-02 19:53:05 +00:00
Simon Larsen
b4fbd01894 Refactor event generation logic in LayerUtil class 2023-12-02 18:42:12 +00:00
Simon Larsen
c8f7c4eef6 Merge pull request #1021 from OneUptime/snyk-upgrade-b2868e431dbf9e5372cc4ff7e0a6d828
[Snyk] Upgrade @types/xml-crypto from 1.4.2 to 1.4.5
2023-12-02 18:33:33 +00:00
Simon Larsen
490d3dd2b3 Merge pull request #1019 from OneUptime/snyk-upgrade-f62991f7815856dd2760a37263155eb1
[Snyk] Upgrade jsrsasign from 10.6.1 to 10.8.6
2023-12-02 18:33:08 +00:00
Simon Larsen
4b0374e134 Merge pull request #1020 from OneUptime/snyk-upgrade-68b0ceb4075387a0877d9d5a3a4a92f6
[Snyk] Upgrade @types/jsrsasign from 10.5.5 to 10.5.12
2023-12-02 18:33:01 +00:00
Simon Larsen
2ce9462c3c Merge pull request #1022 from OneUptime/snyk-upgrade-d1acfa26befdca3b35027a65ec59f4c1
[Snyk] Upgrade @types/xmldom from 0.1.31 to 0.1.34
2023-12-02 18:32:53 +00:00
snyk-bot
801dca9be1 fix: upgrade @types/xmldom from 0.1.31 to 0.1.34
Snyk has created this PR to upgrade @types/xmldom from 0.1.31 to 0.1.34.

See this package in npm:
https://www.npmjs.com/package/@types/xmldom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/274dd1b5-2589-4279-bb73-2a2367ad9639?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-02 17:35:32 +00:00
snyk-bot
ad6ffb0ba4 fix: upgrade @types/xml-crypto from 1.4.2 to 1.4.5
Snyk has created this PR to upgrade @types/xml-crypto from 1.4.2 to 1.4.5.

See this package in npm:
https://www.npmjs.com/package/@types/xml-crypto

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/274dd1b5-2589-4279-bb73-2a2367ad9639?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-02 17:35:28 +00:00
snyk-bot
5afeb8ecc4 fix: upgrade @types/jsrsasign from 10.5.5 to 10.5.12
Snyk has created this PR to upgrade @types/jsrsasign from 10.5.5 to 10.5.12.

See this package in npm:
https://www.npmjs.com/package/@types/jsrsasign

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/274dd1b5-2589-4279-bb73-2a2367ad9639?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-02 17:35:24 +00:00
snyk-bot
bd29c33c19 fix: upgrade jsrsasign from 10.6.1 to 10.8.6
Snyk has created this PR to upgrade jsrsasign from 10.6.1 to 10.8.6.

See this package in npm:
https://www.npmjs.com/package/jsrsasign

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/274dd1b5-2589-4279-bb73-2a2367ad9639?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-02 17:35:20 +00:00
Simon Larsen
89c484facf Merge pull request #1013 from OneUptime/snyk-fix-204bc415a6fb66e59b12bb3e5757584d
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 21:25:31 +00:00
Simon Larsen
d7ff9ce800 Merge pull request #1018 from OneUptime/snyk-fix-3a9bef7eb066ac6697b483ffd593343f
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 21:25:14 +00:00
Simon Larsen
3c26f4769d Merge pull request #1017 from OneUptime/snyk-fix-9c3495b11d21e645ad6c66b28361cc7b
[Snyk] Security upgrade twilio from 4.19.0 to 4.19.3
2023-12-01 21:25:09 +00:00
Simon Larsen
d609fc94ec Merge pull request #1016 from OneUptime/snyk-fix-7a48c794f8097caa9b776fc1f6fb5948
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 21:25:01 +00:00
Simon Larsen
4da25335b7 Merge pull request #1015 from OneUptime/snyk-fix-a9f7c5e6db4093079f5f7946e6ac39e1
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 21:24:54 +00:00
Simon Larsen
d6c9b48360 Merge pull request #1014 from OneUptime/snyk-fix-5f56733afef2fcf0351a5defbb9a2cc9
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 21:24:48 +00:00
Simon Larsen
4776b0a331 Merge pull request #1012 from OneUptime/snyk-fix-db134ce011556a5dbe40065278716967
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 21:24:37 +00:00
Simon Larsen
b06947c912 Merge pull request #1011 from OneUptime/snyk-fix-dc57777e1175cedbe93438eab0a3ea96
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 21:24:28 +00:00
Simon Larsen
768e54e61b Update dependencies in Chart.lock 2023-12-01 21:21:18 +00:00
Simon Larsen
94b0cd47f9 Remove minio dependency from Helm chart and
related files
2023-12-01 21:20:30 +00:00
Simon Larsen
02e8c54725 Delete unnecessary files and configurations 2023-12-01 21:17:21 +00:00
Simon Larsen
9cc5dc56b1 Fix user index update in LayerUtil 2023-12-01 21:09:09 +00:00
Simon Larsen
4dac24bc8b Fix handoff time issue in LayerUtil 2023-12-01 20:40:21 +00:00
Simon Larsen
32169d4a87 Fix import statement in Calendar component and
handle undefined color in LayerPreview
2023-12-01 20:30:25 +00:00
Simon Larsen
d49d4b79c3 Remove unused import statement 2023-12-01 20:28:01 +00:00
Simon Larsen
622437c6e3 Fix color index calculation and make email field
required in TeamView
2023-12-01 20:13:36 +00:00
snyk-bot
b0d160a227 fix: LinkShortener/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 20:10:03 +00:00
snyk-bot
81254c2234 fix: CommonServer/package.json & CommonServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6032459
2023-12-01 20:07:41 +00:00
snyk-bot
aafa3b15b7 fix: Ingestor/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 20:02:58 +00:00
snyk-bot
70fa8ae9fa fix: AdminDashboard/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 19:57:55 +00:00
snyk-bot
696b6dc87d fix: ApiReference/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 19:51:01 +00:00
snyk-bot
b2ece0f23b fix: Workflow/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 19:49:31 +00:00
snyk-bot
c4a0040f44 fix: Notification/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 19:47:43 +00:00
snyk-bot
3af0e0f182 fix: Accounts/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 19:38:39 +00:00
Simon Larsen
4900978f92 Update brand colors and fix calendar view 2023-12-01 19:33:37 +00:00
Simon Larsen
8c7c61519f Merge pull request #1000 from OneUptime/snyk-fix-927cea7ad7a1e485a2ea22dca9ee6b1c
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:53:35 +00:00
Simon Larsen
471259e8a1 Merge pull request #1006 from OneUptime/snyk-fix-99a0a08f0873a365f1d0b3ab5de2c5cf
[Snyk] Security upgrade twilio from 4.19.0 to 4.19.3
2023-12-01 18:53:12 +00:00
Simon Larsen
88ea284d68 Merge pull request #1004 from OneUptime/snyk-fix-e4a15846e3cb6d9f58b5d18e45f868b7
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:53:04 +00:00
Simon Larsen
f4482de562 Merge pull request #1002 from OneUptime/snyk-fix-423a1121beaf97b382faa2c8d9dcadd0
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:52:57 +00:00
Simon Larsen
a32e5a157b Merge pull request #997 from OneUptime/snyk-fix-a860abc8298edff3a5a3c26b62688bb9
[Snyk] Security upgrade npm from 8.19.4 to 10.2.2
2023-12-01 18:52:48 +00:00
Simon Larsen
7e99352071 Merge pull request #1010 from OneUptime/snyk-fix-2efc3baace7152694f03fa927955b83f
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:52:11 +00:00
Simon Larsen
046688598a Merge pull request #1009 from OneUptime/snyk-fix-ff2d1161766d17b63daed07a6dd49aed
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:52:03 +00:00
Simon Larsen
0ba3758eb3 Merge pull request #1008 from OneUptime/snyk-fix-14c15f7bec8d61b1dd30a19f11b69cc8
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:51:54 +00:00
Simon Larsen
ca29caddb7 Merge pull request #1007 from OneUptime/snyk-fix-67dadd9d8e8733764c69abdfe624ff23
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:51:48 +00:00
Simon Larsen
035ad05659 Merge pull request #1005 from OneUptime/snyk-fix-4c0626cd39059fefc6d7c3c11d793178
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:51:40 +00:00
Simon Larsen
515e6b1625 Merge pull request #1003 from OneUptime/snyk-fix-f3c0488e191234220c15fb4dbaaeb311
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:51:30 +00:00
Simon Larsen
153908e406 Merge pull request #1001 from OneUptime/snyk-fix-498e00bbba9f8f90d0365aeb4e6cc0dd
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:51:21 +00:00
Simon Larsen
8fae1b724b Merge pull request #999 from OneUptime/snyk-upgrade-2ad0e48a5dc734dcc1b1643c0a7612db
[Snyk] Upgrade @types/node-cron from 3.0.10 to 3.0.11
2023-12-01 18:51:12 +00:00
Simon Larsen
53e04ddb71 Merge pull request #998 from OneUptime/snyk-fix-9e4ca15a59249e56a2fd36455272c907
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:51:05 +00:00
Simon Larsen
d757ed60eb Merge pull request #996 from OneUptime/snyk-fix-c89331e4c2ad7bbb7f1edcddbce83355
[Snyk] Security upgrade node from current-alpine to 21.2-alpine3.18
2023-12-01 18:50:52 +00:00
snyk-bot
0e0365007d fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 18:12:24 +00:00
snyk-bot
c62a511e8f fix: Workers/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 18:10:25 +00:00
snyk-bot
0fe0268df7 fix: Identity/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 18:07:27 +00:00
snyk-bot
e50a5ef1e3 fix: DashboardAPI/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 17:55:23 +00:00
snyk-bot
cdade5994e fix: Notification/package.json & Notification/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6032459
2023-12-01 17:50:26 +00:00
snyk-bot
74b23054f8 fix: Haraka/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 17:47:22 +00:00
snyk-bot
52eea584c1 fix: TestServer/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 17:46:25 +00:00
snyk-bot
e695ffce09 fix: Integration/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 17:46:23 +00:00
snyk-bot
85c00fa19b fix: StatusPage/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 17:45:23 +00:00
snyk-bot
ec52dc0d70 fix: Home/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 17:38:21 +00:00
snyk-bot
737ee28528 fix: Tests/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 17:36:21 +00:00
snyk-bot
58e1635d68 fix: upgrade @types/node-cron from 3.0.10 to 3.0.11
Snyk has created this PR to upgrade @types/node-cron from 3.0.10 to 3.0.11.

See this package in npm:
https://www.npmjs.com/package/@types/node-cron

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/53798e83-e133-4bf4-bad9-b856237bab63?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-01 17:28:29 +00:00
snyk-bot
1443218abc fix: File/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 17:26:21 +00:00
snyk-bot
f9a68300a7 fix: CommonUI/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
2023-12-01 17:13:29 +00:00
snyk-bot
e9208eef5f fix: Dashboard/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 17:12:21 +00:00
Simon Larsen
42ce4028a9 Merge pull request #995 from OneUptime/snyk-fix-2c680b7d17447ce7693e2558d08707a3
[Snyk] Security upgrade saml2-js from 4.0.1 to 4.0.2
2023-12-01 12:57:53 +00:00
snyk-bot
6c08f311fe fix: Identity/package.json & Identity/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-XML2JS-5414874
2023-12-01 12:57:24 +00:00
Simon Larsen
6bc3f302ef Merge pull request #994 from soknaly/fix/sideover-no-scroll
fix: sideover content overflow cannot scroll
2023-12-01 12:50:10 +00:00
Sokna Ly
16e2990a9f fix: sideover content overflow cannot scroll 2023-12-01 10:32:11 +07:00
Simon Larsen
e8d698ebf4 Merge pull request #985 from OneUptime/snyk-fix-7633c6e8b4fc071846f9192deb4605f9
[Snyk] Security upgrade nodemailer-express-handlebars from 5.0.0 to 6.1.0
2023-11-30 20:51:19 +00:00
Simon Larsen
ec71491bcb Merge pull request #986 from OneUptime/snyk-fix-bf2f163ff55c1f4b94c2ebfd4fd3aed6
[Snyk] Security upgrade nodemailer-express-handlebars from 5.0.0 to 6.1.0
2023-11-30 20:51:09 +00:00
Simon Larsen
e5aefc9362 Merge pull request #987 from OneUptime/snyk-upgrade-15c6465ca83ce0eb81569e1b9ae69971
[Snyk] Upgrade @types/compression from 1.7.2 to 1.7.5
2023-11-30 20:51:02 +00:00
Simon Larsen
2373458f94 Merge pull request #988 from OneUptime/snyk-upgrade-3af220b765c5570aa25c00c22eadd9f3
[Snyk] Upgrade @types/try-to-catch from 3.0.0 to 3.0.3
2023-11-30 20:50:53 +00:00
Simon Larsen
406c475da6 Update event title format in LayerPreview
component
2023-11-30 17:53:59 +00:00
snyk-bot
bba9b24f78 fix: upgrade @types/try-to-catch from 3.0.0 to 3.0.3
Snyk has created this PR to upgrade @types/try-to-catch from 3.0.0 to 3.0.3.

See this package in npm:
https://www.npmjs.com/package/@types/try-to-catch

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5a2fa790-dc76-4e5f-90cc-f4da8ad2caf7?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-30 17:53:47 +00:00
snyk-bot
9fcce2cb2c fix: upgrade @types/compression from 1.7.2 to 1.7.5
Snyk has created this PR to upgrade @types/compression from 1.7.2 to 1.7.5.

See this package in npm:
https://www.npmjs.com/package/@types/compression

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5a2fa790-dc76-4e5f-90cc-f4da8ad2caf7?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-30 17:53:43 +00:00
snyk-bot
40d99ccf5b fix: CommonServer/package.json & CommonServer/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
2023-11-30 17:45:15 +00:00
snyk-bot
9f5b9146d1 fix: Notification/package.json & Notification/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
2023-11-30 17:39:47 +00:00
Simon Larsen
42caa72bbf Remove unused import and fix code style 2023-11-30 17:29:00 +00:00
Simon Larsen
a8c2999e7c Refactor color handling in BrandColors and Color
classes
2023-11-30 17:26:09 +00:00
Simon Larsen
53882dfeb9 Add date parsing for startDateTimeOfLayer,
calendarStartDate, calendarEndDate, and
handOffTime
2023-11-30 16:52:05 +00:00
Simon Larsen
2b243f2cac Fix bugs and improve functionality 2023-11-30 16:40:07 +00:00
Simon Larsen
2fece456ef Merge pull request #984 from OneUptime/master
Release
2023-11-30 14:57:59 +00:00
Simon Larsen
39848fd071 Fix default calendar view and add start and end
time selection
2023-11-30 14:36:45 +00:00
Simon Larsen
11ee56998f Fix bug in login functionality 2023-11-30 14:23:59 +00:00
Simon Larsen
22cce216fe Fix bug in login functionality 2023-11-30 14:05:01 +00:00
Simon Larsen
3ac00ef54a Fix formatting and remove unnecessary code 2023-11-30 13:59:13 +00:00
Simon Larsen
97e8f2de8e Refactor layer rotation logic and helper functions 2023-11-30 13:57:54 +00:00
Simon Larsen
4a7f5ac910 Add onRangeChange prop to CalendarElement 2023-11-30 13:51:08 +00:00
Simon Larsen
93fae92467 Merge branch 'master' into layer-preview 2023-11-30 12:48:53 +00:00
Simon Larsen
4e749b4c29 Fix side menu in OnCallDuty page 2023-11-30 12:48:11 +00:00
Simon Larsen
24b71c42e6 Merge pull request #982 from OneUptime/layer-preview
Add useState hook to Layer component and pass
2023-11-30 12:46:36 +00:00
Simon Larsen
11daa0b423 Remove commented code for Schedules in SideMenu 2023-11-30 12:46:23 +00:00
Simon Larsen
0028772b30 Fix onSubmitSuccessful parameter in BasicForm
component
2023-11-30 12:44:18 +00:00
Simon Larsen
bb8b66bacc Add support for hand off time and calculate user
index based on hand off time
2023-11-30 12:17:19 +00:00
Simon Larsen
f4f96d2c01 Merge pull request #978 from OneUptime/snyk-upgrade-52fdfdfac839df15942c3c4a11a331ef
[Snyk] Upgrade reactflow from 11.5.3 to 11.9.4
2023-11-30 12:15:15 +00:00
Simon Larsen
81d03790c6 Merge pull request #979 from OneUptime/snyk-upgrade-b97dce923f163472952fd0a3649d90f0
[Snyk] Upgrade @stripe/stripe-js from 1.46.0 to 1.54.2
2023-11-30 12:15:02 +00:00
Simon Larsen
8a3c50371d Merge pull request #980 from OneUptime/snyk-upgrade-2bb09c052a0afd9d317730092765c1f1
[Snyk] Upgrade @headlessui/react from 1.7.7 to 1.7.17
2023-11-30 12:14:54 +00:00
Simon Larsen
cb6a92da40 Merge pull request #981 from OneUptime/snyk-upgrade-72a70fc075806f88061288d86937e8c6
[Snyk] Upgrade react-icons from 4.7.1 to 4.11.0
2023-11-30 12:14:43 +00:00
Simon Larsen
4387d2d981 Refactor date-related functions and add DayOfWeek
enum
2023-11-29 20:20:47 +00:00
Simon Larsen
ebc2f6f56e Add new enum value and update description in
LayerPreview component
2023-11-29 19:36:56 +00:00
snyk-bot
463526deca fix: upgrade react-icons from 4.7.1 to 4.11.0
Snyk has created this PR to upgrade react-icons from 4.7.1 to 4.11.0.

See this package in npm:
https://www.npmjs.com/package/react-icons

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-29 17:47:41 +00:00
snyk-bot
4d59e9304b fix: upgrade @headlessui/react from 1.7.7 to 1.7.17
Snyk has created this PR to upgrade @headlessui/react from 1.7.7 to 1.7.17.

See this package in npm:
https://www.npmjs.com/package/@headlessui/react

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-29 17:47:37 +00:00
snyk-bot
60ac93a0da fix: upgrade @stripe/stripe-js from 1.46.0 to 1.54.2
Snyk has created this PR to upgrade @stripe/stripe-js from 1.46.0 to 1.54.2.

See this package in npm:
https://www.npmjs.com/package/@stripe/stripe-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-29 17:47:32 +00:00
snyk-bot
26a1783fc7 fix: upgrade reactflow from 11.5.3 to 11.9.4
Snyk has created this PR to upgrade reactflow from 11.5.3 to 11.9.4.

See this package in npm:
https://www.npmjs.com/package/reactflow

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-29 17:47:28 +00:00
Simon Larsen
ad4c98a492 Add useState hook to Layer component and pass
layerUsers prop to LayerPreview component
2023-11-29 17:47:28 +00:00
Simon Larsen
3db9acc4b2 Refactor OnCallScheduleLayer component 2023-11-29 17:46:52 +00:00
Simon Larsen
aebb1c85af Commented out the "Schedules" section in the
SideMenu component
2023-11-29 17:34:10 +00:00
Simon Larsen
a942a1415f Fix formatting issues in code 2023-11-29 17:32:28 +00:00
Simon Larsen
aaf3b052b1 Add defaultCalendarView prop to Calendar component 2023-11-29 15:08:37 +00:00
Simon Larsen
878b7a14be Add moment-timezone package and update Calendar
component
2023-11-29 15:01:20 +00:00
Simon Larsen
29078d584b Merge branch 'master' into schedules 2023-11-29 14:11:20 +00:00
Simon Larsen
b9372929de Add miscData parameter to onTrigger method 2023-11-29 13:35:14 +00:00
Simon Larsen
11c732d12b Update dependencies in package.json 2023-11-29 13:14:04 +00:00
Simon Larsen
d46c864c31 Merge pull request #976 from rpaterson/statement
Refactor Analytics SQL generation to use query params
2023-11-29 13:04:55 +00:00
Roy Paterson
6d0e563551 Remove Analytics DB "DeleteOneBy"
ClickHouse does not support setting a LIMIT or OFFSET to an ALTER
TABLE DELETE statement.
2023-11-29 11:48:12 +00:00
Roy Paterson
cb313fc3bd Remove Analytics DB "UpdateOneBy"
ClickHouse does not support setting a LIMIT to an ALTER TABLE UPDATE
statement.
2023-11-29 11:43:09 +00:00
Roy Paterson
d63c66725f Refactor Analytics SQL generation to use query params
SQL is generated using the Statement class which guards
against accidental SQL injection using a special "SQL"
template literal tag.

INSERT functionality is not using the new Statement class
pending resolution of Nested column type functionality.
2023-11-29 11:32:07 +00:00
Simon Larsen
f4c003ec45 Add onListLoaded prop to ModelList and implement
LayerPreview component
2023-11-28 21:35:33 +00:00
Simon Larsen
b4e1530e20 Merge pull request #974 from OneUptime/snyk-upgrade-6cda72abd45959075d00042296e99220
[Snyk] Upgrade markdown-it from 13.0.1 to 13.0.2
2023-11-28 21:12:14 +00:00
Simon Larsen
9b49b72b20 Delete LayerView component 2023-11-28 17:51:23 +00:00
snyk-bot
9480c1e46b fix: upgrade markdown-it from 13.0.1 to 13.0.2
Snyk has created this PR to upgrade markdown-it from 13.0.1 to 13.0.2.

See this package in npm:
https://www.npmjs.com/package/markdown-it

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/53798e83-e133-4bf4-bad9-b856237bab63?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-28 17:37:09 +00:00
Simon Larsen
151fe8c2c9 Fix formatting issues and update descriptions 2023-11-28 17:20:04 +00:00
Simon Larsen
9ac253cbaa Fix input component rendering issue and update
date manipulation functions
2023-11-28 17:00:36 +00:00
Simon Larsen
8514a48c8f Update fromJSON method in RestrictionTimes class 2023-11-28 15:45:02 +00:00
Simon Larsen
656ed8153d Add @types/react-big-calendar package 2023-11-28 15:25:20 +00:00
Simon Larsen
70e6ce7714 Merge pull request #972 from OneUptime/snyk-upgrade-e68619dd8006bdb2a1a05f030c6d4355
[Snyk] Upgrade @types/body-parser from 1.19.2 to 1.19.4
2023-11-28 15:24:33 +00:00
Simon Larsen
7bd1c18be2 Fix radio button ID issue and add spacing to
restriction times field
2023-11-28 15:07:19 +00:00
Simon Larsen
d8876e5000 Add hooks for delete and update operations in
OnCallDutyPolicyScheduleLayerUserService and add
sorting functionality in ModelList component
2023-11-28 14:14:14 +00:00
Simon Larsen
fc503a11ab Add drag and drop functionality to ModelList and
StaticModelList components
2023-11-28 13:59:26 +00:00
Simon Larsen
753603ff97 Update descriptions and add IDs to ModelList
components
2023-11-28 13:47:11 +00:00
Simon Larsen
6c998fd661 Add profilePictureId to LayerUser query 2023-11-27 18:55:42 +00:00
Simon Larsen
8e4dbc7137 Add customElement prop to ModelList and
StaticModelList components
2023-11-27 18:46:34 +00:00
Simon Larsen
c58a29bf44 Update layer basic info and user form props 2023-11-27 18:40:56 +00:00
Simon Larsen
4c07a9edd1 Refactor code formatting and fix minor issues 2023-11-27 18:26:06 +00:00
Simon Larsen
b847b93268 Merge branch 'master' into schedules 2023-11-27 18:21:09 +00:00
Simon Larsen
4dd2705fc4 Update Input component types 2023-11-27 18:20:59 +00:00
Simon Larsen
39d6c4db09 Fix radio button group bug and update descriptions 2023-11-27 18:15:10 +00:00
snyk-bot
2404c34ab7 fix: upgrade @types/body-parser from 1.19.2 to 1.19.4
Snyk has created this PR to upgrade @types/body-parser from 1.19.2 to 1.19.4.

See this package in npm:
https://www.npmjs.com/package/@types/body-parser

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5a2fa790-dc76-4e5f-90cc-f4da8ad2caf7?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-27 17:14:35 +00:00
Simon Larsen
2c8b54f1ea Update SideMenu component 2023-11-27 16:52:13 +00:00
Simon Larsen
10f6285d42 Merge pull request #947 from OneUptime/schedules
On Call Schedules
2023-11-27 16:22:14 +00:00
Simon Larsen
fd5d47a60c Commented out the "Schedules" section in the
SideMenu component
2023-11-27 16:21:51 +00:00
Simon Larsen
df8c521dc3 Fix date input type in LogsFilters component 2023-11-27 16:20:25 +00:00
Simon Larsen
a1e519c318 Update Input component types 2023-11-27 16:12:20 +00:00
Simon Larsen
ff9e576b27 Refactor dropdown and radio button components 2023-11-27 14:29:23 +00:00
Simon Larsen
8629985a1a Fix radio button error and dropdown type issue 2023-11-27 14:11:04 +00:00
Simon Larsen
ae8944d949 Fix formatting issues and update imports 2023-11-27 13:59:59 +00:00
Simon Larsen
22690ad164 Merge pull request #971 from jinvillaz/unit-test
Add unit test for CommonServer and CommonUi
2023-11-27 08:52:09 +00:00
Simon Larsen
9c8ad1e2b2 Merge pull request #970 from OneUptime/snyk-upgrade-0a8275a9c010aea9d68fb7442dcfa9c7
[Snyk] Upgrade @types/body-parser from 1.19.2 to 1.19.4
2023-11-27 08:48:31 +00:00
Jhonatan Villanueva
5df20b858e Add unit test for CommonServer and CommonUi 2023-11-26 15:08:47 -04:00
snyk-bot
f25f960f69 fix: upgrade @types/body-parser from 1.19.2 to 1.19.4
Snyk has created this PR to upgrade @types/body-parser from 1.19.2 to 1.19.4.

See this package in npm:
https://www.npmjs.com/package/@types/body-parser

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/102b46c1-e36e-406c-acd1-31c8200a6c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-26 17:18:05 +00:00
Simon Larsen
ddfdfed58b Merge pull request #968 from OneUptime/simlarsen-patch-1
Create MAINTAINERS
2023-11-26 16:06:54 +00:00
Simon Larsen
5cde6b4815 Create MAINTAINERS 2023-11-26 16:06:45 +00:00
Simon Larsen
db2ff63951 Merge pull request #967 from OneUptime/simlarsen-patch-1
Create code-of-conduct.md
2023-11-26 16:02:52 +00:00
Simon Larsen
19f22b6d1b Create code-of-conduct.md 2023-11-26 16:02:42 +00:00
Simon Larsen
913d487810 Add LayerRestrictionTimes component to Layer.tsx 2023-11-26 15:52:05 +00:00
Simon Larsen
9d771b370f Fix weekly restriction function call 2023-11-26 15:45:48 +00:00
Simon Larsen
ae5e705418 Add new methods and fix formatting in DropdownUtil
and OneUptimeDate classes
2023-11-26 15:44:06 +00:00
Simon Larsen
887cb7c1d9 Update import paths for RadioButtons component 2023-11-26 14:30:55 +00:00
Simon Larsen
4e28436838 Remove renovate.json configuration file 2023-11-26 14:16:11 +00:00
Simon Larsen
a00cc6d7e9 Add new form field schema type and update layer
component
2023-11-26 14:15:09 +00:00
Simon Larsen
e146d56f50 Add ArrowUpDown icon to IconProp enum and use it
in TableRow component
2023-11-26 13:19:40 +00:00
Simon Larsen
692fb99baf Merge pull request #964 from soknaly/fix/dropdown-style
fix: Update Dropdown (react-select) style
2023-11-26 11:54:20 +00:00
Simon Larsen
be541c93bb Merge pull request #965 from OneUptime/snyk-upgrade-081a4faa9f93f32a892bedbe6d5a4783
[Snyk] Upgrade ejs from 3.1.8 to 3.1.9
2023-11-25 23:00:22 +00:00
Simon Larsen
95f20eae7c Merge pull request #966 from OneUptime/snyk-upgrade-242e24614fd3734f278c8f6a56289c81
[Snyk] Upgrade @types/node-cron from 3.0.6 to 3.0.10
2023-11-25 23:00:12 +00:00
snyk-bot
baf99f104f fix: upgrade @types/node-cron from 3.0.6 to 3.0.10
Snyk has created this PR to upgrade @types/node-cron from 3.0.6 to 3.0.10.

See this package in npm:
https://www.npmjs.com/package/@types/node-cron

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/53798e83-e133-4bf4-bad9-b856237bab63?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-25 17:48:45 +00:00
snyk-bot
678bda8b37 fix: upgrade ejs from 3.1.8 to 3.1.9
Snyk has created this PR to upgrade ejs from 3.1.8 to 3.1.9.

See this package in npm:
https://www.npmjs.com/package/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/e4400ce8-cee4-4844-a869-b529560ade37?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-25 17:44:22 +00:00
Sokna Ly
48def92f92 fix: Update Dropdown (react-select) style 2023-11-25 23:19:00 +07:00
Simon Larsen
ed5313b87d Merge pull request #958 from OneUptime/snyk-upgrade-716502480db450357812e381b5ef0273
[Snyk] Upgrade @fortawesome/react-fontawesome from 0.1.19 to 0.2.0
2023-11-25 11:54:04 +00:00
Simon Larsen
bdc62bb72b Merge pull request #960 from OneUptime/snyk-upgrade-512b83fc2e572886ea70dea87295a657
[Snyk] Upgrade react-router-dom from 6.5.0 to 6.18.0
2023-11-25 11:53:51 +00:00
Sokna Ly
0e18d7ee5e chore: add or empty to env host 2023-11-25 15:30:37 +07:00
Sokna Ly
7b173cfc16 fix: linting and revert unnecessary chagne 2023-11-25 15:27:46 +07:00
Sokna Ly
4e98bd9e3a refactor: implement lazy load and separate routes for dashboard, monitors, telemetry pages 2023-11-25 15:10:19 +07:00
snyk-bot
da036921b4 fix: upgrade react-router-dom from 6.5.0 to 6.18.0
Snyk has created this PR to upgrade react-router-dom from 6.5.0 to 6.18.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5dd2ef9c-1270-4729-aff4-e407805f7a9c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-24 19:41:20 +00:00
Simon Larsen
d67d245379 Merge pull request #959 from OneUptime/snyk-upgrade-fe23e36b867c6b594b502626a19ea469
[Snyk] Upgrade @types/ejs from 3.1.1 to 3.1.4
2023-11-24 18:21:21 +00:00
snyk-bot
2b56184cad fix: upgrade @types/ejs from 3.1.1 to 3.1.4
Snyk has created this PR to upgrade @types/ejs from 3.1.1 to 3.1.4.

See this package in npm:
https://www.npmjs.com/package/@types/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/102b46c1-e36e-406c-acd1-31c8200a6c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-24 17:55:32 +00:00
snyk-bot
efe0bccd65 fix: upgrade @fortawesome/react-fontawesome from 0.1.19 to 0.2.0
Snyk has created this PR to upgrade @fortawesome/react-fontawesome from 0.1.19 to 0.2.0.

See this package in npm:
https://www.npmjs.com/package/@fortawesome/react-fontawesome

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
2023-11-24 17:34:31 +00:00
Simon Larsen
d7b200e2f7 Merge pull request #957 from OneUptime/snyk-upgrade-206f2ef9fc2402c71cb73404031a1101
[Snyk] Upgrade typeorm from 0.3.14 to 0.3.17
2023-11-24 17:31:41 +00:00
snyk-bot
d1a3b2b852 fix: upgrade typeorm from 0.3.14 to 0.3.17
Snyk has created this PR to upgrade typeorm from 0.3.14 to 0.3.17.

See this package in npm:
https://www.npmjs.com/package/typeorm

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/95df775c-d36f-4060-828c-d0ddc8c9f28e?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-24 17:28:37 +00:00
Simon Larsen
db2dbfcac7 Remove unnecessary line in Field interface 2023-11-24 16:09:58 +00:00
Simon Larsen
a6d9c6493a Merge pull request #954 from rpaterson/sql-escape
Escape Analytics Database SQL
2023-11-24 14:02:10 +00:00
Simon Larsen
a067e85283 Add On Call Duty Policy Schedule services and
models
2023-11-24 12:57:54 +00:00
Simon Larsen
e9feb06864 Add new API routes for OnCallDutyPolicySchedule
and OnCallDutyPolicyScheduleLayerUser
2023-11-24 12:53:01 +00:00
Simon Larsen
9c4799ff30 Refactor StatusBubble component to use props.color
for background color
2023-11-24 12:39:43 +00:00
Simon Larsen
88c4b75c45 Fix On-Call Duty route and remove unnecessary code 2023-11-24 12:25:37 +00:00
Simon Larsen
3d46de7fb6 Merge branch 'master' into schedules 2023-11-24 12:17:44 +00:00
Simon Larsen
c82f40443b Fix teamId assignment in TeamMemberService 2023-11-24 12:16:23 +00:00
Simon Larsen
ca32b8fa1d Fix on-call duty page titles 2023-11-24 12:11:36 +00:00
Simon Larsen
8ad344f1f9 Merge pull request #889 from fedealconada/team-member-service-coverage
test: add coverage for TeamMemberService.ts
2023-11-24 12:11:25 +00:00
Roy Paterson
407abd4146 Add crudApiPath to test 2023-11-24 11:58:15 +00:00
Roy Paterson
fdc7887e48 Escape values to prevent SQL injection 2023-11-24 11:36:49 +00:00
Roy Paterson
59cd7afcc5 Add Tests for StatementGenerator.toSetStatement() 2023-11-24 11:36:49 +00:00
Roy Paterson
0070aa7ee7 Increase database test timeout to 10 seconds
Setting up the database is slow.
2023-11-24 11:36:49 +00:00
Simon Larsen
e39474bc23 Merge pull request #952 from OneUptime/snyk-upgrade-2be86f202576cc54f75a2d7029cbe161
[Snyk] Upgrade airtable from 0.11.6 to 0.12.2
2023-11-23 22:31:09 +00:00
Simon Larsen
cb834adc6c Merge pull request #953 from OneUptime/snyk-upgrade-a5e521eabb7f562ab94e9c456514dff6
[Snyk] Upgrade @types/ejs from 3.1.1 to 3.1.4
2023-11-23 21:45:37 +00:00
snyk-bot
434573e770 fix: upgrade @types/ejs from 3.1.1 to 3.1.4
Snyk has created this PR to upgrade @types/ejs from 3.1.1 to 3.1.4.

See this package in npm:
https://www.npmjs.com/package/@types/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/5a2fa790-dc76-4e5f-90cc-f4da8ad2caf7?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-23 19:59:25 +00:00
snyk-bot
96fced64cf fix: upgrade airtable from 0.11.6 to 0.12.2
Snyk has created this PR to upgrade airtable from 0.11.6 to 0.12.2.

See this package in npm:
https://www.npmjs.com/package/airtable

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/a2fb4fe1-f25f-4ff9-a58c-e78277b0a7fa?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-23 19:59:05 +00:00
Simon Larsen
b12e8ad489 Fix enum syntax error and import missing module 2023-11-23 19:47:58 +00:00
Simon Larsen
33f567570c Merge branch 'master' into schedules 2023-11-23 19:18:54 +00:00
Simon Larsen
015350acb2 Merge pull request #939 from OneUptime/snyk-upgrade-1e8b2e5347b891af2fdff850e86d61b0
[Snyk] Upgrade @types/nodemailer from 6.4.6 to 6.4.13
2023-11-23 19:15:21 +00:00
Simon Larsen
9f52526e5a Merge branch 'master' into snyk-upgrade-1e8b2e5347b891af2fdff850e86d61b0 2023-11-23 19:15:07 +00:00
Simon Larsen
d41b9c4fc1 Merge pull request #945 from OneUptime/snyk-upgrade-7629a880e641d806cc633739d13088f4
[Snyk] Upgrade react-icons from 4.7.1 to 4.11.0
2023-11-23 19:12:49 +00:00
Simon Larsen
9a587623bf Merge pull request #943 from OneUptime/snyk-upgrade-999a26ac2112c160c090c315e5e05b74
[Snyk] Upgrade ejs from 3.1.8 to 3.1.9
2023-11-23 19:12:17 +00:00
Simon Larsen
70136546be Merge pull request #944 from OneUptime/snyk-upgrade-e6e436e0ef8ab8279ef89eae14c51482
[Snyk] Upgrade react-router-dom from 6.4.5 to 6.18.0
2023-11-23 19:12:06 +00:00
Simon Larsen
d683f26ca7 Merge pull request #946 from OneUptime/snyk-upgrade-3fac855f902dda7a149301067eb92036
[Snyk] Upgrade cron-parser from 4.8.1 to 4.9.0
2023-11-23 19:11:50 +00:00
Simon Larsen
830ddd04f8 Add Calendar icon to Icon component 2023-11-23 19:10:51 +00:00
snyk-bot
2e429a14d2 fix: upgrade cron-parser from 4.8.1 to 4.9.0
Snyk has created this PR to upgrade cron-parser from 4.8.1 to 4.9.0.

See this package in npm:
https://www.npmjs.com/package/cron-parser

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
2023-11-23 17:37:26 +00:00
snyk-bot
ed21325f5b fix: upgrade react-icons from 4.7.1 to 4.11.0
Snyk has created this PR to upgrade react-icons from 4.7.1 to 4.11.0.

See this package in npm:
https://www.npmjs.com/package/react-icons

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-23 17:32:01 +00:00
snyk-bot
372d6b5d3a fix: upgrade react-router-dom from 6.4.5 to 6.18.0
Snyk has created this PR to upgrade react-router-dom from 6.4.5 to 6.18.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/11bb5528-45f9-473c-a635-dc097fd03b3c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-23 17:31:57 +00:00
snyk-bot
ee2188d75a fix: upgrade ejs from 3.1.8 to 3.1.9
Snyk has created this PR to upgrade ejs from 3.1.8 to 3.1.9.

See this package in npm:
https://www.npmjs.com/package/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/0177f54a-1932-4698-9bc3-69701ae8a756?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-23 17:27:20 +00:00
Simon Larsen
79db7d5702 Merge pull request #942 from OneUptime/snyk-upgrade-44d9690d3afab96d85153f5464d227d9
[Snyk] Upgrade cron-parser from 4.8.1 to 4.9.0
2023-11-22 22:13:52 +00:00
Simon Larsen
5705f413cb Merge pull request #941 from OneUptime/snyk-upgrade-10fe9e968efecdbd27d8b7db0d899da4
[Snyk] Upgrade jest from 29.5.0 to 29.7.0
2023-11-22 22:13:34 +00:00
snyk-bot
f37601d923 fix: upgrade cron-parser from 4.8.1 to 4.9.0
Snyk has created this PR to upgrade cron-parser from 4.8.1 to 4.9.0.

See this package in npm:
https://www.npmjs.com/package/cron-parser

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/b8f33af6-6e95-4b8d-be69-ae879ce7ba92?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-22 20:06:29 +00:00
snyk-bot
2c705aca77 fix: upgrade jest from 29.5.0 to 29.7.0
Snyk has created this PR to upgrade jest from 29.5.0 to 29.7.0.

See this package in npm:
https://www.npmjs.com/package/jest

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/e80ba7ae-9a47-403b-93f0-65ae60216925?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-22 20:00:00 +00:00
Simon Larsen
ee9767eecc Merge pull request #936 from OneUptime/snyk-upgrade-d29661c67137394caaafd3564c878f78
[Snyk] Upgrade ejs from 3.1.8 to 3.1.9
2023-11-22 19:28:37 +00:00
Simon Larsen
39b0d6e7b6 Merge pull request #937 from OneUptime/snyk-upgrade-3765fb5997db5ec0013131e4ab84f78c
[Snyk] Upgrade @types/ping from 0.4.1 to 0.4.3
2023-11-22 19:28:19 +00:00
Simon Larsen
e45ec0bf74 Merge pull request #938 from OneUptime/snyk-upgrade-853239b17591925d7b149ac60221a380
[Snyk] Upgrade nodemailer from 6.8.0 to 6.9.7
2023-11-22 19:28:08 +00:00
Simon Larsen
2f05ccdfc7 Merge pull request #940 from OneUptime/snyk-upgrade-b234b3b5cb802c6fd4fb58accb3e03ff
[Snyk] Upgrade @types/nodemailer-express-handlebars from 4.0.2 to 4.0.4
2023-11-22 19:27:37 +00:00
Simon Larsen
e1a0cd90e4 Refactor online check in monitor classes 2023-11-22 19:27:01 +00:00
Simon Larsen
ca52106c23 Add SSL certificate check function 2023-11-22 17:32:58 +00:00
snyk-bot
d6932ee3fc fix: upgrade @types/nodemailer-express-handlebars from 4.0.2 to 4.0.4
Snyk has created this PR to upgrade @types/nodemailer-express-handlebars from 4.0.2 to 4.0.4.

See this package in npm:
https://www.npmjs.com/package/@types/nodemailer-express-handlebars

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/0177f54a-1932-4698-9bc3-69701ae8a756?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-22 17:27:40 +00:00
snyk-bot
62f1ac8945 fix: upgrade @types/nodemailer from 6.4.6 to 6.4.13
Snyk has created this PR to upgrade @types/nodemailer from 6.4.6 to 6.4.13.

See this package in npm:
https://www.npmjs.com/package/@types/nodemailer

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/0177f54a-1932-4698-9bc3-69701ae8a756?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-22 17:27:37 +00:00
snyk-bot
668c6bf858 fix: upgrade nodemailer from 6.8.0 to 6.9.7
Snyk has created this PR to upgrade nodemailer from 6.8.0 to 6.9.7.

See this package in npm:
https://www.npmjs.com/package/nodemailer

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/0177f54a-1932-4698-9bc3-69701ae8a756?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-22 17:27:32 +00:00
snyk-bot
69e045d581 fix: upgrade @types/ping from 0.4.1 to 0.4.3
Snyk has created this PR to upgrade @types/ping from 0.4.1 to 0.4.3.

See this package in npm:
https://www.npmjs.com/package/@types/ping

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
2023-11-22 17:19:13 +00:00
snyk-bot
0faeeed8b5 fix: upgrade ejs from 3.1.8 to 3.1.9
Snyk has created this PR to upgrade ejs from 3.1.8 to 3.1.9.

See this package in npm:
https://www.npmjs.com/package/ejs

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/cf2b4795-8742-46cb-8289-f13aadd23bcc?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-22 17:17:06 +00:00
Simon Larsen
031fe5425c Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-11-22 16:42:52 +00:00
Simon Larsen
61d3604a9d Fix formatting issues in MonitorType.ts,
MonitorCriteriaInstance.ts, ApiMonitor.ts,
CriteriaFilter.tsx, MonitorStep.tsx,
MonitorService.ts, WebsiteMonitor.ts, and
PingMonitor.ts
2023-11-22 16:40:19 +00:00
Simon Larsen
b375e8341d Fix error handling and add timeout functionality
in PortMonitor
2023-11-22 16:37:37 +00:00
Simon Larsen
6c1c446f06 Merge pull request #935 from soknaly/fix-duplicate-api-call-model-form
fix: duplicate api call in ModelForm
2023-11-22 16:26:38 +00:00
Simon Larsen
fd3694b93f Refactor monitor classes to handle retry count 2023-11-22 16:25:38 +00:00
Simon Larsen
261db0c748 Update runs-on value in test.probe.yaml 2023-11-22 16:16:57 +00:00
Simon Larsen
ad8ebf43de Add support for Port monitoring 2023-11-22 16:11:00 +00:00
Simon Larsen
fb24b39f27 Add new monitor type and update input type 2023-11-22 16:08:02 +00:00
Simon Larsen
753141e524 Add MonitorType Port and update MonitorStep
component
2023-11-22 16:02:31 +00:00
Sokna Ly
28906a3c09 Fix duplicate api call in ModelForm 2023-11-22 22:27:35 +07:00
Simon Larsen
81a39951fb Change runs-on to self-hosted in test job 2023-11-22 13:49:26 +00:00
Simon Larsen
7584bfd26c Update hostname in PingMonitor test 2023-11-22 12:13:19 +00:00
Simon Larsen
eff654c117 Update ping test URLs and IP address 2023-11-22 11:57:12 +00:00
Simon Larsen
eb144ca195 Refactor Step and HeaderAlert components 2023-11-22 11:54:03 +00:00
Simon Larsen
eb04399147 Refactor component function signatures 2023-11-22 11:52:08 +00:00
Simon Larsen
5c6efc0f8e Update React version in package.json 2023-11-22 11:50:57 +00:00
Simon Larsen
986bc78df6 Fix bug in login functionality 2023-11-22 11:25:39 +00:00
Simon Larsen
727f923dbb Add clear-modules script to package.json files 2023-11-22 11:13:15 +00:00
Simon Larsen
c7622bb7f3 Fix bug in login functionality 2023-11-22 11:08:06 +00:00
Simon Larsen
86a25a456a Merge branch 'ts-upgrade' 2023-11-22 10:59:13 +00:00
Simon Larsen
7f93e953ee Update Jest configurations for test coverage 2023-11-22 10:55:09 +00:00
Simon Larsen
2bc92729e5 Update React Router version in package.json 2023-11-22 10:42:28 +00:00
Simon Larsen
cd4a139a3c Update TypeScript version to 5.3.2 2023-11-22 10:33:39 +00:00
Simon Larsen
eefccf6110 Merge pull request #930 from OneUptime/snyk-upgrade-1f3f4ba368583e0b1358ce0c1711880c
[Snyk] Upgrade typeorm from 0.3.14 to 0.3.17
2023-11-21 21:15:55 +00:00
Simon Larsen
920352ac97 Merge pull request #932 from OneUptime/snyk-upgrade-b16ef9d4021ec0f091b1c3daf6896f55
[Snyk] Upgrade the-new-css-reset from 1.7.3 to 1.11.1
2023-11-21 21:15:14 +00:00
Simon Larsen
8fc4f61ffe Merge pull request #931 from OneUptime/snyk-upgrade-c21ec3c979b5f5cf7afa8f0763392d95
[Snyk] Upgrade @types/lodash from 4.14.182 to 4.14.200
2023-11-21 21:14:41 +00:00
Simon Larsen
1ec06ac333 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-11-21 20:49:27 +00:00
Simon Larsen
8d9ec445b7 remove realtime docker build 2023-11-21 20:49:24 +00:00
snyk-bot
0e934ed3e5 fix: upgrade the-new-css-reset from 1.7.3 to 1.11.1
Snyk has created this PR to upgrade the-new-css-reset from 1.7.3 to 1.11.1.

See this package in npm:
https://www.npmjs.com/package/the-new-css-reset

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
2023-11-21 19:14:49 +00:00
snyk-bot
ad6f59013e fix: upgrade @types/lodash from 4.14.182 to 4.14.200
Snyk has created this PR to upgrade @types/lodash from 4.14.182 to 4.14.200.

See this package in npm:
https://www.npmjs.com/package/@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
2023-11-21 19:14:45 +00:00
snyk-bot
6fed662391 fix: upgrade typeorm from 0.3.14 to 0.3.17
Snyk has created this PR to upgrade typeorm from 0.3.14 to 0.3.17.

See this package in npm:
https://www.npmjs.com/package/typeorm

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
2023-11-21 19:14:41 +00:00
Simon Larsen
6a9704ba79 Merge pull request #925 from OneUptime/snyk-upgrade-ea7c92df7e1a0d96b31d4010e1ce3fa8
[Snyk] Upgrade formik from 2.2.9 to 2.4.5
2023-11-21 18:19:37 +00:00
Simon Larsen
4c66d4c97e Merge pull request #924 from OneUptime/snyk-upgrade-eb045c7858a7c0be001826618e61a91c
[Snyk] Upgrade the-new-css-reset from 1.7.3 to 1.11.1
2023-11-21 18:19:10 +00:00
Simon Larsen
2f5c19ecb5 Merge pull request #928 from OneUptime/snyk-upgrade-1d14a8c213e14afa5aeef487f9eb5045
[Snyk] Upgrade twilio from 4.11.2 to 4.19.0
2023-11-21 18:18:26 +00:00
Simon Larsen
80b2474b03 Add option to disable monitor when duplicating 2023-11-21 18:10:28 +00:00
Simon Larsen
0fe31f5371 Fix probe status rendering issue 2023-11-21 18:04:41 +00:00
Simon Larsen
f7cd616540 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-11-21 18:02:45 +00:00
Simon Larsen
dfda71d779 Add Probe Status Element to Monitor and Settings
Pages
2023-11-21 18:02:39 +00:00
snyk-bot
f6dc0d9214 fix: upgrade twilio from 4.11.2 to 4.19.0
Snyk has created this PR to upgrade twilio from 4.11.2 to 4.19.0.

See this package in npm:
https://www.npmjs.com/package/twilio

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/0177f54a-1932-4698-9bc3-69701ae8a756?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-21 17:52:34 +00:00
Simon Larsen
200dd1d98d Merge pull request #922 from OneUptime/snyk-upgrade-d25901fbcbaaf02ff24c2f45cd7adba5
[Snyk] Upgrade react-router-dom from 6.4.5 to 6.18.0
2023-11-21 17:51:09 +00:00
Simon Larsen
640ce525c5 Update Probe npm install and test commands 2023-11-21 17:50:09 +00:00
snyk-bot
6a6780058c fix: upgrade formik from 2.2.9 to 2.4.5
Snyk has created this PR to upgrade formik from 2.2.9 to 2.4.5.

See this package in npm:
https://www.npmjs.com/package/formik

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-21 17:14:11 +00:00
snyk-bot
2f167bd7aa fix: upgrade the-new-css-reset from 1.7.3 to 1.11.1
Snyk has created this PR to upgrade the-new-css-reset from 1.7.3 to 1.11.1.

See this package in npm:
https://www.npmjs.com/package/the-new-css-reset

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-21 17:14:07 +00:00
snyk-bot
cbbc3c79d0 fix: upgrade react-router-dom from 6.4.5 to 6.18.0
Snyk has created this PR to upgrade react-router-dom from 6.4.5 to 6.18.0.

See this package in npm:
https://www.npmjs.com/package/react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-21 17:13:56 +00:00
Simon Larsen
14dceebc9a Update dependencies and fix tests 2023-11-21 16:34:10 +00:00
Simon Larsen
2fbe8294eb Update Jest configuration and API test file 2023-11-21 14:33:05 +00:00
Simon Larsen
3a57253720 remove realtime jobs 2023-11-21 14:19:12 +00:00
Simon Larsen
c554627ab2 Fix formatting issues in code 2023-11-21 13:23:22 +00:00
Simon Larsen
a9a0466e49 Update axios version in package-lock.json 2023-11-21 13:18:23 +00:00
Simon Larsen
126927350d Commented out unused code and imports 2023-11-21 13:16:38 +00:00
Simon Larsen
a5f2f4e338 Merge branch 'telemetry' 2023-11-21 13:15:53 +00:00
Simon Larsen
b276e6dfc4 Update axios version to 1.6.2 2023-11-21 13:15:39 +00:00
Simon Larsen
9f7f5d7a50 Add postedAt field to IncidentPublicNote and
ScheduledMaintenancePublicNote models
2023-11-21 13:13:02 +00:00
Simon Larsen
c6981cc130 Fix formatting and indentation issues in
StatusPageAPI and StatusPageSettings
2023-11-21 12:39:46 +00:00
Simon Larsen
cf0a76ce71 Add hidePoweredByOneUptimeBranding feature 2023-11-21 12:35:43 +00:00
Simon Larsen
5ce3a5d876 fix haraka docker 2023-11-21 12:14:24 +00:00
Simon Larsen
b8b79e0d73 Update coverage reporters in jest.config.json 2023-11-21 12:10:26 +00:00
Simon Larsen
aa38ebf8ba Update typeRoots in tsconfig.json files 2023-11-21 12:09:33 +00:00
Simon Larsen
e1d34054ab fix lock 2023-11-21 12:03:44 +00:00
Simon Larsen
c22606d93c Add SQL as a CodeType and fix Dropdown overflow
issue
2023-11-21 11:45:23 +00:00
Simon Larsen
8c7aab22f1 Merge pull request #911 from OneUptime/renovate/postgresql-12.x
chore(deps): update helm release postgresql to v12.12.10
2023-11-21 08:30:27 +00:00
renovate[bot]
45cbe8e357 chore(deps): update helm release postgresql to v12.12.10 2023-11-21 06:58:44 +00:00
Simon Larsen
74f797948e Merge pull request #906 from OneUptime/renovate/depcheck-1.x-lockfile
chore(deps): update dependency depcheck to v1.4.7
2023-11-20 22:10:52 +00:00
renovate[bot]
9cb3cf0d04 chore(deps): update dependency depcheck to v1.4.7 2023-11-20 22:09:29 +00:00
Simon Larsen
35a85a35a4 Merge pull request #903 from OneUptime/renovate/babel-eslint-replacement
chore(deps): replace dependency babel-eslint with @babel/eslint-parser ^7.11.0
2023-11-20 22:07:06 +00:00
Simon Larsen
6f0b7a2145 Merge pull request #904 from OneUptime/renovate/node-16.x-lockfile
chore(deps): update dependency @types/node to v16.18.62
2023-11-20 21:50:52 +00:00
renovate[bot]
e5ee57e234 chore(deps): update dependency @types/node to v16.18.62 2023-11-20 21:40:48 +00:00
renovate[bot]
2b186d8a2a chore(deps): replace dependency babel-eslint with @babel/eslint-parser ^7.11.0 2023-11-20 21:38:23 +00:00
Simon Larsen
0a711dbcfd Merge pull request #902 from OneUptime/snyk-fix-cac0a811fbf081e8c39adb9edee45ab8
[Snyk] Security upgrade node from 18.13.0-alpine to 18.18.1-alpine
2023-11-20 21:37:23 +00:00
snyk-bot
d26b348f0d fix: Tests/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-3314647
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-3326683
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5741793
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5843454
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5848038
2023-11-20 20:36:37 +00:00
Simon Larsen
7ea8479779 Merge pull request #901 from OneUptime/renovate/npm-axios-vulnerability
fix(deps): update dependency axios to v1.6.0 [security]
2023-11-20 20:16:23 +00:00
renovate[bot]
72d2297a02 fix(deps): update dependency axios to v1.6.0 [security] 2023-11-20 20:10:36 +00:00
Simon Larsen
fae8968dde Merge pull request #899 from OneUptime/simlarsen-patch-1
Create renovate.json
2023-11-20 20:08:30 +00:00
Simon Larsen
b9a10ebcad Create renovate.json 2023-11-20 20:08:21 +00:00
Simon Larsen
5a7c706829 Merge pull request #898 from OneUptime/snyk-fix-0aaed0cf00f945f9022cc5d8720c4f32
[Snyk] Security upgrade node from 18.13.0-alpine to 18.18.1-alpine
2023-11-20 19:53:14 +00:00
snyk-bot
adf7432663 fix: Haraka/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-3314647
- https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-6032385
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-3326683
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5741793
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5843454
2023-11-20 19:52:58 +00:00
Simon Larsen
2409e0fea8 Merge pull request #897 from OneUptime/snyk-fix-13ca70246dc97f612c5350fe03df784b
[Snyk] Security upgrade crypto-js from 4.1.1 to 4.2.0
2023-11-20 19:52:06 +00:00
snyk-bot
f0fb3fabd0 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-CRYPTOJS-6028119
2023-11-20 19:49:55 +00:00
Simon Larsen
340afdecc8 Merge pull request #896 from OneUptime/snyk-fix-b17ab3044788224d222d9dff8822f36a
[Snyk] Security upgrade axios from 1.3.3 to 1.6.0
2023-11-20 19:30:47 +00:00
snyk-bot
c7b5a544ee fix: Workflow/package.json & Workflow/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6032459
2023-11-20 19:29:40 +00:00
Simon Larsen
8d131b28bf Merge pull request #895 from OneUptime/snyk-fix-65754aaffe2d6283116e53a7b22cdf20
[Snyk] Security upgrade nginx from 1.25.1-alpine to 1.25.3-alpine
2023-11-20 19:28:29 +00:00
snyk-bot
d1131d32e8 fix: Nginx/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE317-CURL-5958910
- https://snyk.io/vuln/SNYK-ALPINE317-CURL-5958910
- https://snyk.io/vuln/SNYK-ALPINE317-LIBWEBP-5902239
- https://snyk.io/vuln/SNYK-ALPINE317-LIBX11-6042401
- https://snyk.io/vuln/SNYK-ALPINE317-NGHTTP2-5954769
2023-11-20 19:28:01 +00:00
Federico Martín Alconada Verzini
2c4664b362 chore: appease linter 2023-11-20 14:27:54 +00:00
Federico Martín Alconada Verzini
c784324b00 test: add coverage for TeamMemberService.ts 2023-11-20 14:07:30 +00:00
Simon Larsen
bfc5e29b71 remove older data 2023-11-20 13:34:13 +00:00
Simon Larsen
ba30927de6 Merge branch 'master' into telemetry 2023-11-20 13:21:21 +00:00
Simon Larsen
ae5f0983a6 fix typo 2023-11-19 21:56:13 +00:00
Simon Larsen
49c70767b0 fix update group to growth 2023-11-19 14:06:47 +00:00
Simon Larsen
b6afa0d632 Merge pull request #893 from jkvn/master
Everything you see should be deletable
2023-11-18 14:00:29 +00:00
Kevin Jagodic
a2b8e721bf Merge branch 'OneUptime:master' into master 2023-11-18 14:47:34 +01:00
Kevin Jagodic
ac7b04e8ad Change delete permission to Free plan in model files
Updated the 'delete' permissions for Team, IncidentState, TeamPermission, ScheduledMaintenanceState, Label, and MonitorStatus model files from 'PlanSelect.Growth' to 'PlanSelect.Free'. This change allows users with a 'Free' plan to have the ability to delete these specific resources.
2023-11-18 14:45:36 +01:00
Simon Larsen
b0eb75d6c7 Merge branch 'master' into release 2023-11-18 13:45:31 +00:00
Simon Larsen
784bebe1a4 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-11-18 13:44:35 +00:00
Simon Larsen
638e323c4f Add HTTPResponse import and handle API response in
Settings component
2023-11-18 13:44:32 +00:00
Simon Larsen
f79f4c7627 Add Stop icon to Icon component and implement
LogsFilters component
2023-11-18 13:37:03 +00:00
Simon Larsen
5936805350 Merge pull request #892 from jkvn/master
Make announcement deletable
2023-11-18 13:29:46 +00:00
Kevin Jagodic
22c9d9228c Update StatusPageAnnouncement.ts 2023-11-18 14:25:34 +01:00
Simon Larsen
9759911dba Merge pull request #891 from zuverliebt/master
Fix Plan Group Update Error
2023-11-18 12:56:19 +00:00
Luca
fa99ce9a3f Update StatusPageGroup.ts
If you created groups before the update, you can no longer delete or edit them.
2023-11-18 13:43:36 +01:00
Simon Larsen
983739cc03 dark scrollbar 2023-11-17 18:22:44 +00:00
Simon Larsen
b4f034d1a9 Update LogItem styling in LogsViewer component 2023-11-17 18:09:18 +00:00
Simon Larsen
3bdc7407aa Merge pull request #888 from OneUptime/master
Release
2023-11-17 17:24:59 +00:00
Simon Larsen
1829e1ec42 add permission to logs 2023-11-17 17:10:44 +00:00
Simon Larsen
cb82bd7c6f Merge branch 'master' into telemetry 2023-11-17 16:36:54 +00:00
Simon Larsen
48f5a735d2 Add SideMenuSection component and update
SideMenuItem components
2023-11-17 16:30:01 +00:00
Simon Larsen
17946c3c51 Add Permission.ProjectMember to TeamPermission and
StatusPageOwnerTeam models
2023-11-17 14:54:42 +00:00
Simon Larsen
57c13add9c support form-urlencoded 2023-11-17 13:58:46 +00:00
Simon Larsen
544bbb2d2f Fix formatting issues in StatusBubble and
DashboardHeader components
2023-11-17 13:35:12 +00:00
Simon Larsen
7126fdbdae Add shouldAnimate prop to Statusbubble component 2023-11-17 13:29:15 +00:00
Simon Larsen
aaf60f39ac fix default criteria 2023-11-17 13:10:53 +00:00
Simon Larsen
687c5c341b fix log 2023-11-17 11:28:14 +00:00
Simon Larsen
0b37a63c84 Merge pull request #887 from DamsDev1/fix-affected-resources
Fix affected resources overflow
2023-11-17 09:36:33 +00:00
Damien Fajole
4421227c5e Fix affected resources overflow 2023-11-17 10:11:45 +01:00
Simon Larsen
91f8489b22 fix err 2023-11-16 18:46:33 +00:00
Simon Larsen
4fa048929c make realtime work 2023-11-16 18:34:23 +00:00
Simon Larsen
12df8275a5 fix socket connection 2023-11-16 17:16:37 +00:00
Simon Larsen
8e76c5a90a Merge pull request #886 from fedealconada/filepicker-coverage
test: add coverage for FilePicker.ts
2023-11-15 19:26:23 +00:00
Simon Larsen
08d13997fe Fix formatting and add realtime event emission 2023-11-15 19:20:04 +00:00
Simon Larsen
e12ea14d85 Add realtime events support to
AnalyticsDatabaseService and BaseModel
2023-11-15 18:49:43 +00:00
Federico Martín Alconada Verzini
80a46eb808 test: add coverage for FilePicker.ts 2023-11-15 18:32:03 +00:00
Simon Larsen
4dc5c55a41 Merge pull request #881 from fedealconada/billing-service-coverage
chore: add BillingService.ts test coverage
2023-11-15 16:11:35 +00:00
Simon Larsen
67a94cca79 Merge pull request #878 from slavaGanzin/CommonUI-Probe.test
Probe.test
2023-11-15 16:08:10 +00:00
Simon Larsen
ee84a082dc Add RealtimeRoute and socket.io-client dependency 2023-11-15 16:07:04 +00:00
Federico Martín Alconada Verzini
a52b2be67e chore: consolidate APIErrors into Errors 2023-11-15 14:08:45 +00:00
Simon Larsen
092d5ec270 Delete unnecessary files and code related to
Realtime service
2023-11-15 13:30:02 +00:00
Simon Larsen
7ce4cb9143 Add rounded corners to LogItem component and
implement auto-scrolling in LogsViewer component
2023-11-15 13:20:05 +00:00
Simon Larsen
8a32c659e1 fix log 2023-11-15 12:33:10 +00:00
Federico Martín Alconada Verzini
49c9987efd chore: force camel case file name change (2) 2023-11-15 11:42:18 +00:00
Federico Martín Alconada Verzini
aa6d3523fc chore: force camel case file name change (1) 2023-11-15 11:41:44 +00:00
Federico Martín Alconada Verzini
be8da5c8f9 chore: address review comments 2023-11-15 11:34:40 +00:00
Simon Larsen
c240f4d569 Merge pull request #883 from fedealconada/components-modal-coverage
chore: add ComponentsModal.tsx test coverage
2023-11-15 08:39:46 +00:00
Simon Larsen
0d8f174675 Refactor code for better readability and
maintainability
2023-11-14 17:42:26 +00:00
Simon Larsen
8b11dcfe81 Refactor LogsViewer component and
AnalyticsDatabaseService class
2023-11-14 16:51:36 +00:00
Simon Larsen
b4e56b18ce Refactor AnalyticsDataModel to AnalyticsBaseModel
and update CommonModel.fromJSON method
2023-11-14 16:37:41 +00:00
Simon Larsen
1fd68ef60f Add BaseAnalyticsAPI to DashboardAPI and export
LogService from LogService.ts
2023-11-14 16:22:06 +00:00
Simon Larsen
62d1679938 Add BaseModel import to multiple files 2023-11-14 16:13:58 +00:00
Simon Larsen
99af4fe826 Fix formatting and remove unused imports 2023-11-14 15:24:05 +00:00
Simon Larsen
4ec5c0d7f1 Add changes to various files 2023-11-14 15:14:58 +00:00
Simon Larsen
3023e22de3 refactor common server to add base api for analytics 2023-11-14 14:21:26 +00:00
Simon Larsen
5128e17205 refactor base api 2023-11-13 19:31:44 +00:00
Federico Martín Alconada Verzini
d3bb9f26e9 chore: add BillingService.ts test coverage 2023-11-13 17:19:32 +00:00
Federico Martín Alconada Verzini
a8026f470a chore: add ComponentsModal.tsx teset coverage 2023-11-13 17:13:10 +00:00
Simon Larsen
3072bb8625 Merge pull request #877 from slavaGanzin/CommonUI-ProgressBar.test
ProgressBar.test.tsx
2023-11-13 16:43:51 +00:00
Simon Larsen
9a3127563d Merge pull request #882 from OneUptime/simlarsen-patch-1
Update IPAddress.md
2023-11-13 13:29:26 +00:00
Simon Larsen
1ff254343f Update IPAddress.md 2023-11-13 13:29:16 +00:00
Simon Larsen
2f6f81385f add coming soon pages 2023-11-13 12:30:36 +00:00
Simon Larsen
b5929454b0 fix otel ingest 2023-11-13 12:10:37 +00:00
Simon Larsen
17b2012279 rename service to telemetry service 2023-11-13 12:09:16 +00:00
Simon Larsen
2d47b326b8 Merge branch 'master' into telemetry 2023-11-13 11:52:30 +00:00
Simon Larsen
72b90f8414 add resources affected 2023-11-13 11:50:39 +00:00
Simon Larsen
a32120e5bd add obj in path 2023-11-13 11:16:18 +00:00
Simon Larsen
502f298a3a add authentication 2023-11-12 15:12:49 +00:00
Simon Larsen
d8d5556f1a add header setter 2023-11-12 14:24:27 +00:00
Slava Ganzin
1e488ebfbe ProgressBar.test: check text 2023-11-12 12:18:03 +01:00
Slava Ganzin
4cd4cc828f ProgressBar.test: use data-testid 2023-11-11 22:43:38 +01:00
Slava Ganzin
e5795034c6 Probe.test: use data-testid 2023-11-11 22:38:08 +01:00
Simon Larsen
2b2f9a74b6 rename helpers 2023-11-10 17:17:37 +00:00
Simon Larsen
fd98711ad8 rename helpers 2023-11-10 17:17:20 +00:00
Simon Larsen
cf4d8df7e5 Merge pull request #879 from slavaGanzin/CommonServer-API-tests
BaseAPI.test.tsx
2023-11-10 17:14:40 +00:00
Slava Ganzin
0a91105e28 fix ProgressBar.test 2023-11-10 15:32:50 +01:00
Slava Ganzin
58bfec9c5a fix awaits in BaseAPI.test 2023-11-10 15:16:57 +01:00
Slava Ganzin
ce402c79d1 ProbeAPI.test 2023-11-10 15:07:46 +01:00
Slava Ganzin
4ce79420ca Probe.test 2023-11-10 14:33:39 +01:00
Slava Ganzin
c663fbd0a1 ProgressBar.test.tsx 2023-11-10 14:25:48 +01:00
Simon Larsen
c8f24affc3 add jest types to probe test 2023-11-10 12:53:50 +00:00
Simon Larsen
abb4f4724f fix fmt 2023-11-10 12:16:01 +00:00
Simon Larsen
3a268fc816 fix fmt 2023-11-10 12:11:06 +00:00
Simon Larsen
8cb398919a add resources affected 2023-11-10 12:05:08 +00:00
Slava Ganzin
a63dd22d1e refactor mockRouter 2023-11-10 11:31:05 +01:00
Slava Ganzin
c793479f55 BaseAPI.test.tsx 2023-11-10 10:46:26 +01:00
Simon Larsen
1d092240f9 fix tests 2023-11-09 21:47:11 +00:00
Simon Larsen
625c96b91a fix otel collector 2023-11-09 21:37:23 +00:00
Simon Larsen
a5686c01fb add service pages 2023-11-09 14:09:08 +00:00
Simon Larsen
a8dc444714 add service pages 2023-11-08 20:28:26 +00:00
Simon Larsen
508677867a add service model 2023-11-08 20:13:49 +00:00
Simon Larsen
a9a839f143 fix uptime percent 2023-11-08 09:43:04 +00:00
Simon Larsen
a299fca2ba Merge pull request #874 from dulajkavinda/tests/added-tests-crontab-jsontocsv
Added tests for JsonToCsv and CronTab util functions
2023-11-07 16:58:30 +00:00
Simon Larsen
396066bf0d fix util 2023-11-07 16:57:00 +00:00
Simon Larsen
9debdfafba Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-11-07 16:39:40 +00:00
Simon Larsen
49c4dff44b add uptime percent to monitor groups. 2023-11-07 16:39:38 +00:00
Simon Larsen
27a8434181 add uptime to monitors page 2023-11-07 16:06:27 +00:00
Simon Larsen
c8305ef7c0 uptime percent 2023-11-07 15:23:57 +00:00
Simon Larsen
2f332a64f3 add uptime percent 2023-11-07 15:18:29 +00:00
Dulaj Kavinda
fb5291e7c1 tests: added testts for CronTab 2023-11-07 19:36:36 +05:30
Dulaj Kavinda
4034cf6ed8 tests: added tests for JsonToCsv 2023-11-07 18:17:44 +05:30
Simon Larsen
8b37587800 Merge pull request #873 from dulajkavinda/tests/added-tests-tabs-and-modal
Added tests for Tabs and Modal components
2023-11-07 09:05:45 +00:00
Dulaj Kavinda
03eb1dd1f2 tests: added test cases for CommonUI/Modal 2023-11-07 12:40:15 +05:30
Dulaj Kavinda
ee91526239 tests: added test cases for CommonUI/Tabs 2023-11-07 12:39:29 +05:30
Simon Larsen
970c537b96 add uptime precision 2023-11-06 20:17:37 +00:00
Simon Larsen
35718ee7b5 fix blog icon 2023-11-05 13:38:14 +00:00
Simon Larsen
310cd90714 add blog links 2023-11-05 13:36:38 +00:00
Simon Larsen
513fa74c59 add unpaid banner 2023-11-05 12:57:39 +00:00
Simon Larsen
4ba6f714af add project id 2023-11-05 12:15:42 +00:00
Simon Larsen
7ab3ba7201 add logs in call service 2023-11-03 18:11:58 +00:00
Simon Larsen
e5aa9c9496 remove persistence from redis 2023-11-03 17:42:37 +00:00
Simon Larsen
455ca7b22d add appendonly no to redis 2023-11-03 17:35:13 +00:00
Simon Larsen
0b71c8b769 add log statements 2023-11-03 16:39:05 +00:00
Simon Larsen
19b0a1f2a8 require fs 2023-11-03 16:00:35 +00:00
Simon Larsen
4f93dd0f04 move files in install to js 2023-11-03 15:57:05 +00:00
Simon Larsen
60d0f188ad add categorization to overview 2023-11-02 19:00:30 +00:00
Simon Larsen
bd587b210e add sections to announcments 2023-11-02 18:50:18 +00:00
Simon Larsen
80dd33cd7f add categories to pages 2023-11-02 16:39:40 +00:00
Simon Larsen
d675eca50c add categories to incidents 2023-11-02 15:23:43 +00:00
Simon Larsen
76712e8f89 add labels to events 2023-11-02 14:05:40 +00:00
Simon Larsen
fe68b009eb Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-11-02 13:40:54 +00:00
Simon Larsen
6c1bd10873 fix current status on sp 2023-11-02 13:39:59 +00:00
Simon Larsen
9a6960e154 Merge pull request #870 from OneUptime/monitor-groups
Monitor groups
2023-11-02 11:45:28 +00:00
Simon Larsen
05a288c761 fix jest types 2023-11-02 11:11:36 +00:00
Simon Larsen
a9f503da9d fix probe tests 2023-11-02 10:21:31 +00:00
Simon Larsen
49d3655502 fix fmt 2023-11-01 20:49:00 +00:00
Simon Larsen
1cdcc639b4 fix fmt 2023-11-01 20:45:23 +00:00
Simon Larsen
7568c70b50 fix fmt 2023-11-01 20:15:18 +00:00
Simon Larsen
6259f81a91 add ui changes 2023-11-01 19:38:58 +00:00
Simon Larsen
f40c1daeb8 fix fmt 2023-11-01 14:15:43 +00:00
Simon Larsen
bb73ed14cd add animate in status bubble 2023-11-01 10:44:01 +00:00
Simon Larsen
4b71a81f7c fix fmt on uptime 2023-11-01 10:40:03 +00:00
Simon Larsen
d6788c138b fix uptime graph 2023-11-01 10:34:38 +00:00
Simon Larsen
28f4a1f473 add status api 2023-10-31 17:05:56 +00:00
Simon Larsen
ccb4781c06 enable compression 2023-10-31 14:10:57 +00:00
Simon Larsen
2e27347225 fix fmt 2023-10-31 12:19:47 +00:00
Simon Larsen
e9015f0eff Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-10-31 12:06:27 +00:00
Simon Larsen
6cf8560151 fix eslint 2023-10-31 12:06:24 +00:00
Simon Larsen
7d2e91d867 Merge pull request #854 from hasannadeem/tests/notification-middleware-and-cookie-utils
Tests for notification middleware and cookie utils
2023-10-31 11:57:11 +00:00
Simon Larsen
46e0210dcc Merge pull request #869 from fakharj/eslint-object-curly-spacing
add eslint object-curly-spacing rule
2023-10-31 09:58:24 +00:00
Simon Larsen
02fc5502eb Merge branch 'master' into eslint-object-curly-spacing 2023-10-31 09:58:17 +00:00
Simon Larsen
ce3131edaf Merge pull request #865 from fakharj/eslint-unneeded-ternary
added no unneeded ternary in eslint
2023-10-30 13:56:03 +00:00
fakharj
ca4716133a add eslint object-curly-spacing rule 2023-10-30 18:43:43 +05:00
Simon Larsen
9cb254f9d1 Merge pull request #862 from OneUptime/dependabot/npm_and_yarn/Common/crypto-js-4.2.0
Bump crypto-js from 4.1.1 to 4.2.0 in /Common
2023-10-30 11:13:47 +00:00
Simon Larsen
d51fbdf5f7 Merge pull request #868 from cheese-framework/master
Add test suites for JSONFunctions and SerializableObject
2023-10-30 11:10:51 +00:00
Simon Larsen
57b7b5b39e Merge pull request #855 from hammadfauz/duplicateModalTest
Duplicate modal test
2023-10-30 08:24:18 +00:00
Drantaz
2e46ebd0e8 Merge branch 'master' of https://github.com/cheese-framework/oneuptime 2023-10-27 20:25:23 +00:00
Drantaz
4ffe215665 Add test suites for JSONFunctions and SerializableObject 2023-10-27 20:24:33 +00:00
Hammad
e680346f1f fixes lint 2023-10-27 23:48:27 +05:00
Hammad
4faa8d32f6 adds test ids to key elements 2023-10-27 23:27:33 +05:00
Simon Larsen
ab07ff0104 fix fmt 2023-10-27 17:22:20 +01:00
Simon Larsen
03dd6fef04 Merge branch 'master' of github.com-simon:OneUptime/oneuptime 2023-10-27 17:15:29 +01:00
Simon Larsen
31c0ff7dea Merge branch 'feature-flags' 2023-10-27 17:15:18 +01:00
Simon Larsen
dca1d2c370 add call and sms cost 2023-10-27 17:14:58 +01:00
Simon Larsen
fc218a970a Merge pull request #861 from OneUptime/feature-flags
add feature flag page
2023-10-27 16:40:30 +01:00
Simon Larsen
17509225ee add monitor groups. 2023-10-27 16:39:33 +01:00
Simon Larsen
447bac1d67 fix undefined in page title 2023-10-27 16:20:04 +01:00
Simon Larsen
67b3b224a7 fix monitor group api 2023-10-27 16:17:28 +01:00
Simon Larsen
48fbf50973 add current status 2023-10-27 13:13:32 +01:00
fakharj
a0acb24651 added no unneeded ternary in eslint 2023-10-27 13:03:07 +05:00
Simon Larsen
c958893d67 increase timeout to 30 secs 2023-10-26 20:51:00 +01:00
Simon Larsen
9e2bd15cf4 fix fmt 2023-10-26 19:58:47 +01:00
Simon Larsen
17e9ad4fcd Merge branch 'master' into feature-flags 2023-10-26 19:10:30 +01:00
Simon Larsen
4d5a49f11e fix fmt 2023-10-26 19:09:29 +01:00
Simon Larsen
2d9b9950dd when monitors are timeout mark them as offline. 2023-10-26 19:09:03 +01:00
Simon Larsen
c3c0fbc853 fix fmt 2023-10-26 15:24:15 +01:00
Simon Larsen
f970b02e9e monitor group view 2023-10-26 15:20:38 +01:00
Simon Larsen
987394be41 monitor groups page 2023-10-26 15:02:48 +01:00
Simon Larsen
34b3dff108 add service 2023-10-26 14:53:26 +01:00
Simon Larsen
b603241d57 add incidents page 2023-10-26 14:51:45 +01:00
Simon Larsen
8df01fc098 add owners page 2023-10-26 14:26:58 +01:00
Simon Larsen
268305e6cd add services and perms 2023-10-26 14:14:52 +01:00
Simon Larsen
bbb53b3321 make delete work 2023-10-26 13:52:05 +01:00
Simon Larsen
c79fa88ad1 add monitor group resource 2023-10-26 13:37:31 +01:00
Simon Larsen
35c5e57752 add read perms to domain 2023-10-26 13:09:06 +01:00
dependabot[bot]
254a9de101 Bump crypto-js from 4.1.1 to 4.2.0 in /Common
Bumps [crypto-js](https://github.com/brix/crypto-js) from 4.1.1 to 4.2.0.
- [Commits](https://github.com/brix/crypto-js/compare/4.1.1...4.2.0)

---
updated-dependencies:
- dependency-name: crypto-js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 22:47:32 +00:00
Simon Larsen
c844bf8e43 add feature flag page 2023-10-25 20:05:28 +01:00
Simon Larsen
c0288716da add labels to status page 2023-10-25 18:06:39 +01:00
Simon Larsen
51e7fa6c9a add labels to status page 2023-10-25 17:46:30 +01:00
Simon Larsen
d9eb60017a fix fmt 2023-10-25 17:37:02 +01:00
Simon Larsen
e9d7b36198 fix labels on status page. 2023-10-25 14:50:28 +01:00
Simon Larsen
7308945061 show incident labels on status page 2023-10-25 14:39:43 +01:00
Simon Larsen
3f8e5e4e0a Merge pull request #860 from cheese-framework/master
Add test suites for Database and API
2023-10-25 12:40:20 +01:00
Drantaz
3f7d186db0 Add test suites for Database and API 2023-10-25 11:10:52 +00:00
Simon Larsen
8cb91d94eb remove auto table creation 2023-10-25 09:21:11 +01:00
Simon Larsen
3337ad2a45 Merge pull request #859 from OneUptime/otel-save
Otel save
2023-10-25 09:20:24 +01:00
Simon Larsen
438fbf4368 add historgram in program 2023-10-24 20:49:10 +01:00
Simon Larsen
ffca1acc9a Merge pull request #858 from cheese-framework/Add-Jest-test-suite-for-Common/Database/Date-#857
Add Test cases for Common/Database/Date
2023-10-24 20:25:24 +01:00
Drantaz
846d5ce104 Add Test cases for Common/Database/Date -- Add linting 2023-10-24 17:14:26 +00:00
Drantaz
43a075436a Add Test cases for Common/Database/Date 2023-10-24 16:55:11 +00:00
Simon Larsen
8fe35d9a29 remove unneeded files 2023-10-24 16:54:14 +01:00
Simon Larsen
849eeac23a add auto table creation 2023-10-24 13:52:37 +01:00
Simon Larsen
01a4cac559 Merge pull request #830 from OneUptime/otel-save
Otel save
2023-10-24 13:50:38 +01:00
Simon Larsen
b4cd4d2c02 comment out table creation 2023-10-24 13:50:15 +01:00
Simon Larsen
329484fb87 fix fmt 2023-10-24 13:49:27 +01:00
Simon Larsen
ee54a324d7 add guage 2023-10-24 13:35:26 +01:00
Simon Larsen
ba2feffbee Merge pull request #826 from hammadfauz/BearerTokenAuthTest
Bearer token auth test
2023-10-24 12:30:07 +01:00
Hammad
4b0b91396b lint fixes 2023-10-24 16:26:53 +05:00
Hammad
f2c6321216 raises proper exception when token is invalid or empty 2023-10-24 16:22:45 +05:00
Simon Larsen
67447c0bd7 fix copy in criteria 2023-10-24 11:57:06 +01:00
Simon Larsen
323646ebcd docker file for otel proj 2023-10-24 11:56:52 +01:00
Simon Larsen
81e4b4435c fix array save 2023-10-24 11:32:02 +01:00
Simon Larsen
842b0664c7 update long numbers 2023-10-24 10:56:41 +01:00
Simon Larsen
0bdab474de fix models 2023-10-24 10:46:44 +01:00
Simon Larsen
ef1b22e62b Merge pull request #856 from OneUptime/simlarsen-patch-1
Update DockerCompose.md
2023-10-24 10:22:51 +01:00
Simon Larsen
3d229a0030 Update DockerCompose.md 2023-10-24 10:22:37 +01:00
Simon Larsen
e34599d18a fix fmt 2023-10-23 20:41:33 +01:00
Simon Larsen
aa7594f2a8 fix fmt 2023-10-23 20:24:36 +01:00
Simon Larsen
0626669b02 add metrics histogram and sum 2023-10-23 20:19:20 +01:00
Simon Larsen
35b949e448 add new models to clickhouse 2023-10-23 20:02:44 +01:00
Simon Larsen
2bb4086fd1 refactor service code 2023-10-23 15:58:16 +01:00
Simon Larsen
03f9c36f06 fix fmt 2023-10-23 15:51:38 +01:00
Simon Larsen
9fe998a43d save logs to otel 2023-10-23 15:27:22 +01:00
Simon Larsen
3841b655e5 add dotnet otel project 2023-10-23 15:17:25 +01:00
Hammad
5ec8ee6dcb removes jest config for ignoring snapshots 2023-10-23 19:17:19 +05:00
Hammad
a1c6121bee tests UI by querying key elements and removes snapshots 2023-10-23 19:15:10 +05:00
Hammad
51c76aa1af moves test suite into Components as per convention 2023-10-23 19:14:04 +05:00
Simon Larsen
40ee5d775b fix fmt 2023-10-23 12:57:02 +01:00
Simon Larsen
88f0e2af51 set default card for customers if they dont have it. 2023-10-23 11:27:19 +01:00
Hammad
e702a0b0d2 Fixes lint errors 2023-10-21 15:49:54 +05:00
Hammad
cfc2f99248 adds tests for DuplicateModel 2023-10-21 15:07:20 +05:00
Hammad
f23bb3af41 fixes jest mistaking snapshots for test suites 2023-10-21 15:06:46 +05:00
Simon Larsen
2cdf1236be fix fmt 2023-10-20 19:52:58 +01:00
Simon Larsen
ed5a144735 fix insert into db 2023-10-20 19:51:23 +01:00
Simon Larsen
e687a439e6 fix fmt 2023-10-20 17:58:45 +01:00
Simon Larsen
cfa20e2be6 generate insert statement 2023-10-20 17:43:50 +01:00
hasan
9205764deb Add tests for notification middleware and cookie utils 2023-10-20 18:44:33 +05:00
Simon Larsen
32275837ac fix nested type 2023-10-20 14:26:01 +01:00
Simon Larsen
34568a39f5 refactor staement generator into a new file 2023-10-20 13:01:51 +01:00
Simon Larsen
b7b41dfebb Merge branch 'master' into otel-save 2023-10-20 11:27:21 +01:00
Simon Larsen
9b40011196 add more shadow 2023-10-20 11:24:02 +01:00
Simon Larsen
d644287a0c fix video close 2023-10-20 11:18:19 +01:00
Simon Larsen
ea7dc0b918 add hiring link in footer 2023-10-19 18:52:24 +01:00
Simon Larsen
c34639a3bb add watch demo to status page 2023-10-19 18:23:54 +01:00
Simon Larsen
41ba37be80 nested model 2023-10-19 16:06:09 +01:00
Simon Larsen
954d5be113 fix clickhouse 2023-10-18 18:18:00 +01:00
Simon Larsen
21a857d912 fix import 2023-10-18 17:47:45 +01:00
Simon Larsen
cb0f7bbad5 fix fmt 2023-10-18 17:44:54 +01:00
Simon Larsen
c3c94f3634 add table 2023-10-18 17:43:18 +01:00
Simon Larsen
955141d42e add logs, metrics and spans 2023-10-18 17:28:49 +01:00
Simon Larsen
352c9ffb8e otel save 2023-10-18 13:59:19 +01:00
Simon Larsen
d543757a7d open collector port 2023-10-18 12:19:52 +01:00
Simon Larsen
b3cfdbf45a enable gpu on llama docker 2023-10-18 12:07:37 +01:00
Simon Larsen
c629921d01 fix llama docker file. 2023-10-18 11:01:15 +01:00
Simon Larsen
008e0c50b1 fix cluster domain in helm chart 2023-10-18 10:16:23 +01:00
Simon Larsen
fcf916bdfe change to alert emoji 2023-10-17 14:48:54 +01:00
Simon Larsen
9850bcf0e7 fix fmt 2023-10-17 14:30:25 +01:00
Simon Larsen
e1efeec9ec add cookie set 2023-10-17 13:49:43 +01:00
Simon Larsen
7e34393fc6 fix api url 2023-10-17 12:59:14 +01:00
Simon Larsen
262fffd9ff fix url 2023-10-17 12:48:46 +01:00
Simon Larsen
35db6e95ad add httponly cookie to status page 2023-10-17 12:10:50 +01:00
Simon Larsen
17208b5e26 fix token cookie on master page 2023-10-16 21:16:11 +01:00
Simon Larsen
896dce3430 add pycache to gitignore 2023-10-16 20:54:21 +01:00
Simon Larsen
d844fa9df2 fix api 2023-10-16 20:06:21 +01:00
Simon Larsen
48542c4323 fix typo 2023-10-16 19:26:13 +01:00
Simon Larsen
f57047c778 fix sttaus page api 2023-10-16 19:01:45 +01:00
Simon Larsen
e471787462 set cookie for host 2023-10-16 18:15:25 +01:00
Hammad
dc4721f878 fixes lint errors 2023-10-16 22:01:05 +05:00
Simon Larsen
4bd4dbf3c1 fix domains cookie set on status page 2023-10-16 17:41:49 +01:00
Hammad
6c0c79dd25 removes line that will never be run
this brings code coverage to 100%
2023-10-16 21:14:36 +05:00
Hammad
a9548858b0 adds tests for CommonServer/Middleware/BearerTokenAuthorization 2023-10-16 21:12:31 +05:00
Simon Larsen
6804e94850 add ingestor status check 2023-10-16 12:55:54 +01:00
Simon Larsen
63736aed6c fix path 2023-10-16 12:53:15 +01:00
Simon Larsen
c848032fdc add otel to helm chart 2023-10-16 12:41:27 +01:00
Simon Larsen
22c2231e22 make llama work with rest api 2023-10-16 11:45:15 +01:00
Simon Larsen
7a063d741c fix otel collector 2023-10-16 11:06:11 +01:00
Simon Larsen
8a9cc10ff0 fix otel collector 2023-10-16 11:04:47 +01:00
Simon Larsen
2e43fa0c02 Merge pull request #820 from hasannadeem/test/side-menu-item-and-dictionary-of-string-components
Added tests for SideMenuItem and DictionaryOfStrings components
2023-10-16 10:54:11 +01:00
Simon Larsen
f51a1828ab fix fmt 2023-10-15 21:41:49 +01:00
Simon Larsen
805139055a make llama work 2023-10-15 21:04:58 +01:00
Simon Larsen
42c85b16e7 delete nodejs adaptor from llama 2023-10-15 18:34:25 +01:00
Simon Larsen
a59742cddb add python app for llama. 2023-10-15 18:14:15 +01:00
Simon Larsen
ba426b5580 fix llama 2023-10-14 17:59:52 +01:00
Simon Larsen
1945bbfd45 fix llama compile err 2023-10-14 16:45:17 +01:00
Simon Larsen
58debb9959 male llama work 2023-10-14 16:36:12 +01:00
hasan
6485f474b2 Add tests for SideMenuItem and DictionaryOfStrings components 2023-10-14 18:11:51 +05:00
Simon Larsen
301d7f124c fix fmt 2023-10-14 12:01:06 +01:00
Simon Larsen
985217d2bf rename helm files for ingestor 2023-10-13 20:14:04 +01:00
4166 changed files with 374433 additions and 533555 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

@@ -54,4 +54,6 @@ tests/coverage
settings.json
GoSDK/tester/
GoSDK/tester/

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,189 +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",
"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"
},
"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: ''
@@ -34,5 +34,8 @@ If applicable, add screenshots to help explain your problem.
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Deployment Type**
Is this issue on SaaS (at https://oneuptime.com) or self hosted (the version that you deployed on your server)?
**Additional context**
Add any other context about the problem here.

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: ''

211
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,211 @@
name: Build
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*'
- 'release'
jobs:
docker-build-accounts:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Accounts/Dockerfile .
docker-build-isolated-vm:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./IsolatedVM/Dockerfile .
docker-build-otel-collector:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./OTelCollector/Dockerfile .
docker-build-app:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- 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@v2
- 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
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./E2E/Dockerfile .
docker-build-admin-dashboard:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./AdminDashboard/Dockerfile .
docker-build-dashboard:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./Dashboard/Dockerfile .
docker-build-haraka:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build images
- name: build docker image
run: sudo docker build -f ./Haraka/Dockerfile .
docker-build-probe:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image probe api
- name: build docker image
run: sudo docker build -f ./Probe/Dockerfile .
docker-build-ingestor:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image probe api
- name: build docker image
run: sudo docker build -f ./Ingestor/Dockerfile .
docker-build-status-page:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./StatusPage/Dockerfile .
docker-build-test-server:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for mail service
- name: build docker image
run: sudo docker build -f ./TestServer/Dockerfile .

View File

@@ -34,7 +34,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: [ 'javascript', 'typescript', 'go' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

View File

@@ -20,12 +20,9 @@ jobs:
with:
node-version: 18.3.0
- 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
- run: cd Accounts && npm install && npm run compile && npm run dep-check
compile-api-reference:
compile-isolated-vm:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
@@ -35,49 +32,7 @@ jobs:
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd ApiReference && npm install && npm run compile
compile-link-shortener:
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 LinkShortener && npm install && npm run compile
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
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
- run: cd IsolatedVM && npm install && npm run compile && npm run dep-check
compile-common:
runs-on: ubuntu-latest
@@ -88,10 +43,9 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install && npm run compile
- run: cd Common && npm install && npm run compile && npm run dep-check
compile-dashboard-api:
compile-app:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
@@ -101,10 +55,43 @@ jobs:
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd CommonUI && npm install --force
- run: cd DashboardAPI && npm install && npm run compile
- run: cd App && 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@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- 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
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Nginx && npm install && npm run compile && npm run dep-check
compile-infrastructure-agent:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v4
# Setup Go
- uses: actions/setup-go@v5
- run: cd InfrastructureAgent && go build .
compile-admin-dashboard:
@@ -117,10 +104,8 @@ jobs:
with:
node-version: 18.3.0
- 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
- run: cd AdminDashboard && npm install && npm run compile && npm run dep-check
compile-dashboard:
runs-on: ubuntu-latest
@@ -132,12 +117,11 @@ jobs:
with:
node-version: 18.3.0
- 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
- run: cd Dashboard && npm install && npm run compile && npm run dep-check
compile-file:
compile-e2e:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
@@ -147,78 +131,7 @@ jobs:
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd File && npm install && npm run compile
compile-home:
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 Home && npm install && npm run compile
compile-identity:
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 Identity && npm install && npm run compile
compile-integrations:
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 Integration && npm install && npm run compile
compile-notification:
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 Notification && npm install && npm run compile
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
- run: cd E2E && npm install && npm run compile && npm run dep-check
compile-probe:
runs-on: ubuntu-latest
@@ -230,9 +143,7 @@ jobs:
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd Probe && npm install && npm run compile
- run: cd Probe && npm install && npm run compile && npm run dep-check
compile-ingestor:
runs-on: ubuntu-latest
@@ -244,25 +155,9 @@ jobs:
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd Ingestor && npm install && npm run compile
- run: cd Ingestor && npm install && npm run compile && npm run dep-check
compile-realtime:
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 Realtime && npm install && npm run compile
compile-status-page:
runs-on: ubuntu-latest
env:
@@ -273,39 +168,8 @@ jobs:
with:
node-version: 18.3.0
- 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
compile-workers:
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 CommonUI && npm install --force
- run: cd Workers && npm install && npm run compile
compile-workflow:
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 Workflow && npm install && npm run compile
- run: cd StatusPage && npm install && npm run compile && npm run dep-check
compile-test-server:
runs-on: ubuntu-latest
@@ -317,6 +181,4 @@ jobs:
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd TestServer && npm install && npm run compile
- run: cd TestServer && npm install && npm run compile && npm run dep-check

View File

@@ -1,317 +0,0 @@
name: Docker Build
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*'
- 'release'
jobs:
docker-build-accounts:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Accounts/Dockerfile .
docker-build-link-shortener:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./LinkShortener/Dockerfile .
docker-build-otel-collector:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./OTelCollector/Dockerfile .
docker-build-api-reference:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./ApiReference/Dockerfile .
docker-build-dashboard-api:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./DashboardAPI/Dockerfile .
docker-build-admin-dashboard:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./AdminDashboard/Dockerfile .
docker-build-dashboard:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./Dashboard/Dockerfile .
docker-build-file:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for file
- name: build docker image
run: sudo docker build -f ./File/Dockerfile .
docker-build-haraka:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build images
- name: build docker image
run: sudo docker build -f ./Haraka/Dockerfile .
docker-build-home:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./Home/Dockerfile .
docker-build-identity:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for identity
- name: build docker image
run: sudo docker build -f ./Identity/Dockerfile .
docker-build-integrations:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for integrations
- name: build docker image
run: sudo docker build -f ./Integration/Dockerfile .
docker-build-notification:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for mail service
- name: build docker image
run: sudo docker build -f ./Notification/Dockerfile .
docker-build-probe:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image probe api
- name: build docker image
run: sudo docker build -f ./Probe/Dockerfile .
docker-build-ingestor:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image probe api
- name: build docker image
run: sudo docker build -f ./Ingestor/Dockerfile .
docker-build-realtime:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./Realtime/Dockerfile .
docker-build-status-page:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./StatusPage/Dockerfile .
docker-build-workers:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for home
- name: build docker image
run: sudo docker build -f ./Workers/Dockerfile .
docker-build-workflow:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for mail service
- name: build docker image
run: sudo docker build -f ./Workflow/Dockerfile .
docker-build-test-server:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for mail service
- name: build docker image
run: sudo docker build -f ./TestServer/Dockerfile .

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

20
.github/workflows/test-app.yaml vendored Normal file
View File

@@ -0,0 +1,20 @@
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,23 +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 && bash test-setup.sh
- run: export $(grep -v '^#' config.env | xargs) && cd CommonServer && npm install && 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
with:
node-version: 18.3.0
- run: cd Model && npm install
- run: cd Common && npm install && npm run test
node-version: 18.3.0
- 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

58
.github/workflows/test.e2e.yaml vendored Normal file
View File

@@ -0,0 +1,58 @@
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
# 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

@@ -1,21 +0,0 @@
name: Home 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 Home && npm install && npm run test

21
.github/workflows/test.ingestor.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
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

@@ -1,21 +0,0 @@
name: Probe Api 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

@@ -18,6 +18,6 @@ jobs:
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd CommonServer && npm install
- run: cd Probe && npm install && npm run test
- run: cd Probe && npm install
- run: cd Probe && npm run test

22
.gitignore vendored
View File

@@ -13,7 +13,7 @@ node_modules
.idea
# testing
/coverage
**/coverage
# production
/build
@@ -92,3 +92,23 @@ Haraka/dkim/keys/public_base64.txt
.eslintcache
HelmChart/Values/*.values.yaml
LLM/__pycache__/*
LLM/Models/*
Examples/otel-dotnet/obj/*
InfrastructureAgent/sea-prep.blob
InfrastructureAgent/InfrastructureAgent
InfrastructureAgent/build/*
InfrastructureAgent/err.log
InfrastructureAgent/out.log
InfrastructureAgent/daemon.pid
App/greenlock/.greenlockrc
App/greenlock/greenlock.d/config.json
App/greenlock/greenlock.d/config.json.bak
Examples/otel-dotnet/bin/Debug/net6.0/Grpc.Core.Api.dll.txt
InfrastructureAgent/oneuptime-infrastructure-agent

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

@@ -50,4 +50,4 @@ marketing/*/*
licenses/*
certifications/*
ApiReference/public/assets/*
JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/*
JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/*

View File

@@ -1,8 +0,0 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"bracketSpacing": true,
"arrowParens": "avoid"
}

168
.vscode/launch.json vendored
View File

@@ -19,6 +19,28 @@
}
],
"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",
"request": "launch",
"mode": "debug",
"program": "./InfrastructureAgent",
"args": ["start"],
},
{
"name": "Node.js - Debug Current File",
"type": "node",
@@ -29,8 +51,8 @@
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/DashboardAPI",
"name": "Dashboard API: Debug with Docker",
"localRoot": "${workspaceFolder}/App",
"name": "App: Debug with Docker",
"port": 9232,
"remoteRoot": "/usr/src/app",
"request": "attach",
@@ -41,34 +63,6 @@
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/ApiReference",
"name": "API Reference: Debug with Docker",
"port": 9178,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/LinkShortener",
"name": "Link Shortener: Debug with Docker",
"port": 9826,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/TestServer",
@@ -113,9 +107,9 @@
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Workflow",
"name": "Workflow: Debug with Docker",
"port": 9212,
"localRoot": "${workspaceFolder}/IsolatedVM",
"name": "Isolated VM: Debug with Docker",
"port": 9974,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
@@ -127,9 +121,9 @@
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Notification",
"name": "Notification: Debug with Docker",
"port": 9111,
"localRoot": "${workspaceFolder}/Workflow",
"name": "Workflow: Debug with Docker",
"port": 9212,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
@@ -181,90 +175,6 @@
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Ingestor",
"name": "Probe API: Debug with Docker",
"port": 9251,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Identity",
"name": "Identity: Debug with Docker",
"port": 9132,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Identity",
"name": "File: Debug with Docker",
"port": 9012,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Alert",
"name": "Alert: Debug with Docker",
"port": 9133,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Alert",
"name": "Integration: Debug with Docker",
"port": 9134,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/licensing",
"name": "Licensing: Debug with Docker",
"port": 9233,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/HttpTestServer",
@@ -279,20 +189,6 @@
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/home",
"name": "Home: Debug with Docker",
"port": 9235,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/script-runnner",
@@ -322,12 +218,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",

36
Accounts/Dockerfile.tpl Executable file → Normal file
View File

@@ -3,8 +3,7 @@
#
# Pull base image nodejs image.
FROM node:current-alpine
USER root
FROM node:21.7.3-alpine3.18
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
@@ -15,6 +14,10 @@ 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
@@ -26,32 +29,24 @@ 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
WORKDIR /usr/src/Model
COPY ./Model/package*.json /usr/src/Model/
RUN npm install
COPY ./Model /usr/src/Model
WORKDIR /usr/src/CommonServer
COPY ./CommonServer/package*.json /usr/src/CommonServer/
RUN npm install
COPY ./CommonServer /usr/src/CommonServer
# Install CommonUI
WORKDIR /usr/src/CommonUI
COPY ./CommonUI/package*.json /usr/src/CommonUI/
RUN npm install --force
COPY ./CommonUI /usr/src/CommonUI
@@ -69,17 +64,20 @@ RUN npm install
# - 3003: accounts
EXPOSE 3003
RUN npm i -D webpack-cli
{{ if eq .Env.ENVIRONMENT "development" }}
RUN mkdir /usr/src/app/dev-env
RUN touch /usr/src/app/dev-env/.env
RUN npm i -D webpack-dev-server
#Run the app
CMD [ "npm", "run", "dev" ]
{{ else }}
# Copy app source
COPY ./Accounts /usr/src/app
# Bundle app source
RUN npm run build
#Run the app
CMD [ "npm", "start" ]

View File

@@ -1,27 +1,37 @@
import App from 'CommonServer/Utils/StartServer';
import { PromiseVoidFunction } from "Common/Types/FunctionTypes";
import Express, { ExpressApplication } from "Common/Server/Utils/Express";
import logger from "Common/Server/Utils/Logger";
import App from "Common/Server/Utils/StartServer";
import Express, { ExpressApplication } from 'CommonServer/Utils/Express';
import logger from 'CommonServer/Utils/Logger';
export const APP_NAME: string = 'accounts';
export const APP_NAME: string = "accounts";
const app: ExpressApplication = Express.getExpressApp();
const init: () => Promise<void> = async (): Promise<void> => {
try {
// init the app
await App(APP_NAME, undefined, true);
} catch (err) {
logger.error('App Init Failed:');
logger.error(err);
throw err;
}
const init: PromiseVoidFunction = async (): Promise<void> => {
try {
// init the app
await App.init({
appName: APP_NAME,
port: undefined,
isFrontendApp: true,
statusOptions: {
liveCheck: async () => {},
readyCheck: async () => {},
},
});
// add default routes
await App.addDefaultRoutes();
} catch (err) {
logger.error("App Init Failed:");
logger.error(err);
throw err;
}
};
init().catch((err: Error) => {
logger.error(err);
logger.info('Exiting node process');
process.exit(1);
logger.error(err);
logger.error("Exiting node process");
process.exit(1);
});
export default app;

8
Accounts/index.d.ts vendored
View File

@@ -1,4 +1,4 @@
declare module '*.png';
declare module '*.svg';
declare module '*.jpg';
declare module '*.gif';
declare module "*.png";
declare module "*.svg";
declare module "*.jpg";
declare module "*.gif";

View File

@@ -1,4 +1,4 @@
{
"watch": ["webpack.config.js"],
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && echo 'HOST=localhost' >> /usr/src/app/dev-env/.env && echo 'USE_HTTPS=false' >> /usr/src/app/dev-env/.env && webpack-dev-server --port=3003 --mode=development"
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && echo 'USE_HTTPS=false' >> /usr/src/app/dev-env/.env && webpack-dev-server --port=3003 --mode=development"
}

26168
Accounts/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,32 +1,17 @@
{
"name": "accounts",
"name": "@oneuptime/accounts",
"version": "0.1.0",
"private": false,
"dependencies": {
"Common": "file:../Common",
"CommonServer": "file:../CommonServer",
"CommonUI": "file:../CommonUI",
"crypto-js": "^4.1.1",
"formik": "^2.2.9",
"Model": "file:../Model",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"the-new-css-reset": "^1.7.3",
"typescript": "^4.6.4",
"use-async-effect": "^2.2.7"
},
"scripts": {
"dev": "npx nodemon",
"build": "webpack build --mode=production",
"test": "",
"compile": "tsc",
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"start": "node --require ts-node/register Serve.ts",
"audit": "npm audit --audit-level=low",
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true'"
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
},
"browserslist": {
"production": [
@@ -40,27 +25,27 @@
"last 1 safari version"
]
},
"dependencies": {
"Common": "file:../Common",
"css-loader": "^6.11.0",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"file-loader": "^6.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.23.1",
"sass-loader": "^13.3.3",
"style-loader": "^3.3.4",
"ts-loader": "^9.5.1",
"use-async-effect": "^2.2.7"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.1",
"@types/node": "^16.11.35",
"@types/react": "^18.0.9",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.0.4",
"@types/react-router-dom": "^5.3.3",
"css-loader": "^6.7.1",
"customize-cra": "^1.0.0",
"dotenv-webpack": "^7.1.0",
"nodemon": "^2.0.20",
"process": "0.11.10",
"react-app-rewired": "^2.2.1",
"sass": "^1.51.0",
"sass-loader": "^12.6.0",
"ts-loader": "^9.3.0",
"ts-node": "^10.9.1",
"webpack": "^5.76.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.9.0"
"webpack": "^5.76.0"
}
}

View File

@@ -1,47 +1,47 @@
import React, { ReactElement } from 'react';
import ForgotPasswordPage from "./Pages/ForgotPassword";
import LoginPage from "./Pages/Login";
import LoginWithSSO from "./Pages/LoginWithSSO";
import NotFound from "./Pages/NotFound";
import RegisterPage from "./Pages/Register";
import ResetPasswordPage from "./Pages/ResetPassword";
import VerifyEmail from "./Pages/VerifyEmail";
import Navigation from "Common/UI/Utils/Navigation";
import React, { ReactElement } from "react";
import {
Routes,
Route,
useNavigate,
useLocation,
useParams,
} from 'react-router-dom';
import LoginPage from './Pages/Login';
import NotFound from './Pages/NotFound';
import ForgotPasswordPage from './Pages/ForgotPassword';
import RegisterPage from './Pages/Register';
import Navigation from 'CommonUI/src/Utils/Navigation';
import VerifyEmail from './Pages/VerifyEmail';
import ResetPasswordPage from './Pages/ResetPassword';
Route,
Routes,
useLocation,
useNavigate,
useParams,
} from "react-router-dom";
function App(): ReactElement {
Navigation.setNavigateHook(useNavigate());
Navigation.setLocation(useLocation());
Navigation.setParams(useParams());
Navigation.setNavigateHook(useNavigate());
Navigation.setLocation(useLocation());
Navigation.setParams(useParams());
return (
<div className="m-auto h-screen">
<Routes>
<Route path="/accounts" element={<LoginPage />} />
<Route path="/accounts/login" element={<LoginPage />} />
<Route
path="/accounts/forgot-password"
element={<ForgotPasswordPage />}
/>
<Route
path="/accounts/reset-password/:token"
element={<ResetPasswordPage />}
/>
<Route path="/accounts/register" element={<RegisterPage />} />
<Route
path="/accounts/verify-email/:token"
element={<VerifyEmail />}
/>
{/* 👇️ only match this when no other routes match */}
<Route path="*" element={<NotFound />} />
</Routes>
</div>
);
return (
<div className="m-auto h-screen">
<Routes>
<Route path="/accounts" element={<LoginPage />} />
<Route path="/accounts/login" element={<LoginPage />} />
<Route path="/accounts/sso" element={<LoginWithSSO />} />
<Route
path="/accounts/forgot-password"
element={<ForgotPasswordPage />}
/>
<Route
path="/accounts/reset-password/:token"
element={<ResetPasswordPage />}
/>
<Route path="/accounts/register" element={<RegisterPage />} />
<Route path="/accounts/verify-email/:token" element={<VerifyEmail />} />
{/* 👇️ only match this when no other routes match */}
<Route path="*" element={<NotFound />} />
</Routes>
</div>
);
}
export default App;

View File

@@ -1,20 +1,20 @@
import React from 'react';
import { Link } from 'react-router-dom';
import React from "react";
import { Link } from "react-router-dom";
const Footer: () => JSX.Element = () => {
return (
<div className="footer">
<p>
<Link to="/">&copy; OneUptime</Link>
</p>
<p>
<Link to="/">Contact</Link>
</p>
<p>
<Link to="/">Privacy &amp; terms</Link>
</p>
</div>
);
return (
<div className="footer">
<p>
<Link to="/">&copy; OneUptime</Link>
</p>
<p>
<Link to="/">Contact</Link>
</p>
<p>
<Link to="/">Privacy &amp; terms</Link>
</p>
</div>
);
};
export default Footer;

View File

@@ -1,14 +1,19 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { BrowserRouter } from 'react-router-dom';
import App from "./App";
import Telemetry from "Common/UI/Utils/Telemetry";
import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
Telemetry.init({
serviceName: "accounts",
});
const root: any = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
document.getElementById("root") as HTMLElement,
);
root.render(
<BrowserRouter>
<App />
</BrowserRouter>
<BrowserRouter>
<App />
</BrowserRouter>,
);

View File

@@ -1,99 +1,99 @@
import React, { useState } from 'react';
import ModelForm, { FormType } from 'CommonUI/src/Components/Forms/ModelForm';
import User from 'Model/Models/User';
import Route from 'Common/Types/API/Route';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import OneUptimeLogo from 'CommonUI/src/Images/logos/OneUptimeSVG/3-transparent.svg';
import Link from 'CommonUI/src/Components/Link/Link';
import { FORGOT_PASSWORD_API_URL } from '../Utils/ApiPaths';
import URL from 'Common/Types/API/URL';
import { FORGOT_PASSWORD_API_URL } from "../Utils/ApiPaths";
import Route from "Common/Types/API/Route";
import URL from "Common/Types/API/URL";
import ModelForm, { FormType } from "Common/UI/Components/Forms/ModelForm";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import Link from "Common/UI/Components/Link/Link";
import OneUptimeLogo from "Common/UI/Images/logos/OneUptimeSVG/3-transparent.svg";
import User from "Common/Models/DatabaseModels/User";
import React, { useState } from "react";
const ForgotPassword: () => JSX.Element = () => {
const apiUrl: URL = FORGOT_PASSWORD_API_URL;
const apiUrl: URL = FORGOT_PASSWORD_API_URL;
const [isSuccess, setIsSuccess] = useState<boolean>(false);
const [isSuccess, setIsSuccess] = useState<boolean>(false);
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="Your Company"
/>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Forgot your password
</h2>
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="Your Company"
/>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Forgot your password
</h2>
{!isSuccess && (
<p className="mt-2 text-center text-sm text-gray-600">
Please enter your email and the password reset link will
be sent to you.
</p>
)}
{!isSuccess && (
<p className="mt-2 text-center text-sm text-gray-600">
Please enter your email and the password reset link will be sent to
you.
</p>
)}
{isSuccess && (
<p className="mt-2 text-center text-sm text-gray-600">
We have emailed you the password reset link. Please do
not forget to check spam.
</p>
)}
</div>
{isSuccess && (
<p className="mt-2 text-center text-sm text-gray-600">
We have emailed you the password reset link. Please do not forget to
check spam.
</p>
)}
</div>
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
{!isSuccess && (
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
<ModelForm<User>
modelType={User}
name="Forgot Password"
id="login-form"
apiUrl={apiUrl}
fields={[
{
field: {
email: true,
},
title: 'Email',
fieldType: FormFieldSchemaType.Email,
required: true,
},
]}
onSuccess={() => {
setIsSuccess(true);
}}
submitButtonText={'Send Password Reset Link'}
formType={FormType.Create}
maxPrimaryButtonWidth={true}
footer={
<div className="actions pointer text-center mt-4 hover:underline fw-semibold">
<p>
<Link
to={new Route('/accounts/login')}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer text-sm"
>
Return to Sign in.
</Link>
</p>
</div>
}
/>
</div>
)}
<div className="mt-5 text-center">
<p className="text-muted mb-0 text-gray-500">
Remember your password?{' '}
<Link
to={new Route('/accounts/login')}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Login.
</Link>
</p>
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
{!isSuccess && (
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
<ModelForm<User>
modelType={User}
name="Forgot Password"
id="login-form"
createOrUpdateApiUrl={apiUrl}
fields={[
{
field: {
email: true,
},
title: "Email",
fieldType: FormFieldSchemaType.Email,
required: true,
},
]}
onSuccess={() => {
setIsSuccess(true);
}}
submitButtonText={"Send Password Reset Link"}
formType={FormType.Create}
maxPrimaryButtonWidth={true}
footer={
<div className="actions pointer text-center mt-4 hover:underline fw-semibold">
<p>
<Link
to={new Route("/accounts/login")}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer text-sm"
>
Return to Sign in.
</Link>
</p>
</div>
</div>
}
/>
</div>
)}
<div className="mt-5 text-center">
<p className="text-muted mb-0 text-gray-500">
Remember your password?{" "}
<Link
to={new Route("/accounts/login")}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Login.
</Link>
</p>
</div>
);
</div>
</div>
);
};
export default ForgotPassword;

View File

@@ -1,152 +1,293 @@
import React, { useState } from 'react';
import User from 'Model/Models/User';
import Route from 'Common/Types/API/Route';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import OneUptimeLogo from 'CommonUI/src/Images/logos/OneUptimeSVG/3-transparent.svg';
import Link from 'CommonUI/src/Components/Link/Link';
import ModelForm, { FormType } from 'CommonUI/src/Components/Forms/ModelForm';
import { LOGIN_API_URL } from '../Utils/ApiPaths';
import URL from 'Common/Types/API/URL';
import { JSONObject } from 'Common/Types/JSON';
import LoginUtil from '../Utils/Login';
import UserUtil from 'CommonUI/src/Utils/User';
import Navigation from 'CommonUI/src/Utils/Navigation';
import { DASHBOARD_URL } from 'CommonUI/src/Config';
import Alert, { AlertType } from 'CommonUI/src/Components/Alerts/Alert';
import UiAnalytics from 'CommonUI/src/Utils/Analytics';
import {
LOGIN_API_URL,
VERIFY_TWO_FACTOR_AUTH_API_URL,
} from "../Utils/ApiPaths";
import Route from "Common/Types/API/Route";
import URL from "Common/Types/API/URL";
import { JSONArray, JSONObject } from "Common/Types/JSON";
import ModelForm, { FormType } from "Common/UI/Components/Forms/ModelForm";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import Link from "Common/UI/Components/Link/Link";
import { DASHBOARD_URL } from "Common/UI/Config";
import OneUptimeLogo from "Common/UI/Images/logos/OneUptimeSVG/3-transparent.svg";
import UiAnalytics from "Common/UI/Utils/Analytics";
import LoginUtil from "Common/UI/Utils/Login";
import UserTwoFactorAuth from "Common/Models/DatabaseModels/UserTwoFactorAuth";
import Navigation from "Common/UI/Utils/Navigation";
import UserUtil from "Common/UI/Utils/User";
import User from "Common/Models/DatabaseModels/User";
import React from "react";
import useAsyncEffect from "use-async-effect";
import StaticModelList from "Common/UI/Components/ModelList/StaticModelList";
import BasicForm from "Common/UI/Components/Forms/BasicForm";
import API from "Common/UI/Utils/API/API";
import HTTPErrorResponse from "Common/Types/API/HTTPErrorResponse";
import HTTPResponse from "Common/Types/API/HTTPResponse";
const LoginPage: () => JSX.Element = () => {
const apiUrl: URL = LOGIN_API_URL;
const apiUrl: URL = LOGIN_API_URL;
if (UserUtil.isLoggedIn()) {
Navigation.navigate(DASHBOARD_URL);
if (UserUtil.isLoggedIn()) {
Navigation.navigate(DASHBOARD_URL);
}
const [initialValues, setInitialValues] = React.useState<JSONObject>({});
const [showTwoFactorAuth, setShowTwoFactorAuth] =
React.useState<boolean>(false);
const [twoFactorAuthList, setTwoFactorAuthList] = React.useState<
UserTwoFactorAuth[]
>([]);
const [selectedTwoFactorAuth, setSelectedTwoFactorAuth] = React.useState<
UserTwoFactorAuth | undefined
>(undefined);
const [isTwoFactorAuthLoading, setIsTwoFactorAuthLoading] =
React.useState<boolean>(false);
const [twofactorAuthError, setTwoFactorAuthError] =
React.useState<string>("");
useAsyncEffect(async () => {
if (Navigation.getQueryStringByName("email")) {
setInitialValues({
email: Navigation.getQueryStringByName("email"),
});
}
}, []);
type LoginFunction = (user: User, miscData: JSONObject) => void;
const login: LoginFunction = (user: User, miscData: JSONObject): void => {
if (user instanceof User && user && user.email) {
UiAnalytics.userAuth(user.email);
UiAnalytics.capture("accounts/login");
}
const showSsoMessage: boolean = Boolean(
Navigation.getQueryStringByName('sso')
);
LoginUtil.login({
user: user,
token: miscData ? miscData["token"] : undefined,
});
};
const [showSsoTip, setShowSSOTip] = useState<boolean>(false);
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="OneUptime"
/>
{!showTwoFactorAuth && (
<>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Sign in to your account
</h2>
<p className="mt-2 text-center text-sm text-gray-600">
Join thousands of business that use OneUptime to help them stay
online all the time.
</p>
</>
)}
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="OneUptime"
/>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Sign in to your account
</h2>
<p className="mt-2 text-center text-sm text-gray-600">
Join thousands of business that use OneUptime to help them
stay online all the time.
</p>
</div>
{showTwoFactorAuth && (
<>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Two Factor Authentication
</h2>
<p className="mt-2 text-center text-sm text-gray-600">
Select two factor authentication method. You will be asked to
enter a code from the selected method.
</p>
</>
)}
</div>
{showSsoMessage && (
<div className="sm:mx-auto sm:w-full sm:max-w-md mt-8">
{' '}
<Alert
type={AlertType.DANGER}
title="You must be logged into OneUptime account to use single sign-on (SSO) for your project. Logging in to OneUptime account and single sign on (SSO) for your project are two separate steps. Please use the form below to log in to your OneUptime account before you use SSO."
/>{' '}
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
{!showTwoFactorAuth && (
<ModelForm<User>
modelType={User}
id="login-form"
name="Login"
fields={[
{
field: {
email: true,
},
fieldType: FormFieldSchemaType.Email,
placeholder: "jeff@example.com",
required: true,
disabled: Boolean(initialValues && initialValues["email"]),
title: "Email",
dataTestId: "email",
},
{
field: {
password: true,
},
title: "Password",
required: true,
validation: {
minLength: 6,
},
fieldType: FormFieldSchemaType.Password,
sideLink: {
text: "Forgot password?",
url: new Route("/accounts/forgot-password"),
openLinkInNewTab: false,
},
dataTestId: "password",
},
]}
createOrUpdateApiUrl={apiUrl}
formType={FormType.Create}
submitButtonText={"Login"}
onBeforeCreate={(data: User) => {
setInitialValues(User.toJSON(data, User));
return Promise.resolve(data);
}}
onSuccess={(
value: User | JSONObject,
miscData: JSONObject | undefined,
) => {
if (
miscData &&
(miscData as JSONObject)["twoFactorAuth"] === true
) {
const twoFactorAuthList: Array<UserTwoFactorAuth> =
UserTwoFactorAuth.fromJSONArray(
(miscData as JSONObject)[
"twoFactorAuthList"
] as JSONArray,
UserTwoFactorAuth,
);
setTwoFactorAuthList(twoFactorAuthList);
setShowTwoFactorAuth(true);
return;
}
login(value as User, miscData as JSONObject);
}}
maxPrimaryButtonWidth={true}
footer={
<div className="actions text-center mt-4 hover:underline fw-semibold">
<div>
<Link to={new Route("/accounts/sso")}>
<div className="text-indigo-500 hover:text-indigo-900 cursor-pointer text-sm">
Use single sign-on (SSO) instead
</div>
</Link>
</div>
</div>
)}
}
/>
)}
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
<ModelForm<User>
modelType={User}
id="login-form"
name="Login"
fields={[
{
field: {
email: true,
},
title: 'Email',
fieldType: FormFieldSchemaType.Email,
required: true,
},
{
field: {
password: true,
},
title: 'Password',
required: true,
validation: {
minLength: 6,
},
fieldType: FormFieldSchemaType.Password,
sideLink: {
text: 'Forgot password?',
url: new Route('/accounts/forgot-password'),
openLinkInNewTab: false,
},
},
]}
apiUrl={apiUrl}
formType={FormType.Create}
submitButtonText={'Login'}
onSuccess={(
value: User,
miscData: JSONObject | undefined
) => {
if (value && value.email) {
UiAnalytics.userAuth(value.email);
UiAnalytics.capture('accounts/login');
}
{showTwoFactorAuth && !selectedTwoFactorAuth && (
<StaticModelList<UserTwoFactorAuth>
titleField="name"
descriptionField=""
selectedItems={[]}
list={twoFactorAuthList}
onClick={(item: UserTwoFactorAuth) => {
setSelectedTwoFactorAuth(item);
}}
/>
)}
LoginUtil.login({
user: value,
token: miscData ? miscData['token'] : undefined,
});
}}
maxPrimaryButtonWidth={true}
footer={
<div className="actions pointer text-center mt-4 hover:underline fw-semibold">
<div>
{!showSsoTip && (
<div
onClick={() => {
setShowSSOTip(true);
}}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer text-sm"
>
Use single sign-on (SSO) instead
</div>
)}
{showTwoFactorAuth && selectedTwoFactorAuth && (
<BasicForm
id="two-factor-auth-form"
name="Two Factor Auth"
fields={[
{
field: {
code: true,
},
title: "Code",
description: "Enter the code from your authenticator app",
required: true,
dataTestId: "code",
fieldType: FormFieldSchemaType.Text,
},
]}
submitButtonText={"Login"}
maxPrimaryButtonWidth={true}
isLoading={isTwoFactorAuthLoading}
error={twofactorAuthError}
onSubmit={async (data: JSONObject) => {
setIsTwoFactorAuthLoading(true);
{showSsoTip && (
<div className="text-gray-500 text-sm">
Please sign in with your username
and password. Once you have signed
in, you&apos;ll be able to sign in
via SSO that&apos;s configured for
your project.
</div>
)}
</div>
</div>
}
/>
</div>
<div className="mt-10 text-center">
<div className="text-muted mb-0 text-gray-500">
Don&apos;t have an account?{' '}
<Link
to={new Route('/accounts/register')}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Register.
</Link>
</div>
</div>
</div>
try {
const code: string = data["code"] as string;
const twoFactorAuthId: string =
selectedTwoFactorAuth.id?.toString() as string;
const result: HTTPErrorResponse | HTTPResponse<JSONObject> =
await API.post(VERIFY_TWO_FACTOR_AUTH_API_URL, {
data: {
...initialValues,
code: code,
twoFactorAuthId: twoFactorAuthId,
},
});
if (result instanceof HTTPErrorResponse) {
throw result;
}
const user: User = User.fromJSON(
result["data"] as JSONObject,
User,
) as User;
const miscData: JSONObject = (result["data"] as JSONObject)[
"miscData"
] as JSONObject;
login(user as User, miscData as JSONObject);
} catch (error) {
setTwoFactorAuthError(
API.getFriendlyErrorMessage(error as Error),
);
}
setIsTwoFactorAuthLoading(false);
}}
/>
)}
</div>
);
<div className="mt-10 text-center">
{!selectedTwoFactorAuth && (
<div className="text-muted mb-0 text-gray-500">
Don&apos;t have an account?{" "}
<Link
to={new Route("/accounts/register")}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Register.
</Link>
</div>
)}
{selectedTwoFactorAuth ? (
<div className="text-muted mb-0 text-gray-500">
<Link
onClick={() => {
setSelectedTwoFactorAuth(undefined);
}}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Select a different two factor authentication method
</Link>
</div>
) : (
<></>
)}
</div>
</div>
</div>
);
};
export default LoginPage;

View File

@@ -0,0 +1,235 @@
import { SERVICE_PROVIDER_LOGIN_URL } from "../Utils/ApiPaths";
import Route from "Common/Types/API/Route";
import URL from "Common/Types/API/URL";
import { JSONArray, JSONObject } from "Common/Types/JSON";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import Link from "Common/UI/Components/Link/Link";
import { DASHBOARD_URL, IDENTITY_URL } from "Common/UI/Config";
import OneUptimeLogo from "Common/UI/Images/logos/OneUptimeSVG/3-transparent.svg";
import Navigation from "Common/UI/Utils/Navigation";
import UserUtil from "Common/UI/Utils/User";
import User from "Common/Models/DatabaseModels/User";
import React, { ReactElement, useState } from "react";
import ProjectSSO from "Common/Models/DatabaseModels/ProjectSso";
import PageLoader from "Common/UI/Components/Loader/PageLoader";
import API from "Common/UI/Utils/API/API";
import BasicForm from "Common/UI/Components/Forms/BasicForm";
import Email from "Common/Types/Email";
import HTTPErrorResponse from "Common/Types/API/HTTPErrorResponse";
import HTTPResponse from "Common/Types/API/HTTPResponse";
import StaticModelList from "Common/UI/Components/ModelList/StaticModelList";
const LoginPage: () => JSX.Element = () => {
const apiUrl: URL = SERVICE_PROVIDER_LOGIN_URL;
if (UserUtil.isLoggedIn()) {
Navigation.navigate(DASHBOARD_URL);
}
const [error, setError] = useState<string | undefined>(undefined);
const [isLoading, setIsLoading] = useState<boolean>(false);
const [projectSsoConfigList, setProjectSsoConfigList] = useState<
Array<ProjectSSO>
>([]);
type FetchSSOConfigsFunction = (email: Email) => Promise<void>;
const fetchSsoConfigs: FetchSSOConfigsFunction = async (
email: Email,
): Promise<void> => {
if (email) {
setIsLoading(true);
try {
// get sso config by email.
const listResult: HTTPErrorResponse | HTTPResponse<JSONArray> =
await API.get(
URL.fromString(apiUrl.toString()).addQueryParam(
"email",
email.toString(),
),
);
if (listResult instanceof HTTPErrorResponse) {
throw listResult;
}
if (!listResult.data || (listResult.data as JSONArray).length === 0) {
setError(
"No SSO configuration found for the email: " + email.toString(),
);
} else {
setProjectSsoConfigList(
ProjectSSO.fromJSONArray(listResult["data"], ProjectSSO),
);
}
} catch (error) {
setError(API.getFriendlyErrorMessage(error as Error));
}
} else {
setError("Email is required to perform this action");
}
setIsLoading(false);
};
type GetSsoConfigModelListFunction = (
configs: Array<ProjectSSO>,
) => ReactElement;
const getSsoConfigModelList: GetSsoConfigModelListFunction = (
configs: Array<ProjectSSO>,
): ReactElement => {
return (
<StaticModelList<ProjectSSO>
list={configs}
titleField="name"
selectedItems={[]}
descriptionField="description"
onClick={(item: ProjectSSO) => {
setIsLoading(true);
Navigation.navigate(
URL.fromURL(IDENTITY_URL).addRoute(
new Route(
`/sso/${item.projectId?.toString()}/${item.id?.toString()}`,
),
),
);
}}
/>
);
};
if (isLoading) {
return <PageLoader isVisible={true} />;
}
type GetProjectNameFunction = (projectId: string) => string;
const getProjectName: GetProjectNameFunction = (
projectId: string,
): string => {
const projectNames: Array<string | undefined> = projectSsoConfigList
.filter((config: ProjectSSO) => {
return config.projectId?.toString() === projectId.toString();
})
.map((config: ProjectSSO) => {
return config.project?.name;
});
return projectNames[0] || "Project";
};
if (projectSsoConfigList.length > 0 && !error && !isLoading) {
const projectIds: Array<string> = projectSsoConfigList.map(
(config: ProjectSSO) => {
return config.projectId?.toString() as string;
},
);
return (
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="OneUptime"
/>
<h2 className="mt-10 text-center text-xl tracking-tight text-gray-900">
Select Project
</h2>
<p className="mt-2 text-center text-sm text-gray-600">
Select the project you want to login to.
</p>
</div>
{projectIds.map((projectId: string) => {
return (
<div key={projectId}>
<h3 className="mt-6 font-medium tracking-tight">
{getProjectName(projectId)}
</h3>
{getSsoConfigModelList(
projectSsoConfigList.filter((config: ProjectSSO) => {
return (
config.projectId?.toString() === projectId.toString()
);
}),
)}
</div>
);
})}
</div>
</div>
);
}
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="OneUptime"
/>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Login with SSO
</h2>
<p className="mt-2 text-center text-sm text-gray-600">
Login with your SSO provider to access your account.
</p>
</div>
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
<BasicForm
modelType={User}
id="login-form"
error={error}
name="Login"
fields={[
{
field: {
email: true,
},
fieldType: FormFieldSchemaType.Email,
placeholder: "jeff@example.com",
required: true,
title: "Email",
dataTestId: "email",
},
]}
maxPrimaryButtonWidth={true}
submitButtonText="Login with SSO"
onSubmit={async (data: JSONObject) => {
await fetchSsoConfigs(data["email"] as Email);
}}
footer={
<div className="actions text-center mt-4 hover:underline fw-semibold">
<div>
<Link to={new Route("/accounts/login")}>
<div className="text-indigo-500 hover:text-indigo-900 cursor-pointer text-sm">
Use username and password insead.
</div>
</Link>
</div>
</div>
}
/>
</div>
<div className="mt-10 text-center">
<div className="text-muted mb-0 text-gray-500">
Don&apos;t have an account?{" "}
<Link
to={new Route("/accounts/register")}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Register.
</Link>
</div>
</div>
</div>
</div>
);
};
export default LoginPage;

View File

@@ -1,18 +1,18 @@
import React from 'react';
import React from "react";
const LoginPage: () => JSX.Element = () => {
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Page not found
</h2>
<p className="mt-2 text-center text-sm text-gray-600">
Page you are looking for does not exist.
</p>
</div>
</div>
);
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Page not found
</h2>
<p className="mt-2 text-center text-sm text-gray-600">
Page you are looking for does not exist.
</p>
</div>
</div>
);
};
export default LoginPage;

View File

@@ -1,268 +1,267 @@
import React, { useState } from 'react';
import ModelForm, { FormType } from 'CommonUI/src/Components/Forms/ModelForm';
import User from 'Model/Models/User';
import Link from 'CommonUI/src/Components/Link/Link';
import Route from 'Common/Types/API/Route';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import OneUptimeLogo from 'CommonUI/src/Images/logos/OneUptimeSVG/3-transparent.svg';
import LoginUtil from '../Utils/Login';
import { JSONObject } from 'Common/Types/JSON';
import UserUtil from 'CommonUI/src/Utils/User';
import Navigation from 'CommonUI/src/Utils/Navigation';
import { BILLING_ENABLED, DASHBOARD_URL } from 'CommonUI/src/Config';
import URL from 'Common/Types/API/URL';
import { SIGNUP_API_URL } from '../Utils/ApiPaths';
import Fields from 'CommonUI/src/Components/Forms/Types/Fields';
import Dictionary from 'Common/Types/Dictionary';
import UiAnalytics from 'CommonUI/src/Utils/Analytics';
import LocalStorage from 'CommonUI/src/Utils/LocalStorage';
import Reseller from 'Model/Models/Reseller';
import ModelAPI, { ListResult } from 'CommonUI/src/Utils/ModelAPI/ModelAPI';
import BaseAPI from 'CommonUI/src/Utils/API/API';
import ErrorMessage from 'CommonUI/src/Components/ErrorMessage/ErrorMessage';
import PageLoader from 'CommonUI/src/Components/Loader/PageLoader';
import useAsyncEffect from 'use-async-effect';
import { SIGNUP_API_URL } from "../Utils/ApiPaths";
import Route from "Common/Types/API/Route";
import URL from "Common/Types/API/URL";
import Dictionary from "Common/Types/Dictionary";
import { JSONObject } from "Common/Types/JSON";
import ErrorMessage from "Common/UI/Components/ErrorMessage/ErrorMessage";
import ModelForm, { FormType } from "Common/UI/Components/Forms/ModelForm";
import Fields from "Common/UI/Components/Forms/Types/Fields";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import Link from "Common/UI/Components/Link/Link";
import PageLoader from "Common/UI/Components/Loader/PageLoader";
import { BILLING_ENABLED, DASHBOARD_URL } from "Common/UI/Config";
import OneUptimeLogo from "Common/UI/Images/logos/OneUptimeSVG/3-transparent.svg";
import BaseAPI from "Common/UI/Utils/API/API";
import UiAnalytics from "Common/UI/Utils/Analytics";
import LocalStorage from "Common/UI/Utils/LocalStorage";
import LoginUtil from "Common/UI/Utils/Login";
import ModelAPI, { ListResult } from "Common/UI/Utils/ModelAPI/ModelAPI";
import Navigation from "Common/UI/Utils/Navigation";
import UserUtil from "Common/UI/Utils/User";
import Reseller from "Common/Models/DatabaseModels/Reseller";
import User from "Common/Models/DatabaseModels/User";
import React, { useState } from "react";
import useAsyncEffect from "use-async-effect";
const RegisterPage: () => JSX.Element = () => {
const apiUrl: URL = SIGNUP_API_URL;
const apiUrl: URL = SIGNUP_API_URL;
const [initialValues, setInitialValues] = React.useState<JSONObject>({});
const [initialValues, setInitialValues] = React.useState<JSONObject>({});
const [error, setError] = useState<string>('');
const [error, setError] = useState<string>("");
const [isLoading, setIsLoading] = React.useState<boolean>(false);
const [isLoading, setIsLoading] = React.useState<boolean>(false);
const [reseller, setResller] = React.useState<Reseller | undefined>(
undefined
);
const [reseller, setResller] = React.useState<Reseller | undefined>(
undefined,
);
if (UserUtil.isLoggedIn()) {
Navigation.navigate(DASHBOARD_URL);
if (UserUtil.isLoggedIn()) {
Navigation.navigate(DASHBOARD_URL);
}
type FetchResellerFunction = (resellerId: string) => Promise<void>;
const fetchReseller: FetchResellerFunction = async (
resellerId: string,
): Promise<void> => {
setIsLoading(true);
try {
const reseller: ListResult<Reseller> = await ModelAPI.getList<Reseller>({
modelType: Reseller,
query: {
resellerId: resellerId,
},
limit: 1,
skip: 0,
select: {
hidePhoneNumberOnSignup: true,
},
sort: {},
requestOptions: {},
});
if (reseller.data.length > 0) {
setResller(reseller.data[0]);
}
} catch (err) {
setError(BaseAPI.getFriendlyMessage(err));
}
const fetchReseller: Function = async (
resellerId: string
): Promise<void> => {
setIsLoading(true);
setIsLoading(false);
};
try {
const reseller: ListResult<Reseller> =
await ModelAPI.getList<Reseller>(
Reseller,
{
resellerId: resellerId,
},
1,
0,
{
hidePhoneNumberOnSignup: true,
},
{},
{}
);
if (reseller.data.length > 0) {
setResller(reseller.data[0]);
}
} catch (err) {
setError(BaseAPI.getFriendlyMessage(err));
}
setIsLoading(false);
};
useAsyncEffect(async () => {
// if promo code is found, please save it in localstorage.
if (Navigation.getQueryStringByName('promoCode')) {
LocalStorage.setItem(
'promoCode',
Navigation.getQueryStringByName('promoCode')
);
}
if (Navigation.getQueryStringByName('email')) {
setInitialValues({
email: Navigation.getQueryStringByName('email'),
});
}
// if promo code is found, please save it in localstorage.
if (Navigation.getQueryStringByName('partnerId')) {
await fetchReseller(Navigation.getQueryStringByName('partnerId')!);
}
}, []);
let formFields: Fields<User> = [
{
field: {
email: true,
},
fieldType: FormFieldSchemaType.Email,
placeholder: 'jeff@example.com',
required: true,
disabled: Boolean(initialValues && initialValues['email']),
title: 'Email',
},
{
field: {
name: true,
},
fieldType: FormFieldSchemaType.Text,
placeholder: 'Jeff Smith',
required: true,
title: 'Full Name',
},
];
if (BILLING_ENABLED) {
formFields = formFields.concat([
{
field: {
companyName: true,
},
fieldType: FormFieldSchemaType.Text,
placeholder: 'Acme, Inc.',
required: true,
title: 'Company Name',
},
]);
// If reseller wants to hide phone number on sign up, we hide it.
if (!reseller || !reseller.hidePhoneNumberOnSignup) {
formFields.push({
field: {
companyPhoneNumber: true,
},
fieldType: FormFieldSchemaType.Phone,
required: true,
placeholder: '+11234567890',
title: 'Phone Number',
});
}
useAsyncEffect(async () => {
// if promo code is found, please save it in localstorage.
if (Navigation.getQueryStringByName("promoCode")) {
LocalStorage.setItem(
"promoCode",
Navigation.getQueryStringByName("promoCode"),
);
}
if (Navigation.getQueryStringByName("email")) {
setInitialValues({
email: Navigation.getQueryStringByName("email"),
});
}
// if promo code is found, please save it in localstorage.
if (Navigation.getQueryStringByName("partnerId")) {
await fetchReseller(Navigation.getQueryStringByName("partnerId")!);
}
}, []);
let formFields: Fields<User> = [
{
field: {
email: true,
},
fieldType: FormFieldSchemaType.Email,
placeholder: "jeff@example.com",
required: true,
disabled: Boolean(initialValues && initialValues["email"]),
title: "Email",
dataTestId: "email",
},
{
field: {
name: true,
},
fieldType: FormFieldSchemaType.Text,
placeholder: "Jeff Smith",
required: true,
title: "Full Name",
dataTestId: "name",
},
];
if (BILLING_ENABLED) {
formFields = formFields.concat([
{
field: {
password: true,
},
fieldType: FormFieldSchemaType.Password,
validation: {
minLength: 6,
},
placeholder: 'Password',
title: 'Password',
required: true,
},
{
field: {
confirmPassword: true,
} as any,
validation: {
minLength: 6,
toMatchField: 'password',
},
fieldType: FormFieldSchemaType.Password,
placeholder: 'Confirm Password',
title: 'Confirm Password',
overrideFieldKey: 'confirmPassword',
required: true,
forceShow: true,
{
field: {
companyName: true,
},
fieldType: FormFieldSchemaType.Text,
placeholder: "Acme, Inc.",
required: true,
title: "Company Name",
dataTestId: "companyName",
},
]);
if (error) {
return <ErrorMessage error={error} />;
// If reseller wants to hide phone number on sign up, we hide it.
if (!reseller || !reseller.hidePhoneNumberOnSignup) {
formFields.push({
field: {
companyPhoneNumber: true,
},
fieldType: FormFieldSchemaType.Phone,
required: true,
placeholder: "+11234567890",
title: "Phone Number",
dataTestId: "companyPhoneNumber",
});
}
}
if (isLoading) {
return <PageLoader isVisible={true} />;
}
formFields = formFields.concat([
{
field: {
password: true,
},
fieldType: FormFieldSchemaType.Password,
validation: {
minLength: 6,
},
placeholder: "Password",
title: "Password",
required: true,
dataTestId: "password",
},
{
field: {
confirmPassword: true,
} as any,
validation: {
minLength: 6,
toMatchField: "password",
},
fieldType: FormFieldSchemaType.Password,
placeholder: "Confirm Password",
title: "Confirm Password",
overrideFieldKey: "confirmPassword",
required: true,
showEvenIfPermissionDoesNotExist: true,
dataTestId: "confirmPassword",
},
]);
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="OneUptime"
/>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Create your OneUptime account
</h2>
<p className="mt-2 text-center text-sm text-gray-600">
Join thousands of business that use OneUptime to help them
stay online all the time.
</p>
<p className="mt-2 text-center text-sm text-gray-600">
No credit card required.
</p>
</div>
if (error) {
return <ErrorMessage error={error} />;
}
<div className="mt-8 lg:mx-auto lg:w-full lg:max-w-2xl">
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
<ModelForm<User>
modelType={User}
id="register-form"
showAsColumns={reseller ? 1 : 2}
name="Register"
initialValues={initialValues}
maxPrimaryButtonWidth={true}
fields={formFields}
apiUrl={apiUrl}
onBeforeCreate={(item: User): Promise<User> => {
const utmParams: Dictionary<string> =
UserUtil.getUtmParams();
if (isLoading) {
return <PageLoader isVisible={true} />;
}
if (
utmParams &&
Object.keys(utmParams).length > 0
) {
item.utmSource = utmParams['utmSource'] || '';
item.utmMedium = utmParams['utmMedium'] || '';
item.utmCampaign =
utmParams['utmCampaign'] || '';
item.utmTerm = utmParams['utmTerm'] || '';
item.utmContent = utmParams['utmContent'] || '';
item.utmUrl = utmParams['utmUrl'] || '';
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="OneUptime"
/>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Create your OneUptime account
</h2>
<p className="mt-2 text-center text-sm text-gray-600">
Join thousands of business that use OneUptime to help them stay online
all the time.
</p>
<p className="mt-2 text-center text-sm text-gray-600">
No credit card required.
</p>
</div>
UiAnalytics.capture('utm_event', utmParams);
}
<div className="mt-8 lg:mx-auto lg:w-full lg:max-w-2xl">
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
<ModelForm<User>
modelType={User}
id="register-form"
showAsColumns={reseller ? 1 : 2}
name="Register"
initialValues={initialValues}
maxPrimaryButtonWidth={true}
fields={formFields}
createOrUpdateApiUrl={apiUrl}
onBeforeCreate={(item: User): Promise<User> => {
const utmParams: Dictionary<string> = UserUtil.getUtmParams();
return Promise.resolve(item);
}}
formType={FormType.Create}
submitButtonText={'Sign Up'}
onSuccess={(
value: User,
miscData: JSONObject | undefined
) => {
if (value && value.email) {
UiAnalytics.userAuth(value.email);
UiAnalytics.capture('accounts/register');
}
if (utmParams && Object.keys(utmParams).length > 0) {
item.utmSource = utmParams["utmSource"] || "";
item.utmMedium = utmParams["utmMedium"] || "";
item.utmCampaign = utmParams["utmCampaign"] || "";
item.utmTerm = utmParams["utmTerm"] || "";
item.utmContent = utmParams["utmContent"] || "";
item.utmUrl = utmParams["utmUrl"] || "";
LoginUtil.login({
user: value,
token: miscData ? miscData['token'] : undefined,
});
}}
/>
</div>
<div className="mt-5 text-center text-gray-500">
<p className="text-muted mb-0">
Already have an account?{' '}
<Link
to={new Route('/accounts/login')}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Log in.
</Link>
</p>
</div>
</div>
UiAnalytics.capture("utm_event", utmParams);
}
return Promise.resolve(item);
}}
formType={FormType.Create}
submitButtonText={"Sign Up"}
onSuccess={(value: User, miscData: JSONObject | undefined) => {
if (value && value.email) {
UiAnalytics.userAuth(value.email);
UiAnalytics.capture("accounts/register");
}
LoginUtil.login({
user: value,
token: miscData ? miscData["token"] : undefined,
});
}}
/>
</div>
);
<div className="mt-5 text-center text-gray-500">
<p className="text-muted mb-0">
Already have an account?{" "}
<Link
to={new Route("/accounts/login")}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Log in.
</Link>
</p>
</div>
</div>
</div>
);
};
export default RegisterPage;

View File

@@ -1,114 +1,114 @@
import React, { useState } from 'react';
import ModelForm, { FormType } from 'CommonUI/src/Components/Forms/ModelForm';
import User from 'Model/Models/User';
import Link from 'CommonUI/src/Components/Link/Link';
import Route from 'Common/Types/API/Route';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import OneUptimeLogo from 'CommonUI/src/Images/logos/OneUptimeSVG/3-transparent.svg';
import URL from 'Common/Types/API/URL';
import { RESET_PASSWORD_API_URL } from '../Utils/ApiPaths';
import Navigation from 'CommonUI/src/Utils/Navigation';
import { RESET_PASSWORD_API_URL } from "../Utils/ApiPaths";
import Route from "Common/Types/API/Route";
import URL from "Common/Types/API/URL";
import ModelForm, { FormType } from "Common/UI/Components/Forms/ModelForm";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import Link from "Common/UI/Components/Link/Link";
import OneUptimeLogo from "Common/UI/Images/logos/OneUptimeSVG/3-transparent.svg";
import Navigation from "Common/UI/Utils/Navigation";
import User from "Common/Models/DatabaseModels/User";
import React, { useState } from "react";
const RegisterPage: () => JSX.Element = () => {
const apiUrl: URL = RESET_PASSWORD_API_URL;
const [isSuccess, setIsSuccess] = useState<boolean>(false);
const apiUrl: URL = RESET_PASSWORD_API_URL;
const [isSuccess, setIsSuccess] = useState<boolean>(false);
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="Your Company"
/>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Reset your password
</h2>
return (
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8">
<div className="sm:mx-auto sm:w-full sm:max-w-md">
<img
className="mx-auto h-12 w-auto"
src={OneUptimeLogo}
alt="Your Company"
/>
<h2 className="mt-6 text-center text-2xl tracking-tight text-gray-900">
Reset your password
</h2>
{!isSuccess && (
<p className="mt-2 text-center text-sm text-gray-600">
Please enter your new password and we will have it
updated.{' '}
</p>
)}
{!isSuccess && (
<p className="mt-2 text-center text-sm text-gray-600">
Please enter your new password and we will have it updated.{" "}
</p>
)}
{isSuccess && (
<p className="mt-2 text-center text-sm text-gray-600">
Your password has been updated. Please log in.
</p>
)}
</div>
{isSuccess && (
<p className="mt-2 text-center text-sm text-gray-600">
Your password has been updated. Please log in.
</p>
)}
</div>
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
{!isSuccess && (
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
<ModelForm<User>
modelType={User}
id="register-form"
name="Reset Password"
onBeforeCreate={(item: User): Promise<User> => {
item.resetPasswordToken =
Navigation.getLastParam()
?.toString()
.replace('/', '')
.toString() || '';
return Promise.resolve(item);
}}
showAsColumns={1}
maxPrimaryButtonWidth={true}
fields={[
{
field: {
password: true,
},
fieldType: FormFieldSchemaType.Password,
validation: {
minLength: 6,
},
placeholder: 'New Password',
title: 'New Password',
required: true,
},
{
field: {
password: true,
},
validation: {
minLength: 6,
toMatchField: 'password',
},
fieldType: FormFieldSchemaType.Password,
placeholder: 'Confirm Password',
title: 'Confirm Password',
overrideFieldKey: 'confirmPassword',
required: true,
},
]}
apiUrl={apiUrl}
formType={FormType.Create}
submitButtonText={'Reset Password'}
onSuccess={() => {
setIsSuccess(true);
}}
/>
</div>
)}
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
{!isSuccess && (
<div className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
<ModelForm<User>
modelType={User}
id="register-form"
name="Reset Password"
onBeforeCreate={(item: User): Promise<User> => {
item.resetPasswordToken =
Navigation.getLastParam()
?.toString()
.replace("/", "")
.toString() || "";
return Promise.resolve(item);
}}
showAsColumns={1}
maxPrimaryButtonWidth={true}
fields={[
{
field: {
password: true,
},
fieldType: FormFieldSchemaType.Password,
validation: {
minLength: 6,
},
placeholder: "New Password",
title: "New Password",
required: true,
showEvenIfPermissionDoesNotExist: true,
},
{
field: {
confirmPassword: true,
} as any,
validation: {
minLength: 6,
toMatchField: "password",
},
fieldType: FormFieldSchemaType.Password,
placeholder: "Confirm Password",
title: "Confirm Password",
overrideFieldKey: "confirmPassword",
required: true,
showEvenIfPermissionDoesNotExist: true,
},
]}
createOrUpdateApiUrl={apiUrl}
formType={FormType.Create}
submitButtonText={"Reset Password"}
onSuccess={() => {
setIsSuccess(true);
}}
/>
</div>
)}
<div className="mt-5 text-center">
<p className="text-muted mb-0 text-gray-500">
Know your password?{' '}
<Link
to={new Route('/accounts/login')}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Log in.
</Link>
</p>
</div>
</div>
<div className="mt-5 text-center">
<p className="text-muted mb-0 text-gray-500">
Know your password?{" "}
<Link
to={new Route("/accounts/login")}
className="text-indigo-500 hover:text-indigo-900 cursor-pointer"
>
Log in.
</Link>
</p>
</div>
);
</div>
</div>
);
};
export default RegisterPage;

View File

@@ -1,131 +1,121 @@
import React, { useEffect, useState } from 'react';
import Route from 'Common/Types/API/Route';
import OneUptimeLogo from 'CommonUI/src/Images/logos/OneUptimeSVG/3-transparent.svg';
import Link from 'CommonUI/src/Components/Link/Link';
import PageLoader from 'CommonUI/src/Components/Loader/PageLoader';
import ModelAPI from 'CommonUI/src/Utils/ModelAPI/ModelAPI';
import EmailVerificationToken from 'Model/Models/EmailVerificationToken';
import { VERIFY_EMAIL_API_URL } from '../Utils/ApiPaths';
import { FormType } from 'CommonUI/src/Components/Forms/ModelForm';
import Navigation from 'CommonUI/src/Utils/Navigation';
import ObjectID from 'Common/Types/ObjectID';
import URL from 'Common/Types/API/URL';
import API from 'CommonUI/src/Utils/API/API';
import { VERIFY_EMAIL_API_URL } from "../Utils/ApiPaths";
import Route from "Common/Types/API/Route";
import URL from "Common/Types/API/URL";
import { PromiseVoidFunction } from "Common/Types/FunctionTypes";
import ObjectID from "Common/Types/ObjectID";
import { FormType } from "Common/UI/Components/Forms/ModelForm";
import Link from "Common/UI/Components/Link/Link";
import PageLoader from "Common/UI/Components/Loader/PageLoader";
import OneUptimeLogo from "Common/UI/Images/logos/OneUptimeSVG/3-transparent.svg";
import API from "Common/UI/Utils/API/API";
import ModelAPI from "Common/UI/Utils/ModelAPI/ModelAPI";
import Navigation from "Common/UI/Utils/Navigation";
import EmailVerificationToken from "Common/Models/DatabaseModels/EmailVerificationToken";
import React, { useEffect, useState } from "react";
const VerifyEmail: () => JSX.Element = () => {
const apiUrl: URL = VERIFY_EMAIL_API_URL;
const [error, setError] = useState<string>('');
const [isLoading, setIsLoading] = useState<boolean>(true);
const apiUrl: URL = VERIFY_EMAIL_API_URL;
const [error, setError] = useState<string>("");
const [isLoading, setIsLoading] = useState<boolean>(true);
const init: () => Promise<void> = async (): Promise<void> => {
// Ping an API here.
setError('');
setIsLoading(true);
const init: PromiseVoidFunction = async (): Promise<void> => {
// Ping an API here.
setError("");
setIsLoading(true);
try {
// strip data.
const emailverificationToken: EmailVerificationToken =
new EmailVerificationToken();
emailverificationToken.token = new ObjectID(
Navigation.getLastParam()?.toString().replace('/', '') || ''
);
try {
// strip data.
const emailverificationToken: EmailVerificationToken =
new EmailVerificationToken();
emailverificationToken.token = new ObjectID(
Navigation.getLastParam()?.toString().replace("/", "") || "",
);
await ModelAPI.createOrUpdate<EmailVerificationToken>(
emailverificationToken,
EmailVerificationToken,
FormType.Create,
{},
{
overrideRequestUrl: apiUrl,
}
);
} catch (err) {
setError(API.getFriendlyMessage(err));
}
setIsLoading(false);
};
useEffect(() => {
init().catch((err: Error) => {
setError(err.toString());
});
}, []);
if (isLoading) {
return <PageLoader isVisible={true} />;
await ModelAPI.createOrUpdate<EmailVerificationToken>({
model: emailverificationToken,
modelType: EmailVerificationToken,
formType: FormType.Create,
miscDataProps: {},
requestOptions: {
overrideRequestUrl: apiUrl,
},
});
} catch (err) {
setError(API.getFriendlyMessage(err));
}
return (
<div className="auth-page">
<div className="container-fluid p-0">
<div className="row g-0">
<div className="col-xxl-4 col-lg-4 col-md-3"></div>
setIsLoading(false);
};
<div className="col-xxl-4 col-lg-4 col-md-6">
<div className="auth-full-page-content d-flex p-sm-5 p-4">
<div className="w-100">
<div className="d-flex flex-column h-100">
<div className="auth-content my-auto">
<div
className="mt-4 text-center flex justify-center"
style={{ marginBottom: '40px' }}
>
<img
style={{ height: '50px' }}
src={`${OneUptimeLogo}`}
/>
</div>
{!error && (
<div className="text-center">
<h5 className="mb-0">
Your email is verified.
</h5>
<p className="text-muted mt-2 mb-0">
Thank you for verifying your
email. You can now log in to
OneUptime.{' '}
</p>
</div>
)}
useEffect(() => {
init().catch((err: Error) => {
setError(err.toString());
});
}, []);
{error && (
<div className="text-center">
<h5 className="mb-0">
Sorry, something went wrong!
</h5>
<p className="text-muted mt-2 mb-0">
{error}
</p>
</div>
)}
if (isLoading) {
return <PageLoader isVisible={true} />;
}
<div className="mt-5 text-center">
<p className="text-muted mb-0">
Return to sign in?{' '}
<Link
to={
new Route(
'/accounts/login'
)
}
className="hover:underline text-primary fw-semibold"
>
Login.
</Link>
</p>
</div>
</div>
</div>
</div>
</div>
return (
<div className="auth-page">
<div className="container-fluid p-0">
<div className="row g-0">
<div className="col-xxl-4 col-lg-4 col-md-3"></div>
<div className="col-xxl-4 col-lg-4 col-md-6">
<div className="auth-full-page-content d-flex p-sm-5 p-4">
<div className="w-100">
<div className="d-flex flex-column h-100">
<div className="auth-content my-auto">
<div
className="mt-4 text-center flex justify-center"
style={{ marginBottom: "40px" }}
>
<img
style={{ height: "50px" }}
src={`${OneUptimeLogo}`}
/>
</div>
{!error && (
<div className="text-center">
<h5 className="mb-0">Your email is verified.</h5>
<p className="text-muted mt-2 mb-0">
Thank you for verifying your email. You can now log in
to OneUptime.{" "}
</p>
</div>
)}
<div className="col-xxl-4 col-lg-4 col-md-3"></div>
{error && (
<div className="text-center">
<h5 className="mb-0">Sorry, something went wrong!</h5>
<p className="text-muted mt-2 mb-0">{error}</p>
</div>
)}
<div className="mt-5 text-center">
<p className="text-muted mb-0">
Return to sign in?{" "}
<Link
to={new Route("/accounts/login")}
className="hover:underline text-primary fw-semibold"
>
Login.
</Link>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div className="col-xxl-4 col-lg-4 col-md-3"></div>
</div>
);
</div>
</div>
);
};
export default VerifyEmail;

View File

@@ -1,22 +1,30 @@
import Route from 'Common/Types/API/Route';
import URL from 'Common/Types/API/URL';
import { IDENTITY_URL } from 'CommonUI/src/Config';
import Route from "Common/Types/API/Route";
import URL from "Common/Types/API/URL";
import { IDENTITY_URL } from "Common/UI/Config";
export const SIGNUP_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
new Route('/signup')
new Route("/signup"),
);
export const LOGIN_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
new Route('/login')
new Route("/login"),
);
export const VERIFY_TWO_FACTOR_AUTH_API_URL: URL = URL.fromURL(
IDENTITY_URL,
).addRoute(new Route("/verify-two-factor-auth"));
export const SERVICE_PROVIDER_LOGIN_URL: URL = URL.fromURL(
IDENTITY_URL,
).addRoute(new Route("/service-provider-login"));
export const FORGOT_PASSWORD_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
new Route('/forgot-password')
new Route("/forgot-password"),
);
export const VERIFY_EMAIL_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
new Route('/verify-email')
new Route("/verify-email"),
);
export const RESET_PASSWORD_API_URL: URL = URL.fromURL(IDENTITY_URL).addRoute(
new Route('/reset-password')
new Route("/reset-password"),
);

View File

@@ -1,33 +0,0 @@
import UserUtil from 'CommonUI/src/Utils/User';
import Navigation from 'CommonUI/src/Utils/Navigation';
import Email from 'Common/Types/Email';
import ObjectID from 'Common/Types/ObjectID';
import Name from 'Common/Types/Name';
import { DASHBOARD_URL } from 'CommonUI/src/Config';
import { JSONObject } from 'Common/Types/JSON';
import User from 'Model/Models/User';
import JSONFunctions from 'Common/Types/JSONFunctions';
import Analytics from 'CommonUI/src/Utils/Analytics';
export default abstract class LoginUtil {
public static login(value: JSONObject): void {
const user: User = JSONFunctions.fromJSON(
value['user'] as JSONObject,
User
) as User;
UserUtil.setEmail(user.email as Email);
UserUtil.setUserId(user.id as ObjectID);
UserUtil.setName(user.name || new Name(''));
UserUtil.setIsMasterAdmin(user.isMasterAdmin as boolean);
if (user.profilePictureId) {
UserUtil.setProfilePicId(user.profilePictureId);
}
Analytics.userAuth(user.email!);
// go to dashboard, user should be logged in.
Navigation.navigate(DASHBOARD_URL);
}
}

View File

@@ -3,11 +3,13 @@
// these options are overrides used only by ts-node
// same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable
"compilerOptions": {
"module": "commonjs"
"module": "commonjs",
"resolveJsonModule": true,
}
},
"compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */
/* Projects */
// "incremental": true, /* Enable incremental compilation */
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
@@ -15,43 +17,47 @@
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
"target": "es2017" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
"jsx": "react" /* Specify what JSX code is generated. */,
"experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
"emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
"experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
"emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */
// "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
/* Modules */
"module": "es2022" /* Specify what module code is generated. */,
// "rootDir": "./", /* Specify the root folder within your source files. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
"typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
"types": [
"node"
], /* Specify type package names to be included without being referenced in a source file. */
"typeRoots": [
"./node_modules/@types"
], /* Specify multiple folders that act like `./node_modules/@types`. */
"types": ["node"], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "resolveJsonModule": true, /* Enable importing .json files */
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
/* JavaScript Support */
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
/* Emit */
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
"outDir": "./build/dist", /* Specify an output folder for all emitted files. */
"outDir": "./build/dist", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
// "noEmit": true, /* Disable emitting files from a compilation. */
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -69,34 +75,38 @@
// "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
/* Interop Constraints */
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
/* Type Checking */
"strict": true /* Enable all strict type-checking options. */,
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
"strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
"strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
"strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
"strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
"noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
"useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
"alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
"noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
"exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
"noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
"noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
"noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
"strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
"strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
"strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
"strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
"noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
"useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
"alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
"noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
"exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
"noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
"noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
"noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
"resolveJsonModule": true
}
}
}

View File

@@ -1,78 +1,84 @@
require("ts-loader");
require("file-loader");
require("style-loader");
require("css-loader");
require("sass-loader");
const path = require("path");
const webpack = require("webpack");
const dotenv = require('dotenv');
const express = require('express');
const dotenv = require("dotenv");
const express = require("express");
const readEnvFile = (pathToFile) => {
const parsed = dotenv.config({ path: pathToFile }).parsed;
const parsed = dotenv.config({ path: pathToFile }).parsed;
const env = {};
const env = {
};
for (const key in parsed) {
env[key] = JSON.stringify(parsed[key]);
}
for (const key in parsed) {
env[key] = JSON.stringify(parsed[key]);
}
return env;
}
return env;
};
module.exports = {
entry: "./src/Index.tsx",
mode: "development",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "public", "dist"),
publicPath: "/accounts/dist/",
entry: "./src/Index.tsx",
mode: "development",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "public", "dist"),
publicPath: "/accounts/dist/",
},
resolve: {
extensions: [".ts", ".tsx", ".js", ".jsx", ".json", ".css", ".scss"],
alias: {
react: path.resolve("./node_modules/react"),
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.css', '.scss'],
alias: {
react: path.resolve('./node_modules/react'),
}
},
externals: {
'react-native-sqlite-storage': 'react-native-sqlite-storage'
},
plugins: [
new webpack.DefinePlugin({
'process': {
'env': {
...readEnvFile('/usr/src/app/dev-env/.env')
}
}
}),
],
module: {
rules: [
{
test: /\.(ts|tsx)$/,
use: 'ts-loader'
},
{
test: /\.s[ac]ss$/i,
use: ['style-loader', 'css-loader', "sass-loader"]
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader']
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loader: 'file-loader'
}
],
},
devServer: {
historyApiFallback: true,
devMiddleware: {
writeToDisk: true,
},
externals: {
"react-native-sqlite-storage": "react-native-sqlite-storage",
},
plugins: [
new webpack.DefinePlugin({
process: {
env: {
...readEnvFile("/usr/src/app/dev-env/.env"),
},
allowedHosts: "all",
setupMiddlewares: (middlewares, devServer) => {
devServer.app.use('/accounts/assets', express.static(path.resolve(__dirname, 'public', 'assets')));
return middlewares;
}
},
}),
],
module: {
rules: [
{
test: /\.(ts|tsx)$/,
use: "ts-loader",
},
{
test: /\.s[ac]ss$/i,
use: ["style-loader", "css-loader", "sass-loader"],
},
{
test: /\.css$/i,
use: ["style-loader", "css-loader"],
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loader: "file-loader",
},
],
},
devServer: {
historyApiFallback: true,
devMiddleware: {
writeToDisk: true,
},
devtool: 'eval-source-map',
}
allowedHosts: "all",
setupMiddlewares: (middlewares, devServer) => {
devServer.app.use(
"/accounts/assets",
express.static(path.resolve(__dirname, "public", "assets")),
);
return middlewares;
},
},
devtool: "eval-source-map",
};

34
AdminDashboard/Dockerfile.tpl Executable file → Normal file
View File

@@ -3,8 +3,7 @@
#
# Pull base image nodejs image.
FROM node:current-alpine
USER root
FROM node:21.7.3-alpine3.18
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
@@ -15,6 +14,10 @@ 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
@@ -26,31 +29,23 @@ 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
WORKDIR /usr/src/Model
COPY ./Model/package*.json /usr/src/Model/
RUN npm install
COPY ./Model /usr/src/Model
WORKDIR /usr/src/CommonServer
COPY ./CommonServer/package*.json /usr/src/CommonServer/
RUN npm install
COPY ./CommonServer /usr/src/CommonServer
# Install CommonUI
WORKDIR /usr/src/CommonUI
COPY ./CommonUI/package*.json /usr/src/CommonUI/
RUN npm install --force
COPY ./CommonUI /usr/src/CommonUI
@@ -67,10 +62,13 @@ RUN npm install
# - 3158: AdminDashboard
EXPOSE 3158
RUN npm i -D webpack-cli
{{ if eq .Env.ENVIRONMENT "development" }}
#Run the app
RUN mkdir /usr/src/app/dev-env
RUN touch /usr/src/app/dev-env/.env
RUN npm i -D webpack-dev-server
CMD [ "npm", "run", "dev" ]
{{ else }}
# Copy app source

View File

@@ -1,26 +1,38 @@
import App from 'CommonServer/Utils/StartServer';
import Express, { ExpressApplication } from 'CommonServer/Utils/Express';
import logger from 'CommonServer/Utils/Logger';
import { PromiseVoidFunction } from "Common/Types/FunctionTypes";
import Express, { ExpressApplication } from "Common/Server/Utils/Express";
import logger from "Common/Server/Utils/Logger";
import App from "Common/Server/Utils/StartServer";
export const APP_NAME: string = 'admin';
export const APP_NAME: string = "admin";
const app: ExpressApplication = Express.getExpressApp();
const init: () => Promise<void> = async (): Promise<void> => {
try {
// init the app
await App(APP_NAME, undefined, true);
} catch (err) {
logger.error('App Init Failed:');
logger.error(err);
throw err;
}
const init: PromiseVoidFunction = async (): Promise<void> => {
try {
// init the app
await App.init({
appName: APP_NAME,
port: undefined,
isFrontendApp: true,
statusOptions: {
liveCheck: async () => {},
readyCheck: async () => {},
},
});
// add default routes
await App.addDefaultRoutes();
} catch (err) {
logger.error("App Init Failed:");
logger.error(err);
throw err;
}
};
init().catch((err: Error) => {
logger.error(err);
logger.info('Exiting node process');
process.exit(1);
logger.error(err);
logger.error("Exiting node process");
process.exit(1);
});
export default app;

View File

@@ -1,4 +1,4 @@
declare module '*.png';
declare module '*.svg';
declare module '*.jpg';
declare module '*.gif';
declare module "*.png";
declare module "*.svg";
declare module "*.jpg";
declare module "*.gif";

View File

@@ -1,4 +1,4 @@
{
"watch": ["webpack.config.js"],
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && echo 'HOST=localhost' >> /usr/src/app/dev-env/.env && echo 'USE_HTTPS=false' >> /usr/src/app/dev-env/.env && webpack-dev-server --port=3158 --mode=development"
"exec": "export DEBUG=express:* && printenv > /usr/src/app/dev-env/.env && echo 'USE_HTTPS=false' >> /usr/src/app/dev-env/.env && webpack-dev-server --port=3158 --mode=development"
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,28 +1,16 @@
{
"name": "admin-dashboard",
"name": "@oneuptime/admin-dashboard",
"version": "0.1.0",
"private": false,
"dependencies": {
"@headlessui/react": "^1.7.7",
"@heroicons/react": "^2.0.13",
"@stripe/react-stripe-js": "^1.15.0",
"@stripe/stripe-js": "^1.44.1",
"Common": "file:../Common",
"CommonServer": "file:../CommonServer",
"CommonUI": "file:../CommonUI",
"Model": "file:../Model",
"react": "^18.1.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.1.0",
"react-icons": "^4.4.0",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"reactflow": "^11.5.3",
"stripe": "^11.0.0",
"the-new-css-reset": "^1.7.3",
"typescript": "^4.6.4",
"use-async-effect": "^2.2.6"
"dotenv": "^16.4.5",
"file-loader": "^6.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.23.1",
"style-loader": "^3.3.4"
},
"scripts": {
"dev": "npx nodemon",
@@ -30,10 +18,11 @@
"test": "react-app-rewired test",
"eject": "webpack eject",
"compile": "tsc",
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
"start": "node --require ts-node/register Serve.ts",
"audit": "npm audit --audit-level=low",
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true'"
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
},
"browserslist": {
"production": [
@@ -48,24 +37,17 @@
]
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.1",
"@types/node": "^16.11.35",
"@types/react": "^18.0.9",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.0.4",
"@types/react-router-dom": "^5.3.3",
"css-loader": "^6.7.1",
"customize-cra": "^1.0.0",
"css-loader": "^6.8.1",
"nodemon": "^2.0.20",
"react-app-rewired": "^2.2.1",
"sass": "^1.51.0",
"sass-loader": "^12.6.0",
"ts-loader": "^9.3.0",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"webpack": "^5.76.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.9.0"
"webpack": "^5.76.0"
}
}

View File

@@ -1,113 +1,127 @@
import React from 'react';
import {
Routes,
Route as PageRoute,
useNavigate,
useLocation,
useParams,
} from 'react-router-dom';
import Navigation from 'CommonUI/src/Utils/Navigation';
import User from 'CommonUI/src/Utils/User';
import URL from 'Common/Types/API/URL';
import { ACCOUNTS_URL, DASHBOARD_URL } from 'CommonUI/src/Config';
import MasterPage from './Components/MasterPage/MasterPage';
import RouteMap from './Utils/RouteMap';
import PageMap from './Utils/PageMap';
import Init from './Pages/Init/Init';
import Projects from './Pages/Projects/Index';
import Users from './Pages/Users/Index';
import Logout from './Pages/Logout/Logout';
import MasterPage from "./Components/MasterPage/MasterPage";
import Init from "./Pages/Init/Init";
import Logout from "./Pages/Logout/Logout";
import Projects from "./Pages/Projects/Index";
import SettingsAPIKey from "./Pages/Settings/APIKey/Index";
import SettingsAuthentication from "./Pages/Settings/Authentication/Index";
import SettingsCallSMS from "./Pages/Settings/CallSMS/Index";
// Settings Pages.
import SettingsEmail from './Pages/Settings/SMTP/Index';
import SettingsCallSMS from './Pages/Settings/CallSMS/Index';
import SettingsProbes from './Pages/Settings/Probes/Index';
import SettingsAuthentication from './Pages/Settings/Authentication/Index';
import SettingsAPIKey from './Pages/Settings/APIKey/Index';
import SettingsEmail from "./Pages/Settings/Email/Index";
import SettingsProbes from "./Pages/Settings/Probes/Index";
import Users from "./Pages/Users/Index";
import PageMap from "./Utils/PageMap";
import RouteMap from "./Utils/RouteMap";
import URL from "Common/Types/API/URL";
import { ACCOUNTS_URL, DASHBOARD_URL } from "Common/UI/Config";
import Navigation from "Common/UI/Utils/Navigation";
import User from "Common/UI/Utils/User";
import React from "react";
import {
Route as PageRoute,
Routes,
useLocation,
useNavigate,
useParams,
} from "react-router-dom";
import UserView from "./Pages/Users/View/Index";
import UserDelete from "./Pages/Users/View/Delete";
import ProjectView from "./Pages/Projects/View/Index";
import ProjectDelete from "./Pages/Projects/View/Delete";
const App: () => JSX.Element = () => {
Navigation.setNavigateHook(useNavigate());
Navigation.setLocation(useLocation());
Navigation.setParams(useParams());
Navigation.setNavigateHook(useNavigate());
Navigation.setLocation(useLocation());
Navigation.setParams(useParams());
if (!User.isLoggedIn()) {
if (Navigation.getQueryStringByName('sso_token')) {
Navigation.navigate(
URL.fromString(ACCOUNTS_URL.toString()).addQueryParam(
'sso',
'true'
)
);
} else {
Navigation.navigate(URL.fromString(ACCOUNTS_URL.toString()));
}
if (!User.isLoggedIn()) {
if (Navigation.getQueryStringByName("sso_token")) {
Navigation.navigate(
URL.fromString(ACCOUNTS_URL.toString()).addQueryParam("sso", "true"),
);
} else {
Navigation.navigate(URL.fromString(ACCOUNTS_URL.toString()));
}
}
if (!User.isMasterAdmin()) {
Navigation.navigate(URL.fromString(DASHBOARD_URL.toString()));
}
if (!User.isMasterAdmin()) {
Navigation.navigate(URL.fromString(DASHBOARD_URL.toString()));
}
return (
<MasterPage>
<Routes>
<PageRoute
path={RouteMap[PageMap.INIT]?.toString() || ''}
element={<Init />}
/>
return (
<MasterPage>
<Routes>
<PageRoute
path={RouteMap[PageMap.INIT]?.toString() || ""}
element={<Init />}
/>
<PageRoute
path={RouteMap[PageMap.PROJECTS]?.toString() || ''}
element={<Projects />}
/>
<PageRoute
path={RouteMap[PageMap.PROJECTS]?.toString() || ""}
element={<Projects />}
/>
<PageRoute
path={RouteMap[PageMap.USERS]?.toString() || ''}
element={<Users />}
/>
<PageRoute
path={RouteMap[PageMap.USERS]?.toString() || ""}
element={<Users />}
/>
<PageRoute
path={RouteMap[PageMap.LOGOUT]?.toString() || ''}
element={<Logout />}
/>
<PageRoute
path={RouteMap[PageMap.USER_VIEW]?.toString() || ""}
element={<UserView />}
/>
<PageRoute
path={RouteMap[PageMap.SETTINGS]?.toString() || ''}
element={<SettingsAuthentication />}
/>
<PageRoute
path={RouteMap[PageMap.USER_DELETE]?.toString() || ""}
element={<UserDelete />}
/>
<PageRoute
path={RouteMap[PageMap.SETTINGS_SMTP]?.toString() || ''}
element={<SettingsEmail />}
/>
<PageRoute
path={RouteMap[PageMap.PROJECT_VIEW]?.toString() || ""}
element={<ProjectView />}
/>
<PageRoute
path={
RouteMap[PageMap.SETTINGS_CALL_AND_SMS]?.toString() ||
''
}
element={<SettingsCallSMS />}
/>
<PageRoute
path={RouteMap[PageMap.PROJECT_DELETE]?.toString() || ""}
element={<ProjectDelete />}
/>
<PageRoute
path={RouteMap[PageMap.SETTINGS_PROBES]?.toString() || ''}
element={<SettingsProbes />}
/>
<PageRoute
path={RouteMap[PageMap.LOGOUT]?.toString() || ""}
element={<Logout />}
/>
<PageRoute
path={
RouteMap[PageMap.SETTINGS_AUTHENTICATION]?.toString() ||
''
}
element={<SettingsAuthentication />}
/>
<PageRoute
path={RouteMap[PageMap.SETTINGS]?.toString() || ""}
element={<SettingsAuthentication />}
/>
<PageRoute
path={RouteMap[PageMap.SETTINGS_API_KEY]?.toString() || ''}
element={<SettingsAPIKey />}
/>
</Routes>
</MasterPage>
);
<PageRoute
path={RouteMap[PageMap.SETTINGS_SMTP]?.toString() || ""}
element={<SettingsEmail />}
/>
<PageRoute
path={RouteMap[PageMap.SETTINGS_CALL_AND_SMS]?.toString() || ""}
element={<SettingsCallSMS />}
/>
<PageRoute
path={RouteMap[PageMap.SETTINGS_PROBES]?.toString() || ""}
element={<SettingsProbes />}
/>
<PageRoute
path={RouteMap[PageMap.SETTINGS_AUTHENTICATION]?.toString() || ""}
element={<SettingsAuthentication />}
/>
<PageRoute
path={RouteMap[PageMap.SETTINGS_API_KEY]?.toString() || ""}
element={<SettingsAPIKey />}
/>
</Routes>
</MasterPage>
);
};
export default App;

View File

@@ -1,129 +1,114 @@
import React from 'react';
import Footer from 'CommonUI/src/Components/Footer/Footer';
import URL from 'Common/Types/API/URL';
import API from 'Common/Utils/API';
import { HOST, HTTP_PROTOCOL } from 'CommonUI/src/Config';
import { JSONObject } from 'Common/Types/JSON';
import BadDataException from 'Common/Types/Exception/BadDataException';
import ConfirmModal from 'CommonUI/src/Components/Modal/ConfirmModal';
import Dictionary from 'Common/Types/Dictionary';
import HTTPResponse from 'Common/Types/API/HTTPResponse';
import HTTPResponse from "Common/Types/API/HTTPResponse";
import URL from "Common/Types/API/URL";
import Dictionary from "Common/Types/Dictionary";
import BadDataException from "Common/Types/Exception/BadDataException";
import { PromiseVoidFunction } from "Common/Types/FunctionTypes";
import { JSONObject } from "Common/Types/JSON";
import API from "Common/Utils/API";
import Footer from "Common/UI/Components/Footer/Footer";
import ConfirmModal from "Common/UI/Components/Modal/ConfirmModal";
import { HOST, HTTP_PROTOCOL } from "Common/UI/Config";
import React from "react";
const DashboardFooter: () => JSX.Element = () => {
const [showAboutModal, setShowAboutModal] = React.useState<boolean>(false);
const [isAboutModalLoading, setIsAboutModalLoading] =
React.useState<boolean>(false);
const [versionText, setVersionText] = React.useState<Dictionary<string>>(
{}
const [showAboutModal, setShowAboutModal] = React.useState<boolean>(false);
const [isAboutModalLoading, setIsAboutModalLoading] =
React.useState<boolean>(false);
const [versionText, setVersionText] = React.useState<Dictionary<string>>({});
const fetchVersions: PromiseVoidFunction = async (): Promise<void> => {
setIsAboutModalLoading(true);
try {
const verText: Dictionary<string> = {};
const apps: Array<{
name: string;
path: string;
}> = [
{
name: "API",
path: "/api",
},
{
name: "Dashboard",
path: "/dashboard",
},
];
for (const app of apps) {
const version: JSONObject = await fetchAppVersion(app.path);
verText[app.name] =
`${app.name}: ${version["version"]} (${version["commit"]})`;
}
setVersionText(verText);
} catch (err) {
setVersionText({
error: "Version data is not available: " + (err as Error).message,
});
}
setIsAboutModalLoading(false);
};
const fetchAppVersion: (appName: string) => Promise<JSONObject> = async (
appName: string,
): Promise<JSONObject> => {
const response: HTTPResponse<JSONObject> = await API.get<JSONObject>(
URL.fromString(`${HTTP_PROTOCOL}/${HOST}${appName}/version`),
);
const fetchVersions: () => Promise<void> = async (): Promise<void> => {
setIsAboutModalLoading(true);
if (response.data) {
return response.data as JSONObject;
}
throw new BadDataException("Version data is not available");
};
try {
const verText: Dictionary<string> = {};
const apps: Array<{
name: string;
path: string;
}> = [
{
name: 'API',
path: '/api',
},
{
name: 'Dashboard',
path: '/dashboard',
},
{
name: 'Notification',
path: '/notification',
},
{
name: 'Identity Service',
path: '/identity',
},
];
return (
<>
<Footer
className="bg-white h-16 inset-x-0 bottom-0 px-8"
copyright="HackerBay, Inc."
links={[
{
title: "Help and Support",
to: URL.fromString("https://oneuptime.com/support"),
},
{
title: "Legal",
to: URL.fromString("https://oneuptime.com/legal"),
},
{
title: "Version",
onClick: async () => {
setShowAboutModal(true);
await fetchVersions();
},
},
]}
/>
for (const app of apps) {
const version: JSONObject = await fetchAppVersion(app.path);
verText[
app.name
] = `${app.name}: ${version['version']} (${version['commit']})`;
}
setVersionText(verText);
} catch (err) {
setVersionText({
error:
'Version data is not available: ' + (err as Error).message,
});
}
setIsAboutModalLoading(false);
};
const fetchAppVersion: (appName: string) => Promise<JSONObject> = async (
appName: string
): Promise<JSONObject> => {
const response: HTTPResponse<JSONObject> = await API.get<JSONObject>(
URL.fromString(`${HTTP_PROTOCOL}/${HOST}${appName}/version`)
);
if (response.data) {
return response.data as JSONObject;
}
throw new BadDataException('Version data is not available');
};
return (
<>
<Footer
className="bg-white h-16 inset-x-0 bottom-0 px-8"
copyright="HackerBay, Inc."
links={[
{
title: 'Help and Support',
to: URL.fromString('https://oneuptime.com/support'),
},
{
title: 'Legal',
to: URL.fromString('https://oneuptime.com/legal'),
},
{
title: 'Version',
onClick: async () => {
setShowAboutModal(true);
await fetchVersions();
},
},
]}
/>
{showAboutModal ? (
<ConfirmModal
title={`OneUptime Version`}
description={
<div>
{Object.keys(versionText).map(
(key: string, i: number) => {
return (
<div key={i}>{versionText[key]}</div>
);
}
)}
</div>
}
isLoading={isAboutModalLoading}
submitButtonText={'Close'}
onSubmit={() => {
return setShowAboutModal(false);
}}
/>
) : (
<></>
)}
</>
);
{showAboutModal ? (
<ConfirmModal
title={`OneUptime Version`}
description={
<div>
{Object.keys(versionText).map((key: string, i: number) => {
return <div key={i}>{versionText[key]}</div>;
})}
</div>
}
isLoading={isAboutModalLoading}
submitButtonText={"Close"}
onSubmit={() => {
return setShowAboutModal(false);
}}
/>
) : (
<></>
)}
</>
);
};
export default DashboardFooter;

View File

@@ -1,46 +1,46 @@
import React, { FunctionComponent, ReactElement } from 'react';
import Help from './Help';
import Header from 'CommonUI/src/Components/Header/Header';
import Logo from './Logo';
import Button, { ButtonStyleType } from 'CommonUI/src/Components/Button/Button';
import Navigation from 'CommonUI/src/Utils/Navigation';
import { DASHBOARD_URL } from 'CommonUI/src/Config';
import UserProfile from './UserProfile';
import Help from "./Help";
import Logo from "./Logo";
import UserProfile from "./UserProfile";
import Button, { ButtonStyleType } from "Common/UI/Components/Button/Button";
import Header from "Common/UI/Components/Header/Header";
import { DASHBOARD_URL } from "Common/UI/Config";
import Navigation from "Common/UI/Utils/Navigation";
import React, { FunctionComponent, ReactElement } from "react";
const DashboardHeader: FunctionComponent = (): ReactElement => {
return (
<>
<Header
leftComponents={
<>
<Logo onClick={() => {}} />
</>
}
centerComponents={
<>
{/* <SearchBox
return (
<>
<Header
leftComponents={
<>
<Logo onClick={() => {}} />
</>
}
centerComponents={
<>
{/* <SearchBox
key={2}
selectedProject={props.selectedProject}
onChange={(_value: string) => { }}
/>{' '} */}
</>
}
rightComponents={
<>
<Button
title="Exit Admin"
buttonStyle={ButtonStyleType.NORMAL}
onClick={() => {
Navigation.navigate(DASHBOARD_URL);
}}
/>
<Help />
<UserProfile />
</>
}
</>
}
rightComponents={
<>
<Button
title="Exit Admin"
buttonStyle={ButtonStyleType.NORMAL}
onClick={() => {
Navigation.navigate(DASHBOARD_URL);
}}
/>
</>
);
<Help />
<UserProfile />
</>
}
/>
</>
);
};
export default DashboardHeader;

View File

@@ -1,60 +1,58 @@
import React, { ReactElement, useState } from 'react';
import HeaderIconDropdownButton from 'CommonUI/src/Components/Header/HeaderIconDropdownButton';
import IconDropdownItem from 'CommonUI/src/Components/Header/IconDropdown/IconDropdownItem';
import IconDropdownMenu from 'CommonUI/src/Components/Header/IconDropdown/IconDropdownMenu';
import IconDropdownRow from 'CommonUI/src/Components/Header/IconDropdown/IconDropdownRow';
import IconProp from 'Common/Types/Icon/IconProp';
import URL from 'Common/Types/API/URL';
import URL from "Common/Types/API/URL";
import IconProp from "Common/Types/Icon/IconProp";
import HeaderIconDropdownButton from "Common/UI/Components/Header/HeaderIconDropdownButton";
import IconDropdownItem from "Common/UI/Components/Header/IconDropdown/IconDropdownItem";
import IconDropdownMenu from "Common/UI/Components/Header/IconDropdown/IconDropdownMenu";
import IconDropdownRow from "Common/UI/Components/Header/IconDropdown/IconDropdownRow";
import React, { ReactElement, useState } from "react";
const Help: () => JSX.Element = (): ReactElement => {
const [isDropdownVisible, setIsDropdownVisible] = useState<boolean>(false);
const [isDropdownVisible, setIsDropdownVisible] = useState<boolean>(false);
return (
<HeaderIconDropdownButton
icon={IconProp.Help}
name="Help"
showDropdown={isDropdownVisible}
return (
<HeaderIconDropdownButton
icon={IconProp.Help}
name="Help"
showDropdown={isDropdownVisible}
onClick={() => {
setIsDropdownVisible(true);
}}
>
<IconDropdownMenu>
<IconDropdownRow>
<IconDropdownItem
title="Support Email"
icon={IconProp.Email}
openInNewTab={true}
url={URL.fromString("mailto:support@oneuptime.com")}
onClick={() => {
setIsDropdownVisible(true);
setIsDropdownVisible(false);
}}
>
<IconDropdownMenu>
<IconDropdownRow>
<IconDropdownItem
title="Support Email"
icon={IconProp.Email}
openInNewTab={true}
url={URL.fromString('mailto:support@oneuptime.com')}
onClick={() => {
setIsDropdownVisible(false);
}}
/>
<IconDropdownItem
title="Chat on Slack"
icon={IconProp.Slack}
openInNewTab={true}
onClick={() => {
setIsDropdownVisible(false);
}}
url={URL.fromString(
'https://join.slack.com/t/oneuptimesupport/shared_invite/zt-1kavkds2f-gegm_wePorvwvM3M_SaoCQ'
)}
/>
<IconDropdownItem
title="Request Demo"
icon={IconProp.Window}
onClick={() => {
setIsDropdownVisible(false);
}}
openInNewTab={true}
url={URL.fromString(
'https://oneuptime.com/enterprise/demo'
)}
/>
</IconDropdownRow>
</IconDropdownMenu>
</HeaderIconDropdownButton>
);
/>
<IconDropdownItem
title="Chat on Slack"
icon={IconProp.Slack}
openInNewTab={true}
onClick={() => {
setIsDropdownVisible(false);
}}
url={URL.fromString(
"https://join.slack.com/t/oneuptimesupport/shared_invite/zt-1kavkds2f-gegm_wePorvwvM3M_SaoCQ",
)}
/>
<IconDropdownItem
title="Request Demo"
icon={IconProp.Window}
onClick={() => {
setIsDropdownVisible(false);
}}
openInNewTab={true}
url={URL.fromString("https://oneuptime.com/enterprise/demo")}
/>
</IconDropdownRow>
</IconDropdownMenu>
</HeaderIconDropdownButton>
);
};
export default Help;

View File

@@ -1,31 +1,30 @@
// Tailwind
import React, { FunctionComponent, ReactElement } from 'react';
import Image from 'CommonUI/src/Components/Image/Image';
import OneUptimeLogo from 'CommonUI/src/Images/logos/OneUptimeSVG/3-transparent.svg';
import Route from 'Common/Types/API/Route';
import Route from "Common/Types/API/Route";
import Image from "Common/UI/Components/Image/Image";
import OneUptimeLogo from "Common/UI/Images/logos/OneUptimeSVG/3-transparent.svg";
import React, { FunctionComponent, ReactElement } from "react";
export interface ComponentProps {
onClick: () => void;
onClick: () => void;
}
const Logo: FunctionComponent<ComponentProps> = (
props: ComponentProps
props: ComponentProps,
): ReactElement => {
return (
<div className="relative z-10 flex px-2 lg:px-0">
<div className="flex flex-shrink-0 items-center">
<Image
className="block h-8 w-auto"
onClick={() => {
props.onClick && props.onClick();
}}
imageUrl={Route.fromString(`${OneUptimeLogo}`)}
alt={'OneUptime'}
/>
</div>
</div>
);
return (
<div className="relative z-10 flex px-2 lg:px-0">
<div className="flex flex-shrink-0 items-center">
<Image
className="block h-8 w-auto"
onClick={() => {
props.onClick && props.onClick();
}}
imageUrl={Route.fromString(`${OneUptimeLogo}`)}
alt={"OneUptime"}
/>
</div>
</div>
);
};
export default Logo;

View File

@@ -1,35 +1,35 @@
import React, { ReactElement, useState } from 'react';
import HeaderIconDropdownButton from 'CommonUI/src/Components/Header/HeaderIconDropdownButton';
import Notifications from 'CommonUI/src/Components/Header/Notifications/Notifications';
import NotificationItem from 'CommonUI/src/Components/Header/Notifications/NotificationItem';
import IconProp from 'Common/Types/Icon/IconProp';
import IconProp from "Common/Types/Icon/IconProp";
import HeaderIconDropdownButton from "Common/UI/Components/Header/HeaderIconDropdownButton";
import NotificationItem from "Common/UI/Components/Header/Notifications/NotificationItem";
import Notifications from "Common/UI/Components/Header/Notifications/Notifications";
import React, { ReactElement, useState } from "react";
const DashboardHeader: () => JSX.Element = (): ReactElement => {
const [isDropdownVisible, setIsDropdownVisible] = useState<boolean>(false);
const [isDropdownVisible, setIsDropdownVisible] = useState<boolean>(false);
return (
<HeaderIconDropdownButton
name="Notifications"
onClick={() => {
setIsDropdownVisible(true);
}}
showDropdown={isDropdownVisible}
icon={IconProp.Notification}
badge={4}
>
<Notifications>
<NotificationItem
title="Sample Title"
description="Sample Description"
createdAt={new Date()}
icon={IconProp.Home}
onClick={() => {
setIsDropdownVisible(false);
}}
/>
</Notifications>
</HeaderIconDropdownButton>
);
return (
<HeaderIconDropdownButton
name="Notifications"
onClick={() => {
setIsDropdownVisible(true);
}}
showDropdown={isDropdownVisible}
icon={IconProp.Notification}
badge={4}
>
<Notifications>
<NotificationItem
title="Sample Title"
description="Sample Description"
createdAt={new Date()}
icon={IconProp.Home}
onClick={() => {
setIsDropdownVisible(false);
}}
/>
</Notifications>
</HeaderIconDropdownButton>
);
};
export default DashboardHeader;

View File

@@ -1,285 +1,273 @@
import SubscriptionPlan from "Common/Types/Billing/SubscriptionPlan";
import IconProp from "Common/Types/Icon/IconProp";
import { FormType } from "Common/UI/Components/Forms/ModelForm";
import Field from "Common/UI/Components/Forms/Types/Field";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import ProjectPicker from "Common/UI/Components/Header/ProjectPicker/ProjectPicker";
import ModelFormModal from "Common/UI/Components/ModelFormModal/ModelFormModal";
import { RadioButton } from "Common/UI/Components/RadioButtons/GroupRadioButtons";
import Toggle from "Common/UI/Components/Toggle/Toggle";
import { BILLING_ENABLED, getAllEnvVars } from "Common/UI/Config";
import { GetReactElementFunction } from "Common/UI/Types/FunctionTypes";
import ProjectUtil from "Common/UI/Utils/Project";
import Project from "Common/Models/DatabaseModels/Project";
import React, {
FunctionComponent,
ReactElement,
useState,
useEffect,
} from 'react';
import ProjectPicker from 'CommonUI/src/Components/Header/ProjectPicker/ProjectPicker';
import IconProp from 'Common/Types/Icon/IconProp';
import Project from 'Model/Models/Project';
import ModelFormModal from 'CommonUI/src/Components/ModelFormModal/ModelFormModal';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import { FormType } from 'CommonUI/src/Components/Forms/ModelForm';
import ProjectUtil from 'CommonUI/src/Utils/Project';
import { BILLING_ENABLED, getAllEnvVars } from 'CommonUI/src/Config';
import SubscriptionPlan from 'Common/Types/Billing/SubscriptionPlan';
import Field from 'CommonUI/src/Components/Forms/Types/Field';
import { RadioButton } from 'CommonUI/src/Components/RadioButtons/RadioButtons';
import Toggle from 'CommonUI/src/Components/Toggle/Toggle';
FunctionComponent,
ReactElement,
useEffect,
useState,
} from "react";
export interface ComponentProps {
projects: Array<Project>;
onProjectSelected: (project: Project) => void;
showProjectModal: boolean;
onProjectModalClose: () => void;
projects: Array<Project>;
onProjectSelected: (project: Project) => void;
showProjectModal: boolean;
onProjectModalClose: () => void;
}
const DashboardProjectPicker: FunctionComponent<ComponentProps> = (
props: ComponentProps
props: ComponentProps,
): ReactElement => {
const [showModal, setShowModal] = useState<boolean>(false);
const [selectedProject, setSelectedProject] = useState<Project | null>(
null
);
const [showModal, setShowModal] = useState<boolean>(false);
const [selectedProject, setSelectedProject] = useState<Project | null>(null);
const getFooter: Function = (): ReactElement => {
if (!BILLING_ENABLED) {
return <></>;
}
return (
<Toggle
title="Yearly Plan"
initialValue={isSubscriptionPlanYearly}
description="(Save 20%)"
onChange={(value: boolean) => {
setIsSubscriptionPlanYearly(value);
}}
/>
);
};
const [isSubscriptionPlanYearly, setIsSubscriptionPlanYearly] =
useState<boolean>(true);
const [fields, setFields] = useState<Array<Field<Project>>>([]);
useEffect(() => {
if (props.showProjectModal) {
setShowModal(true);
}
}, [props.showProjectModal]);
useEffect(() => {
const currentProject: Project | null = ProjectUtil.getCurrentProject();
setSelectedProject(currentProject);
if (currentProject && props.onProjectSelected) {
props.onProjectSelected(currentProject);
}
}, []);
useEffect(() => {
if (selectedProject) {
ProjectUtil.setCurrentProject(selectedProject);
if (props.onProjectSelected) {
props.onProjectSelected(selectedProject);
}
}
}, [selectedProject]);
useEffect(() => {
if (
props.projects &&
props.projects.length > 0 &&
!selectedProject &&
props.projects[0]
) {
const currentProject: Project | null =
ProjectUtil.getCurrentProject();
if (!currentProject) {
setSelectedProject(props.projects[0]);
} else if (
props.projects.filter((project: Project) => {
return project._id === currentProject._id;
}).length > 0
) {
setSelectedProject(
props.projects.filter((project: Project) => {
return project._id === currentProject._id;
})[0] as Project
);
} else {
setSelectedProject(props.projects[0]);
}
}
}, [props.projects]);
useEffect(() => {
refreshFields();
}, [isSubscriptionPlanYearly]);
const refreshFields: Function = (): void => {
let formFields: Array<Field<Project>> = [
{
field: {
name: true,
},
validation: {
minLength: 4,
},
fieldType: FormFieldSchemaType.Text,
placeholder: 'My Project',
description: 'Pick a friendly name.',
title: 'Project Name',
required: true,
stepId: BILLING_ENABLED ? 'basic' : undefined,
},
];
if (BILLING_ENABLED) {
formFields = [
...formFields,
{
field: {
paymentProviderPlanId: true,
},
stepId: 'plan',
validation: {
minLength: 6,
},
footerElement: getFooter(),
fieldType: FormFieldSchemaType.RadioButton,
radioButtonOptions: SubscriptionPlan.getSubscriptionPlans(
getAllEnvVars()
).map((plan: SubscriptionPlan): RadioButton => {
let description: string = plan.isCustomPricing()
? `Our sales team will contact you soon.`
: `Billed ${
isSubscriptionPlanYearly
? 'yearly'
: 'monthly'
}. ${
plan.getTrialPeriod() > 0
? `Free ${plan.getTrialPeriod()} days trial.`
: ''
}`;
if (
isSubscriptionPlanYearly &&
plan.getYearlySubscriptionAmountInUSD() === 0
) {
description = 'This plan is free, forever. ';
}
if (
!isSubscriptionPlanYearly &&
plan.getMonthlySubscriptionAmountInUSD() === 0
) {
description = 'This plan is free, forever. ';
}
return {
value: isSubscriptionPlanYearly
? plan.getYearlyPlanId()
: plan.getMonthlyPlanId(),
title: plan.getName(),
description: description,
sideTitle: plan.isCustomPricing()
? 'Custom Price'
: isSubscriptionPlanYearly
? '$' +
plan
.getYearlySubscriptionAmountInUSD()
.toString() +
'/mo billed yearly'
: '$' +
plan
.getMonthlySubscriptionAmountInUSD()
.toString(),
sideDescription: plan.isCustomPricing()
? ''
: isSubscriptionPlanYearly
? `~ $${
plan.getYearlySubscriptionAmountInUSD() *
12
} per user / year`
: `/month per user`,
};
}),
title: 'Please select a plan.',
required: true,
},
{
field: {
paymentProviderPromoCode: true,
},
fieldType: FormFieldSchemaType.Text,
placeholder: 'Promo Code (Optional)',
description: 'If you have a coupon code, enter it here.',
title: 'Promo Code',
required: false,
stepId: 'plan',
},
];
}
setFields(formFields);
};
const getFooter: GetReactElementFunction = (): ReactElement => {
if (!BILLING_ENABLED) {
return <></>;
}
return (
<>
{props.projects.length !== 0 && (
<ProjectPicker
selectedProjectName={selectedProject?.name || ''}
selectedProjectIcon={IconProp.Folder}
projects={props.projects}
onCreateProjectButtonClicked={() => {
setShowModal(true);
props.onProjectModalClose();
}}
onProjectSelected={(project: Project) => {
setSelectedProject(project);
}}
/>
)}
{showModal ? (
<ModelFormModal<Project>
modelType={Project}
name="Create New Project"
title="Create New Project"
description="Please create a new OneUptime project to get started."
onClose={() => {
setShowModal(false);
props.onProjectModalClose();
}}
submitButtonText="Create Project"
onSuccess={(project: Project | null) => {
setSelectedProject(project);
if (project && props.onProjectSelected) {
props.onProjectSelected(project);
}
setShowModal(false);
props.onProjectModalClose();
}}
formProps={{
name: 'Create New Project',
steps: BILLING_ENABLED
? [
{
title: 'Basic',
id: 'basic',
},
{
title: 'Select Plan',
id: 'plan',
},
]
: undefined,
saveRequestOptions: {
isMultiTenantRequest: true, // because this is a tenant request, we do not have to include the header in the request
},
modelType: Project,
id: 'create-project-from',
fields: [...fields],
formType: FormType.Create,
}}
/>
) : (
<></>
)}
</>
<Toggle
title="Yearly Plan"
value={isSubscriptionPlanYearly}
description="(Save 20%)"
onChange={(value: boolean) => {
setIsSubscriptionPlanYearly(value);
}}
/>
);
};
const [isSubscriptionPlanYearly, setIsSubscriptionPlanYearly] =
useState<boolean>(true);
const [fields, setFields] = useState<Array<Field<Project>>>([]);
useEffect(() => {
if (props.showProjectModal) {
setShowModal(true);
}
}, [props.showProjectModal]);
useEffect(() => {
const currentProject: Project | null = ProjectUtil.getCurrentProject();
setSelectedProject(currentProject);
if (currentProject && props.onProjectSelected) {
props.onProjectSelected(currentProject);
}
}, []);
useEffect(() => {
if (selectedProject) {
ProjectUtil.setCurrentProject(selectedProject);
if (props.onProjectSelected) {
props.onProjectSelected(selectedProject);
}
}
}, [selectedProject]);
useEffect(() => {
if (
props.projects &&
props.projects.length > 0 &&
!selectedProject &&
props.projects[0]
) {
const currentProject: Project | null = ProjectUtil.getCurrentProject();
if (!currentProject) {
setSelectedProject(props.projects[0]);
} else if (
props.projects.filter((project: Project) => {
return project._id === currentProject._id;
}).length > 0
) {
setSelectedProject(
props.projects.filter((project: Project) => {
return project._id === currentProject._id;
})[0] as Project,
);
} else {
setSelectedProject(props.projects[0]);
}
}
}, [props.projects]);
useEffect(() => {
refreshFields();
}, [isSubscriptionPlanYearly]);
const refreshFields: VoidFunction = (): void => {
let formFields: Array<Field<Project>> = [
{
field: {
name: true,
},
validation: {
minLength: 4,
},
fieldType: FormFieldSchemaType.Text,
placeholder: "My Project",
description: "Pick a friendly name.",
title: "Project Name",
required: true,
stepId: BILLING_ENABLED ? "basic" : undefined,
},
];
if (BILLING_ENABLED) {
formFields = [
...formFields,
{
field: {
paymentProviderPlanId: true,
},
stepId: "plan",
validation: {
minLength: 6,
},
footerElement: getFooter(),
fieldType: FormFieldSchemaType.RadioButton,
radioButtonOptions: SubscriptionPlan.getSubscriptionPlans(
getAllEnvVars(),
).map((plan: SubscriptionPlan): RadioButton => {
let description: string = plan.isCustomPricing()
? `Our sales team will contact you soon.`
: `Billed ${isSubscriptionPlanYearly ? "yearly" : "monthly"}. ${
plan.getTrialPeriod() > 0
? `Free ${plan.getTrialPeriod()} days trial.`
: ""
}`;
if (
isSubscriptionPlanYearly &&
plan.getYearlySubscriptionAmountInUSD() === 0
) {
description = "This plan is free, forever. ";
}
if (
!isSubscriptionPlanYearly &&
plan.getMonthlySubscriptionAmountInUSD() === 0
) {
description = "This plan is free, forever. ";
}
return {
value: isSubscriptionPlanYearly
? plan.getYearlyPlanId()
: plan.getMonthlyPlanId(),
title: plan.getName(),
description: description,
sideTitle: plan.isCustomPricing()
? "Custom Price"
: isSubscriptionPlanYearly
? "$" +
plan.getYearlySubscriptionAmountInUSD().toString() +
"/mo billed yearly"
: "$" + plan.getMonthlySubscriptionAmountInUSD().toString(),
sideDescription: plan.isCustomPricing()
? ""
: isSubscriptionPlanYearly
? `~ $${
plan.getYearlySubscriptionAmountInUSD() * 12
} per user / year`
: `/month per user`,
};
}),
title: "Please select a plan.",
required: true,
},
{
field: {
paymentProviderPromoCode: true,
},
fieldType: FormFieldSchemaType.Text,
placeholder: "Promo Code (Optional)",
description: "If you have a coupon code, enter it here.",
title: "Promo Code",
required: false,
stepId: "plan",
},
];
}
setFields(formFields);
};
return (
<>
{props.projects.length !== 0 && (
<ProjectPicker
selectedProjectName={selectedProject?.name || ""}
selectedProjectIcon={IconProp.Folder}
projects={props.projects}
onCreateProjectButtonClicked={() => {
setShowModal(true);
props.onProjectModalClose();
}}
onProjectSelected={(project: Project) => {
setSelectedProject(project);
}}
/>
)}
{showModal ? (
<ModelFormModal<Project>
modelType={Project}
name="Create New Project"
title="Create New Project"
description="Please create a new OneUptime project to get started."
onClose={() => {
setShowModal(false);
props.onProjectModalClose();
}}
submitButtonText="Create Project"
onSuccess={(project: Project | null) => {
setSelectedProject(project);
if (project && props.onProjectSelected) {
props.onProjectSelected(project);
}
setShowModal(false);
props.onProjectModalClose();
}}
formProps={{
name: "Create New Project",
steps: BILLING_ENABLED
? [
{
title: "Basic",
id: "basic",
},
{
title: "Select Plan",
id: "plan",
},
]
: undefined,
saveRequestOptions: {
isMultiTenantRequest: true, // because this is a tenant request, we do not have to include the header in the request
},
modelType: Project,
id: "create-project-from",
fields: [...fields],
formType: FormType.Create,
}}
/>
) : (
<></>
)}
</>
);
};
export default DashboardProjectPicker;

View File

@@ -1,20 +1,20 @@
import React, { FunctionComponent, ReactElement } from 'react';
import SearchBox from 'CommonUI/src/Components/Header/SearchBox';
import Project from 'Model/Models/Project';
import SearchBox from "Common/UI/Components/Header/SearchBox";
import Project from "Common/Models/DatabaseModels/Project";
import React, { FunctionComponent, ReactElement } from "react";
export interface ComponentProps {
onChange: (search: string) => void;
selectedProject: Project | null;
onChange: (search: string) => void;
selectedProject: Project | null;
}
const Search: FunctionComponent<ComponentProps> = (
props: ComponentProps
props: ComponentProps,
): ReactElement => {
if (!props.selectedProject) {
return <></>;
}
if (!props.selectedProject) {
return <></>;
}
return <SearchBox key={2} onChange={props.onChange} />;
return <SearchBox key={2} onChange={props.onChange} />;
};
export default Search;

View File

@@ -1,57 +1,57 @@
import React, { FunctionComponent, ReactElement, useState } from 'react';
import IconProp from 'Common/Types/Icon/IconProp';
import Route from 'Common/Types/API/Route';
import RouteMap, { RouteUtil } from '../../Utils/RouteMap';
import PageMap from '../../Utils/PageMap';
import BlankProfilePic from 'CommonUI/src/Images/users/blank-profile.svg';
import HeaderIconDropdownButton from 'CommonUI/src/Components/Header/HeaderIconDropdownButton';
import IconDropdownItem from 'CommonUI/src/Components/Header/IconDropdown/IconDropdownItem';
import IconDropdownMenu from 'CommonUI/src/Components/Header/IconDropdown/IconDropdownMenu';
import Navigation from 'CommonUI/src/Utils/Navigation';
import { DASHBOARD_URL } from 'CommonUI/src/Config';
import User from 'CommonUI/src/Utils/User';
import PageMap from "../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import IconProp from "Common/Types/Icon/IconProp";
import HeaderIconDropdownButton from "Common/UI/Components/Header/HeaderIconDropdownButton";
import IconDropdownItem from "Common/UI/Components/Header/IconDropdown/IconDropdownItem";
import IconDropdownMenu from "Common/UI/Components/Header/IconDropdown/IconDropdownMenu";
import { DASHBOARD_URL } from "Common/UI/Config";
import BlankProfilePic from "Common/UI/Images/users/blank-profile.svg";
import Navigation from "Common/UI/Utils/Navigation";
import User from "Common/UI/Utils/User";
import React, { FunctionComponent, ReactElement, useState } from "react";
const DashboardUserProfile: FunctionComponent = (): ReactElement => {
const [isDropdownVisible, setIsDropdownVisible] = useState<boolean>(false);
const [isDropdownVisible, setIsDropdownVisible] = useState<boolean>(false);
return (
<>
<HeaderIconDropdownButton
iconImageUrl={BlankProfilePic}
name="User Profile"
showDropdown={isDropdownVisible}
onClick={() => {
setIsDropdownVisible(true);
}}
>
<IconDropdownMenu>
{User.isMasterAdmin() ? (
<IconDropdownItem
title="Exit Admin"
onClick={() => {
setIsDropdownVisible(false);
Navigation.navigate(DASHBOARD_URL);
}}
icon={IconProp.ExternalLink}
/>
) : (
<></>
)}
return (
<>
<HeaderIconDropdownButton
iconImageUrl={BlankProfilePic}
name="User Profile"
showDropdown={isDropdownVisible}
onClick={() => {
setIsDropdownVisible(true);
}}
>
<IconDropdownMenu>
{User.isMasterAdmin() ? (
<IconDropdownItem
title="Exit Admin"
onClick={() => {
setIsDropdownVisible(false);
Navigation.navigate(DASHBOARD_URL);
}}
icon={IconProp.ExternalLink}
/>
) : (
<></>
)}
<IconDropdownItem
title="Log out"
onClick={() => {
setIsDropdownVisible(false);
}}
url={RouteUtil.populateRouteParams(
RouteMap[PageMap.LOGOUT] as Route
)}
icon={IconProp.Logout}
/>
</IconDropdownMenu>
</HeaderIconDropdownButton>
</>
);
<IconDropdownItem
title="Log out"
onClick={() => {
setIsDropdownVisible(false);
}}
url={RouteUtil.populateRouteParams(
RouteMap[PageMap.LOGOUT] as Route,
)}
icon={IconProp.Logout}
/>
</IconDropdownMenu>
</HeaderIconDropdownButton>
</>
);
};
export default DashboardUserProfile;

View File

@@ -1,35 +1,35 @@
import MasterPage from 'CommonUI/src/Components/MasterPage/MasterPage';
import Footer from '../Footer/Footer';
import Header from '../Header/Header';
import NavBar from '../NavBar/NavBar';
import React, { FunctionComponent, ReactElement } from 'react';
import TopAlert from 'CommonUI/src/Components/TopAlert/TopAlert';
import Footer from "../Footer/Footer";
import Header from "../Header/Header";
import NavBar from "../NavBar/NavBar";
import MasterPage from "Common/UI/Components/MasterPage/MasterPage";
import TopAlert from "Common/UI/Components/TopAlert/TopAlert";
import React, { FunctionComponent, ReactElement } from "react";
export interface ComponentProps {
children: ReactElement | Array<ReactElement>;
children: ReactElement | Array<ReactElement>;
}
const DashboardMasterPage: FunctionComponent<ComponentProps> = (
props: ComponentProps
props: ComponentProps,
): ReactElement => {
return (
<div>
<TopAlert
title="OneUptime Admin Dashboard"
description="You can perform your OneUptime server related tasks on this dashboard."
/>
<MasterPage
footer={<Footer />}
header={<Header />}
navBar={<NavBar />}
isLoading={false}
error={''}
className="flex flex-col h-screen justify-between"
>
{props.children}
</MasterPage>
</div>
);
return (
<div>
<TopAlert
title="OneUptime Admin Dashboard"
description="You can perform your OneUptime server related tasks on this dashboard."
/>
<MasterPage
footer={<Footer />}
header={<Header />}
navBar={<NavBar />}
isLoading={false}
error={""}
className="flex flex-col h-screen justify-between"
>
{props.children}
</MasterPage>
</div>
);
};
export default DashboardMasterPage;

View File

@@ -1,39 +1,37 @@
import React, { FunctionComponent, ReactElement } from 'react';
import NavBar from 'CommonUI/src/Components/Navbar/NavBar';
import NavBarItem from 'CommonUI/src/Components/Navbar/NavBarItem';
import Route from 'Common/Types/API/Route';
import IconProp from 'Common/Types/Icon/IconProp';
import PageMap from '../../Utils/PageMap';
import RouteMap, { RouteUtil } from '../../Utils/RouteMap';
import PageMap from "../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import IconProp from "Common/Types/Icon/IconProp";
import NavBar from "Common/UI/Components/Navbar/NavBar";
import NavBarItem from "Common/UI/Components/Navbar/NavBarItem";
import React, { FunctionComponent, ReactElement } from "react";
const DashboardNavbar: FunctionComponent = (): ReactElement => {
return (
<NavBar>
<NavBarItem
title="Users"
icon={IconProp.User}
route={RouteUtil.populateRouteParams(
RouteMap[PageMap.USERS] as Route
)}
></NavBarItem>
return (
<NavBar>
<NavBarItem
title="Users"
icon={IconProp.User}
route={RouteUtil.populateRouteParams(RouteMap[PageMap.USERS] as Route)}
></NavBarItem>
<NavBarItem
title="Projects"
icon={IconProp.Folder}
route={RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECTS] as Route
)}
></NavBarItem>
<NavBarItem
title="Projects"
icon={IconProp.Folder}
route={RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECTS] as Route,
)}
></NavBarItem>
<NavBarItem
title="Settings"
icon={IconProp.Settings}
route={RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route
)}
></NavBarItem>
</NavBar>
);
<NavBarItem
title="Settings"
icon={IconProp.Settings}
route={RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route,
)}
></NavBarItem>
</NavBar>
);
};
export default DashboardNavbar;

View File

@@ -1,15 +1,19 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { BrowserRouter } from 'react-router-dom';
// import 'the-new-css-reset/css/reset.css';
import App from "./App";
import Telemetry from "Common/UI/Utils/Telemetry";
import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
Telemetry.init({
serviceName: "admin-dashboard",
});
const root: any = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
document.getElementById("root") as HTMLElement,
);
root.render(
<BrowserRouter>
<App />
</BrowserRouter>
<BrowserRouter>
<App />
</BrowserRouter>,
);

View File

@@ -1,22 +1,22 @@
import PageLoader from 'CommonUI/src/Components/Loader/PageLoader';
import Page from 'CommonUI/src/Components/Page/Page';
import Navigation from 'CommonUI/src/Utils/Navigation';
import React, { FunctionComponent, ReactElement, useEffect } from 'react';
import RouteMap from '../../Utils/RouteMap';
import PageMap from '../../Utils/PageMap';
import PageMap from "../../Utils/PageMap";
import RouteMap from "../../Utils/RouteMap";
import PageLoader from "Common/UI/Components/Loader/PageLoader";
import Page from "Common/UI/Components/Page/Page";
import Navigation from "Common/UI/Utils/Navigation";
import React, { FunctionComponent, ReactElement, useEffect } from "react";
const Init: FunctionComponent = (): ReactElement => {
useEffect(() => {
Navigation.navigate(RouteMap[PageMap.USERS]!, {
forceNavigate: true,
});
}, []);
useEffect(() => {
Navigation.navigate(RouteMap[PageMap.USERS]!, {
forceNavigate: true,
});
}, []);
return (
<Page title={''} breadcrumbLinks={[]}>
<PageLoader isVisible={true} />
</Page>
);
return (
<Page title={""} breadcrumbLinks={[]}>
<PageLoader isVisible={true} />
</Page>
);
};
export default Init;

View File

@@ -1,53 +1,49 @@
import React, { FunctionComponent, ReactElement, useEffect } from 'react';
import Page from 'CommonUI/src/Components/Page/Page';
import Route from 'Common/Types/API/Route';
import RouteMap, { RouteUtil } from '../../Utils/RouteMap';
import PageMap from '../../Utils/PageMap';
import PageLoader from 'CommonUI/src/Components/Loader/PageLoader';
import UserUtil from 'CommonUI/src/Utils/User';
import Navigation from 'CommonUI/src/Utils/Navigation';
import { ACCOUNTS_URL } from 'CommonUI/src/Config';
import UiAnalytics from 'CommonUI/src/Utils/Analytics';
import ErrorMessage from 'CommonUI/src/Components/ErrorMessage/ErrorMessage';
import PageMap from "../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import { PromiseVoidFunction } from "Common/Types/FunctionTypes";
import ErrorMessage from "Common/UI/Components/ErrorMessage/ErrorMessage";
import PageLoader from "Common/UI/Components/Loader/PageLoader";
import Page from "Common/UI/Components/Page/Page";
import { ACCOUNTS_URL } from "Common/UI/Config";
import UiAnalytics from "Common/UI/Utils/Analytics";
import Navigation from "Common/UI/Utils/Navigation";
import UserUtil from "Common/UI/Utils/User";
import React, { FunctionComponent, ReactElement, useEffect } from "react";
const Logout: FunctionComponent = (): ReactElement => {
const [error, setError] = React.useState<string | null>(null);
const [error, setError] = React.useState<string | null>(null);
const logout: Function = async () => {
UiAnalytics.logout();
await UserUtil.logout();
Navigation.navigate(ACCOUNTS_URL);
};
const logout: PromiseVoidFunction = async (): Promise<void> => {
UiAnalytics.logout();
await UserUtil.logout();
Navigation.navigate(ACCOUNTS_URL);
};
useEffect(() => {
logout().catch((error: Error) => {
setError(error.message || error.toString());
});
}, []);
useEffect(() => {
logout().catch((error: Error) => {
setError(error.message || error.toString());
});
}, []);
return (
<Page
title={'Logout'}
breadcrumbLinks={[
{
title: 'Admin Dashboard',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.INIT] as Route
),
},
{
title: 'Logout',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.LOGOUT] as Route
),
},
]}
>
{!error ? <PageLoader isVisible={true} /> : <></>}
{error ? <ErrorMessage error={error} /> : <></>}
</Page>
);
return (
<Page
title={"Logout"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.INIT] as Route),
},
{
title: "Logout",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.LOGOUT] as Route),
},
]}
>
{!error ? <PageLoader isVisible={true} /> : <></>}
{error ? <ErrorMessage error={error} /> : <></>}
</Page>
);
};
export default Logout;

View File

@@ -1,249 +1,251 @@
import Route from 'Common/Types/API/Route';
import Page from 'CommonUI/src/Components/Page/Page';
import AdminModelAPI from "../../Utils/ModelAPI";
import PageMap from "../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import SubscriptionPlan from "Common/Types/Billing/SubscriptionPlan";
import Field from "Common/UI/Components/Forms/Types/Field";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import ModelTable from "Common/UI/Components/ModelTable/ModelTable";
import Page from "Common/UI/Components/Page/Page";
import { RadioButton } from "Common/UI/Components/RadioButtons/GroupRadioButtons";
import Toggle from "Common/UI/Components/Toggle/Toggle";
import FieldType from "Common/UI/Components/Types/FieldType";
import { BILLING_ENABLED, getAllEnvVars } from "Common/UI/Config";
import { GetReactElementFunction } from "Common/UI/Types/FunctionTypes";
import Navigation from "Common/UI/Utils/Navigation";
import Project from "Common/Models/DatabaseModels/Project";
import User from "Common/Models/DatabaseModels/User";
import React, {
FunctionComponent,
ReactElement,
useEffect,
useState,
} from 'react';
import PageMap from '../../Utils/PageMap';
import RouteMap, { RouteUtil } from '../../Utils/RouteMap';
import ModelTable from 'CommonUI/src/Components/ModelTable/ModelTable';
import FieldType from 'CommonUI/src/Components/Types/FieldType';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import Navigation from 'CommonUI/src/Utils/Navigation';
import Project from 'Model/Models/Project';
import User from 'Model/Models/User';
import { BILLING_ENABLED, getAllEnvVars } from 'CommonUI/src/Config';
import Field from 'CommonUI/src/Components/Forms/Types/Field';
import SubscriptionPlan from 'Common/Types/Billing/SubscriptionPlan';
import { RadioButton } from 'CommonUI/src/Components/RadioButtons/RadioButtons';
import Toggle from 'CommonUI/src/Components/Toggle/Toggle';
import AdminModelAPI from '../../Utils/ModelAPI';
FunctionComponent,
ReactElement,
useEffect,
useState,
} from "react";
const Projects: FunctionComponent = (): ReactElement => {
const [isSubscriptionPlanYearly, setIsSubscriptionPlanYearly] =
useState<boolean>(true);
const [isSubscriptionPlanYearly, setIsSubscriptionPlanYearly] =
useState<boolean>(true);
useEffect(() => {
refreshFields();
}, [isSubscriptionPlanYearly]);
useEffect(() => {
refreshFields();
}, [isSubscriptionPlanYearly]);
const refreshFields: Function = (): void => {
let formFields: Array<Field<Project>> = [
{
field: {
name: true,
},
validation: {
minLength: 4,
},
fieldType: FormFieldSchemaType.Text,
placeholder: 'My Project',
description: 'Pick a friendly name.',
title: 'Project Name',
required: true,
stepId: BILLING_ENABLED ? 'basic' : undefined,
},
{
field: {
createdByUser: true,
},
title: 'Owner',
description:
'Who would you like the owner of this project to be? If you leave this blank - you will be the owner of the project',
fieldType: FormFieldSchemaType.Dropdown,
stepId: BILLING_ENABLED ? 'basic' : undefined,
dropdownModal: {
type: User,
labelField: 'email',
valueField: '_id',
},
},
];
const refreshFields: VoidFunction = (): void => {
let formFields: Array<Field<Project>> = [
{
field: {
name: true,
},
validation: {
minLength: 4,
},
fieldType: FormFieldSchemaType.Text,
placeholder: "My Project",
description: "Pick a friendly name.",
title: "Project Name",
required: true,
stepId: BILLING_ENABLED ? "basic" : undefined,
},
{
field: {
createdByUser: true,
},
title: "Owner",
description:
"Who would you like the owner of this project to be? If you leave this blank - you will be the owner of the project",
fieldType: FormFieldSchemaType.Dropdown,
stepId: BILLING_ENABLED ? "basic" : undefined,
dropdownModal: {
type: User,
labelField: "email",
valueField: "_id",
},
},
];
if (BILLING_ENABLED) {
formFields = [
...formFields,
{
field: {
paymentProviderPlanId: true,
},
stepId: 'plan',
validation: {
minLength: 6,
},
footerElement: getFooter(),
fieldType: FormFieldSchemaType.RadioButton,
radioButtonOptions: SubscriptionPlan.getSubscriptionPlans(
getAllEnvVars()
).map((plan: SubscriptionPlan): RadioButton => {
let description: string = plan.isCustomPricing()
? `Our sales team will contact you soon.`
: `Billed ${
isSubscriptionPlanYearly
? 'yearly'
: 'monthly'
}. ${
plan.getTrialPeriod() > 0
? `Free ${plan.getTrialPeriod()} days trial.`
: ''
}`;
if (BILLING_ENABLED) {
formFields = [
...formFields,
{
field: {
paymentProviderPlanId: true,
},
stepId: "plan",
validation: {
minLength: 6,
},
footerElement: getFooter(),
fieldType: FormFieldSchemaType.RadioButton,
radioButtonOptions: SubscriptionPlan.getSubscriptionPlans(
getAllEnvVars(),
).map((plan: SubscriptionPlan): RadioButton => {
let description: string = plan.isCustomPricing()
? `Our sales team will contact you soon.`
: `Billed ${isSubscriptionPlanYearly ? "yearly" : "monthly"}. ${
plan.getTrialPeriod() > 0
? `Free ${plan.getTrialPeriod()} days trial.`
: ""
}`;
if (
isSubscriptionPlanYearly &&
plan.getYearlySubscriptionAmountInUSD() === 0
) {
description = 'This plan is free, forever. ';
}
if (
isSubscriptionPlanYearly &&
plan.getYearlySubscriptionAmountInUSD() === 0
) {
description = "This plan is free, forever. ";
}
if (
!isSubscriptionPlanYearly &&
plan.getMonthlySubscriptionAmountInUSD() === 0
) {
description = 'This plan is free, forever. ';
}
if (
!isSubscriptionPlanYearly &&
plan.getMonthlySubscriptionAmountInUSD() === 0
) {
description = "This plan is free, forever. ";
}
return {
value: isSubscriptionPlanYearly
? plan.getYearlyPlanId()
: plan.getMonthlyPlanId(),
title: plan.getName(),
description: description,
sideTitle: plan.isCustomPricing()
? 'Custom Price'
: isSubscriptionPlanYearly
? '$' +
plan
.getYearlySubscriptionAmountInUSD()
.toString() +
'/mo billed yearly'
: '$' +
plan
.getMonthlySubscriptionAmountInUSD()
.toString(),
sideDescription: plan.isCustomPricing()
? ''
: isSubscriptionPlanYearly
? `~ $${
plan.getYearlySubscriptionAmountInUSD() *
12
} per user / year`
: `/month per user`,
};
}),
title: 'Please select a plan.',
required: true,
},
{
field: {
paymentProviderPromoCode: true,
},
fieldType: FormFieldSchemaType.Text,
placeholder: 'Promo Code (Optional)',
description: 'If you have a coupon code, enter it here.',
title: 'Promo Code',
required: false,
stepId: 'plan',
disabled: false,
},
];
}
return {
value: isSubscriptionPlanYearly
? plan.getYearlyPlanId()
: plan.getMonthlyPlanId(),
title: plan.getName(),
description: description,
sideTitle: plan.isCustomPricing()
? "Custom Price"
: isSubscriptionPlanYearly
? "$" +
plan.getYearlySubscriptionAmountInUSD().toString() +
"/mo billed yearly"
: "$" + plan.getMonthlySubscriptionAmountInUSD().toString(),
sideDescription: plan.isCustomPricing()
? ""
: isSubscriptionPlanYearly
? `~ $${
plan.getYearlySubscriptionAmountInUSD() * 12
} per user / year`
: `/month per user`,
};
}),
title: "Please select a plan.",
required: true,
},
{
field: {
paymentProviderPromoCode: true,
},
fieldType: FormFieldSchemaType.Text,
placeholder: "Promo Code (Optional)",
description: "If you have a coupon code, enter it here.",
title: "Promo Code",
required: false,
stepId: "plan",
disabled: false,
},
];
}
setFields(formFields);
};
setFields(formFields);
};
const [fields, setFields] = useState<Array<Field<Project>>>([]);
const [fields, setFields] = useState<Array<Field<Project>>>([]);
const getFooter: Function = (): ReactElement => {
if (!BILLING_ENABLED) {
return <></>;
}
return (
<Toggle
title="Yearly Plan"
initialValue={isSubscriptionPlanYearly}
description="(Save 20%)"
onChange={(value: boolean) => {
setIsSubscriptionPlanYearly(value);
}}
/>
);
};
const getFooter: GetReactElementFunction = (): ReactElement => {
if (!BILLING_ENABLED) {
return <></>;
}
return (
<Page
title={'Projects'}
breadcrumbLinks={[
{
title: 'Admin Dashboard',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.HOME] as Route
),
},
{
title: 'Projects',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECTS] as Route
),
},
]}
>
<ModelTable<Project>
modelType={Project}
modelAPI={AdminModelAPI}
id="projects-table"
isDeleteable={false}
isEditable={false}
isCreateable={true}
name="Projects"
isViewable={false}
cardProps={{
title: 'Projects',
description: 'Here is a list of proejcts in OneUptime.',
}}
showViewIdButton={true}
formSteps={
BILLING_ENABLED
? [
{
title: 'Basic',
id: 'basic',
},
{
title: 'Select Plan',
id: 'plan',
},
]
: undefined
}
noItemsMessage={'No projects found.'}
formFields={fields}
showRefreshButton={true}
showFilterButton={true}
viewPageRoute={Navigation.getCurrentRoute()}
columns={[
{
field: {
name: true,
},
title: 'Name',
type: FieldType.Text,
isFilterable: true,
},
{
field: {
createdAt: true,
},
title: 'Created At',
type: FieldType.DateTime,
isFilterable: true,
},
]}
/>
</Page>
<Toggle
title="Yearly Plan"
value={isSubscriptionPlanYearly}
description="(Save 20%)"
onChange={(value: boolean) => {
setIsSubscriptionPlanYearly(value);
}}
/>
);
};
return (
<Page
title={"Projects"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Projects",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECTS] as Route,
),
},
]}
>
<ModelTable<Project>
modelType={Project}
modelAPI={AdminModelAPI}
id="projects-table"
isDeleteable={false}
isEditable={false}
isCreateable={true}
name="Projects"
isViewable={true}
cardProps={{
title: "Projects",
description: "Here is a list of proejcts in OneUptime.",
}}
showViewIdButton={true}
formSteps={
BILLING_ENABLED
? [
{
title: "Basic",
id: "basic",
},
{
title: "Select Plan",
id: "plan",
},
]
: undefined
}
noItemsMessage={"No projects found."}
formFields={fields}
showRefreshButton={true}
viewPageRoute={Navigation.getCurrentRoute()}
filters={[
{
field: {
name: true,
},
title: "Name",
type: FieldType.Text,
},
{
field: {
createdAt: true,
},
title: "Created At",
type: FieldType.DateTime,
},
]}
columns={[
{
field: {
name: true,
},
title: "Name",
type: FieldType.Text,
},
{
field: {
createdAt: true,
},
title: "Created At",
type: FieldType.DateTime,
},
]}
/>
</Page>
);
};
export default Projects;

View File

@@ -0,0 +1,52 @@
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import ObjectID from "Common/Types/ObjectID";
import ModelDelete from "Common/UI/Components/ModelDelete/ModelDelete";
import Navigation from "Common/UI/Utils/Navigation";
import React, { FunctionComponent, ReactElement } from "react";
import SideMenuComponent from "./SideMenu";
import Project from "Common/Models/DatabaseModels/Project";
import ModelPage from "Common/UI/Components/Page/ModelPage";
const DeletePage: FunctionComponent = (): ReactElement => {
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
return (
<ModelPage<Project>
modelId={modelId}
modelNameField="name"
modelType={Project}
title={"Project"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Projects",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECTS] as Route,
),
},
{
title: "Project",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECT_VIEW] as Route,
),
},
]}
sideMenu={<SideMenuComponent modelId={modelId} />}
>
<ModelDelete
modelType={Project}
modelId={modelId}
onDeleteSuccess={() => {
Navigation.navigate(RouteMap[PageMap.PROJECTS] as Route);
}}
/>
</ModelPage>
);
};
export default DeletePage;

View File

@@ -0,0 +1,90 @@
import ObjectID from "Common/Types/ObjectID";
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import Navigation from "Common/UI/Utils/Navigation";
import Project from "Common/Models/DatabaseModels/Project";
import React, { FunctionComponent, ReactElement } from "react";
import CardModelDetail from "Common/UI/Components/ModelDetail/CardModelDetail";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import FieldType from "Common/UI/Components/Types/FieldType";
import ModelPage from "Common/UI/Components/Page/ModelPage";
import SideMenuComponent from "./SideMenu";
const Projects: FunctionComponent = (): ReactElement => {
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
return (
<ModelPage
modelId={modelId}
modelNameField="name"
modelType={Project}
title={"Project"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Projects",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECTS] as Route,
),
},
{
title: "Project",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECT_VIEW] as Route,
),
},
]}
sideMenu={<SideMenuComponent modelId={modelId} />}
>
<div>
<CardModelDetail<Project>
name="Project"
cardProps={{
title: "Project",
description: "Project details",
}}
isEditable={true}
editButtonText="Edit Project"
formFields={[
{
field: {
name: true,
},
title: "Name",
fieldType: FormFieldSchemaType.Text,
required: true,
},
]}
modelDetailProps={{
modelType: Project,
id: "model-detail-user",
fields: [
{
field: {
_id: true,
},
title: "Project ID",
fieldType: FieldType.Text,
placeholder: "-",
},
{
field: {
name: true,
},
title: "Name",
fieldType: FieldType.Text,
},
],
modelId: modelId,
}}
/>
</div>
</ModelPage>
);
};
export default Projects;

View File

@@ -0,0 +1,53 @@
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import IconProp from "Common/Types/Icon/IconProp";
import ObjectID from "Common/Types/ObjectID";
import SideMenu from "Common/UI/Components/SideMenu/SideMenu";
import SideMenuItem from "Common/UI/Components/SideMenu/SideMenuItem";
import SideMenuSection from "Common/UI/Components/SideMenu/SideMenuSection";
import React, { FunctionComponent, ReactElement } from "react";
export interface SideMenuProps {
modelId: ObjectID;
}
const SideMenuComponent: FunctionComponent<SideMenuProps> = (
props: SideMenuProps,
): ReactElement => {
return (
<SideMenu>
<SideMenuSection title="Basic">
<SideMenuItem
link={{
title: "Overview",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECT_VIEW] as Route,
{
modelId: props.modelId,
},
),
}}
icon={IconProp.Info}
/>
</SideMenuSection>
<SideMenuSection title="Advanced">
<SideMenuItem
link={{
title: "Delete",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.PROJECT_DELETE] as Route,
{
modelId: props.modelId,
},
),
}}
icon={IconProp.Trash}
/>
</SideMenuSection>
</SideMenu>
);
};
export default SideMenuComponent;

View File

@@ -1,102 +1,100 @@
import Route from 'Common/Types/API/Route';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import CardModelDetail from 'CommonUI/src/Components/ModelDetail/CardModelDetail';
import Page from 'CommonUI/src/Components/Page/Page';
import React, { FunctionComponent, ReactElement } from 'react';
import PageMap from '../../../Utils/PageMap';
import RouteMap, { RouteUtil } from '../../../Utils/RouteMap';
import DashboardSideMenu from '../SideMenu';
import GlobalConfig from 'Model/Models/GlobalConfig';
import ObjectID from 'Common/Types/ObjectID';
import FieldType from 'CommonUI/src/Components/Types/FieldType';
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import DashboardSideMenu from "../SideMenu";
import Route from "Common/Types/API/Route";
import ObjectID from "Common/Types/ObjectID";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import CardModelDetail from "Common/UI/Components/ModelDetail/CardModelDetail";
import Page from "Common/UI/Components/Page/Page";
import FieldType from "Common/UI/Components/Types/FieldType";
import GlobalConfig from "Common/Models/DatabaseModels/GlobalConfig";
import React, { FunctionComponent, ReactElement } from "react";
const Settings: FunctionComponent = (): ReactElement => {
return (
<Page
title={'Admin Settings'}
breadcrumbLinks={[
{
title: 'Admin Dashboard',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.HOME] as Route
),
},
{
title: 'Settings',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route
),
},
{
title: 'API Key',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_HOST] as Route
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
<CardModelDetail
name="API Key Settings"
cardProps={{
title: 'Master API Key Settings',
description:
'This API key has root access to all the resources in all the projects on OneUptime.',
}}
isEditable={true}
editButtonText="Edit API Key Settings"
formFields={[
{
field: {
masterApiKey: true,
},
title: 'Master API Key',
fieldType: FormFieldSchemaType.ObjectID,
required: false,
},
{
field: {
isMasterApiKeyEnabled: true,
},
title: 'Enabled',
fieldType: FormFieldSchemaType.Toggle,
required: false,
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: 'model-detail-global-config',
fields: [
{
field: {
masterApiKey: true,
},
title: 'Master API Key',
description:
'This API key has root access to all the resources in all the projects on OneUptime.',
fieldType: FieldType.HiddenText,
opts: {
isCopyable: true,
},
placeholder: 'API Key not generated yet.',
},
{
field: {
isMasterApiKeyEnabled: true,
},
title: 'Enabled',
description:
'Enable or disable the master API key. If disabled, all requests using this key will fail.',
fieldType: FieldType.Boolean,
placeholder: 'Not Enabled',
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
</Page>
);
return (
<Page
title={"Admin Settings"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Settings",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route,
),
},
{
title: "API Key",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_HOST] as Route,
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
<CardModelDetail
name="API Key Settings"
cardProps={{
title: "Master API Key Settings",
description:
"This API key has root access to all the resources in all the projects on OneUptime.",
}}
isEditable={true}
editButtonText="Edit API Key Settings"
formFields={[
{
field: {
masterApiKey: true,
},
title: "Master API Key",
fieldType: FormFieldSchemaType.ObjectID,
required: false,
},
{
field: {
isMasterApiKeyEnabled: true,
},
title: "Enabled",
fieldType: FormFieldSchemaType.Toggle,
required: false,
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: "model-detail-global-config",
fields: [
{
field: {
masterApiKey: true,
},
title: "Master API Key",
description:
"This API key has root access to all the resources in all the projects on OneUptime.",
fieldType: FieldType.HiddenText,
opts: {
isCopyable: true,
},
placeholder: "API Key not generated yet.",
},
{
field: {
isMasterApiKeyEnabled: true,
},
title: "Enabled",
description:
"Enable or disable the master API key. If disabled, all requests using this key will fail.",
fieldType: FieldType.Boolean,
placeholder: "Not Enabled",
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
</Page>
);
};
export default Settings;

View File

@@ -1,83 +1,80 @@
import Route from 'Common/Types/API/Route';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import CardModelDetail from 'CommonUI/src/Components/ModelDetail/CardModelDetail';
import Page from 'CommonUI/src/Components/Page/Page';
import React, { FunctionComponent, ReactElement } from 'react';
import PageMap from '../../../Utils/PageMap';
import RouteMap, { RouteUtil } from '../../../Utils/RouteMap';
import DashboardSideMenu from '../SideMenu';
import GlobalConfig from 'Model/Models/GlobalConfig';
import ObjectID from 'Common/Types/ObjectID';
import FieldType from 'CommonUI/src/Components/Types/FieldType';
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import DashboardSideMenu from "../SideMenu";
import Route from "Common/Types/API/Route";
import ObjectID from "Common/Types/ObjectID";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import CardModelDetail from "Common/UI/Components/ModelDetail/CardModelDetail";
import Page from "Common/UI/Components/Page/Page";
import FieldType from "Common/UI/Components/Types/FieldType";
import GlobalConfig from "Common/Models/DatabaseModels/GlobalConfig";
import React, { FunctionComponent, ReactElement } from "react";
const Settings: FunctionComponent = (): ReactElement => {
return (
<Page
title={'Admin Settings'}
breadcrumbLinks={[
{
title: 'Admin Dashboard',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.HOME] as Route
),
},
{
title: 'Settings',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route
),
},
{
title: 'Authentication',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_AUTHENTICATION] as Route
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
<CardModelDetail
name="Authentication Settings"
cardProps={{
title: 'Authentication Settings',
description:
'Authentication Settings for this OneUptime Server instance.',
}}
isEditable={true}
editButtonText="Edit Settings"
formFields={[
{
field: {
disableSignup: true,
},
title: 'Disable Sign Up',
fieldType: FormFieldSchemaType.Toggle,
required: false,
description:
'Should we disable sign up of new users to OneUptime?',
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: 'model-detail-global-config',
fields: [
{
field: {
disableSignup: true,
},
fieldType: FieldType.Boolean,
title: 'Disable Sign Up',
placeholder: 'No',
description:
'Should we disable sign up of new users to OneUptime?',
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
</Page>
);
return (
<Page
title={"Admin Settings"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Settings",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route,
),
},
{
title: "Authentication",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_AUTHENTICATION] as Route,
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
<CardModelDetail
name="Authentication Settings"
cardProps={{
title: "Authentication Settings",
description:
"Authentication Settings for this OneUptime Server instance.",
}}
isEditable={true}
editButtonText="Edit Settings"
formFields={[
{
field: {
disableSignup: true,
},
title: "Disable Sign Up",
fieldType: FormFieldSchemaType.Toggle,
required: false,
description: "Should we disable sign up of new users to OneUptime?",
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: "model-detail-global-config",
fields: [
{
field: {
disableSignup: true,
},
fieldType: FieldType.Boolean,
title: "Disable Sign Up",
placeholder: "No",
description:
"Should we disable sign up of new users to OneUptime?",
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
</Page>
);
};
export default Settings;

View File

@@ -1,119 +1,114 @@
import Route from 'Common/Types/API/Route';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import CardModelDetail from 'CommonUI/src/Components/ModelDetail/CardModelDetail';
import Page from 'CommonUI/src/Components/Page/Page';
import React, { FunctionComponent, ReactElement } from 'react';
import PageMap from '../../../Utils/PageMap';
import RouteMap, { RouteUtil } from '../../../Utils/RouteMap';
import DashboardSideMenu from '../SideMenu';
import GlobalConfig from 'Model/Models/GlobalConfig';
import ObjectID from 'Common/Types/ObjectID';
import FieldType from 'CommonUI/src/Components/Types/FieldType';
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import DashboardSideMenu from "../SideMenu";
import Route from "Common/Types/API/Route";
import ObjectID from "Common/Types/ObjectID";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import CardModelDetail from "Common/UI/Components/ModelDetail/CardModelDetail";
import Page from "Common/UI/Components/Page/Page";
import FieldType from "Common/UI/Components/Types/FieldType";
import GlobalConfig from "Common/Models/DatabaseModels/GlobalConfig";
import React, { FunctionComponent, ReactElement } from "react";
const Settings: FunctionComponent = (): ReactElement => {
return (
<Page
title={'Admin Settings'}
breadcrumbLinks={[
{
title: 'Admin Dashboard',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.HOME] as Route
),
},
{
title: 'Settings',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route
),
},
{
title: 'Calls and SMS',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_CALL_AND_SMS] as Route
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
<CardModelDetail
name="Call and SMS Settings"
cardProps={{
title: 'Twilio Config',
description: 'This will be used to make Call and send SMS.',
}}
isEditable={true}
editButtonText="Edit Twilio Config"
formFields={[
{
field: {
twilioAccountSID: true,
},
title: 'Twilio Account SID',
fieldType: FormFieldSchemaType.Text,
required: true,
description:
'You can find this in your Twilio console.',
placeholder: '',
validation: {
minLength: 2,
},
},
{
field: {
twilioAuthToken: true,
},
title: 'Twilio Auth Token',
fieldType: FormFieldSchemaType.Password,
required: true,
description:
'You can find this in your Twilio console.',
placeholder: '',
validation: {
minLength: 2,
},
},
{
field: {
twilioPhoneNumber: true,
},
title: 'Twilio Phone Number',
fieldType: FormFieldSchemaType.Phone,
required: true,
description:
'You can find this in your Twilio console.',
placeholder: '',
validation: {
minLength: 2,
},
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: 'model-detail-global-config',
fields: [
{
field: {
twilioAccountSID: true,
},
title: 'Twilio Account SID',
placeholder: 'None',
},
{
field: {
twilioPhoneNumber: true,
},
title: 'Twilio Phone Number',
fieldType: FieldType.Phone,
placeholder: 'None',
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
</Page>
);
return (
<Page
title={"Admin Settings"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Settings",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route,
),
},
{
title: "Calls and SMS",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_CALL_AND_SMS] as Route,
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
<CardModelDetail
name="Call and SMS Settings"
cardProps={{
title: "Twilio Config",
description: "This will be used to make Call and send SMS.",
}}
isEditable={true}
editButtonText="Edit Twilio Config"
formFields={[
{
field: {
twilioAccountSID: true,
},
title: "Twilio Account SID",
fieldType: FormFieldSchemaType.Text,
required: true,
description: "You can find this in your Twilio console.",
placeholder: "",
validation: {
minLength: 2,
},
},
{
field: {
twilioAuthToken: true,
},
title: "Twilio Auth Token",
fieldType: FormFieldSchemaType.Text,
required: true,
description: "You can find this in your Twilio console.",
placeholder: "",
validation: {
minLength: 2,
},
},
{
field: {
twilioPhoneNumber: true,
},
title: "Twilio Phone Number",
fieldType: FormFieldSchemaType.Phone,
required: true,
description: "You can find this in your Twilio console.",
placeholder: "",
validation: {
minLength: 2,
},
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: "model-detail-global-config",
fields: [
{
field: {
twilioAccountSID: true,
},
title: "Twilio Account SID",
placeholder: "None",
},
{
field: {
twilioPhoneNumber: true,
},
title: "Twilio Phone Number",
fieldType: FieldType.Phone,
placeholder: "None",
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
</Page>
);
};
export default Settings;

View File

@@ -0,0 +1,421 @@
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import DashboardSideMenu from "../SideMenu";
import Route from "Common/Types/API/Route";
import { Green, Red } from "Common/Types/BrandColors";
import { PromiseVoidFunction } from "Common/Types/FunctionTypes";
import ObjectID from "Common/Types/ObjectID";
import ErrorMessage from "Common/UI/Components/ErrorMessage/ErrorMessage";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import PageLoader from "Common/UI/Components/Loader/PageLoader";
import CardModelDetail from "Common/UI/Components/ModelDetail/CardModelDetail";
import Page from "Common/UI/Components/Page/Page";
import Pill from "Common/UI/Components/Pill/Pill";
import FieldType from "Common/UI/Components/Types/FieldType";
import DropdownUtil from "Common/UI/Utils/Dropdown";
import ModelAPI from "Common/UI/Utils/ModelAPI/ModelAPI";
import GlobalConfig, {
EmailServerType,
} from "Common/Models/DatabaseModels/GlobalConfig";
import React, { FunctionComponent, ReactElement, useEffect } from "react";
const Settings: FunctionComponent = (): ReactElement => {
const [emailServerType, setemailServerType] = React.useState<EmailServerType>(
EmailServerType.Internal,
);
const [isLoading, setIsLoading] = React.useState<boolean>(true);
const [error, setError] = React.useState<string>("");
const fetchItem: PromiseVoidFunction = async (): Promise<void> => {
setIsLoading(true);
const globalConfig: GlobalConfig | null =
await ModelAPI.getItem<GlobalConfig>({
modelType: GlobalConfig,
id: ObjectID.getZeroObjectID(),
select: {
_id: true,
emailServerType: true,
},
});
if (globalConfig) {
setemailServerType(
globalConfig.emailServerType || EmailServerType.Internal,
);
}
setIsLoading(false);
};
useEffect(() => {
fetchItem().catch((err: Error) => {
setError(err.message);
});
}, []);
if (isLoading) {
return <PageLoader isVisible={true} />;
}
if (error) {
return <ErrorMessage error={error} />;
}
return (
<Page
title={"Admin Settings"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Settings",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route,
),
},
{
title: "Email Settings",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_SMTP] as Route,
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
<CardModelDetail
name="Admin Notification Email"
cardProps={{
title: "Admin Notification Email",
description:
"Enter the email address where you would like to receive admin-level notifications.",
}}
isEditable={true}
editButtonText="Edit Email"
formFields={[
{
field: {
adminNotificationEmail: true,
},
title: "Admin Notification Email",
fieldType: FormFieldSchemaType.Email,
required: false,
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: "model-detail-global-config",
fields: [
{
field: {
adminNotificationEmail: true,
},
title: "Admin Notification Email",
fieldType: FieldType.Email,
placeholder: "None",
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
<CardModelDetail
name="Internal SMTP Settings"
cardProps={{
title: "Email Server Settings",
description:
"Pick which email server you would like to use to send emails.",
}}
isEditable={true}
editButtonText="Edit Server"
onSaveSuccess={() => {
window.location.reload();
}}
formFields={[
{
field: {
emailServerType: true,
},
title: "Email Server Type",
fieldType: FormFieldSchemaType.Dropdown,
dropdownOptions:
DropdownUtil.getDropdownOptionsFromEnum(EmailServerType),
required: true,
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: "model-detail-global-config",
fields: [
{
field: {
emailServerType: true,
},
title: "Email Server Type",
fieldType: FieldType.Text,
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
{emailServerType === EmailServerType.CustomSMTP ? (
<CardModelDetail
name="Host Settings"
cardProps={{
title: "Custom Email and SMTP Settings",
description:
"If you have not enabled Internal SMTP server to send emails. Please configure your SMTP server here.",
}}
isEditable={true}
editButtonText="Edit SMTP Config"
formSteps={[
{
title: "SMTP Server",
id: "server-info",
},
{
title: "Authentication",
id: "authentication",
},
{
title: "Email",
id: "email-info",
},
]}
formFields={[
{
field: {
smtpHost: true,
},
title: "Hostname",
stepId: "server-info",
fieldType: FormFieldSchemaType.Hostname,
required: true,
placeholder: "smtp.server.com",
},
{
field: {
smtpPort: true,
},
title: "Port",
stepId: "server-info",
fieldType: FormFieldSchemaType.Port,
required: true,
placeholder: "587",
},
{
field: {
isSMTPSecure: true,
},
title: "Use SSL / TLS",
stepId: "server-info",
fieldType: FormFieldSchemaType.Toggle,
description:
"If you use port 465, please enable this. Do not enable this if you use port 587.",
},
{
field: {
smtpUsername: true,
},
title: "Username",
stepId: "authentication",
fieldType: FormFieldSchemaType.Text,
required: false,
placeholder: "emailuser",
},
{
field: {
smtpPassword: true,
},
title: "Password",
stepId: "authentication",
fieldType: FormFieldSchemaType.EncryptedText,
required: false,
placeholder: "Password",
},
{
field: {
smtpFromEmail: true,
},
title: "Email From",
stepId: "email-info",
fieldType: FormFieldSchemaType.Email,
required: true,
description:
"This is the display email your team and customers see, when they receive emails from OneUptime.",
placeholder: "email@company.com",
},
{
field: {
smtpFromName: true,
},
title: "From Name",
stepId: "email-info",
fieldType: FormFieldSchemaType.Text,
required: true,
description:
"This is the display name your team and customers see, when they receive emails from OneUptime.",
placeholder: "Company, Inc.",
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: "model-detail-global-config",
fields: [
{
field: {
smtpHost: true,
},
title: "SMTP Host",
placeholder: "None",
},
{
field: {
smtpPort: true,
},
title: "SMTP Port",
placeholder: "None",
},
{
field: {
smtpUsername: true,
},
title: "SMTP Username",
placeholder: "None",
},
{
field: {
smtpFromEmail: true,
},
title: "SMTP Email",
placeholder: "None",
fieldType: FieldType.Email,
},
{
field: {
smtpFromName: true,
},
title: "SMTP From Name",
placeholder: "None",
},
{
field: {
isSMTPSecure: true,
},
title: "Use SSL/TLS",
placeholder: "No",
fieldType: FieldType.Boolean,
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
) : (
<></>
)}
{emailServerType === EmailServerType.Sendgrid ? (
<CardModelDetail<GlobalConfig>
name="Sendgrid Settings"
cardProps={{
title: "Sendgrid Settings",
description:
"Enter your Sendgrid API key to send emails through Sendgrid.",
}}
isEditable={true}
editButtonText="Edit API Key"
formFields={[
{
field: {
sendgridApiKey: true,
},
title: "Sendgrid API Key",
fieldType: FormFieldSchemaType.Text,
required: true,
placeholder: "Sendgrid API Key",
},
{
field: {
sendgridFromEmail: true,
},
title: "From Email",
fieldType: FormFieldSchemaType.Email,
required: true,
placeholder: "email@yourcompany.com",
},
{
field: {
sendgridFromName: true,
},
title: "From Name",
fieldType: FormFieldSchemaType.Text,
required: true,
placeholder: "Acme, Inc.",
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: "model-detail-global-config",
selectMoreFields: {
sendgridFromEmail: true,
sendgridFromName: true,
},
fields: [
{
field: {
sendgridApiKey: true,
},
title: "",
placeholder: "None",
getElement: (item: GlobalConfig) => {
if (
item["sendgridApiKey"] &&
item["sendgridFromEmail"] &&
item["sendgridFromName"]
) {
return <Pill text="Enabled" color={Green} />;
} else if (!item["sendgridApiKey"]) {
return (
<Pill
text="Not Enabled. Please add the API key."
color={Red}
/>
);
} else if (!item["sendgridFromEmail"]) {
return (
<Pill
text="Not Enabled. Please add the From Email."
color={Red}
/>
);
} else if (!item["sendgridFromName"]) {
return (
<Pill
text="Not Enabled. Please add the From Name."
color={Red}
/>
);
}
return <></>;
},
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
) : (
<></>
)}
</Page>
);
};
export default Settings;

View File

@@ -1,241 +1,243 @@
import Route from 'Common/Types/API/Route';
import Page from 'CommonUI/src/Components/Page/Page';
import React, { FunctionComponent, ReactElement, useState } from 'react';
import PageMap from '../../../Utils/PageMap';
import RouteMap, { RouteUtil } from '../../../Utils/RouteMap';
import DashboardSideMenu from '../SideMenu';
import ModelTable from 'CommonUI/src/Components/ModelTable/ModelTable';
import Probe from 'Model/Models/Probe';
import FieldType from 'CommonUI/src/Components/Types/FieldType';
import { JSONObject } from 'Common/Types/JSON';
import OneUptimeDate from 'Common/Types/Date';
import { Green, Red } from 'Common/Types/BrandColors';
import Statusbubble from 'CommonUI/src/Components/StatusBubble/StatusBubble';
import ProbeElement from 'CommonUI/src/Components/Probe/Probe';
import IsNull from 'Common/Types/Database/IsNull';
import Banner from 'CommonUI/src/Components/Banner/Banner';
import URL from 'Common/Types/API/URL';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import { ButtonStyleType } from 'CommonUI/src/Components/Button/Button';
import ConfirmModal from 'CommonUI/src/Components/Modal/ConfirmModal';
import AdminModelAPI from '../../../Utils/ModelAPI';
import AdminModelAPI from "../../../Utils/ModelAPI";
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import DashboardSideMenu from "../SideMenu";
import Route from "Common/Types/API/Route";
import IsNull from "Common/Types/BaseDatabase/IsNull";
import { Green, Red } from "Common/Types/BrandColors";
import OneUptimeDate from "Common/Types/Date";
import { ErrorFunction, VoidFunction } from "Common/Types/FunctionTypes";
import Banner from "Common/UI/Components/Banner/Banner";
import { ButtonStyleType } from "Common/UI/Components/Button/Button";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import ConfirmModal from "Common/UI/Components/Modal/ConfirmModal";
import ModelTable from "Common/UI/Components/ModelTable/ModelTable";
import Page from "Common/UI/Components/Page/Page";
import ProbeElement from "Common/UI/Components/Probe/Probe";
import Statusbubble from "Common/UI/Components/StatusBubble/StatusBubble";
import FieldType from "Common/UI/Components/Types/FieldType";
import Probe from "Common/Models/DatabaseModels/Probe";
import React, { FunctionComponent, ReactElement, useState } from "react";
const Settings: FunctionComponent = (): ReactElement => {
const [showKeyModal, setShowKeyModal] = useState<boolean>(false);
const [showKeyModal, setShowKeyModal] = useState<boolean>(false);
const [currentProbe, setCurrentProbe] = useState<JSONObject | null>(null);
const [currentProbe, setCurrentProbe] = useState<Probe | null>(null);
return (
<Page
title={'Admin Settings'}
breadcrumbLinks={[
{
title: 'Admin Dashboard',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.HOME] as Route
),
},
{
title: 'Settings',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route
),
},
{
title: 'Global Probes',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_PROBES] as Route
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
return (
<Page
title={"Admin Settings"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Settings",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route,
),
},
{
title: "Global Probes",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_PROBES] as Route,
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
<Banner
openInNewTab={true}
title="Need help with setting up Global Probes?"
description="Here is a guide which will help you get set up"
link={URL.fromString(
'https://github.com/OneUptime/oneuptime/blob/master/Docs/Probe/CustomProbe.md'
)}
/>
<Banner
openInNewTab={true}
title="Need help with setting up Global Probes?"
description="Here is a guide which will help you get set up"
link={Route.fromString("/docs/probe/custom-probe")}
/>
<ModelTable<Probe>
modelType={Probe}
id="probes-table"
name="Settings > Global Probes"
isDeleteable={true}
isEditable={true}
isCreateable={true}
cardProps={{
title: 'Global Probes',
description:
'Global Probes help you monitor external resources from different locations around the world.',
}}
query={{
projectId: new IsNull(),
isGlobalProbe: true,
}}
modelAPI={AdminModelAPI}
noItemsMessage={'No probes found.'}
showRefreshButton={true}
showFilterButton={true}
onBeforeCreate={(item: Probe) => {
item.isGlobalProbe = true;
return Promise.resolve(item);
}}
formFields={[
{
field: {
name: true,
},
title: 'Name',
fieldType: FormFieldSchemaType.Text,
required: true,
placeholder: 'internal-probe',
validation: {
minLength: 2,
},
},
<ModelTable<Probe>
modelType={Probe}
id="probes-table"
name="Settings > Global Probes"
isDeleteable={true}
isEditable={true}
isCreateable={true}
cardProps={{
title: "Global Probes",
description:
"Global Probes help you monitor external resources from different locations around the world.",
}}
query={{
projectId: new IsNull(),
isGlobalProbe: true,
}}
modelAPI={AdminModelAPI}
noItemsMessage={"No probes found."}
showRefreshButton={true}
onBeforeCreate={(item: Probe) => {
item.isGlobalProbe = true;
return Promise.resolve(item);
}}
formFields={[
{
field: {
name: true,
},
title: "Name",
fieldType: FormFieldSchemaType.Text,
required: true,
placeholder: "internal-probe",
validation: {
minLength: 2,
},
},
{
field: {
description: true,
},
title: 'Description',
fieldType: FormFieldSchemaType.LongText,
required: true,
placeholder:
'This probe is to monitor all the internal services.',
},
{
field: {
description: true,
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
placeholder: "This probe is to monitor all the internal services.",
},
{
field: {
iconFile: true,
},
title: 'Probe Logo',
fieldType: FormFieldSchemaType.ImageFile,
required: false,
placeholder: 'Upload logo',
},
]}
selectMoreFields={{
key: true,
iconFileId: true,
}}
actionButtons={[
{
title: 'Show ID and Key',
buttonStyleType: ButtonStyleType.NORMAL,
onClick: async (
item: JSONObject,
onCompleteAction: Function,
onError: (err: Error) => void
) => {
try {
setCurrentProbe(item);
setShowKeyModal(true);
{
field: {
iconFile: true,
},
title: "Probe Logo",
fieldType: FormFieldSchemaType.ImageFile,
required: false,
placeholder: "Upload logo",
},
]}
selectMoreFields={{
key: true,
iconFileId: true,
}}
actionButtons={[
{
title: "Show ID and Key",
buttonStyleType: ButtonStyleType.NORMAL,
onClick: async (
item: Probe,
onCompleteAction: VoidFunction,
onError: ErrorFunction,
) => {
try {
setCurrentProbe(item);
setShowKeyModal(true);
onCompleteAction();
} catch (err) {
onCompleteAction();
onError(err as Error);
}
},
},
]}
columns={[
{
field: {
name: true,
},
title: 'Name',
type: FieldType.Text,
isFilterable: true,
getElement: (item: JSONObject): ReactElement => {
return <ProbeElement probe={item} />;
},
},
{
field: {
description: true,
},
title: 'Description',
type: FieldType.Text,
isFilterable: true,
},
{
field: {
lastAlive: true,
},
title: 'Status',
type: FieldType.Text,
isFilterable: false,
getElement: (item: JSONObject): ReactElement => {
if (
item &&
item['lastAlive'] &&
OneUptimeDate.getNumberOfMinutesBetweenDates(
OneUptimeDate.fromString(
item['lastAlive'] as string
),
OneUptimeDate.getCurrentDate()
) < 5
) {
return (
<Statusbubble
text={'Connected'}
color={Green}
/>
);
}
onCompleteAction();
} catch (err) {
onCompleteAction();
onError(err as Error);
}
},
},
]}
filters={[
{
field: {
name: true,
},
title: "Name",
type: FieldType.Text,
},
{
field: {
description: true,
},
title: "Description",
type: FieldType.Text,
},
]}
columns={[
{
field: {
name: true,
},
title: "Name",
type: FieldType.Text,
return (
<Statusbubble
text={'Disconnected'}
color={Red}
/>
);
},
},
]}
/>
getElement: (item: Probe): ReactElement => {
return <ProbeElement probe={item} />;
},
},
{
field: {
description: true,
},
title: "Description",
type: FieldType.Text,
},
{
field: {
lastAlive: true,
},
title: "Status",
type: FieldType.Text,
getElement: (item: Probe): ReactElement => {
if (
item &&
item["lastAlive"] &&
OneUptimeDate.getNumberOfMinutesBetweenDates(
OneUptimeDate.fromString(item["lastAlive"]),
OneUptimeDate.getCurrentDate(),
) < 5
) {
return (
<Statusbubble
text={"Connected"}
color={Green}
shouldAnimate={true}
/>
);
}
{showKeyModal && currentProbe ? (
<ConfirmModal
title={`Probe Key`}
description={
<div>
<span>
Here is your probe key. Please keep this a
secret.
</span>
<br />
<br />
<span>
<b>Probe ID: </b>{' '}
{currentProbe['_id']?.toString()}
</span>
<br />
<br />
<span>
<b>Probe Key: </b>{' '}
{currentProbe['key']?.toString()}
</span>
</div>
}
submitButtonText={'Close'}
submitButtonType={ButtonStyleType.NORMAL}
onSubmit={async () => {
setShowKeyModal(false);
}}
return (
<Statusbubble
text={"Disconnected"}
color={Red}
shouldAnimate={false}
/>
) : (
<></>
)}
</Page>
);
);
},
},
]}
/>
{showKeyModal && currentProbe ? (
<ConfirmModal
title={`Probe Key`}
description={
<div>
<span>Here is your probe key. Please keep this a secret.</span>
<br />
<br />
<span>
<b>Probe ID: </b> {currentProbe["_id"]?.toString()}
</span>
<br />
<br />
<span>
<b>Probe Key: </b> {currentProbe["key"]?.toString()}
</span>
</div>
}
submitButtonText={"Close"}
submitButtonType={ButtonStyleType.NORMAL}
onSubmit={async () => {
setShowKeyModal(false);
}}
/>
) : (
<></>
)}
</Page>
);
};
export default Settings;

View File

@@ -1,390 +0,0 @@
import Route from 'Common/Types/API/Route';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import CardModelDetail from 'CommonUI/src/Components/ModelDetail/CardModelDetail';
import Page from 'CommonUI/src/Components/Page/Page';
import React, { FunctionComponent, ReactElement, useEffect } from 'react';
import PageMap from '../../../Utils/PageMap';
import RouteMap, { RouteUtil } from '../../../Utils/RouteMap';
import DashboardSideMenu from '../SideMenu';
import GlobalConfig, { EmailServerType } from 'Model/Models/GlobalConfig';
import ObjectID from 'Common/Types/ObjectID';
import FieldType from 'CommonUI/src/Components/Types/FieldType';
import ModelAPI from 'CommonUI/src/Utils/ModelAPI/ModelAPI';
import PageLoader from 'CommonUI/src/Components/Loader/PageLoader';
import ErrorMessage from 'CommonUI/src/Components/ErrorMessage/ErrorMessage';
import { JSONObject } from 'Common/Types/JSON';
import DropdownUtil from 'CommonUI/src/Utils/Dropdown';
import Pill from 'CommonUI/src/Components/Pill/Pill';
import { Green, Red } from 'Common/Types/BrandColors';
const Settings: FunctionComponent = (): ReactElement => {
const [emailServerType, setemailServerType] =
React.useState<EmailServerType>(EmailServerType.Internal);
const [isLoading, setIsLoading] = React.useState<boolean>(true);
const [error, setError] = React.useState<string>('');
const fetchItem: Function = async (): Promise<void> => {
setIsLoading(true);
const globalConfig: GlobalConfig | null =
await ModelAPI.getItem<GlobalConfig>(
GlobalConfig,
ObjectID.getZeroObjectID(),
{
_id: true,
emailServerType: true,
}
);
if (globalConfig) {
setemailServerType(
globalConfig.emailServerType || EmailServerType.Internal
);
}
setIsLoading(false);
};
useEffect(() => {
fetchItem().catch((err: Error) => {
setError(err.message);
});
}, []);
if (isLoading) {
return <PageLoader isVisible={true} />;
}
if (error) {
return <ErrorMessage error={error} />;
}
return (
<Page
title={'Admin Settings'}
breadcrumbLinks={[
{
title: 'Admin Dashboard',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.HOME] as Route
),
},
{
title: 'Settings',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS] as Route
),
},
{
title: 'Email Settings',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_SMTP] as Route
),
},
]}
sideMenu={<DashboardSideMenu />}
>
{/* Project Settings View */}
<CardModelDetail
name="Internal SMTP Settings"
cardProps={{
title: 'Email Server Settings',
description:
'Pick which email server you would like to use to send emails.',
}}
isEditable={true}
editButtonText="Edit Server"
onSaveSuccess={() => {
window.location.reload();
}}
formFields={[
{
field: {
emailServerType: true,
},
title: 'Email Server Type',
fieldType: FormFieldSchemaType.Dropdown,
dropdownOptions:
DropdownUtil.getDropdownOptionsFromEnum(
EmailServerType
),
required: true,
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: 'model-detail-global-config',
fields: [
{
field: {
emailServerType: true,
},
title: 'Email Server Type',
fieldType: FieldType.Text,
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
{emailServerType === EmailServerType.CustomSMTP ? (
<CardModelDetail
name="Host Settings"
cardProps={{
title: 'Custom Email and SMTP Settings',
description:
'If you have not enabled Internal SMTP server to send emails. Please configure your SMTP server here.',
}}
isEditable={true}
editButtonText="Edit SMTP Config"
formSteps={[
{
title: 'SMTP Server',
id: 'server-info',
},
{
title: 'Authentication',
id: 'authentication',
},
{
title: 'Email',
id: 'email-info',
},
]}
formFields={[
{
field: {
smtpHost: true,
},
title: 'Hostname',
stepId: 'server-info',
fieldType: FormFieldSchemaType.Hostname,
required: true,
placeholder: 'smtp.server.com',
},
{
field: {
smtpPort: true,
},
title: 'Port',
stepId: 'server-info',
fieldType: FormFieldSchemaType.Port,
required: true,
placeholder: '587',
},
{
field: {
isSMTPSecure: true,
},
title: 'Use SSL / TLS',
stepId: 'server-info',
fieldType: FormFieldSchemaType.Toggle,
description: 'Make email communication secure?',
},
{
field: {
smtpUsername: true,
},
title: 'Username',
stepId: 'authentication',
fieldType: FormFieldSchemaType.Text,
required: false,
placeholder: 'emailuser',
},
{
field: {
smtpPassword: true,
},
title: 'Password',
stepId: 'authentication',
fieldType: FormFieldSchemaType.EncryptedText,
required: false,
placeholder: 'Password',
},
{
field: {
smtpFromEmail: true,
},
title: 'Email From',
stepId: 'email-info',
fieldType: FormFieldSchemaType.Email,
required: true,
description:
'This is the display email your team and customers see, when they receive emails from OneUptime.',
placeholder: 'email@company.com',
},
{
field: {
smtpFromName: true,
},
title: 'From Name',
stepId: 'email-info',
fieldType: FormFieldSchemaType.Text,
required: true,
description:
'This is the display name your team and customers see, when they receive emails from OneUptime.',
placeholder: 'Company, Inc.',
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: 'model-detail-global-config',
fields: [
{
field: {
smtpHost: true,
},
title: 'SMTP Host',
placeholder: 'None',
},
{
field: {
smtpPort: true,
},
title: 'SMTP Port',
placeholder: 'None',
},
{
field: {
smtpUsername: true,
},
title: 'SMTP Username',
placeholder: 'None',
},
{
field: {
smtpFromEmail: true,
},
title: 'SMTP Email',
placeholder: 'None',
fieldType: FieldType.Email,
},
{
field: {
smtpFromName: true,
},
title: 'SMTP From Name',
placeholder: 'None',
},
{
field: {
isSMTPSecure: true,
},
title: 'Use SSL/TLS',
placeholder: 'No',
fieldType: FieldType.Boolean,
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
) : (
<></>
)}
{emailServerType === EmailServerType.Sendgrid ? (
<CardModelDetail
name="Sendgrid Settings"
cardProps={{
title: 'Sendgrid Settings',
description:
'Enter your Sendgrid API key to send emails through Sendgrid.',
}}
isEditable={true}
editButtonText="Edit API Key"
formFields={[
{
field: {
sendgridApiKey: true,
},
title: 'Sendgrid API Key',
fieldType: FormFieldSchemaType.Text,
required: true,
placeholder: 'Sendgrid API Key',
},
{
field: {
sendgridFromEmail: true,
},
title: 'From Email',
fieldType: FormFieldSchemaType.Email,
required: true,
placeholder: 'email@yourcompany.com',
},
{
field: {
sendgridFromName: true,
},
title: 'From Name',
fieldType: FormFieldSchemaType.Text,
required: true,
placeholder: 'Acme, Inc.',
},
]}
modelDetailProps={{
modelType: GlobalConfig,
id: 'model-detail-global-config',
selectMoreFields: {
sendgridFromEmail: true,
sendgridFromName: true,
},
fields: [
{
field: {
sendgridApiKey: true,
},
title: '',
placeholder: 'None',
getElement: (item: JSONObject) => {
if (
item['sendgridApiKey'] &&
item['sendgridFromEmail'] &&
item['sendgridFromName']
) {
return (
<Pill
text="Enabled"
color={Green}
/>
);
} else if (!item['sendgridApiKey']) {
return (
<Pill
text="Not Enabled. Please add the API key."
color={Red}
/>
);
} else if (!item['sendgridFromEmail']) {
return (
<Pill
text="Not Enabled. Please add the From Email."
color={Red}
/>
);
} else if (!item['sendgridFromName']) {
return (
<Pill
text="Not Enabled. Please add the From Name."
color={Red}
/>
);
}
return <></>;
},
},
],
modelId: ObjectID.getZeroObjectID(),
}}
/>
) : (
<></>
)}
</Page>
);
};
export default Settings;

View File

@@ -1,17 +1,17 @@
import React, { ReactElement } from 'react';
import Route from 'Common/Types/API/Route';
import IconProp from 'Common/Types/Icon/IconProp';
import SideMenu from 'CommonUI/src/Components/SideMenu/SideMenu';
import SideMenuItem from 'CommonUI/src/Components/SideMenu/SideMenuItem';
import SideMenuSection from 'CommonUI/src/Components/SideMenu/SideMenuSection';
import RouteMap, { RouteUtil } from '../../Utils/RouteMap';
import PageMap from '../../Utils/PageMap';
import PageMap from "../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import IconProp from "Common/Types/Icon/IconProp";
import SideMenu from "Common/UI/Components/SideMenu/SideMenu";
import SideMenuItem from "Common/UI/Components/SideMenu/SideMenuItem";
import SideMenuSection from "Common/UI/Components/SideMenu/SideMenuSection";
import React, { ReactElement } from "react";
const DashboardSideMenu: () => JSX.Element = (): ReactElement => {
return (
<SideMenu>
<SideMenuSection title="Basic">
{/* <SideMenuItem
return (
<SideMenu>
<SideMenuSection title="Basic">
{/* <SideMenuItem
link={{
title: 'Host',
to: RouteUtil.populateRouteParams(
@@ -20,62 +20,62 @@ const DashboardSideMenu: () => JSX.Element = (): ReactElement => {
}}
icon={IconProp.Globe}
/> */}
<SideMenuItem
link={{
title: 'Authentication',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_AUTHENTICATION] as Route
),
}}
icon={IconProp.Lock}
/>
</SideMenuSection>
<SideMenuItem
link={{
title: "Authentication",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_AUTHENTICATION] as Route,
),
}}
icon={IconProp.Lock}
/>
</SideMenuSection>
<SideMenuSection title="Notifications">
<SideMenuItem
link={{
title: 'Emails',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_SMTP] as Route
),
}}
icon={IconProp.Email}
/>
<SideMenuItem
link={{
title: 'Call and SMS',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_CALL_AND_SMS] as Route
),
}}
icon={IconProp.Call}
/>
</SideMenuSection>
<SideMenuSection title="Notifications">
<SideMenuItem
link={{
title: "Emails",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_SMTP] as Route,
),
}}
icon={IconProp.Email}
/>
<SideMenuItem
link={{
title: "Call and SMS",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_CALL_AND_SMS] as Route,
),
}}
icon={IconProp.Call}
/>
</SideMenuSection>
<SideMenuSection title="Monitoring">
<SideMenuItem
link={{
title: 'Global Probes',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_PROBES] as Route
),
}}
icon={IconProp.Signal}
/>
</SideMenuSection>
<SideMenuSection title="API and Integrations">
<SideMenuItem
link={{
title: 'API Key',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_API_KEY] as Route
),
}}
icon={IconProp.Code}
/>
</SideMenuSection>
</SideMenu>
);
<SideMenuSection title="Monitoring">
<SideMenuItem
link={{
title: "Global Probes",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_PROBES] as Route,
),
}}
icon={IconProp.Signal}
/>
</SideMenuSection>
<SideMenuSection title="API and Integrations">
<SideMenuItem
link={{
title: "API Key",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.SETTINGS_API_KEY] as Route,
),
}}
icon={IconProp.Code}
/>
</SideMenuSection>
</SideMenu>
);
};
export default DashboardSideMenu;

View File

@@ -1,108 +1,130 @@
import Route from 'Common/Types/API/Route';
import Page from 'CommonUI/src/Components/Page/Page';
import React, { FunctionComponent, ReactElement } from 'react';
import PageMap from '../../Utils/PageMap';
import RouteMap, { RouteUtil } from '../../Utils/RouteMap';
import ModelTable from 'CommonUI/src/Components/ModelTable/ModelTable';
import FieldType from 'CommonUI/src/Components/Types/FieldType';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import Navigation from 'CommonUI/src/Utils/Navigation';
import User from 'Model/Models/User';
import PageMap from "../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import ModelTable from "Common/UI/Components/ModelTable/ModelTable";
import Page from "Common/UI/Components/Page/Page";
import FieldType from "Common/UI/Components/Types/FieldType";
import Navigation from "Common/UI/Utils/Navigation";
import User from "Common/Models/DatabaseModels/User";
import React, { FunctionComponent, ReactElement } from "react";
const Users: FunctionComponent = (): ReactElement => {
return (
<Page
title={'Users'}
breadcrumbLinks={[
{
title: 'Admin Dashboard',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.HOME] as Route
),
},
{
title: 'Users',
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.USERS] as Route
),
},
]}
>
<ModelTable<User>
modelType={User}
id="users-table"
isDeleteable={false}
isEditable={false}
showViewIdButton={true}
isCreateable={true}
name="Users"
isViewable={false}
cardProps={{
title: 'Users',
description: 'Here is a list of users in OneUptime.',
}}
noItemsMessage={'No users found.'}
formFields={[
{
field: {
email: true,
},
title: 'Email',
fieldType: FormFieldSchemaType.Email,
required: true,
placeholder: 'email@company.com',
},
{
field: {
password: true,
},
title: 'Password',
fieldType: FormFieldSchemaType.Password,
required: true,
placeholder: 'Password',
},
{
field: {
name: true,
},
title: 'Full Name',
fieldType: FormFieldSchemaType.Text,
required: true,
placeholder: 'John Smith',
},
]}
showRefreshButton={true}
showFilterButton={true}
viewPageRoute={Navigation.getCurrentRoute()}
columns={[
{
field: {
name: true,
},
title: 'Full Name',
type: FieldType.Text,
isFilterable: true,
},
{
field: {
email: true,
},
title: 'Email',
type: FieldType.Email,
isFilterable: true,
},
{
field: {
createdAt: true,
},
title: 'Created At',
type: FieldType.DateTime,
isFilterable: true,
},
]}
/>
</Page>
);
return (
<Page
title={"Users"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Users",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.USERS] as Route),
},
]}
>
<ModelTable<User>
modelType={User}
id="users-table"
isDeleteable={false}
isEditable={false}
showViewIdButton={true}
isCreateable={true}
name="Users"
isViewable={true}
cardProps={{
title: "Users",
description: "Here is a list of users in OneUptime.",
}}
noItemsMessage={"No users found."}
formFields={[
{
field: {
email: true,
},
title: "Email",
fieldType: FormFieldSchemaType.Email,
required: true,
placeholder: "email@company.com",
},
{
field: {
password: true,
},
title: "Password",
fieldType: FormFieldSchemaType.Password,
required: true,
placeholder: "Password",
},
{
field: {
name: true,
},
title: "Full Name",
fieldType: FormFieldSchemaType.Text,
required: true,
placeholder: "John Smith",
},
]}
showRefreshButton={true}
viewPageRoute={Navigation.getCurrentRoute()}
filters={[
{
field: {
name: true,
},
title: "Full Name",
type: FieldType.Text,
},
{
field: {
email: true,
},
title: "Email",
type: FieldType.Email,
},
{
field: {
createdAt: true,
},
title: "Created At",
type: FieldType.DateTime,
},
]}
columns={[
{
field: {
name: true,
},
title: "Full Name",
type: FieldType.Text,
},
{
field: {
email: true,
},
title: "Email",
type: FieldType.Email,
},
{
field: {
isEmailVerified: true,
},
title: "Email Verified",
type: FieldType.Boolean,
},
{
field: {
createdAt: true,
},
title: "Created At",
type: FieldType.DateTime,
},
]}
/>
</Page>
);
};
export default Users;

View File

@@ -0,0 +1,50 @@
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import ObjectID from "Common/Types/ObjectID";
import ModelDelete from "Common/UI/Components/ModelDelete/ModelDelete";
import Navigation from "Common/UI/Utils/Navigation";
import React, { FunctionComponent, ReactElement } from "react";
import SideMenuComponent from "./SideMenu";
import User from "Common/Models/DatabaseModels/User";
import ModelPage from "Common/UI/Components/Page/ModelPage";
const DeletePage: FunctionComponent = (): ReactElement => {
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
return (
<ModelPage
modelId={modelId}
modelNameField="email"
modelType={User}
title={"User"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Users",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.USERS] as Route),
},
{
title: "User",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.USER_VIEW] as Route,
),
},
]}
sideMenu={<SideMenuComponent modelId={modelId} />}
>
<ModelDelete
modelType={User}
modelId={modelId}
onDeleteSuccess={() => {
Navigation.navigate(RouteMap[PageMap.USERS] as Route);
}}
/>
</ModelPage>
);
};
export default DeletePage;

View File

@@ -0,0 +1,136 @@
import ObjectID from "Common/Types/ObjectID";
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import Navigation from "Common/UI/Utils/Navigation";
import User from "Common/Models/DatabaseModels/User";
import React, { FunctionComponent, ReactElement } from "react";
import CardModelDetail from "Common/UI/Components/ModelDetail/CardModelDetail";
import FormFieldSchemaType from "Common/UI/Components/Forms/Types/FormFieldSchemaType";
import FieldType from "Common/UI/Components/Types/FieldType";
import ModelPage from "Common/UI/Components/Page/ModelPage";
import SideMenuComponent from "./SideMenu";
const Users: FunctionComponent = (): ReactElement => {
const modelId: ObjectID = Navigation.getLastParamAsObjectID();
return (
<ModelPage
modelId={modelId}
modelNameField="email"
modelType={User}
title={"User"}
breadcrumbLinks={[
{
title: "Admin Dashboard",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.HOME] as Route),
},
{
title: "Users",
to: RouteUtil.populateRouteParams(RouteMap[PageMap.USERS] as Route),
},
{
title: "User",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.USER_VIEW] as Route,
),
},
]}
sideMenu={<SideMenuComponent modelId={modelId} />}
>
<div>
<CardModelDetail<User>
name="User"
cardProps={{
title: "User",
description: "User details",
}}
isEditable={true}
editButtonText="Edit User"
formFields={[
{
field: {
name: true,
},
title: "Name",
fieldType: FormFieldSchemaType.Text,
required: true,
},
{
field: {
email: true,
},
title: "Email",
fieldType: FormFieldSchemaType.Email,
required: true,
},
{
field: {
isEmailVerified: true,
},
title: "Email Verified",
fieldType: FormFieldSchemaType.Toggle,
required: false,
},
{
field: {
enableTwoFactorAuth: true,
},
title: "Two Factor Auth Enabled",
fieldType: FormFieldSchemaType.Toggle,
required: false,
},
]}
modelDetailProps={{
modelType: User,
id: "model-detail-user",
fields: [
{
field: {
_id: true,
},
title: "User ID",
fieldType: FieldType.Text,
placeholder: "-",
},
{
field: {
name: true,
},
title: "Name",
fieldType: FieldType.Text,
},
{
field: {
email: true,
},
title: "Email",
fieldType: FieldType.Email,
placeholder: "-",
},
{
field: {
isEmailVerified: true,
},
title: "Email Verified",
fieldType: FieldType.Boolean,
placeholder: "No",
},
{
field: {
enableTwoFactorAuth: true,
},
title: "Two Factor Auth Enabled",
fieldType: FieldType.Boolean,
placeholder: "No",
},
],
modelId: modelId,
}}
/>
</div>
</ModelPage>
);
};
export default Users;

View File

@@ -0,0 +1,53 @@
import PageMap from "../../../Utils/PageMap";
import RouteMap, { RouteUtil } from "../../../Utils/RouteMap";
import Route from "Common/Types/API/Route";
import IconProp from "Common/Types/Icon/IconProp";
import ObjectID from "Common/Types/ObjectID";
import SideMenu from "Common/UI/Components/SideMenu/SideMenu";
import SideMenuItem from "Common/UI/Components/SideMenu/SideMenuItem";
import SideMenuSection from "Common/UI/Components/SideMenu/SideMenuSection";
import React, { FunctionComponent, ReactElement } from "react";
export interface SideMenuProps {
modelId: ObjectID;
}
const SideMenuComponent: FunctionComponent<SideMenuProps> = (
props: SideMenuProps,
): ReactElement => {
return (
<SideMenu>
<SideMenuSection title="Basic">
<SideMenuItem
link={{
title: "Overview",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.USER_VIEW] as Route,
{
modelId: props.modelId,
},
),
}}
icon={IconProp.Info}
/>
</SideMenuSection>
<SideMenuSection title="Advanced">
<SideMenuItem
link={{
title: "Delete",
to: RouteUtil.populateRouteParams(
RouteMap[PageMap.USER_DELETE] as Route,
{
modelId: props.modelId,
},
),
}}
icon={IconProp.Trash}
/>
</SideMenuSection>
</SideMenu>
);
};
export default SideMenuComponent;

View File

@@ -1,8 +1,8 @@
import Dictionary from 'Common/Types/Dictionary';
import ModelAPI from 'CommonUI/src/Utils/ModelAPI/ModelAPI';
import Dictionary from "Common/Types/Dictionary";
import ModelAPI from "Common/UI/Utils/ModelAPI/ModelAPI";
export default class AdminModelAPI extends ModelAPI {
public static override getCommonHeaders(): Dictionary<string> {
return {};
}
public static override getCommonHeaders(): Dictionary<string> {
return {};
}
}

View File

@@ -1,17 +1,23 @@
enum PageMap {
INIT = 'INIT',
HOME = 'HOME',
LOGOUT = 'LOGOUT',
SETTINGS = 'SETTINGS',
USERS = 'USERS',
PROJECTS = 'PROJECTS',
INIT = "INIT",
HOME = "HOME",
LOGOUT = "LOGOUT",
SETTINGS = "SETTINGS",
SETTINGS_HOST = 'SETTINGS_HOST',
SETTINGS_SMTP = 'SETTINGS_SMTP',
SETTINGS_CALL_AND_SMS = 'SETTINGS_CALL_AND_SMS',
SETTINGS_PROBES = 'SETTINGS_PROBES',
SETTINGS_AUTHENTICATION = 'SETTINGS_AUTHENTICATION',
SETTINGS_API_KEY = 'SETTINGS_API_KEY',
USERS = "USERS",
USER_VIEW = "USER_VIEW",
USER_DELETE = "USER_DELETE",
PROJECTS = "PROJECTS",
PROJECT_VIEW = "PROJECT_VIEW",
PROJECT_DELETE = "PROJECT_DELETE",
SETTINGS_HOST = "SETTINGS_HOST",
SETTINGS_SMTP = "SETTINGS_SMTP",
SETTINGS_CALL_AND_SMS = "SETTINGS_CALL_AND_SMS",
SETTINGS_PROBES = "SETTINGS_PROBES",
SETTINGS_AUTHENTICATION = "SETTINGS_AUTHENTICATION",
SETTINGS_API_KEY = "SETTINGS_API_KEY",
}
export default PageMap;

View File

@@ -1,54 +1,65 @@
import Route from 'Common/Types/API/Route';
import Dictionary from 'Common/Types/Dictionary';
import PageMap from './PageMap';
import RouteParams from './RouteParams';
import ObjectID from 'Common/Types/ObjectID';
import PageMap from "./PageMap";
import RouteParams from "./RouteParams";
import Route from "Common/Types/API/Route";
import Dictionary from "Common/Types/Dictionary";
import ObjectID from "Common/Types/ObjectID";
const RouteMap: Dictionary<Route> = {
[PageMap.INIT]: new Route(`/admin`),
[PageMap.HOME]: new Route(`/admin`),
[PageMap.LOGOUT]: new Route(`/admin/logout`),
[PageMap.SETTINGS]: new Route(`/admin/settings/host`),
[PageMap.PROJECTS]: new Route(`/admin/projects`),
[PageMap.USERS]: new Route(`/admin/users`),
[PageMap.SETTINGS_HOST]: new Route(`/admin/settings/host`),
[PageMap.SETTINGS_SMTP]: new Route(`/admin/settings/smtp`),
[PageMap.SETTINGS_CALL_AND_SMS]: new Route(`/admin/settings/call-and-sms`),
[PageMap.SETTINGS_PROBES]: new Route(`/admin/settings/probes`),
[PageMap.SETTINGS_AUTHENTICATION]: new Route(
`/admin/settings/authentication`
),
[PageMap.SETTINGS_API_KEY]: new Route(`/admin/settings/api-key`),
[PageMap.INIT]: new Route(`/admin`),
[PageMap.HOME]: new Route(`/admin`),
[PageMap.LOGOUT]: new Route(`/admin/logout`),
[PageMap.SETTINGS]: new Route(`/admin/settings/host`),
[PageMap.PROJECTS]: new Route(`/admin/projects`),
[PageMap.PROJECT_VIEW]: new Route(`/admin/projects/${RouteParams.ModelID}`),
[PageMap.PROJECT_DELETE]: new Route(
`/admin/projects/${RouteParams.ModelID}/delete`,
),
[PageMap.USERS]: new Route(`/admin/users`),
[PageMap.USER_VIEW]: new Route(`/admin/users/${RouteParams.ModelID}`),
[PageMap.USER_DELETE]: new Route(
`/admin/users/${RouteParams.ModelID}/delete`,
),
[PageMap.SETTINGS_HOST]: new Route(`/admin/settings/host`),
[PageMap.SETTINGS_SMTP]: new Route(`/admin/settings/smtp`),
[PageMap.SETTINGS_CALL_AND_SMS]: new Route(`/admin/settings/call-and-sms`),
[PageMap.SETTINGS_PROBES]: new Route(`/admin/settings/probes`),
[PageMap.SETTINGS_AUTHENTICATION]: new Route(
`/admin/settings/authentication`,
),
[PageMap.SETTINGS_API_KEY]: new Route(`/admin/settings/api-key`),
};
export class RouteUtil {
public static populateRouteParams(
route: Route,
props?: {
modelId?: ObjectID;
subModelId?: ObjectID;
}
): Route {
// populate projectid
public static populateRouteParams(
route: Route,
props?: {
modelId?: ObjectID;
subModelId?: ObjectID;
},
): Route {
// populate projectid
const tempRoute: Route = new Route(route.toString());
const tempRoute: Route = new Route(route.toString());
if (props && props.modelId) {
route = tempRoute.addRouteParam(
RouteParams.ModelID,
props.modelId.toString()
);
}
if (props && props.subModelId) {
route = tempRoute.addRouteParam(
RouteParams.SubModelID,
props.subModelId.toString()
);
}
return tempRoute;
if (props && props.modelId) {
route = tempRoute.addRouteParam(
RouteParams.ModelID,
props.modelId.toString(),
);
}
if (props && props.subModelId) {
route = tempRoute.addRouteParam(
RouteParams.SubModelID,
props.subModelId.toString(),
);
}
return tempRoute;
}
}
export default RouteMap;

View File

@@ -1,6 +1,6 @@
enum RouteParams {
ModelID = ':id',
SubModelID = ':subModelId',
ModelID = ":id",
SubModelID = ":subModelId",
}
export default RouteParams;

View File

@@ -3,7 +3,8 @@
// these options are overrides used only by ts-node
// same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable
"compilerOptions": {
"module": "commonjs"
"module": "commonjs",
"resolveJsonModule": true,
}
},
"compilerOptions": {
@@ -38,7 +39,7 @@
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
"typeRoots": [
"./node_modules/@types"
], /* Specify multiple folders that act like `./node_modules/@types`. */
"types": ["node"], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
@@ -105,6 +106,7 @@
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
"resolveJsonModule": true
}
}

View File

@@ -1,77 +1,84 @@
require("ts-loader");
require("file-loader");
require("style-loader");
require("css-loader");
require("sass-loader");
const path = require("path");
const webpack = require("webpack");
const dotenv = require('dotenv');
const express = require('express');
const dotenv = require("dotenv");
const express = require("express");
const readEnvFile = (pathToFile) => {
const parsed = dotenv.config({ path: pathToFile }).parsed;
const parsed = dotenv.config({ path: pathToFile }).parsed;
const env = {};
const env = {};
for (const key in parsed) {
env[key] = JSON.stringify(parsed[key]);
}
for (const key in parsed) {
env[key] = JSON.stringify(parsed[key]);
}
return env;
}
return env;
};
module.exports = {
entry: "./src/Index.tsx",
mode: "development",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "public", "dist"),
publicPath: "/admin/dist/",
entry: "./src/Index.tsx",
mode: "development",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "public", "dist"),
publicPath: "/admin/dist/",
},
resolve: {
extensions: [".ts", ".tsx", ".js", ".jsx", ".json", ".css", ".scss"],
alias: {
react: path.resolve("./node_modules/react"),
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.css', '.scss'],
alias: {
react: path.resolve('./node_modules/react'),
}
},
externals: {
'react-native-sqlite-storage': 'react-native-sqlite-storage'
},
plugins: [
new webpack.DefinePlugin({
'process': {
'env': {
...readEnvFile('/usr/src/app/dev-env/.env')
}
}
}),
],
module: {
rules: [
{
test: /\.(ts|tsx)$/,
use: 'ts-loader'
},
{
test: /\.s[ac]ss$/i,
use: ['style-loader', 'css-loader', "sass-loader"]
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader']
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loader: 'file-loader'
}
],
},
devServer: {
historyApiFallback: true,
devMiddleware: {
writeToDisk: true,
},
externals: {
"react-native-sqlite-storage": "react-native-sqlite-storage",
},
plugins: [
new webpack.DefinePlugin({
process: {
env: {
...readEnvFile("/usr/src/app/dev-env/.env"),
},
allowedHosts: "all",
setupMiddlewares: (middlewares, devServer) => {
devServer.app.use('/admin/assets', express.static(path.resolve(__dirname, 'public', 'assets')));
return middlewares;
}
},
}),
],
module: {
rules: [
{
test: /\.(ts|tsx)$/,
use: "ts-loader",
},
{
test: /\.s[ac]ss$/i,
use: ["style-loader", "css-loader", "sass-loader"],
},
{
test: /\.css$/i,
use: ["style-loader", "css-loader"],
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loader: "file-loader",
},
],
},
devServer: {
historyApiFallback: true,
devMiddleware: {
writeToDisk: true,
},
devtool: 'eval-source-map',
}
allowedHosts: "all",
setupMiddlewares: (middlewares, devServer) => {
devServer.app.use(
"/admin/assets",
express.static(path.resolve(__dirname, "public", "assets")),
);
return middlewares;
},
},
devtool: "eval-source-map",
};

View File

@@ -1,2 +0,0 @@
node_modules
npm-debug.log

View File

@@ -1,72 +0,0 @@
# Pull base image nodejs image.
FROM node:current-alpine
USER root
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
ARG GIT_SHA
ARG APP_VERSION
ENV GIT_SHA=${GIT_SHA}
ENV APP_VERSION=${APP_VERSION}
# Install bash.
RUN apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN mkdir /usr/src
WORKDIR /usr/src/Common
COPY ./Common/package*.json /usr/src/Common/
RUN npm install
COPY ./Common /usr/src/Common
WORKDIR /usr/src/Model
COPY ./Model/package*.json /usr/src/Model/
RUN npm install
COPY ./Model /usr/src/Model
WORKDIR /usr/src/CommonServer
COPY ./CommonServer/package*.json /usr/src/CommonServer/
RUN npm install
COPY ./CommonServer /usr/src/CommonServer
# Install app
ENV PRODUCTION=true
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /usr/src/app
# Install app dependencies
COPY ./ApiReference/package*.json /usr/src/app/
RUN npm install
# Expose ports.
# - 1445: OneUptime Docs
EXPOSE 1445
{{ 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 }}

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