Show Terraform state deleted status in UI
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
How to set up and validate locally
- 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)
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #349011 (closed)
Edited by Tiger Watson