terraform-visual icon indicating copy to clipboard operation
terraform-visual copied to clipboard

Improve view of large and complex plans

Open tgoff opened this issue 4 years ago • 2 comments

When there are a lot of changes in the plan, it is very hard to see what is changing without a lot of zooming. In order to get everything on one screen (and be able to take a screen shot for records) I end up collapsing some of the nodes. It would be nice if on collapsing, the color of a node would match the changes under it. e.g. green for a node that has only addition under it, green and yellow for one that has both additions and updates, etc. This way I could easily see "module A has a bunch of additions under it, module B has updates, and module C has some deletions"

This is a really awesome project BTW!

tgoff avatar Oct 15 '20 14:10 tgoff

Just found this, and the plan I am looking at is gigantic (more than 200 changes). Other improvements for large and complex plans:

  1. Better utilization of large screens (I have a large monitor and the sides are clipped:image

  2. Remove levels with the name module for example: module.muse2.module.network.module.nsg_rules.... There is a level in the tree for each module. Perhaps the best way to do this is have name of each node in the tree be module.module_name

  3. A filter capability. I am working in Azure and there is a change that shows up that is an artifact of how Azure and Terraform describe CIDRs. I would love an easy way to filter those changes out (maybe with a right click)

  4. A button to collapse everything, including sub-trees. That way, when I expand, the tree stays collapsed.

  5. A table view (Kind of like a pivot table) with an expand option and column filters.

I must say, this thing is seriously cool!

RacerEXE avatar Oct 16 '20 03:10 RacerEXE

I gave this issue a :+1:, but on reflection I wonder if this wouldn't encourage rolling out many changes at once?

That could be considered 'not-great' practice. In addition, a concise 'summarized' graph hides the complexity of a plan for anyone reviewing.

For those two reasons, if this is implemented, perhaps make this opt-in with a flag --hide-details, or some such configuration switch.

bbros-dev avatar Nov 02 '20 22:11 bbros-dev