Skip to content
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

Add table aws_trusted_advisor_check_summary Closes #1831 #1978

Merged
merged 14 commits into from
Feb 13, 2024
Merged

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Nov 21, 2023

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results
Add example SQL query results here (please include the input queries as well)

@ParthaI ParthaI self-assigned this Nov 21, 2023
@ParthaI ParthaI marked this pull request as draft November 21, 2023 10:57
@ParthaI ParthaI linked an issue Nov 27, 2023 that may be closed by this pull request
@ParthaI
Copy link
Contributor Author

ParthaI commented Nov 27, 2023

I wasn't able to personally test the pull request because we lack a business, Enterprise On-Ramp, or Enterprise Support plan, which is required for making the DescribeTrustedAdvisorCheckSummaries API call. So the PR is in draft mode.

@ParthaI ParthaI requested a review from misraved November 28, 2023 05:28
@ParthaI ParthaI marked this pull request as ready for review November 28, 2023 05:29
@ParthaI
Copy link
Contributor Author

ParthaI commented Nov 28, 2023

This PR is good to review now. It has been tested by the user(#1831 (comment)).

Copy link
Contributor

@madhushreeray30 madhushreeray30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ParthaI please have a look at the comments, thanks!

Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale No recent activity has been detected on this issue/PR and it will be closed label Jan 27, 2024
@ParthaI ParthaI removed the stale No recent activity has been detected on this issue/PR and it will be closed label Jan 28, 2024
Copy link
Contributor

@misraved misraved left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ParthaI please take a look at the review comments. Thanks!!

}

input := &support.DescribeTrustedAdvisorChecksInput{
Language: aws.String("en"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ParthaI can this be considered as an optional qual?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@misraved, According to the API documentation, this parameter is necessary for making the API call. We can designate it as a required qualifier or as an optional qualifier with the default value set to en (if the user doesn't provide any value in the WHERE clause for it). By the way, the API does not return the 'Language' property in its response.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ParthaI I think we can update the table to use language as a required qual to best replicate the API behaviour.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, the PR by making the language column as required qual.

}

// List call
result, err := svc.DescribeTrustedAdvisorChecks(ctx, input)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the API support pagination?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the API does not support pagination

@misraved
Copy link
Contributor

@ParthaI could you please update the example queries to use the required language qual?

@misraved misraved merged commit 5d395ee into main Feb 13, 2024
1 check passed
@misraved misraved deleted the issue-1831 branch February 13, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add table aws_trusted_advisor_check_summary
4 participants