{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/7163","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/7163/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/7163/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/7163/events","html_url":"https://github.com/hashicorp/terraform/issues/7163","id":160240687,"number":7163,"title":"helper/schema: can't track changes to individual fields in a schema.Set","user":{"login":"jbardin","id":35067,"avatar_url":"https://avatars.githubusercontent.com/u/35067?v=3","gravatar_id":"","url":"https://api.github.com/users/jbardin","html_url":"https://github.com/jbardin","followers_url":"https://api.github.com/users/jbardin/followers","following_url":"https://api.github.com/users/jbardin/following{/other_user}","gists_url":"https://api.github.com/users/jbardin/gists{/gist_id}","starred_url":"https://api.github.com/users/jbardin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbardin/subscriptions","organizations_url":"https://api.github.com/users/jbardin/orgs","repos_url":"https://api.github.com/users/jbardin/repos","events_url":"https://api.github.com/users/jbardin/events{/privacy}","received_events_url":"https://api.github.com/users/jbardin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-14T17:39:49Z","updated_at":"2016-06-15T15:55:23Z","closed_at":null,"body":"Currently, when we have a logical resource in a `schema.Set` (e.g. an `ebs_block_device` in an `aws_instance`), and there are computed fields, we key the hash off the minimal unique set of fields. Because if this, changes to other fields of that set don't register as a diff. This not only prevents changes that require a new resource from being detected (changing the `volume_size` or `iops` of an `ebs_block_device` won't create a new instance and volume), but it prevents mutable fields like tags from being updated. \r\n\r\nThis ultimately prevents us from implementing features like #3531, where changes to a `tags` field would require an update.\r\n\r\n- Adding all fields by default to the hash value doesn't work, because computed fields change the hash value, so there is always a diff between the config and the state. \r\n\r\n- Adding only the fields mutable within the config to the hash value also doesn't work, because the new hash value still creates a new set in the diff, which will trigger the ForceNew for all the remaining fields.\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/226232677","html_url":"https://github.com/hashicorp/terraform/issues/7163#issuecomment-226232677","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/7163","id":226232677,"user":{"login":"jbardin","id":35067,"avatar_url":"https://avatars.githubusercontent.com/u/35067?v=3","gravatar_id":"","url":"https://api.github.com/users/jbardin","html_url":"https://github.com/jbardin","followers_url":"https://api.github.com/users/jbardin/followers","following_url":"https://api.github.com/users/jbardin/following{/other_user}","gists_url":"https://api.github.com/users/jbardin/gists{/gist_id}","starred_url":"https://api.github.com/users/jbardin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbardin/subscriptions","organizations_url":"https://api.github.com/users/jbardin/orgs","repos_url":"https://api.github.com/users/jbardin/repos","events_url":"https://api.github.com/users/jbardin/events{/privacy}","received_events_url":"https://api.github.com/users/jbardin/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T15:55:23Z","updated_at":"2016-06-15T15:55:23Z","body":"@apparentlymart, sorry forgot to link it -- serialization fixed in #7091"}}
{"actor":{"display_login":"jbardin"}}