Skip to content
Snippets Groups Projects

Show Terraform state deleted status in UI

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Frédéric Caplette removed review request for @f_caplette

    removed review request for @f_caplette

  • Hordur Freyr Yngvason approved this merge request

    approved this merge request

  • Hordur Freyr Yngvason requested review from @robotmay_gitlab and removed review request for @hfyngvason

    requested review from @robotmay_gitlab and removed review request for @hfyngvason

  • Tiger Watson added 235 commits

    added 235 commits

    • 9a7ed7ae...97d29dc2 - 233 commits from branch master
    • 58b63b01 - Show Terraform state deleted status in UI
    • 06d2b065 - Use tooltip directive instead of component in Terraform states table

    Compare with previous version

  • Robert May approved this merge request

    approved this merge request

  • Tiger Watson requested review from @f_caplette and removed review request for @robotmay_gitlab

    requested review from @f_caplette and removed review request for @robotmay_gitlab

  • Frédéric Caplette approved this merge request

    approved this merge request

  • Frédéric Caplette resolved all threads

    resolved all threads

  • Frédéric Caplette enabled an automatic merge when the pipeline for c6dfcb4f succeeds

    enabled an automatic merge when the pipeline for c6dfcb4f succeeds

  • mentioned in commit 10f59616

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading