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.
- Go to your project
- Visit Operate -> Environments
- Create a bunch of environments
- Visit Settings -> CI/CD and expand the Protected environments section
- 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. - 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