Skip to content

Show re-deploy/rollback button to deployment-only users

What does this MR do and why?

Shows the re-deploy/rollback buttons to users with deployment-only access by changing the button's visibility permission to play_job.

Related to #341182 (closed)

Screenshots or screen recordings

Setup

  • An operator group named H5bp is invited to the project as a reporter

Screen_Shot_2022-10-20_at_5.50.00_PM

  • @josefa is a member of the H5bp group

Screen_Shot_2022-10-20_at_5.49.50_PM

  • H5bp is allowed to deploy to the development protected environment

Screen_Shot_2022-10-20_at_5.50.44_PM

Before

  • While impersonating @josefa, the re-deploy/rollback button is not visible on the environment detail page

Screen_Shot_2022-10-20_at_10.56.34_PM

After

  • While impersonating @josefa, the re-deploy/rollback button is visible on the environment detail page

Screen_Shot_2022-10-20_at_10.57.15_PM

How to set up and validate locally

  1. Set up Deployment-only access to a protected environment.
  2. Create a deployment (if none exist already).
  3. As the user with deployment-only access, navigate to the environment details page.
  4. Verify that the re-deploy/rollback buttons are visible and can be clicked.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alishan Ladhani

Merge request reports