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

command/views: Remove baseState argument from plan-rendering views #28656

Merged
merged 1 commit into from
May 10, 2021

Conversation

apparentlymart
Copy link
Contributor

In practice the current implementation isn't actually using this, and if we need access to states in future we can access them in either the plan.PriorState or plan.PrevRunState fields, depending on which stage we want a state snapshot of.

(Technically these two plan fields aren't reliably available until we also merge #28653, but that's moot here because the current view code doesn't access either of them anyway. #28634 will eventually make use of this to produce the "Objects have changed outside of Terraform" bit, though.)

In practice the current implementation isn't actually using this, and if
we need access to states in future we can access them in either the
plan.PriorState or plan.PrevRunState fields, depending on which stage we
want a state snapshot of.
@apparentlymart apparentlymart added enhancement cli 0.15-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged labels May 8, 2021
@apparentlymart apparentlymart requested a review from a team May 8, 2021 00:08
@apparentlymart apparentlymart self-assigned this May 8, 2021
@apparentlymart apparentlymart removed the 0.15-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label May 10, 2021
@apparentlymart apparentlymart merged commit b38f330 into main May 10, 2021
@apparentlymart apparentlymart deleted the f-plan-view-no-state branch May 10, 2021 16:25
@apparentlymart
Copy link
Contributor Author

Backported to v0.15 as fd8316e

@github-actions
Copy link
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants