Allow users to configure when Delete stopped environments automatically.
Problem to solve
Coming from #233882 (comment 392954024)
As a user of review apps, I want to be able to configure the interval of when environments will be deleted automatically.
Intended users
User experience goal
In order to avoid many stale environments, we have introduced an auto-stop environment feature and an auto-delete environment feature. The current value for auto-stop is hard coded at 1 month. As a user I would like to be able to configure this to whatever value that I want.
Proposal
- Add a new collapsible area under
CI/CD
named Review Apps - Under the new section should be the following settings:
First section
-
frontend Checkbox: Auto delete environment
- Default should be
unchecked
- Default should be
- A helper text should be displayed:
- Automatically delete stopped environments after a defined interval. Only applies to Environments that were stopped automatically.
Second section
- Add an option for users to set the delete interval
- frontend use the input field component
- The label should read: Delete interval
- Default should be 30 days
- User should be able to edit the content
Saving the form
- A button to Save changes should be placed at the bottom of the form
- When user checks/unchecks the checkbox, or updates the input with the default interval and then and clicks the save button, the application should set their options.
- frontend A notification should be displayed confirming the
Further details
- We will default to disabled Auto delete environments, otherwise it'd be considered a breaking change.
Permissions and Security
- Add expected impact to members with no access (0)
- Add expected impact to Guest (10) members
- Add expected impact to Reporter (20) members
- Add expected impact to Developer (30) members
- Add expected impact to Maintainer (40) members
- Add expected impact to Owner (50) members
Documentation
Yes, this will need an update/addition to the docs.
Availability & Testing
What does success look like, and how can we measure that?
What is the type of buyer?
Is this a cross-stage feature?
Links / references
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.