-
Notifications
You must be signed in to change notification settings - Fork 232
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
Remove Removed and prune related code #414
Conversation
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.
Does Removed
have any affect on state migrations?
@@ -94,23 +92,6 @@ func testStepNewImportState(t testing.T, c TestCase, wd *tftest.WorkingDir, step | |||
r.Primary.ID) | |||
} | |||
|
|||
// We'll try our best to find the schema for this resource type |
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.
Not sure on this deletion, this was copy pasted directly from the old implementation of the acctest framework.
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 can let @kmoe chime in on this, but I think it was just to avoid the diff mismatch in import tests.
@appilon not as far as I can tell. I simulated manually adding an unrecognized field to state, and its ignored silently. So I don't think it serves any purpose. |
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.
If we can quickly confirm import tests are unaffected I'm fine with merging. |
Needs a rebase after recent PR being merged |
f19078c
to
529b360
Compare
Rebased |
Here is a test run with import tests referencing this commit, it has no removed attributes though: https://github.com/paultyng/terraform-provider-unifi/actions/runs/91531504 |
…rce).SchemasForFlatmapPath() as Deprecated Reference: hashicorp#414 Reference: https://github.com/golang/go/wiki/Deprecated The `Removed` field and associated handling has been removed in version 2.
…rce).SchemasForFlatmapPath() as Deprecated Reference: #414 Reference: https://github.com/golang/go/wiki/Deprecated The `Removed` field and associated handling has been removed in version 2.
…attribute Removed usage Reference: hashicorp/terraform-plugin-sdk#414 It will be removed in version 2 of the SDK, so we should no longer encourage its usage as a best practice.
Fan out relating to this:
|
Thanks @bflad! |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
No description provided.