-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 Sql Server Timezone Update Support #11202
Add Sql Server Timezone Update Support #11202
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @shuyama1, 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. |
@shuyama1 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 1 week. Please take a look! Use the label |
Tests analyticsTotal tests: 95 Click here to see the affected service packages
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
|
|
@@ -1972,7 +1972,32 @@ func resourceSqlDatabaseInstanceUpdate(d *schema.ResourceData, meta interface{}) | |||
} | |||
} | |||
|
|||
return resourceSqlDatabaseInstanceRead(d, meta) | |||
// Check if timezone is updated. |
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.
We'll need to remove ForceNew: true
from time_zone
, otherwise, Terraform will always delete/recreate the resource if time_zone
is changed.
@@ -2044,6 +2044,31 @@ func TestAccSqlDatabaseInstance_rootPasswordShouldBeUpdatable(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func TestAccSqlDatabaseInstance_SqlServerTimezone(t *testing.T) { |
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.
This test only checks the creation/deletion of the resource. https://googlecloudplatform.github.io/magic-modules/develop/test/test/#add-an-update-test should cover more details on update tests. Please let me know if you have any questions adding the tests
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.
Thanks for the update. Would you mind rebasing your PR to resolve the merge conflicts and add an update test for the field? See #11202 (comment) for update test details. Thank you!
0d7106a
to
a3439cd
Compare
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: 97 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
|
|
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 VCR test failed with error:
vcr_utils.go:152: Step 3/4 error: Error running apply: exit status 1
Error: Error, failed to update instance settings for : googleapi: Error 400: Invalid request: Time zone cannot be changed after an instance is created., invalid
with google_sql_database_instance.instance,
on terraform_plugin_test.tf line 2, in resource "google_sql_database_instance" "instance":
2: resource "google_sql_database_instance" "instance" {
Do you happen to know if in-place update is fully supported for the time_zone
now?
The unit tests failed at lint checks. Details at https://github.com/GoogleCloudPlatform/magic-modules/actions/runs/10171954004/job/28133790678?pr=11202
Please let me know if you need help with debugging the issues.
@stameishiGoogle from you GH account name, I assume that you're a googler. If so, you can follow the internal instruction to get your account registered so that the tests will get triggered automatically for your PR for faster feedback. |
Followed the internal instructions to register my account with the Google organization - Also ran gofmt on resource_sql_database_instance_test.go In place update is not yet fully supported. These changes are currently being worked on |
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: 98 Click here to see the affected service packages
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
|
|
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.
Thanks @stameishiGoogle for the update. LGTM overall. We'll need to wait until the feature's fully supported to get the test passed and then get the PR merged after. Please ping me when the feature is released. Thank you!
@stameishiGoogle, this PR is waiting for action from you. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. If no action is taken, this PR will be closed in 28 days. This notification can be disabled with the |
2576272
to
8d7ac3f
Compare
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: 98 Click here to see the affected service packages
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
|
|
As of this morning, the feature should be fully rolled out! @shuyama1 |
/gcbrun |
mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go
Outdated
Show resolved
Hide resolved
…instance_test.go Co-authored-by: Shuya Ma <87669292+shuyama1@users.noreply.github.com>
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.
|
1 similar comment
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: 97 Click here to see the affected service packages
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
|
1 similar comment
Tests analyticsTotal tests: 97 Click here to see the affected service packages
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
|
|
|
Release Note Template for Downstream PRs (will be copied)