Commit Graph

731 Commits

Author SHA1 Message Date
Simon Larsen
70a2a3993b
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:09:53 +01:00
Simon Larsen
2999e539b3
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:01:14 +01:00
Simon Larsen
170b79e4cf
refactor: Add CopilotEventStatus column to CopilotEvent model
This commit adds a new column, CopilotEventStatus, to the CopilotEvent model in the CopilotEvent.ts file. The CopilotEventStatus column represents the status of a Copilot event that was triggered for a file in the code repository. This enhancement improves the functionality and flexibility of the CopilotEvent model.
2024-06-13 14:39:26 +01:00
Simon Larsen
d153ad9bf7
refactor: Update ServiceRepository to include serviceLanguage field
The ServiceRepository class in ServiceRepository.ts has been updated to include a new field, serviceLanguage. This field is of type ServiceLanguage and is required. This change allows for better organization and identification of code repositories based on their programming language.
2024-06-12 21:27:00 +01:00
Simon Larsen
fd13e91aac
refactor: Update ServiceRepository to use number type for limitNumberOfOpenPullRequestsCount
The ServiceRepository class in ServiceRepository.ts has been updated to use the number type for the limitNumberOfOpenPullRequestsCount property instead of the string type. This change ensures that the property is correctly typed and improves the accuracy and reliability of the code.
2024-06-12 15:38:54 +01:00
Simon Larsen
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
9b1e702c64
refactor: Add enablePullRequests property to ServiceRepository model
The enablePullRequests property has been added to the ServiceRepository model. This property allows for enabling or disabling automatic pull request creation by Copilot for this service. By default, enablePullRequests is set to true, indicating that Copilot will create pull requests for this service to automatically improve the codebase. This change enhances the functionality of the ServiceRepository model and provides more control over pull request generation.
2024-06-11 18:19:51 +01:00
Simon Larsen
f10fa9a48e
```text
refactor: Update defaultValue property in Field interface

The defaultValue property in the Field interface has been updated to include the number type. This change allows for setting default values of type number in form fields.
2024-06-11 18:15:09 +01:00
Simon Larsen
de91346155
refactor: Remove CopilotServiceService and update references to ServiceRepositoryService 2024-06-11 17:49:14 +01:00
Simon Larsen
629a442ff7
refactor: Remove CopilotServiceService and update references to ServiceRepositoryService
This commit removes the CopilotServiceService module, which is no longer needed. It also updates the references to the CopilotService class to use the ServiceRepository class instead. This change improves code organization and consistency by using the appropriate service class for managing service repositories.
2024-06-11 17:38:18 +01:00
Simon Larsen
36cfb7e20f
refactor: Add new migrations for SchemaMigrations and Models
New migrations have been added to the SchemaMigrations and Models directories. These migrations introduce new changes to the database schema and model definitions. This commit ensures that the codebase is up to date with the latest schema changes and improves the maintainability of the application.
2024-06-11 16:52:56 +01:00
Simon Larsen
02046a525e
refactor: Update service catalog titles to use consistent naming convention
The titles of the ServiceCatalog and ServiceCatalogOwnerTeam classes have been updated to use a consistent naming convention. The "ServiceCatalog" title has been changed to "Service Catalog" and the "ServiceCatalog ID" title has been changed to "Service Catalog ID". This change improves clarity and readability in the codebase.
2024-06-11 16:51:12 +01:00
Simon Larsen
c9a998da0b
refactor: Add service language dropdown in ServiceCatalog form 2024-06-11 16:35:23 +01:00
Simon Larsen
dfb7f2320c
refactor: Update jest.config.json files with testPathIgnorePatterns
The jest.config.json files in the Model, Probe, Common, Copilot, CommonUI, Ingestor, IsolatedVM, TestServer, and CommonServer directories have been updated. The "testPathIgnorePatterns" property has been added to each file, excluding the "node_modules" and "dist" directories from test path matching. This change improves test performance and ensures that unnecessary files are not included in the test coverage.
2024-06-11 14:52:55 +01:00
Simon Larsen
2b478e7a13
refactor: Add TableBillingAccessControl to MonitorOwnerTeam, MonitorOwnerUser, StatusPageOwnerTeam, MonitorGroupOwnerTeam, MonitorGroupOwnerUser models
This code change adds the TableBillingAccessControl decorator to the MonitorOwnerTeam, MonitorOwnerUser, StatusPageOwnerTeam, MonitorGroupOwnerTeam, and MonitorGroupOwnerUser models. The decorator configures the access control settings for these models based on the specified subscription plans. This change ensures that the appropriate access control rules are applied when creating, reading, updating, or deleting records in these models.
2024-06-11 12:37:48 +01:00
Simon Larsen
703c4b7685
feat: Add doNotShowWhenCreating option to Field interface
The Field interface in the CommonUI project has been updated to include a new property, doNotShowWhenCreating. This property allows developers to specify whether a field should be shown in the form when creating a new entity. By setting doNotShowWhenCreating to true, the field will be hidden during the creation process. This change provides more control over the visibility of fields in the form based on the create or edit mode.
2024-06-11 11:33:26 +01:00
Simon Larsen
d7e9776a3c
refactor: Update CodeRepository.getRepository() to return a Promise
Update CodeRepository.getRepository() to return a Promise<CodeRepositoryModel> instead of a string. This change improves the functionality and flexibility of the CodeRepository class.
2024-06-11 11:10:36 +01:00
Simon Larsen
3de407842e
refactor: Add CopilotEvent API endpoint to BaseAPIFeatureSet
This code change adds the CopilotEvent API endpoint to the BaseAPIFeatureSet in the App/FeatureSet/BaseAPI/Index.ts file. It imports the CopilotEvent model and service, and includes the necessary routing and configuration for the endpoint. This change allows for the CRUD operations on CopilotEvent data through the API.
2024-06-10 17:45:00 +01:00
Simon Larsen
55d947fb39
refactor: Add isMonotonic column to Metric model
This code change adds a new column, 'isMonotonic', to the Metric model in the AnalyticsModels directory. The column is optional and represents whether the metric is monotonic. This change ensures that the necessary data is captured and stored correctly for metrics in the system.
2024-06-10 12:49:29 +01:00
Simon Larsen
77f1262ff5
refactor: Update Telemetry class to add gauge and histogram metrics
This code change updates the Telemetry class in the CommonServer/Utils directory to include methods for creating gauge and histogram metrics. The getGauge and getHistogram methods are added, allowing for the creation of observable gauges and histograms with specified names and descriptions. This change enhances the telemetry capabilities of the application by providing more options for metric tracking and analysis.
2024-06-10 12:39:49 +01:00
Simon Larsen
4ca4f28d1c
refactor: Add Point Type to Metric model
This code change adds a new column, 'Metric Point Type', to the Metric model in the AnalyticsModels directory. The column is optional and represents the type of metric point. This change ensures that the necessary data is captured and stored correctly for metrics in the system.
2024-06-10 11:45:23 +01:00
Simon Larsen
b6565ce2bb
refactor: Add Aggregation Temporality column to Metric model
This code change adds a new column, 'Aggregation Temporality', to the Metric model in the AnalyticsModels directory. The column is required and represents the aggregation temporality of the metric. This change ensures that the necessary data is captured and stored correctly for metrics in the system.
2024-06-10 11:34:08 +01:00
Simon Larsen
decea5acfc
refactor: Add AI Copilot breadcrumbs and code repository view 2024-06-09 19:03:23 +01:00
Simon Larsen
4c2dfb0f92
refactor: Add CodeRepository model, service, and permissions
This code change adds the CodeRepository model, service, and permissions to the project. It includes the following modifications:

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

These changes enable the project to manage code repositories and define the necessary permissions for them.
2024-06-09 15:03:56 +01:00
Simon Larsen
2d09df2d87
feat: Add ServiceCatalogOwnerTeam and ServiceCatalogOwnerUser models
This code change adds the ServiceCatalogOwnerTeam and ServiceCatalogOwnerUser models to the project. These models are necessary for managing ownership of Service Catalogs, allowing teams and individual users to be assigned as owners of specific Service Catalogs.
2024-06-08 13:31:40 +01:00
Simon Larsen
ebec143c9c
refactor: Import and include ServiceCatalogService and ServiceCatalog model
This code change updates the Index.ts and Models/Index.ts files to import and include the ServiceCatalogService and ServiceCatalog model respectively. This allows for the management of Service Catalogs, including creating, deleting, editing, and reading them within the project.
2024-06-08 10:35:17 +01:00
Simon Larsen
aa68a6316a
feat: Add Service Catalog permissions
This code change adds new permissions for managing Service Catalogs. The permissions include creating, deleting, editing, and reading Service Catalogs. These permissions allow users to perform various actions related to Service Catalogs within the project.

Refactor: Update Index.ts and Models/Index.ts to import and include the ServiceCatalogService and ServiceCatalog model respectively.
2024-06-08 10:25:37 +01:00
Simon Larsen
87caae077c
```text
refactor: Change metric column types to decimal

This code change modifies the Metric model in the AnalyticsModels directory to change the column types of various metrics from TableColumnType.Number to TableColumnType.Decimal. This update ensures more accurate and precise calculations for the metrics.
2024-06-07 22:55:39 +01:00
Simon Larsen
e762778fc6
refactor: Improve code readability and maintainability in StatementGenerator.ts 2024-06-07 17:33:23 +01:00
Simon Larsen
26c900d8e2
refactor: Update CommonServer/package.json and Ingestor/Service/OTelIngest.ts
This code change updates the CommonServer/package.json file to remove the "@opentelemetry/metrics" dependency and adds the "@opentelemetry/sdk-metrics" dependency with version "^1.21.0". It also updates the Ingestor/Service/OTelIngest.ts file to import the "JSONFunctions" module from "Common/Types/JSONFunctions" and use the "flattenObject" function from that module to flatten the final object before returning it.
2024-06-07 16:57:24 +01:00
Simon Larsen
938bd32915
refactor: Update PageMap and RouteMap to include new telemetry metric page
This code change updates the PageMap and RouteMap files to include a new telemetry metric page. The new page, TELEMETRY_SERVICES_VIEW_METRIC, is added to both files with its corresponding route path. This modification ensures that the new page is properly mapped and accessible within the application.
2024-06-07 10:08:40 +01:00
Simon Larsen
14da201c8d
refactor: Remove unused PostgresConfig file and update PostgresDatabase imports 2024-06-05 17:26:48 +01:00
Simon Larsen
9a3fa080ea
refactor: Update MonitorSecret model permissions
This code change updates the permissions for the MonitorSecret model in MonitorSecret.ts. The update includes adding the Permission.EditMonitorSecret permission to the update operation, allowing project owners, project admins, and users with the EditMonitorSecret permission to update MonitorSecret records. This improvement provides better control over who can modify MonitorSecrets and ensures that only authorized users can make changes to sensitive information.
2024-06-04 20:33:35 +01:00
Simon Larsen
db3d1e90f2
refactor: Remove unused Permission.ProjectMember from Label model
This code change removes the unused Permission.ProjectMember from the Label model in Label.ts. The Permission.ProjectMember was mistakenly included in the create, read, update, and delete arrays, but it is not required for these operations. Removing the unused permission improves code clarity and reduces potential confusion.
2024-06-04 20:31:15 +01:00
Simon Larsen
c6850f5a0b
refactor: Add TableBillingAccessControl to MonitorSecret model
This code change adds the TableBillingAccessControl decorator to the MonitorSecret model in MonitorSecret.ts. The decorator sets the access control permissions for creating, reading, updating, and deleting MonitorSecret records to the Growth subscription plan. This improvement ensures that only users with the Growth plan can perform these actions on MonitorSecrets, providing better control over access to sensitive information.
2024-06-03 23:40:39 +01:00
Simon Larsen
29686f8167
feat: Add isBlockPermission property to UserPermission, UserTenantAccessPermission, ApiKeyPermission, and TeamPermission
This code change adds the isBlockPermission property to the UserPermission, UserTenantAccessPermission, ApiKeyPermission, and TeamPermission interfaces and models. The isBlockPermission property allows for blocking specific permissions for users, tenants, API keys, and teams. This enhancement provides greater control and flexibility in managing permissions within the application.

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

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-06-02 20:42:18 +01:00
Simon Larsen
e344c6d3d1
refactor: Add BlockedApiKeyPermission and BlockedTeamPermission services and models
This code change adds the BlockedApiKeyPermissionService and BlockedTeamPermissionService services, as well as the BlockedApiKeyPermission and BlockedTeamPermission models. These additions provide functionality for managing blocked permissions for API keys and teams. This enhancement improves the flexibility and security of the application.

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

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

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

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

Note: This commit message follows the established convention of starting with a verb in the imperative form (e.g., "Update", "Add", "Fix") and providing a concise summary of the changes made.
2024-05-31 19:23:45 +01:00
Simon Larsen
faf0641503
refactor: Update package.json and Encryption.ts to use latest version of crypto-js 2024-05-29 15:25:09 +01:00
Simon Larsen
06b7f5c236
refactor: Update JSON.ts imports
This code change updates the imports in the JSON.ts file to remove unused imports and organize the imports alphabetically. It improves code readability and maintainability.
2024-05-28 21:33:44 +01:00
Simon Larsen
853715b17c
refactor: Update .prettierrc.json with importOrderParserPlugins option
This code change updates the .prettierrc.json file by adding the "importOrderParserPlugins" option with the values ["typescript", "decorators"]. This enhancement allows the Prettier formatter to correctly parse and sort imports that include TypeScript and decorators. It improves the code formatting and organization.
2024-05-28 19:57:03 +01:00
Simon Larsen
5bdc381925
refactor: Add MonitorSecret permissions 2024-05-28 19:54:50 +01:00
Simon Larsen
5ef5dbf562
refactor: Add MonitorSecret permissions
This code change adds the necessary permissions for managing MonitorSecrets. The new permissions include CanCreateMonitorSecret, CanEditMonitorSecret, CanDeleteMonitorSecret, and CanReadMonitorSecret. These permissions allow users to create, edit, delete, and read MonitorSecrets respectively. This enhancement improves the access control and security of the application.
2024-05-28 19:46:59 +01:00
Simon Larsen
d0b63b5c8b
Refactor ProbeMonitorResponseService and Metrics component
The code changes refactor the ProbeMonitorResponseService and Metrics component. This includes removing redundant code in ProbeMonitorResponseService and simplifying the Metrics component by removing unnecessary props. These changes improve code organization and maintainability.
2024-05-23 20:31:16 +01:00
Simon Larsen
df7bd46428
Remove unused isHeadRequest property in MonitorUtil and ApiMonitor 2024-05-23 13:40:34 +01:00
Simon Larsen
22f08a4c47
refactor: Add timeout information to monitor documentation 2024-05-22 12:26:16 +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