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

Make type assertions more defensive on the secret manager datasources #11990

Conversation

abheda-crest
Copy link
Contributor

Refactor the Secret Manager datasources based on the comments received on the PR #11754:

  1. Make type assertions more defensive based on the comment
  2. Make the error messages returned from the function not capitalized based on the comment
  3. Added extra check to confirm if the response has the critical field like name based on the comment

Release Note Template for Downstream PRs (will be copied)

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Oct 14, 2024
@abheda-crest abheda-crest changed the title Refactor the secret manager datasources Make type assertions more defensive on the secret manager datasources Oct 14, 2024
@abheda-crest abheda-crest marked this pull request as ready for review October 14, 2024 09:24
@github-actions github-actions bot requested a review from NickElliot October 14, 2024 09:25
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@NickElliot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician modular-magician added service/secretmanager and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Oct 14, 2024
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 96 insertions(+), 57 deletions(-))
google-beta provider: Diff ( 4 files changed, 96 insertions(+), 57 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 84
Passed tests: 80
Skipped tests: 4
Affected tests: 0

Click here to see the affected service packages
  • secretmanager
  • secretmanagerregional

🟢 All tests passed!

View the build log

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Oct 16, 2024
@abheda-crest
Copy link
Contributor Author

@NickElliot Could you please review this PR?

Copy link

@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Oct 18, 2024
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 96 insertions(+), 57 deletions(-))
google-beta provider: Diff ( 4 files changed, 96 insertions(+), 57 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 84
Passed tests: 80
Skipped tests: 4
Affected tests: 0

Click here to see the affected service packages
  • secretmanager
  • secretmanagerregional

🟢 All tests passed!

View the build log

Copy link

@GoogleCloudPlatform/terraform-team @NickElliot This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link
Contributor

@NickElliot NickElliot left a comment

Choose a reason for hiding this comment

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

sorry for the delay, but the changes LGTM! @trodge does this look like it aligns with what you were suggesting in the previous PR?

Copy link

This PR is approved and has been waiting for merge for 1 week. Is it ready to merge? Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Nov 4, 2024

@NickElliot This PR is approved and has been waiting for merge for 2 weeks. Is it ready to merge? Use the label disable-review-reminders to disable these notifications.

@abheda-crest
Copy link
Contributor Author

Hi @trodge, @NickElliot has approved the PR. Could you please take a final look? Thank you!

@github-actions github-actions bot requested a review from NickElliot November 5, 2024 05:45
Copy link

github-actions bot commented Nov 7, 2024

@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants