Add cancel rollout button to the alerts page

Problem to solve

Similar to #216949

As a developer deploying new code, I would want to cancel deployment if the new code exceeds a specific error threshold rate, so that I do not expose faulty code to a larger audience. If I am already viewing the error in the alerts page, I want to take action immediately.

Intended users

User experience goal

Proposal

On the alerts page add buttons for stop and rollback (should re-deploy the last successful deployment)

Mockup

image

Further details

Permissions and Security

Only users that are allowed to deploy to the environment should be able to press the cancel button.

The button should be hidden/disabled for other users - @dimitrieh UX

Documentation

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?

Yes devopsmonitor @sarahwaldner FYI

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.

Edited by 🤖 GitLab Bot 🤖