Skip to content

Add better feedback when starting a manual deployment action

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

With the current implementation of new Environment details page, starting the manual deployment action lacks some meaningful feedback for the user.

In the previous implementation of the page the user was redirected to a job that has been started with the manual deployment action. Let's use this chance to see if there is a better way to communicate the result of the action with the user.

Proposal:

When a user takes a manual deployment action, we surface the following toast:

Screenshot_2023-06-28_at_2.05.42_PM

The link brings users to the job page.

Implementation guide

  1. In app/assets/javascripts/environments/mount_show.js, load the GlToast plugin
  2. Modify the onClickAction method in app/assets/javascripts/environments/components/environment_actions.vue to toast with the given text after the apollo mutation, getting the job url from the return result.
  3. Modify the onOk method in app/assets/javascripts/environments/components/confirm_rollback_modal.vue to toast with the given text after the apollo mutation, getting the job url from the return result

Note that in both instances, we should check for the presence of $toast, as these components are re-used in different contexts.

It could also be that the mutations need to be modified to return the job URLs.

Edited by 🤖 GitLab Bot 🤖