Skip to content

TFC: Reflect nesting levels (module / resource type / instance) #1638

Open
@radeksimko

Description

@radeksimko

Background

In #1590 we introduced a panel which displays structured plan log in the form of a tree. For example:

Screenshot 2023-11-20 at 15 00 32

As shown in the screenshot ^, such a tree can be difficult to navigate if there are many resources in the plan.

Proposal

  • Consider folding resources under their respective module (e.g. anything like module.workspaces.* under module.workspaces per above example)
  • Consider folding resource instances under their respective resource types (e.g. anything like *.tfe_workspace.config_a[*] under tfe_workspace.config_a)

Implementation Notes

The big hurdle and main reason this was omitted from #1590 initially is because the nesting introduces a new problem of mixed actions. For example, one resource instance under the same module or type can be created, another modified and yet another deleted. It is unclear how to best represent such a scenario in the tree view and whether we should be showing a particular icon or avoid attaching any icons at all.

TL;DR The UX implications here is the hard part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestterraform-cloudFeatures or bugs related to TFC integration in the editor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions