Skip to content

Open Deployments tab when there's no K8s setup for the environment

What does this MR do and why?

Kubernetes overview tab is the first tab on the Environment details page. If there's no Kubernetes integration set up we want to open the deployments history tab as it will most likely have some data. We don't want to switch to another tab if it was preselected in the URL param.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

  1. Navigate to the environment that has Kubernetes integration set up. It opens the Kubernetes overview tab by default:

    Screen_Recording_2024-02-20_at_18.14.52

  2. Navigate to the environment that has no Kubernetes integration. It opens the Deployments history tab:

    Screen_Recording_2024-02-20_at_18.16.57

  3. Navigate to the environment that has no Kubernetes integration with the tab preselected in URL. It shows the tab requested in URL param:

    Screen_Recording_2024-02-20_at_18.15.31

How to set up and validate locally

  1. Visit Operate -> Environments and create an environment.
  2. Click on the newly created environment title to navigate to the environment detail page.
  3. Verify the Deployments history tab opened as there was no Kubernetes integration set up for the environment.

Related to #431746 (closed)

Edited by Anna Vovchenko

Merge request reports