-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: aws integration UI facing api: services #6803
base: main
Are you sure you want to change the base?
Conversation
6cf92b5
to
dc5f991
Compare
@@ -0,0 +1,30 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Placeholder data for now. To be detailed in follow up changes
@@ -0,0 +1,30 @@ | |||
{ | |||
"id": "ec2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Placeholder data for now. To be detailed in follow up changes
…lable svcs and some cleanup
…provider services
…en queried for cloud account id
…oud account can be configured
dc5f991
to
917cdd6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 917cdd6 in 1 minute and 41 seconds
More details
- Looked at
1430
lines of code in14
files - Skipped
2
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. pkg/query-service/tests/integration/signoz_cloud_integrations_test.go:130
- Draft comment:
Consider adding tests for error scenarios, such as configuring a service for a non-connected account or an unsupported service, to improve coverage. - Reason this comment was not posted:
Confidence changes required:50%
The test functionTestAWSIntegrationServices
is missing tests for error scenarios, such as trying to configure a service for a non-connected account or an unsupported service. Adding these tests would improve coverage and robustness.
2. pkg/query-service/app/cloudintegrations/serviceConfigRepo.go:1
- Draft comment:
Avoid using thecomponent/index.tsx
file structure approach, as it makes it difficult to debug and find components using global search tools like VS Code. This is applicable in other files as well. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_k9zPriTPQVEAK70X
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
cloudAccountId = &cloudAccountIdQP | ||
} | ||
|
||
resp, apiErr := aH.CloudIntegrationsController.GetServiceDetails( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
connection status in service details will be taken up in a follow up change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on d6da8a6 in 27 seconds
More details
- Looked at
14
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. pkg/query-service/app/cloudintegrations/controller_test.go:183
- Draft comment:
Good practice to check forCloudAccountId
not being nil before dereferencing. - Reason this comment was not posted:
Confidence changes required:0%
The change in the testTestConfigureService
adds a check forCloudAccountId
being not nil before comparing it withtestCloudAccountId
. This is a good practice to avoid potential nil pointer dereference errors.
Workflow ID: wflow_xBtlFjCbqZlFsVPp
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Summary
Adds APIs for listing and configuring cloud services for AWS integration
Related Issues / PR's
Contributes to #6544
Important
Add APIs and models for AWS cloud service integration, including service listing, detail retrieval, and configuration updates, with corresponding tests.
ListServices
,GetServiceDetails
, andUpdateServiceConfig
functions incontroller.go
for AWS cloud services.http_handler.go
for listing, retrieving details, and updating service configurations.CloudServiceSummary
,CloudServiceDetails
, andCloudServiceConfig
inmodel.go
.serviceConfigRepository
interface and implementation inserviceConfigRepo.go
.EC2
andRDS Postgres
inserviceDefinitions/aws/
.signoz_cloud_integrations_test.go
for service listing, detail retrieval, and configuration updates.repo.go
toaccountsRepo.go
andInitSqliteDBIfNeeded
toinitAccountsSqliteDBIfNeeded
.This description was created by for d6da8a6. It will automatically update as commits are pushed.