Skip to content

Commit e9c261f

Browse files
committed
helper/schema: deprecate ResourceData.SetPartial()
helper/schema: deprecate ResourceData.Partial()
1 parent 7f53d13 commit e9c261f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

helper/schema/resource_data.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ func (d *ResourceData) HasChange(key string) bool {
162162
// When partial state mode is enabled, then only key prefixes specified
163163
// by SetPartial will be in the final state. This allows providers to return
164164
// partial states for partially applied resources (when errors occur).
165+
//
166+
// Deprecated: Partial state has very limited benefit given Terraform refreshes
167+
// before operations by default.
165168
func (d *ResourceData) Partial(on bool) {
166169
d.partial = on
167170
if on {
@@ -211,6 +214,9 @@ func (d *ResourceData) Set(key string, value interface{}) error {
211214
//
212215
// If partial state mode is disabled, then this has no effect. Additionally,
213216
// whenever partial state mode is toggled, the partial data is cleared.
217+
//
218+
// Deprecated: Partial state has very limited benefit given Terraform refreshes
219+
// before operations by default.
214220
func (d *ResourceData) SetPartial(k string) {
215221
if d.partial {
216222
d.partialMap[k] = struct{}{}

0 commit comments

Comments
 (0)