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

fix: Update vsphere_content_library defaults for subscribed libraries #1502

Closed
wants to merge 5 commits into from
Closed

fix: Update vsphere_content_library defaults for subscribed libraries #1502

wants to merge 5 commits into from

Conversation

tenthirtyam
Copy link
Collaborator

@tenthirtyam tenthirtyam commented Oct 27, 2021

Description

  • Sets automatic_sync as Default: true to align with the default behavior in the vSphere UI. Sets on_demand as Default: false

Acceptance tests

  • Have you added an acceptance test for the functionality being added?
  • Have you run the acceptance tests on this branch?

None. Performed a go get and go build to perform positive and negative unit tests.

Release Note

⚠️ Breaking Changes

References

Resolves #1426 by @tenthirtyam.

@github-actions github-actions bot added documentation Type: Documentation size/m Relative Sizing: Medium labels Oct 27, 2021
@@ -113,13 +113,13 @@ func resourceVSphereContentLibrary() *schema.Resource {
Type: schema.TypeBool,
ForceNew: true,
Optional: true,
Default: true,
Default: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

I will have to brush up on the subtleties of this situation, I also don't have full context on the provider/product yet, but this change could be perceived as a breaking change?

What happens to users who had both this field and automatic_sync unset?

Copy link
Collaborator Author

@tenthirtyam tenthirtyam Nov 25, 2021

Choose a reason for hiding this comment

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

As I recall, it will default to on_demand still.

Yes, it could be perceived as a breaking change, but the current experience is opposite of the product defaults.

Happy to help in any way - message me, if needed.

Ryan

@github-actions github-actions bot added the provider Type: Provider label Dec 12, 2021
@tenthirtyam
Copy link
Collaborator Author

Let me know if you have any additional question @appilon - happy to review over Zoom, too. :)

@tenthirtyam tenthirtyam added breaking-change Status: Breaking Change planned labels Feb 3, 2022
@github-actions github-actions bot added size/xs Relative Sizing: Extra-Small and removed size/m Relative Sizing: Medium labels Feb 8, 2022
@tenthirtyam tenthirtyam added this to the v3.0.0 milestone Feb 14, 2022
@tenthirtyam tenthirtyam added the area/content-library Area: Content Library label Feb 22, 2022
@tenthirtyam tenthirtyam changed the title Fix vsphere_content_library defaults for subscribed libraries fix: Update vsphere_content_library defaults for subscribed libraries Mar 11, 2022
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

@tenthirtyam tenthirtyam marked this pull request as draft September 11, 2022 21:51
@tenthirtyam
Copy link
Collaborator Author

Converted to draft to avoid accidental merge before next major.

Ryan Johnson
Senior Staff Solutions Architect | Product Engineering @ VMware, Inc.

@tenthirtyam tenthirtyam added the bug Type: Bug label Aug 7, 2023
@tenthirtyam tenthirtyam assigned tenthirtyam and unassigned appilon Aug 7, 2023
@tenthirtyam tenthirtyam marked this pull request as ready for review October 15, 2023 22:34
@tenthirtyam tenthirtyam requested a review from a team as a code owner October 15, 2023 22:34
Ryan Johnson and others added 5 commits October 15, 2023 18:38
Addresses #1426 by @tenthirtyam.
- Sets `automatic_sync` as `Default: true` to align with the default behavior in the vSphere UI. Sets `on_demand` as `Default: false`
- Updates the content of the documentation - `content_library.html.markdown` - for readability, context, and accuracy.
- Updates the content of the documentation - `content_library.html.markdown` - with subscribed library example.

Signed-off-by: Ryan Johnson <[email protected]>
- Update subscribed content library example.
- Update examples to use `storage_backing = toset([data.vsphere_datastore.datastore.id])` as a set is required. Addresses #1351.

Signed-off-by: Ryan Johnson <[email protected]>
Updates the examples to use `storage_backing = toset([data.vsphere_datastore.datastore.id])` as a set is required.

Signed-off-by: Ryan Johnson <[email protected]>
@github-actions github-actions bot removed the documentation Type: Documentation label Oct 15, 2023
@tenthirtyam tenthirtyam deleted the fix-content-library-defaults branch October 15, 2023 22:41
@tenthirtyam tenthirtyam removed this from the v3.0.0 milestone Nov 10, 2023
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 issues. 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 Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/content-library Area: Content Library breaking-change Status: Breaking Change bug Type: Bug provider Type: Provider size/xs Relative Sizing: Extra-Small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vsphere_content_library resource sets on_demand = true when automatic_sync = true
3 participants