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

[Issue #3999] add graceful decommissioning timeout to dataproc resource #4122

Conversation

jaketf
Copy link

@jaketf jaketf commented Jul 26, 2019

This PR is to address #3999.

This is my first PR and I expect that I'm missing test cases etc.
Please advise if I should make this PR upstream in magic modules (I could not find a dataproc product there).

@ghost ghost added the size/xs label Jul 26, 2019
@danawillow danawillow self-requested a review August 13, 2019 21:13
Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

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

Hi @jaketf! Making the PR here is fine; I can upstream it to MM once it's ready. If you did want to add it in MM, the file is at https://github.com/GoogleCloudPlatform/magic-modules/blob/master/third_party/terraform/resources/resource_dataproc_cluster.go.erb.

I'd also appreciate a test in resource_dataproc_cluster_test.go, and documentation in dataproc_cluster.html.markdown. For the test, since this is a property specific to the update call and not something that can be read back from the resource, I don't have a great sense of what the test would look like, but maybe you can think of something that would fail without it sent. If not, I still think having a test where it exists so we know we called the API correctly would still be useful.

There's some information at https://github.com/terraform-providers/terraform-provider-google/blob/master/.github/CONTRIBUTING.md#tests on how to run tests. Let me know if you have any questions!

@@ -717,6 +717,7 @@ func resourceDataprocClusterUpdate(d *schema.ResourceData, meta interface{}) err
region := d.Get("region").(string)
clusterName := d.Get("name").(string)
timeoutInMinutes := int(d.Timeout(schema.TimeoutUpdate).Minutes())
gracefulDecommissionTimeout := d.Get("gracefulDecommisionTimeout").(string)
Copy link
Contributor

Choose a reason for hiding this comment

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

In order to read this property, it needs to be in the schema defined at the top of the file

@danawillow
Copy link
Contributor

Oh also, fun github fact, if you say "fixes #x" in your PR description or commit message, it'll automatically close the linked issue once the PR is merged.

@danawillow
Copy link
Contributor

Hey again @jaketf, I just noticed you already made the PR in magic modules too (GoogleCloudPlatform/magic-modules#2110). I'm going to close this out so that there's only one PR for the feature, but my comment above still applies.

@danawillow danawillow closed this Aug 15, 2019
@ghost
Copy link

ghost commented Sep 15, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 15, 2019
@ghost ghost removed the waiting-response label Sep 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants