Skip to content

Show Terraform state deleted status in UI

Tiger Watson requested to merge 349011-show-terraform-deleting-status-in-ui into master

What does this MR do and why?

When a Terraform state is marked for deletion, there is a (usually) short window where the state will still show in the UI because the background worker hasn't finished removing it yet. To show this, we add a badge similar to when a state is locked.

Screenshots or screen recordings

Screen_Shot_2022-06-03_at_9.29.59_am

How to set up and validate locally

  1. Using the Rails console, create a Terraform state that is marked for deletion:
      > Terraform::State.create!(project_id: <project-id>, name: 'test-state', deleted_at: Time.current)
  2. Visit http://path/to/project/-/terraform

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #349011 (closed)

Edited by Tiger Watson

Merge request reports