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

compute: added numeric_id to google_compute_network data source #12339

Merged

Conversation

wyardley
Copy link
Contributor

@wyardley wyardley commented Nov 15, 2024

Add numeric_id to google_compute_network data source, matching the resource.

Switch numeric_id to to be an integer internally Scrapped -- see comment below; other discussion here

I did some tests with the compute_subnetwork resource, and it doesn't seem like the switch to an integer breaks string interpolation, though it's possible this could be considered breaking in some other, more limited ways?

Followup to #12285
Part of hashicorp/terraform-provider-google#20223

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

compute: added `numeric_id` to the `google_compute_network` data source

@github-actions github-actions bot requested a review from rileykarson November 15, 2024 19:20
Copy link

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

@rileykarson, 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.

@github-actions github-actions bot requested a review from rileykarson November 15, 2024 20:55
Copy link

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

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson 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

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

Add `numeric_id` to `google_compute_network` data source, matching the
resource.

Switch `numeric_id` to to be an integer internally within the
`google_compute_network` resource for consistency with the API and with
`google_compute_subnetwork`.

Followup to GoogleCloudPlatform#12285
Part of hashicorp/terraform-provider-google#20223
@wyardley wyardley force-pushed the wyardley/network_numeric_id branch from c4d50f1 to 4175e36 Compare December 2, 2024 03:49
@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Dec 2, 2024
@wyardley
Copy link
Contributor Author

wyardley commented Dec 2, 2024

Hi @rileykarson - does this look right now?
See also the new linked issue I created.

@modular-magician modular-magician added service/compute-vpc and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Dec 2, 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, 16 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 16 insertions(+), 1 deletion(-))

Copy link
Member

@rileykarson rileykarson left a comment

Choose a reason for hiding this comment

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

That looks right! Running tests. We could also add network_id at-will, which could be a proper int, and deprecate numeric_id for it.

Honestly I'd probably advocate for just keeping numeric_id deprecated but around for a while as the cost to keep it is low and I'd prefer less churn, although that trades off some clarity for new users.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1069
Passed tests: 996
Skipped tests: 73
Affected tests: 0

Click here to see the affected service packages
  • compute

🟢 All tests passed!

View the build log

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