-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fixes issue #21346 related to google_chronicle_rule_deployment resource #13080
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
Fixes issue #21346 related to google_chronicle_rule_deployment resource #13080
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @slevenick, 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.
|
Some more context on the PR: Currently, for terraform to know about it, we make a PATCH call (underneath what we call the terraform's create call - first call made by terraform for ruledeployment resource). This makes terraform aware of what the state of resource is. So the issues addressed in the attached github issue were due to this reason. As a fix, I have added custom create code to it, which basically reads the ruledeployment resource first (before the PATCH call), and then compares the user terraform code with the current state of the resource, and hence only sends PATCH calls for the updates that the user makes. This resolves the issue specified in the issue (enabled is already false, OR run_frequency is already LIVE) because we only make the PATCH call for the differences between the user terraform code and ruledeployment state. |
Tests analyticsTotal tests: 21 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🟢 All tests passed! |
mmv1/templates/terraform/custom_create/chronicle_rule_deployment.go.tmpl
Outdated
Show resolved
Hide resolved
The failed unit tests seem to be unrelated to my change to chronicle resource: https://screenshot.googleplex.com/3BU33jRCz8PBpm6 |
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: 21 Click here to see the affected service packages
🟢 All tests passed! View the build log |
@slevenick Tagging this for visibility. |
93672dd
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.