Skip to content

Redirect is current environment page empty empty

What does this MR do and why?

Redirect is current environment page empty empty

If after removing protected environment current page becomes empty redirect user to the previous pagination page

Changelog: changed

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Go to your project
  2. Visit Operate -> Environments
  3. Create a bunch of environments
  4. Visit Settings -> CI/CD and expand the Protected environments section
  5. Protect a couple of environments to get to the second page. For convenience, you can add a parameter per_page with the lower number (default is 20) here.
  6. Go to the last page and unprotect all the environments from the last page. Verify the table update to show the previous page.

Related to #413642 (closed)

Edited by Anna Vovchenko

Merge request reports