Skip to content

Provide project path to refetched Terraform state GraphQL queries

Tiger Watson requested to merge fix-terraform-state-ui-actions into master

What does this MR do and why?

Provides projectPath when Terraform states are refetched after a GraphQL mutation. Previously null was passed, which caused an error.

Screenshots or screen recordings

Screen_Shot_2022-05-16_at_4.03.17_pm

How to set up and validate locally

  1. Create a Terraform state via Rails console:
      > Terraform::State.create!(project_id: <project-id>, name: 'test-state')
  2. Visit http://path/to/project/-/terraform
  3. Click Actions -> Lock state

MR acceptance checklist

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

Edited by Tiger Watson

Merge request reports

Loading