Compare commits

...

742 Commits

Author SHA1 Message Date
Simon Larsen
8d4b8b7881 Refactor DashboardToolbar component to adjust margins and spacing 2024-10-31 17:21:25 +00:00
Simon Larsen
4626520f62 Refactor DashboardBaseComponent to add full screen functionality and adjust styling 2024-10-31 13:26:32 +00:00
Simon Larsen
7c04569a14 Refactor IconProp enum and add new icons: Bold, Italic, and Underline 2024-10-30 18:45:58 +00:00
Simon Larsen
bd8b1ca909 Refactor Dashboard components and add full screen functionality 2024-10-30 17:40:38 +00:00
Simon Larsen
13dddab5e5 Refactor MonitorTestForm component to adjust margins and spacing 2024-10-30 11:56:28 +00:00
Simon Larsen
771b0e4645 Refactor MonitorTestForm component to adjust margins and spacing 2024-10-29 18:11:02 +00:00
Simon Larsen
d99111b2f9 Refactor MonitorTest table to remove "lastMonitoringLog" column and add "monitorStepProbeResponse" and "isInQueue" columns 2024-10-29 18:04:36 +00:00
Simon Larsen
c2bb44f823 Refactor MonitorTestForm component and add test functionality 2024-10-29 17:55:09 +00:00
Simon Larsen
7ece118acd Refactor MonitorTestService and MonitorTest model 2024-10-29 17:43:36 +00:00
Simon Larsen
9b4ef72682 Refactor MonitorTestService and MonitorTest model 2024-10-29 16:59:07 +00:00
Simon Larsen
25ba824d79 Refactor MonitorResourceUtil and CriteriaFilterUtil to add MonitorTest model 2024-10-29 13:43:10 +00:00
Simon Larsen
9b35836dc8 Refactor MonitorResourceUtil to support ExecutionTime metric in synthetic monitors 2024-10-29 13:19:26 +00:00
Simon Larsen
809f9a38bc Refactor MonitorResourceUtil and MonitorChart components 2024-10-28 14:43:54 +00:00
Simon Larsen
df08f2b188 Refactor MonitorResourceUtil and CriteriaFilterUtil to support ExecutionTime metric 2024-10-28 14:41:59 +00:00
Simon Larsen
9512b9d001 Merge branch 'master' into release 2024-10-28 13:46:58 +00:00
Simon Larsen
995026f65f Refactor StatusPageSubscriberService to remove unnecessary code 2024-10-28 13:46:52 +00:00
Simon Larsen
d619d2afff Refactor StatusPageSubscriberService to fix issue with sending notifications for unsubscribed subscribers 2024-10-28 13:44:49 +00:00
Simon Larsen
1affe3cdda Refactor StatusPageSubscriberService to include event type selection 2024-10-28 13:35:33 +00:00
Simon Larsen
0bee18fa63 Refactor SubscriberSettings component to remove unnecessary code 2024-10-28 13:09:26 +00:00
Simon Larsen
2ad7face9a Refactor StatusPageAPI to allow subscribers to choose event types 2024-10-28 12:53:26 +00:00
Simon Larsen
33604bba3c Refactor SubscriberSettings component to allow subscribers to choose event types 2024-10-28 12:46:16 +00:00
Simon Larsen
9d6c34b796 Refactor StatusPageEventType enum to include new event types 2024-10-28 12:41:24 +00:00
Simon Larsen
052c3040fb Merge branch 'master' into release 2024-10-28 11:52:42 +00:00
Simon Larsen
89804ebbd1 Refactor Dashboard components to include component ID in rendered output 2024-10-28 11:52:19 +00:00
Simon Larsen
e21572af6d Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-10-28 11:44:56 +00:00
Simon Larsen
3865f6cb06 Refactor Markdown class to convert tags > and < to &gt; and &lt; 2024-10-28 11:44:26 +00:00
Simon Larsen
296791ed25 Refactor NavBar component to temporarily comment out unused DashboardNavItem 2024-10-28 10:11:05 +00:00
Simon Larsen
017216b8a6 Refactor DashboardBaseComponent to remove unused event parameters in onDragStart and onDragEnd 2024-10-28 10:07:30 +00:00
Simon Larsen
6fb6329356 Refactor DashboardViewConfigUtil to fix lastRowThatHasComponent calculation 2024-10-28 10:05:57 +00:00
Simon Larsen
477da276b2 Refactor Dashboard components and add new dashboard view 2024-10-25 15:18:23 +01:00
Simon Larsen
dbf90bf114 Refactor Dashboard components and add conditional rendering for empty dashboard 2024-10-25 13:12:17 +01:00
Simon Larsen
d6fa9b3905 Refactor DashboardToolbar to remove unused imports and update props usage 2024-10-25 08:48:17 +01:00
Simon Larsen
95573032e7 Refactor DashboardCanvas to render DashboardBaseComponentElement for each component 2024-10-25 07:57:00 +01:00
Simon Larsen
82699e5276 Refactor DashboardChartComponent to remove unused imports and update file name 2024-10-25 07:52:46 +01:00
Simon Larsen
54b95107c3 Refactor DashboardChartComponent and related components 2024-10-25 07:52:21 +01:00
Simon Larsen
e54b337c45 Refactor DashboardSize to calculate total width of dashboard in rem 2024-10-24 19:12:46 +01:00
Simon Larsen
75ab4bd946 Refactor DashboardViewConfig enum to use explicit types for default height and width 2024-10-24 18:34:31 +01:00
Simon Larsen
b31ffab577 Refactor DashboardComponentType enum to fix casing and add missing newline at end of file 2024-10-24 17:23:34 +01:00
Simon Larsen
8f2da2bdc5 Refactor dashboard component types and add chart, text, and value components 2024-10-24 15:38:13 +01:00
Simon Larsen
6ae31ac0da Refactor canvas and row components to use explicit types for default height and width 2024-10-23 14:54:01 +01:00
Simon Larsen
da22f2ef51 Refactor DashboardMode enum to fix formatting and add missing newline at end of file 2024-10-23 14:48:51 +01:00
Simon Larsen
a882507aff Refactor MoreMenu component to use Button instead of Icon 2024-10-23 14:46:24 +01:00
Simon Larsen
04c74de8e3 Merge pull request #1738 from OneUptime/master
Release
2024-10-23 13:45:33 +01:00
Simon Larsen
f13adebc04 Refactor DashboardSize to fix casing of heightInDashboardUnits property 2024-10-23 13:36:31 +01:00
Simon Larsen
5573d1cd6c Refactor NavBar component to uncomment Dashboards item 2024-10-23 13:09:00 +01:00
Simon Larsen
24d15c98ef Refactor NavBar component to comment out unused code 2024-10-23 13:08:37 +01:00
Simon Larsen
97de3ff6c7 Refactor DashboardService to include DashboardViewConfig 2024-10-23 13:07:47 +01:00
Simon Larsen
7bcecd0a1d Update package dependencies 2024-10-23 12:56:34 +01:00
Simon Larsen
b050dfdc1c Refactor CategoryCheckbox component to remove unnecessary array cloning 2024-10-23 12:56:10 +01:00
Simon Larsen
05a2fe6665 Refactor CRUD permissions to include read access 2024-10-23 12:50:02 +01:00
Simon Larsen
986479e8d5 Refactor DashboardViewConfig to use semicolon instead of comma 2024-10-23 12:45:22 +01:00
Simon Larsen
16fad55f9f Refactor Dashboard model to include DashboardViewConfig 2024-10-23 12:18:15 +01:00
Simon Larsen
4f03f448e8 Add new dashboard components and interfaces 2024-10-23 12:15:00 +01:00
Simon Larsen
f3e72a30d3 Delete unused ServiceDelete component 2024-10-23 11:51:38 +01:00
Simon Larsen
cf319c5afb Add new chart types and dashboard component interfaces 2024-10-23 11:24:13 +01:00
Simon Larsen
3afd4ed5b5 Merge pull request #1734 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-RINtg
Improved comments on /App/FeatureSet/Identity/API/StatusPageSSO.ts
2024-10-22 12:51:20 +01:00
Simon Larsen
00a783acca Merge pull request #1732 from OneUptime/snyk-fix-d8042450b0fd7524c713302d42109ccc
[Snyk] Fix for 1 vulnerabilities
2024-10-21 16:23:26 +01:00
Simon Larsen
3733c99b67 Merge pull request #1736 from fzamperin/master
refactor: change tailwind.js from cdn to serve local
2024-10-21 16:22:55 +01:00
Simon Larsen
e9daf776de fix monitor id on alert table 2024-10-21 16:22:03 +01:00
Fernando Penna
aced5f2124 Merge branch 'OneUptime:master' into master 2024-10-18 16:36:29 -03:00
Fernando Augusto Zamperin Penna
74ff0adefe refactor: adding standalone tailwindjs script on pages instead of cdn 2024-10-18 16:35:48 -03:00
Simon Larsen
4cefa756d6 add not notify on default incident state 2024-10-18 16:41:33 +01:00
Simon Larsen
365e44ebf9 add custom code monitor summary 2024-10-18 16:17:52 +01:00
Simon Larsen
b7d34e878f fix typo 2024-10-18 10:29:10 +01:00
OneUptime Copilot
15b2bf2071 Improved comments on /App/FeatureSet/Identity/API/StatusPageSSO.ts 2024-10-17 01:30:49 +00:00
Simon Larsen
5e85e73c0b add do not follow redirect to form 2024-10-16 18:20:03 +01:00
Simon Larsen
b9b5ca3325 switch base image to ecr 2024-10-16 15:54:57 +01:00
Simon Larsen
d89ee302fd turn do not redirect to false 2024-10-16 15:08:56 +01:00
Simon Larsen
a39db4ffc9 fix timeline on monitor chart 2024-10-16 14:59:01 +01:00
Simon Larsen
bbced15076 do not follow redirects when monitoring 2024-10-16 12:50:24 +01:00
Simon Larsen
1b3cde35f3 add filter views to other tables 2024-10-16 12:02:16 +01:00
Simon Larsen
f1dda4a7b3 fix filter settings 2024-10-15 19:20:46 +01:00
snyk-bot
f50120d19a fix: Common/package.json & Common/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-COOKIE-8163060
2024-10-15 06:03:43 +00:00
Simon Larsen
9d50f77908 Merge branch 'master' of github.com:OneUptime/oneuptime 2024-10-14 20:23:23 +01:00
Simon Larsen
f0a3ddbf2e make UI for table filters nicer 2024-10-14 20:23:20 +01:00
Simon Larsen
8a35eb47e6 Merge pull request #1618 from OneUptime/oneuptime-copilot-oneuptime-copilot-improve-comments-nJEHb
[OneUptime Copilot] Improve Comments on /App/Index.ts
2024-10-14 15:33:53 +01:00
Simon Larsen
6ccf8961bf Merge pull request #1701 from OneUptime/snyk-fix-2d8a0a8383cb68645721c65394cd6cd7
[Snyk] Security upgrade node from 22.5 to 22.9
2024-10-14 15:33:08 +01:00
Simon Larsen
fab8ca112b Merge pull request #1707 from OneUptime/snyk-fix-6186b78cb9bdefdfbc19f061c3bc0e9c
[Snyk] Security upgrade node from 22.5 to 22.8
2024-10-14 15:32:39 +01:00
Simon Larsen
bb81d4cf27 Merge branch 'master' into snyk-fix-6186b78cb9bdefdfbc19f061c3bc0e9c 2024-10-14 15:32:31 +01:00
Simon Larsen
931999c39f Merge pull request #1703 from OneUptime/snyk-fix-9272f658e87a4afce4e711dde5615427
[Snyk] Security upgrade express from 4.19.2 to 4.20.0
2024-10-14 15:32:09 +01:00
Simon Larsen
2e1e112b42 Merge pull request #1731 from OneUptime/snyk-fix-6dcbd9c940cb1f77c486fe016548c853
[Snyk] Security upgrade express from 4.19.2 to 4.21.1
2024-10-14 15:31:54 +01:00
snyk-bot
3b7a7c3c49 fix: StatusPage/package.json & StatusPage/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-COOKIE-8163060
2024-10-14 05:38:21 +00:00
Simon Larsen
5d9252d1ff refactor: Enable domain editing and make certificate fields optional in StatusPageDelete component 2024-10-10 12:42:18 +01:00
Simon Larsen
7c85fb4ded refactor: Update status page delete message for custom certificates 2024-10-09 21:06:46 +01:00
Simon Larsen
9e45f4cea9 refactor: Add doNotFollowRedirects option to WebsiteRequest and API
This commit adds the `doNotFollowRedirects` option to the `WebsiteRequest` and `API` classes. When set to `true`, the classes will not follow redirects when making HTTP requests. This is achieved by setting the `maxRedirects` property of the `axiosOptions` object to 0. This change allows for more control over the behavior of HTTP requests and ensures that redirects are not automatically followed.
2024-10-09 20:11:15 +01:00
Simon Larsen
f5d2c61a70 refactor: Add logging for writing custom certificates to disk 2024-10-09 19:31:47 +01:00
Simon Larsen
d072a29cf8 refactor: Add WriteCustomCertsToDiskJob to Nginx/Index.ts and update UptimeUtil to round uptime percentage to specified precision
- The WriteCustomCertsToDiskJob has been added to the Nginx/Index.ts file to handle writing custom certificates to disk.
- The UptimeUtil has been updated to round the uptime percentage to the specified precision.
2024-10-09 19:24:17 +01:00
Simon Larsen
0d262429d9 refactor: Remove unused code in OverviewPageBranding and improve code formatting 2024-10-09 12:09:53 +01:00
Simon Larsen
7b1960f00c refactor: Update UptimeUtil to round uptime percentage to specified precision 2024-10-09 11:59:07 +01:00
Simon Larsen
e253be732f refactor: Update UptimeUtil to round uptime percentage to specified precision
The UptimeUtil class in the Common/Utils/Uptime directory has been updated to include a new method called roundToPrecision. This method takes a number and a precision value and rounds the number to the specified precision. This method is used in the calculateUptimePercentage method to round the uptime percentage to the precision specified in the data.group object.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

See this package in npm:
playwright

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

See this package in npm:
reactflow

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

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

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

See this package in npm:
react-spinners

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

See this package in npm:
react-router-dom

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

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

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

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

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

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

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

This commit updates the imports in the UptimeUtil and MonitorEvent files to use double quotes instead of single quotes. This change ensures consistency in the codebase and follows the established import style.
2024-07-24 16:18:22 -06:00
Simon Larsen
c930caa2bb refactor: Add support for reportDataInDays and isReportEnabled in StatusPageSubscriberService 2024-07-24 13:23:38 -06:00
Simon Larsen
e654b65e71 refactor: Add support for reportDataInDays and isReportEnabled in StatusPageSubscriberService 2024-07-24 12:53:18 -06:00
Simon Larsen
a145b346a4 refactor: Add support for reportDataInDays in StatusPage model
This commit adds the `reportDataInDays` property to the `StatusPage` model in the `StatusPage.ts` file. The `reportDataInDays` property allows users to specify the number of days of data to include in the report. This change enhances the reporting functionality of the application by providing more flexibility in generating reports for status pages.
2024-07-23 19:43:10 -06:00
Simon Larsen
f090654ab6 refactor: Add support for StatusPage reports 2024-07-23 17:56:45 -06:00
Simon Larsen
c2e14c378b refactor: Update StatusPageService to calculate and set the next report date
This commit modifies the StatusPageService in the StatusPageService.ts file. It adds logic to calculate and set the next report date based on the report start date and recurring interval. This change enhances the functionality of the StatusPage report feature by ensuring that the next report is scheduled correctly.
2024-07-23 13:29:02 -06:00
Simon Larsen
77996b2066 refactor: Add support for StatusPage reports
This commit adds support for generating and managing reports for the StatusPage feature. It includes database changes, such as adding new columns to the "StatusPage" table, and updates to various components and routes. The new functionality allows users to configure and schedule reports, enhancing the reporting capabilities of the application.
2024-07-23 13:06:12 -06:00
Simon Larsen
5fce72fe59 refactor: Add migration for StatusPage report functionality
This commit adds a migration file (1721754545771-MigrationName.ts) to implement the necessary database changes for the StatusPage report functionality. It adds new columns to the "StatusPage" table, including "isReportEnabled" (boolean), "reportStartDateTime" (timestamp with time zone), "reportRecurringInterval" (JSON), and "sendNextReportBy" (timestamp with time zone). These columns enable the configuration and scheduling of reports for the StatusPage feature. This change enhances the functionality and flexibility of the application when generating and managing reports for status pages.
2024-07-23 11:15:57 -06:00
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
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
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
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
OneUptime Copilot
7e05939977 OneUptime Copilot: Improve Comments on /App/Index.ts 2024-07-14 21:37:48 +00: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
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
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
simlarsen
75ad6697cd OneUptime Copilot: Improve Comments on /App/FeatureSet/Docs/Index.ts 2024-07-10 21:00:05 +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
3145 changed files with 102628 additions and 108044 deletions

View File

@@ -40,6 +40,81 @@ jobs:
- name: build docker image
run: sudo docker build -f ./IsolatedVM/Dockerfile .
docker-build-home:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Home/Dockerfile .
docker-build-worker:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Worker/Dockerfile .
docker-build-workflow:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Workflow/Dockerfile .
docker-build-api-reference:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./APIReference/Dockerfile .
docker-build-docs:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preinstall
run: npm run prerun
# build image for accounts service
- name: build docker image
run: sudo docker build -f ./Docs/Dockerfile .
docker-build-otel-collector:
runs-on: ubuntu-latest

View File

@@ -20,9 +20,6 @@ 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 && npm run dep-check
compile-isolated-vm:
@@ -35,35 +32,8 @@ jobs:
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd CommonServer && npm install
- run: cd IsolatedVM && npm install && npm run compile && npm run dep-check
compile-common-server:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install && npm run compile && npm run dep-check
compile-common-ui:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonUI && npm install --force && npm run compile && npm run dep-check
compile-common:
runs-on: ubuntu-latest
env:
@@ -73,8 +43,7 @@ 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 && npm run dep-check
- run: cd Common && npm install && npm run compile && npm run dep-check
compile-app:
runs-on: ubuntu-latest
@@ -86,11 +55,68 @@ 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 App && npm install && npm run compile && npm run dep-check
compile-home:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Home && npm install && npm run compile && npm run dep-check
compile-worker:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Worker && npm install && npm run compile && npm run dep-check
compile-workflow:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Workflow && npm install && npm run compile && npm run dep-check
compile-api-reference:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd APIReference && npm install && npm run compile && npm run dep-check
compile-docs-reference:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Docs && npm install && npm run compile && npm run dep-check
compile-copilot:
runs-on: ubuntu-latest
env:
@@ -101,8 +127,6 @@ jobs:
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd CommonServer && npm install
- run: cd Copilot && npm install && npm run compile && npm run dep-check
compile-nginx:
@@ -115,9 +139,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 CommonUI && npm install --force
- run: cd Nginx && npm install && npm run compile && npm run dep-check
compile-infrastructure-agent:
@@ -141,9 +163,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 CommonUI && npm install --force
- run: cd AdminDashboard && npm install && npm run compile && npm run dep-check
compile-dashboard:
@@ -156,25 +176,10 @@ 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 && npm run dep-check
compile-model:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- run: cd Common && npm install
- run: cd Model && npm install
- run: cd Model && npm install && npm run compile && npm run dep-check
compile-e2e:
runs-on: ubuntu-latest
env:
@@ -197,8 +202,6 @@ 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 && npm run dep-check
compile-ingestor:
@@ -211,8 +214,6 @@ 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 && npm run dep-check
@@ -226,9 +227,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 CommonUI && npm install --force
- run: cd StatusPage && npm install && npm run compile && npm run dep-check
compile-test-server:
@@ -241,6 +240,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 && npm run dep-check

View File

@@ -248,6 +248,69 @@ jobs:
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
home-docker-image-deploy:
needs: [generate-build-number]
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/home
ghcr.io/oneuptime/home
tags: |
type=raw,value=release,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}},pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy isolated-vm.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./Home/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
test-server-docker-image-deploy:
needs: [generate-build-number]
runs-on: ubuntu-latest
@@ -1067,8 +1130,71 @@ jobs:
with:
file: ./LLM/Dockerfile
context: ./LLM
# arm64 is not supported by the base image of the LLM
platforms: linux/amd64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
docs-docker-image-deploy:
needs: generate-build-number
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/docs
ghcr.io/oneuptime/docs
tags: |
type=raw,value=release,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}},pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy nginx.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./Docs/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
@@ -1078,9 +1204,212 @@ jobs:
worker-docker-image-deploy:
needs: generate-build-number
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/worker
ghcr.io/oneuptime/worker
tags: |
type=raw,value=release,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}},pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy nginx.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./Worker/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
workflow-docker-image-deploy:
needs: generate-build-number
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/workflow
ghcr.io/oneuptime/workflow
tags: |
type=raw,value=release,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}},pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy nginx.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./Workflow/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
api-reference-docker-image-deploy:
needs: generate-build-number
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/api-reference
ghcr.io/oneuptime/api-reference
tags: |
type=raw,value=release,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}},pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy nginx.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./APIReference/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
test-e2e-release-saas:
runs-on: ubuntu-latest
needs: [copilot-docker-image-deploy, accounts-docker-image-deploy, admin-dashboard-docker-image-deploy, app-docker-image-deploy, dashboard-docker-image-deploy, haraka-docker-image-deploy, ingestor-docker-image-deploy, isolated-vm-docker-image-deploy, otel-collector-docker-image-deploy, probe-docker-image-deploy, status-page-docker-image-deploy, test-docker-image-deploy, test-server-docker-image-deploy, publish-npm-packages, e2e-docker-image-deploy, helm-chart-deploy, generate-build-number, nginx-docker-image-deploy]
needs: [copilot-docker-image-deploy, docs-docker-image-deploy, api-reference-docker-image-deploy, workflow-docker-image-deploy, llm-docker-image-deploy, accounts-docker-image-deploy, admin-dashboard-docker-image-deploy, app-docker-image-deploy, dashboard-docker-image-deploy, haraka-docker-image-deploy, ingestor-docker-image-deploy, isolated-vm-docker-image-deploy, home-docker-image-deploy, worker-docker-image-deploy, otel-collector-docker-image-deploy, probe-docker-image-deploy, status-page-docker-image-deploy, test-docker-image-deploy, test-server-docker-image-deploy, publish-npm-packages, e2e-docker-image-deploy, helm-chart-deploy, generate-build-number, nginx-docker-image-deploy]
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
@@ -1133,7 +1462,7 @@ jobs:
test-e2e-release-self-hosted:
runs-on: ubuntu-latest
# After all the jobs runs
needs: [copilot-docker-image-deploy, accounts-docker-image-deploy, admin-dashboard-docker-image-deploy, app-docker-image-deploy, dashboard-docker-image-deploy, haraka-docker-image-deploy, ingestor-docker-image-deploy, isolated-vm-docker-image-deploy, otel-collector-docker-image-deploy, probe-docker-image-deploy, status-page-docker-image-deploy, test-docker-image-deploy, test-server-docker-image-deploy, publish-npm-packages, e2e-docker-image-deploy, helm-chart-deploy, generate-build-number, nginx-docker-image-deploy]
needs: [copilot-docker-image-deploy, docs-docker-image-deploy, api-reference-docker-image-deploy, workflow-docker-image-deploy, llm-docker-image-deploy, accounts-docker-image-deploy, admin-dashboard-docker-image-deploy, app-docker-image-deploy, dashboard-docker-image-deploy, haraka-docker-image-deploy, ingestor-docker-image-deploy, isolated-vm-docker-image-deploy, home-docker-image-deploy, worker-docker-image-deploy, otel-collector-docker-image-deploy, probe-docker-image-deploy, status-page-docker-image-deploy, test-docker-image-deploy, test-server-docker-image-deploy, publish-npm-packages, e2e-docker-image-deploy, helm-chart-deploy, generate-build-number, nginx-docker-image-deploy]
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:

View File

@@ -20,7 +20,7 @@ jobs:
steps:
# Run Reliability Copilot in Doker Container
# Run Reliability Copilot in Docker Container
- name: Run Copilot
run: |
docker run --rm \

View File

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

View File

@@ -412,6 +412,69 @@ jobs:
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
home-docker-image-deploy:
needs: generate-build-number
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/home
ghcr.io/oneuptime/home
tags: |
type=raw,value=test,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}}-test,pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy isolated-vm.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./Home/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
status-page-docker-image-deploy:
needs: generate-build-number
runs-on: ubuntu-latest
@@ -902,6 +965,72 @@ jobs:
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
api-reference-docker-image-deploy:
needs: generate-build-number
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/api-reference
ghcr.io/oneuptime/api-reference
tags: |
type=raw,value=test,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}}-test,pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy app.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./APIReference/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
accounts-docker-image-deploy:
needs: generate-build-number
runs-on: ubuntu-latest
@@ -963,6 +1092,66 @@ jobs:
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
worker-docker-image-deploy:
needs: generate-build-number
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/worker
ghcr.io/oneuptime/worker
tags: |
type=raw,value=test,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}}-test,pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy accounts.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./Worker/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.copilot-docker-image-deploybuild_number}}
copilot-docker-image-deploy:
needs: generate-build-number
@@ -1025,10 +1214,136 @@ jobs:
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
workflow-docker-image-deploy:
needs: generate-build-number
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/workflow
ghcr.io/oneuptime/workflow
tags: |
type=raw,value=test,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}}-test,pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy accounts.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./Workflow/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
docs-docker-image-deploy:
needs: generate-build-number
runs-on: ubuntu-latest
steps:
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
oneuptime/docs
ghcr.io/oneuptime/docs
tags: |
type=raw,value=test,enable=true
type=semver,value=7.0.${{needs.generate-build-number.outputs.build_number}}-test,pattern={{version}},enable=true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v2
with:
node-version: 18.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Generate Dockerfile from Dockerfile.tpl
run: npm run prerun
# Build and deploy accounts.
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./Docs/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_SHA=${{ github.sha }}
APP_VERSION=7.0.${{needs.generate-build-number.outputs.build_number}}
test-helm-chart:
runs-on: ubuntu-latest
needs: [llm-docker-image-deploy, copilot-docker-image-deploy, isolated-vm-docker-image-deploy, test-server-docker-image-deploy, test-docker-image-deploy, ingestor-docker-image-deploy, probe-docker-image-deploy, haraka-docker-image-deploy, dashboard-docker-image-deploy, admin-dashboard-docker-image-deploy, app-docker-image-deploy, accounts-docker-image-deploy, otel-collector-docker-image-deploy, status-page-docker-image-deploy, nginx-docker-image-deploy, e2e-docker-image-deploy]
needs: [llm-docker-image-deploy, copilot-docker-image-deploy, docs-docker-image-deploy, worker-docker-image-deploy, workflow-docker-image-deploy, isolated-vm-docker-image-deploy, home-docker-image-deploy, api-reference-docker-image-deploy, test-server-docker-image-deploy, test-docker-image-deploy, ingestor-docker-image-deploy, probe-docker-image-deploy, haraka-docker-image-deploy, dashboard-docker-image-deploy, admin-dashboard-docker-image-deploy, app-docker-image-deploy, accounts-docker-image-deploy, otel-collector-docker-image-deploy, status-page-docker-image-deploy, nginx-docker-image-deploy, e2e-docker-image-deploy]
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
@@ -1067,7 +1382,7 @@ jobs:
- 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)
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
@@ -1120,7 +1435,7 @@ jobs:
- 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)
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

View File

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

View File

@@ -12,11 +12,12 @@ jobs:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
BILLING_PRIVATE_KEY: ${{secrets.TEST_BILLING_PRIVATE_KEY}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
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

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

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

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

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

View File

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

74
.vscode/launch.json vendored
View File

@@ -63,6 +63,76 @@
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Home",
"name": "Home: Debug with Docker",
"port": 9212,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Worker",
"name": "Worker: Debug with Docker",
"port": 8734,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Worker",
"name": "Workflow: Debug with Docker",
"port": 8735,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Worker",
"name": "Docs: Debug with Docker",
"port": 8738,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Worker",
"name": "API Reference: Debug with Docker",
"port": 8737,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/TestServer",
@@ -218,12 +288,12 @@
"autoAttachChildProcesses": true
},
{
"name": "CommonServer: Debug Tests",
"name": "Common: Debug Tests",
"type": "node",
"restart": true,
"autoAttachChildProcesses": true,
"request": "launch",
"cwd": "${workspaceRoot}/CommonServer",
"cwd": "${workspaceRoot}/Common",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",

View File

1
APIReference/.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.js text eol=lf

30
APIReference/.gitignore vendored Executable file
View File

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

View File

@@ -1,11 +1,16 @@
#
# OneUptime-TelemetryIngestor Dockerfile
# OneUptime-App Dockerfile
#
# Pull base image nodejs image.
FROM node:21.7.3-alpine3.18
FROM public.ecr.aws/docker/library/node:21.2-alpine3.18
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
RUN npm config set fetch-retries 5
RUN npm config set fetch-retry-mintimeout 100000
RUN npm config set fetch-retry-maxtimeout 600000
ARG GIT_SHA
ARG APP_VERSION
@@ -38,46 +43,28 @@ RUN sed -i "s/\"version\": \".*\"/\"version\": \"$APP_VERSION\"/g" /usr/src/Comm
RUN npm install
COPY ./Common /usr/src/Common
WORKDIR /usr/src/Model
COPY ./Model/package*.json /usr/src/Model/
# Set version in ./Model/package.json to the APP_VERSION
RUN sed -i "s/\"version\": \".*\"/\"version\": \"$APP_VERSION\"/g" /usr/src/Model/package.json
RUN npm install
COPY ./Model /usr/src/Model
WORKDIR /usr/src/CommonServer
COPY ./CommonServer/package*.json /usr/src/CommonServer/
# Set version in ./CommonServer/package.json to the APP_VERSION
RUN sed -i "s/\"version\": \".*\"/\"version\": \"$APP_VERSION\"/g" /usr/src/CommonServer/package.json
RUN npm install
COPY ./CommonServer /usr/src/CommonServer
ENV PRODUCTION=true
WORKDIR /usr/src/app
# Install app dependencies
COPY ./TelemetryIngestor/package*.json /usr/src/app/
COPY ./APIReference/package*.json /usr/src/app/
# Set version in ./App/package.json to the APP_VERSION
RUN sed -i "s/\"version\": \".*\"/\"version\": \"$APP_VERSION\"/g" /usr/src/app/package.json
RUN npm install
# Expose ports.
# - 3674: OneUptime-TelemetryIngestor
EXPOSE 3674
# - 1446: OneUptime-api-reference
EXPOSE 1446
{{ if eq .Env.ENVIRONMENT "development" }}
#Run the app
CMD [ "npm", "run", "dev" ]
{{ else }}
# Copy app source
COPY ./TelemetryIngestor /usr/src/app
COPY ./APIReference /usr/src/app
# Bundle app source
RUN npm run compile
#Run the app
CMD [ "npm", "start" ]
{{ end }}

51
APIReference/Index.ts Executable file
View File

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

29
APIReference/README.md Executable file
View File

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

View File

@@ -10,13 +10,13 @@ import StatusServiceHandler from "./Service/Status";
import { StaticPath } from "./Utils/Config";
import ResourceUtil, { ModelDocumentation } from "./Utils/Resources";
import Dictionary from "Common/Types/Dictionary";
import FeatureSet from "CommonServer/Types/FeatureSet";
import FeatureSet from "Common/Server/Types/FeatureSet";
import Express, {
ExpressApplication,
ExpressRequest,
ExpressResponse,
ExpressStatic,
} from "CommonServer/Utils/Express";
} from "Common/Server/Utils/Express";
const APIReferenceFeatureSet: FeatureSet = {
init: async (): Promise<void> => {
@@ -25,13 +25,15 @@ const APIReferenceFeatureSet: FeatureSet = {
const app: ExpressApplication = Express.getExpressApp();
// Serve static files for the API reference with a cache max age of 30 days
app.use("/reference", ExpressStatic(StaticPath, { maxAge: 2592000 }));
// Index page
// Redirect index page to the introduction page
app.get(["/reference"], (_req: ExpressRequest, res: ExpressResponse) => {
return res.redirect("/reference/introduction");
});
// Handle "Page Not Found" page
app.get(
["/reference/page-not-found"],
(req: ExpressRequest, res: ExpressResponse) => {
@@ -39,7 +41,7 @@ const APIReferenceFeatureSet: FeatureSet = {
},
);
// All Pages
// Handle all other pages based on the "page" parameter
app.get(
["/reference/:page"],
(req: ExpressRequest, res: ExpressResponse) => {
@@ -52,6 +54,7 @@ const APIReferenceFeatureSet: FeatureSet = {
const currentResource: ModelDocumentation | undefined =
ResourceDictionary[page];
// Execute the appropriate service handler based on the "page" parameter
if (req.params["page"] === "permissions") {
return PermissionServiceHandler.executeResponse(req, res);
} else if (req.params["page"] === "authentication") {

View File

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

View File

@@ -1,8 +1,8 @@
import { CodeExamplesPath, ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import LocalCache from "CommonServer/Infrastructure/LocalCache";
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";
import LocalFile from "CommonServer/Utils/LocalFile";
import LocalCache from "Common/Server/Infrastructure/LocalCache";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
import LocalFile from "Common/Server/Utils/LocalFile";
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();

View File

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

View File

@@ -1,6 +1,6 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
// Get all resources and featured resources from ResourceUtil
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();

View File

@@ -10,9 +10,9 @@ import Permission, {
PermissionHelper,
PermissionProps,
} from "Common/Types/Permission";
import LocalCache from "CommonServer/Infrastructure/LocalCache";
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";
import LocalFile from "CommonServer/Utils/LocalFile";
import LocalCache from "Common/Server/Infrastructure/LocalCache";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
import LocalFile from "Common/Server/Utils/LocalFile";
// Get all resources and resource dictionary
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();

View File

@@ -1,6 +1,6 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources(); // Get an array of model documentation resources

View File

@@ -1,8 +1,8 @@
import { CodeExamplesPath, ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import LocalCache from "CommonServer/Infrastructure/LocalCache";
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";
import LocalFile from "CommonServer/Utils/LocalFile";
import LocalCache from "Common/Server/Infrastructure/LocalCache";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
import LocalFile from "Common/Server/Utils/LocalFile";
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources(); // Get all resources from ResourceUtil

View File

@@ -1,7 +1,7 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { PermissionHelper, PermissionProps } from "Common/Types/Permission";
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
const Resources: Array<ModelDocumentation> = ResourceUtil.getResources();

View File

@@ -1,8 +1,9 @@
import { ViewsPath } from "../Utils/Config";
import ResourceUtil, { ModelDocumentation } from "../Utils/Resources";
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";
import { ExpressRequest, ExpressResponse } from "Common/Server/Utils/Express";
const resources: Array<ModelDocumentation> = ResourceUtil.getResources(); // Get resources from ResourceUtil
// Retrieve resources from ResourceUtil
const resources: Array<ModelDocumentation> = ResourceUtil.getResources();
export default class ServiceHandler {
public static async executeResponse(
@@ -11,8 +12,9 @@ export default class ServiceHandler {
): Promise<void> {
// Set HTTP status to 200
res.status(200);
// Render index page with necessary data
return res.render(`${ViewsPath}/pages/index`, {
// Render index page with necessary data
page: "status",
pageTitle: "Status",
pageDescription: "200 - Success",

View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 321 B

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 649 B

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

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