Normalize name field#8360
Conversation
|
Which test has the problem, @trodge ? Is this one TestAccMonitoringMonitoredProject_monitoringMonitoredProjectBasicExample? |
|
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. Terraform GA: Diff ( 2 files changed, 9 insertions(+), 4 deletions(-)) |
|
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. Terraform GA: Diff ( 4 files changed, 61 insertions(+), 9 deletions(-)) |
|
Add a secondary reviewer @slevenick |
| immutable: true | ||
| error_retry_predicates: ['transport_tpg.IsMonitoringPermissionError'] | ||
| custom_code: !ruby/object:Provider::Terraform::CustomCode | ||
| custom_import: templates/terraform/custom_import/monitoring_monitored_project.go.erb |
There was a problem hiding this comment.
Why do we need a custom import here? Is it only to support importing with the v1/ prefix?
There was a problem hiding this comment.
It's there to shorten the name and metrics_scope fields in the import id.
| delete_url: v1/locations/global/metricsScopes/{{metrics_scope}}/projects/{{name}} | ||
| self_link: v1/locations/global/metricsScopes/{{metrics_scope}} | ||
| id_format: v1/locations/global/metricsScopes/{{metrics_scope}}/projects/{{name}} | ||
| id_format: locations/global/metricsScopes/{{metrics_scope}}/projects/{{name}} |
There was a problem hiding this comment.
I think we need an upgrade state function to make sure any of these resources that were created with the v1/ prefix are moved to the correct id format
Tests analyticsTotal tests: 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 testsTestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules|TestAccMonitoringMonitoredProject_monitoringMonitoredProjectLongFormExample |
|
Rerun these tests in REPLAYING mode to catch issues
|
238962d to
1c2aedb
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. Terraform GA: Diff ( 3 files changed, 111 insertions(+), 9 deletions(-)) |
Tests analyticsTotal tests: 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 testsTestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules |
|
|
slevenick
left a comment
There was a problem hiding this comment.
LGTM, I tried out the upgrade path from 4.70.0 --> 4.73.1 --> this version manually and it works
* Normalize name field * Fix import * Support previous import id * Also shorten name in encoder * Add long form test * Add upgrade state function
* Normalize name field * Fix import * Support previous import id * Also shorten name in encoder * Add long form test * Add upgrade state function
* Normalize name field * Fix import * Support previous import id * Also shorten name in encoder * Add long form test * Add upgrade state function
* Normalize name field * Fix import * Support previous import id * Also shorten name in encoder * Add long form test * Add upgrade state function
If this PR is for Terraform, I acknowledge that I have:
make testandmake lintin the generated providers to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)