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

SDKv2 to Framework Migration #112

Merged
merged 78 commits into from
Oct 11, 2022
Merged

SDKv2 to Framework Migration #112

merged 78 commits into from
Oct 11, 2022

Conversation

SBGoods
Copy link
Contributor

@SBGoods SBGoods commented Aug 4, 2022

  • Migrates Time provider and all resources to Framework v0.13.0
  • Refactors tests to use resource.TestCheckResourceAttrSet helper function
  • Adds tests to compare Framework and SDKv2 versions of provider to ensure that there are no differences

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Aug 4, 2022
Copy link
Contributor

@bendbennett bendbennett left a comment

Choose a reason for hiding this comment

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

LGTM
Great work Selena!

Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looks good to me from a high level (I'm assuming @bendbennett has gone through all the lower level details). 🚀

Please reach out with any questions from my additional feedback, which is fairly minor in nature.

internal/provider/resource_time_offset.go Outdated Show resolved Hide resolved
internal/provider/resource_time_offset_test.go Outdated Show resolved Hide resolved
internal/provider/resource_time_offset_test.go Outdated Show resolved Hide resolved
internal/provider/resource_time_rotating.go Outdated Show resolved Hide resolved
internal/provider/resource_time_sleep_test.go Outdated Show resolved Hide resolved
internal/provider/resource_time_sleep_test.go Outdated Show resolved Hide resolved
internal/validators/timevalidator/is_rfc3339_time.go Outdated Show resolved Hide resolved
internal/modifiers/timemodifier/replace_if_outdated.go Outdated Show resolved Hide resolved
@SBGoods SBGoods merged commit ea34431 into main Oct 11, 2022
@SBGoods SBGoods deleted the sdkv2ToFrameworkMigration branch October 11, 2022 18:10
@SBGoods SBGoods linked an issue Nov 7, 2022 that may be closed by this pull request
minamijoyo added a commit to minamijoyo/tfmigrate that referenced this pull request Nov 25, 2022
While implementing #111, we noticed that the import acceptance test for
the `tfexec` package failed.
#111 (comment)

After investigation, I found that the time provider was significantly
rewritten in v0.9.0 to migrate to the new `terraform-plugin-framework`.
hashicorp/terraform-provider-time#112

As a result, the implementation of import for the `time_static` resource
now implicitly sets the `triggers` attribute to an empty map `{}`
instead of `null`.

I’m not sure if this change was intentional or not, though; we can
simply accept this change because there is no essential difference as
long as the import success with no change.
minamijoyo added a commit to minamijoyo/tfmigrate that referenced this pull request Nov 25, 2022
While implementing #111, we noticed that the import acceptance test for
the `tfexec` package failed.
#111 (comment)

After investigation, I found that the time provider was significantly
rewritten in v0.9.0 to migrate to the new `terraform-plugin-framework`.
hashicorp/terraform-provider-time#112

As a result, the implementation of import for the `time_static` resource
now implicitly sets the `triggers` attribute to an empty map `{}`
instead of `null`.

I’m not sure if this change was intentional or not, though; we can
simply accept this change because there is no essential difference as
long as the import success with no change.
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to terraform-plugin-framework
3 participants