Skip to content

Update registration enabled callout

Peter Hegman requested to merge 344553-update-registration-alert into master

What does this MR do and why?

Related to #344553 (closed)

There is a callout that is shown when to Admins when the Sign-up enabled settings is enabled in Admin Area -> Settings -> General. The intent of this callout is to let the admin know that anybody can register an account on their GitLab instance. Currently this callout is shown on all pages. Also there has been some confusion with the copy in the callout. This MR updates the copy and changes the logic so the callout is only shown on /dashboard/* and /admin/* pages.

Screenshots or screen recordings

Desktop

Before After
Screen_Shot_2022-02-23_at_3.59.57_PM Screen_Shot_2022-02-23_at_3.58.36_PM

Mobile

Before After
Screen_Shot_2022-02-23_at_4.00.28_PM Screen_Shot_2022-02-23_at_3.59.05_PM

How to set up and validate locally

  1. Sign in as an admin
  2. Navigate to /admin/application_settings/general. In the Sign-up restrictions panel check the Sign-up enabled checkbox.
  3. Clear closed callouts
    • bin/rails console
    • Users::Callout.where({ feature_name: 25 }).destroy_all

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 Peter Hegman

Merge request reports