opentofu/internal/plans
Martin Atkins 4cffff24b1 core: Report reason for deferring data read until apply
We have two different reasons why a data resource might be read only
during apply, rather than during planning as usual: the configuration
contains unknown values, or the data resource as a whole depends on a
managed resource which itself has a change pending.

However, we didn't previously distinguish these two in a way that allowed
the UI to describe the difference, and so we confusingly reported both
as "config refers to values not yet known", which in turn led to a number
of reasonable questions about why Terraform was claiming that but then
immediately below showing the configuration entirely known.

Now we'll use our existing "ActionReason" mechanism to tell the UI layer
which of the two reasons applies to a particular data resource instance.
The "dependency pending" situation tends to happen in conjunction with
"config unknown", so we'll prefer to refer that the configuration is
unknown if both are true.
2022-05-09 11:12:47 -07:00
..
internal/planproto core: Report reason for deferring data read until apply 2022-05-09 11:12:47 -07:00
objchange add test for planing unknown data source values 2021-10-05 12:31:23 -04:00
planfile core: Report reason for deferring data read until apply 2022-05-09 11:12:47 -07:00
action_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
action.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
changes_src.go command: Render "moved" annotations in plan UI 2021-09-03 17:44:07 -04:00
changes_state.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_sync.go Merge pull request #30900 from hashicorp/jbardin/replace-triggered-by 2022-04-22 14:36:42 -04:00
changes_test.go command: Render "moved" annotations in plan UI 2021-09-03 17:44:07 -04:00
changes.go core: Report reason for deferring data read until apply 2022-05-09 11:12:47 -07:00
conditions.go core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
doc.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
dynamic_value.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
plan_test.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
plan.go core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
resourceinstancechangeactionreason_string.go core: Report reason for deferring data read until apply 2022-05-09 11:12:47 -07:00