-
Notifications
You must be signed in to change notification settings - Fork 2k
Add support for the Google Firestore UserCreds resource. #15379
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
base: main
Are you sure you want to change the base?
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @BBBmau, 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. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_firestore_user_creds" "primary" {
resource_identity {
principal = # value needed
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 30 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 30 Click here to see the affected service packages
🟢 All tests passed! View the build log |
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.
the service label error can be ignored since the team signed up today, some things to consider in this review
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 30 Click here to see the affected service packages
🟢 All tests passed! View the build log |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Errors
|
Non-exercised tests🔴 Tests were added that are skipped in VCR:
Tests analyticsTotal tests: 0 Click here to see the affected service packages
🔴 Errors occurred during REPLAYING mode. Please fix them to complete your PR. View the build log |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 30 Click here to see the affected service packages
🟢 All tests passed! View the build log |
apologies for the late reply, needed to run the two acceptance tests in a teamcity build. After running the two they both show passing. |
Thanks, @BBBmau -- let me know if any additional action is required on my part. I'm new to the repo (and have limited experience with GitHub in general). :-) |
be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. | ||
required: true | ||
custom_flatten: 'templates/terraform/custom_flatten/name_from_self_link.tmpl' | ||
custom_expand: 'templates/terraform/custom_expand/shortname_to_url.go.tmpl' |
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.
what's the reason behind including these the custom_flatten
and custom_expand
? It looks like it's asking for just the id of the user credential so the case of someone providing an entire project/*/database/*
doesn't seem likely as its only asking for the id to use for the user cred being created.
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.
I based this on what the other Firestore resources that support a short name are doing:
custom_flatten: 'templates/terraform/custom_flatten/name_from_self_link.tmpl' |
But I believe it's necessary because the UserCreds
message has a name
field that contains the full project/*/database/*/userCreds/*
name.
If I remove these and manually test, I see POST requests to /v1/projects/eddavisson-2025/databases/terraform/userCreds/projects/eddavisson-2025/databases/terraform/userCreds/ed-tf4
in the logs (with projects/eddavisson-2025/databases/terraform/userCreds/ed-tf4
duplicated in the path), which is incorrect.
Add support for the Google Firestore UserCreds resource.