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: allow locations and private_locations to be set to empty lists [sc-23129] #305

Conversation

sorccu
Copy link
Contributor

@sorccu sorccu commented Jan 31, 2025

Previously, applying these values with non-empty lists and then attempting to apply them again with empty lists would keep the previously applied non-empty list due to a JSON serialization oversight in the Go SDK and API oddities.

Affected Components

  • Resources
  • Test
  • Docs
  • Tooling
  • Other

Pre-Requisites

  • Terraform code is formatted with terraform fmt
  • Go code is formatted with go fmt
  • plan & apply command of demo/main.tf file do not produce diffs

Notes for the Reviewer

Resolves #[issue-number]

New Dependency Submission

Antoine-C
Antoine-C previously approved these changes Jan 31, 2025
@sorccu sorccu force-pushed the simokinnunen/sc-23129/checkly-go-sdk-omitempty-for-locations-causes branch from 13d7eb9 to cfd0648 Compare February 3, 2025 11:49
Previously, applying these values with non-empty lists and then attempting to
apply them again with empty lists would keep the previously applied non-empty
list due to a JSON serialization oversight.
@sorccu sorccu force-pushed the simokinnunen/sc-23129/checkly-go-sdk-omitempty-for-locations-causes branch from cfd0648 to b9d0b21 Compare February 3, 2025 13:06
@sorccu sorccu merged commit 9026040 into main Feb 3, 2025
6 checks passed
@sorccu sorccu deleted the simokinnunen/sc-23129/checkly-go-sdk-omitempty-for-locations-causes branch February 3, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants