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

Added support for CustomizeDiff for resource_share #3540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tanmay-db
Copy link
Contributor

@tanmay-db tanmay-db commented May 3, 2024

Changes

We are trying to see whether using CustomizeDiff works since using force_new isn't for any object update isn't feasible. This is a followup to the PR: #3529

Please see the highlighted comment below.

This is a great use case for prioritising moving towards using terraform plugin framework (#3510) as we can access config, state and plan easily: https://developer.hashicorp.com/terraform/plugin/framework/handling-data/accessing-values whereas here we would have to use more hacks and it would lead to piling up of technical debt even if we get to have it working somehow.

This situation could occur for other similar resources with lists.

Tests

Integration test

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • relevant acceptance tests are passing
  • using Go SDK

@tanmay-db tanmay-db requested review from a team as code owners May 3, 2024 01:34
@tanmay-db tanmay-db requested review from mgyucht and removed request for a team May 3, 2024 01:34
if newObject["name"] == objectsListOld[i]["name"] && newObject["data_object_type"] == objectsListOld[i]["data_object_type"] {
for k := range objectSchemaMap {
oldFieldVal := objectsListOld[i][k]
// To Discuss:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Highlight

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.

None yet

1 participant