Commit Graph

28105 Commits

Author SHA1 Message Date
Simon Larsen
5f7dcf7433
refactor: Update timeout handling in monitor scripts
This commit updates the timeout handling in the monitor scripts to use the `WorkflowScriptTimeoutInMS` and `PROBE_CUSTOM_CODE_MONITOR_SCRIPT_TIMEOUT_IN_MS` values from the environment configuration. This ensures that the monitor scripts have consistent and configurable timeout values, improving the reliability and performance of the monitoring system.
2024-05-22 20:06:32 +01:00
Simon Larsen
39407795a2
refactor: Update logger.debug calls in AnalyticsDatabaseService tests 2024-05-22 14:10:22 +01:00
Simon Larsen
63dfb56da3
refactor: Update return value in StatusPageDomainService
The return value in the `getStatusPageDomain` method of the `StatusPageDomainService` class was updated to `true` to fix a bug where it was always returning `false`. This change ensures that the method returns the correct value based on the success or failure of the database query.
2024-05-22 13:35:18 +01:00
Simon Larsen
ed8714cc34
refactor: Update logger.debug calls in AnalyticsDatabaseService tests
The logger.debug calls in the AnalyticsDatabaseService tests were updated to improve logging consistency and accuracy.
2024-05-22 13:22:37 +01:00
Simon Larsen
dedda5b53b
refactor: Add screenshot functionality to synthetic monitor script 2024-05-22 12:39:31 +01:00
Simon Larsen
df2af5858c
Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-22 12:34:59 +01:00
Simon Larsen
e25d38ee74
refactor: Update axios dependency to version 1.6.8 2024-05-22 12:34:57 +01:00
Simon Larsen
2b0dd6687d
Merge pull request #1435 from OneUptime/snyk-upgrade-8ff00708899512e4a35ebf204a59691e
[Snyk] Upgrade @nivo/core from 0.85.1 to 0.86.0
2024-05-22 12:30:14 +01:00
Simon Larsen
22f08a4c47
refactor: Add timeout information to monitor documentation 2024-05-22 12:26:16 +01:00
Simon Larsen
fda11d81c0
Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-22 12:17:27 +01:00
Simon Larsen
18e68b3505
refactor: Remove unnecessary hyphen in monitor documentation
This commit removes an unnecessary hyphen in the monitor documentation by correcting the spelling of "Synthetic Monitor" in both the custom-code-monitor.md and synthetic-monitor.md files. The typo was causing inconsistency in the naming of the monitor, and this fix ensures accuracy and clarity in the documentation.
2024-05-22 12:17:09 +01:00
Simon Larsen
a8a550809d
refactor: Fix typo in monitor documentation
This commit fixes a typo in the monitor documentation by correcting the spelling of "Synthetic Monitor" in both the custom-code-monitor.md and synthetic-monitor.md files. The typo was causing inconsistency in the naming of the monitor, and this fix ensures accuracy and clarity in the documentation.
2024-05-22 12:16:42 +01:00
Simon Larsen
dbacf998ff
refactor: Add new monitor links to DocsNav
This commit adds new monitor links to the DocsNav utility in the FeatureSet/Docs/Utils/Nav.ts file. The links include "Custom Code Monitor" and "Synthetic Monitor" with their respective URLs. This enhancement improves the navigation experience for users accessing the monitor documentation section.
2024-05-22 12:13:38 +01:00
Simon Larsen
0d41d97b8d
refactor: Fix syntax error in MonitorStep and CriteriaFilterUtil 2024-05-22 11:59:33 +01:00
Simon Larsen
36ecf78c4c
refactor: Update executionTimeInMS type to number in CustomCodeMonitorResponse
This commit updates the type of the executionTimeInMS property in the CustomCodeMonitorResponse interface from PositiveNumber to number. The PositiveNumber type was unnecessary and caused compatibility issues with other parts of the codebase. Changing it to number simplifies the code and ensures consistency across the application.
2024-05-22 11:57:57 +01:00
Simon Larsen
3eb0eb4289
refactor: Fix syntax error in MonitorStep and CriteriaFilterUtil
This commit fixes a syntax error in the MonitorStep and CriteriaFilterUtil files. In MonitorStep, the syntax error was caused by an extra semicolon (;) in the screenshotDataInBase64 assignment. In CriteriaFilterUtil, the return statement was incorrectly set to true instead of false. These changes ensure that the code is correct and functioning as intended.
2024-05-22 11:47:13 +01:00
Simon Larsen
01c214b51e
refactor: Update CodeEditor placeholder for JavaScript type
This commit updates the CodeEditor component to improve the placeholder text for the JavaScript type. The placeholder now includes additional line breaks and indentation for better readability and code organization. This change enhances the user experience when working with JavaScript code in the CodeEditor.
2024-05-22 11:33:54 +01:00
snyk-bot
f756df1e5f
fix: upgrade @nivo/core from 0.85.1 to 0.86.0
Snyk has created this PR to upgrade @nivo/core from 0.85.1 to 0.86.0.

See this package in npm:
@nivo/core

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

See this package in npm:
@nivo/line

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-21 08:38:52 +00:00