Implement compute instance groups plural datasource#17929
Conversation
|
Googlers: For automatic test runs see go/terraform-auto-test-runs. @roaks3, 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 for commit 51219e0: Diff reportYour PR generated the following diffs in downstream repositories:
Missing doc report (experimental)The following data sources are missing documents:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
View the replaying VCR build log Step 2: Recording Mode
🟢 All tests passed! View the recording VCR build log or the debug logs folder for detailed results. @olpapchenko, @roaks3 VCR tests complete for 51219e0! |
roaks3
left a comment
There was a problem hiding this comment.
Very high-level initial comment, but I think we'd want a documentation page for this?
51219e0 to
670d89a
Compare
Added documentation. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 670d89a: Diff reportYour PR generated the following diffs in downstream repositories:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode 🟢 All tests passed in Replaying mode! No Recording was needed. View the replaying VCR build log @olpapchenko, @roaks3 VCR tests complete for 670d89a! |
|
@roaks3 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
roaks3
left a comment
There was a problem hiding this comment.
LGTM, although we should convert to HTTP client to avoid introducing something that will need to immediately change (compute is in-progress on a large migration to HTTP clients)
|
|
||
| instanceGroups := make([]map[string]interface{}, 0) | ||
|
|
||
| instanceGroupsList, err := NewClient(config, userAgent).InstanceGroups.List(project, zone).Filter(filter).Do() |
There was a problem hiding this comment.
It looks like the instance_group resource and datasource were already migrated to using HTTP clients. Could you modify this to do the same, so that it doesn't need to be converted in the near-term by someone else?
There was a problem hiding this comment.
I have changed the implementation to http, + added pagination support.
670d89a to
72010f8
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 72010f8: Diff reportYour PR generated the following diffs in downstream repositories:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode 🟢 All tests passed in Replaying mode! No Recording was needed. View the replaying VCR build log @olpapchenko, @roaks3 VCR tests complete for 72010f8! |
roaks3
left a comment
There was a problem hiding this comment.
LGTM, just added a few notes from comparing implementation against existing datasource and resource
| var network string | ||
| if v, ok := ig["network"].(string); ok && v != "" { | ||
| var err error | ||
| network, err = tpgresource.GetRelativePath(v) |
There was a problem hiding this comment.
Just a couple comments on the custom transforms here: is this part needed? It looked to me like the singular datasource and resource do not do this (might have missed something though)
72010f8 to
fdb0ad9
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit fdb0ad9: Diff reportYour PR generated the following diffs in downstream repositories:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode 🟢 All tests passed in Replaying mode! No Recording was needed. View the replaying VCR build log @olpapchenko, @roaks3 VCR tests complete for fdb0ad9! |
Fixes hashicorp/terraform-provider-google#18941