Commit Graph

127 Commits

Author SHA1 Message Date
Simon Larsen
97de3ff6c7
Refactor DashboardService to include DashboardViewConfig 2024-10-23 13:07:47 +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
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
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
dbad05baa6
Add modelId support in Realtime utilities and enhance cookie handling methods 2024-09-25 20:59:14 +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
cc8c3f7d9e
Add timeout option to API requests and update monitor configurations 2024-09-18 13:13:24 +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
94eaab9ca4
refactor: Update import statements to use ArrayUtil from Common/Utils/Array 2024-09-05 13:29:58 +01:00
Simon Larsen
848b61033a
refactor: Update CodeRepositoryFile interface to include filePath property 2024-09-05 12:59:59 +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
b9dd9eb8de
refactor: Add Crypto class for MD5 and SHA256 hashing 2024-08-23 14:49:04 +01:00
Simon Larsen
cba6e9e2a0
refactor: Add incomingRequestMonitorHeartbeatCheckedAt property to MonitorView and Summary components 2024-08-19 16:17:07 +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
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
c53584e9d5
should generate a string of random numbers of specified length 2024-08-12 22:57:36 +01:00
Simon Larsen
3eef55a29d
refactor: Update import statements for CommonUI to use Common/UI 2024-08-08 11:52:34 -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
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
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
3c839799da
refactor: Update LastRunMessage and TelemetryServices components 2024-07-17 13:42:12 -06:00
Simon Larsen
60aa7032c5
refactor: Update TechStack enum and related imports
This commit updates the TechStack enum in the TechStack.ts file to include a comprehensive list of technology stacks. It also updates the import paths in various files to reflect the changes from using ServiceLanguage to TechStack. This refactoring improves the clarity and consistency of the codebase.
2024-07-16 14:07:47 -06:00
Simon Larsen
5251b93fc9
refactor: Improve logging in Llama class 2024-07-09 12:54:49 +01:00
Simon Larsen
646c0f37d6
refactor: Improve logging in Llama class 2024-07-08 19:59:58 +01:00
Simon Larsen
1fdc36fea2
refactor: Update logging in Llama class for better debugging 2024-07-08 19:56:27 +01:00
Simon Larsen
95f87567e8
refactor: Improve logging in Llama class
This commit improves the logging in the Llama class by adding more detailed log messages. It modifies the log statements in the execute method to include the current file path and the type of Copilot action being executed. This change enhances the readability and debugging capabilities of the Llama service.
2024-07-08 18:15:27 +01:00
Simon Larsen
9ad97b1fe0
refactor: Add timeout handling to Llama prompt execution
This commit adds timeout handling to the Llama prompt execution in the Llama class. It introduces a timeoutInMinutes property in the CopilotActionPrompt interface and uses it to set a timeout for the prompt execution. If the prompt execution exceeds the specified timeout, a LLMTimeoutException is thrown, indicating that the prompt has timed out. This change enhances the reliability and responsiveness of the Llama service by preventing long-running prompts from blocking the execution flow.
2024-07-08 18:06:06 +01:00
Simon Larsen
de7d06e5d7
refactor: Improve error handling in FetchListAndProbe
This commit refactors the FetchListAndProbe class to improve error handling. It adds try-catch blocks around the main logic and logs any errors that occur using the logger. Additionally, it includes a catch block to handle any errors thrown during the fetchListAndProbe function. This change ensures that errors are properly handled and logged, preventing potential issues with the monitoring process.
2024-07-05 10:18:03 +01:00
Simon Larsen
cc3f003be5
refactor: Improve error handling in FetchListAndProbe
This commit refactors the FetchListAndProbe class to improve error handling. It adds try-catch blocks around the main logic and logs any errors that occur using the logger. Additionally, it includes a catch block to handle any errors thrown during the fetchListAndProbe function. This change ensures that errors are properly handled and logged, preventing potential issues with the monitoring process.
2024-07-04 22:22:37 +01:00
Simon Larsen
9791aa1259
chore: Add CPU core count to CPUMetrics
This commit adds the `cores` field to the `CPUMetrics` struct in order to include the number of CPU cores in the collected metrics. This information is useful for understanding the processing power of the server.
2024-07-02 13:54:04 +01:00
Simon Larsen
e85e351797
refactor: Remove unnecessary blank lines in ServiceLanguageUtil class 2024-06-23 19:41:24 +01:00
Simon Larsen
1964db22f1
refactor: Add support for Markdown file extension in ServiceLanguage enum 2024-06-23 19:35:04 +01:00
Simon Larsen
70a2a3993b
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:09:53 +01:00
Simon Larsen
affa492ce3
refactor: Improve SSL certificate error handling
This commit refactors the API class in API.ts to improve the handling of SSL certificate errors. The `getFriendlyErrorMessage` method now includes specific error messages for different SSL certificate issues, such as expired certificates, certificates signed by unknown authorities, and self-signed certificates. This enhancement enhances the user experience by providing clearer and more informative error messages for SSL certificate errors.
2024-06-13 21:50:59 +01:00
Simon Larsen
5ae3a5b5ee
refactor: Improve error handling in API class
The API class in API.ts has been updated to improve error handling. The getFriendlyErrorMessage method now includes additional error cases and returns more specific error messages for network errors, timeouts, request aborts, cancellations, connection issues, and SSL certificate expiration. This change enhances the user experience by providing clearer and more informative error messages.
2024-06-13 21:50:10 +01:00
Simon Larsen
5716ab2445
refactor: Update API error handling and display
The API class in API.ts has been updated to improve error handling and display. The getFriendlyErrorMessage method now includes additional error cases and returns more specific error messages for network errors, timeouts, request aborts, cancellations, connection issues, and SSL certificate expiration. This change enhances the user experience by providing clearer and more informative error messages.
2024-06-13 21:45:56 +01:00
Simon Larsen
a66a04456b
refactor: Update endpoint URLs for status check script 2024-06-13 21:44:49 +01:00
Simon Larsen
42253e4e50
refactor: Update GitHub token handling in Config.ts 2024-06-12 11:59:22 +01:00
Simon Larsen
64acf372d6
refactor: Update GitHub token handling in Config.ts
The Config.ts file has been updated to handle the GitHub token more efficiently. The GetGitHubToken function now checks the repository type and throws an exception if a GitHub token is required but not provided. This change improves the security and reliability of the application by ensuring that the correct token is used for GitHub repositories.
2024-06-12 11:31:50 +01:00
Simon Larsen
6a285df796
refactor: Simplify generatePhone method in Faker.ts
The `generatePhone` method in `Faker.ts` has been simplified to remove unnecessary character replacements and instead directly generate a random 10-digit phone number. This change improves the efficiency and readability of the code.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 22:54:59 +01:00
Simon Larsen
a053cc53eb
refactor: Remove unnecessary characters from generated phone numbers in Faker.ts 2024-06-02 22:48:25 +01:00
Simon Larsen
fca2c74817
refactor: Improve generatePhone method in Faker.ts
The `generatePhone` method in `Faker.ts` has been updated to remove unnecessary characters from the generated phone number. This change improves the consistency and simplicity of generating phone numbers using the Faker library.

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 21:38:26 +01:00
Simon Larsen
6785e62edd
refactor: Update generatePhone method in Faker.ts
The `generatePhone` method in `Faker.ts` has been updated to remove the country code parameter from the `faker.phone.number` function call. This change improves the consistency and simplicity of generating phone numbers using the Faker library.
2024-06-02 21:06:10 +01:00
Simon Larsen
faf0641503
refactor: Update package.json and Encryption.ts to use latest version of crypto-js 2024-05-29 15:25:09 +01:00