Duo Landing Page Setup for Groups
What does this MR do and why?
The purpose of this MR is to reconfigure set up the initial /gitlab_duo
page for Groups.
We also want to be sure that all old paths redirect to the new gitlab_duo
page for now and that by clicking GitLab Duo in the breadcrumbs.
Related Issues:
Related MRs:
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
THESE CHANGES ARE FOR GROUPS ONLY
Before on Seat Utilization | After on Seat Utilization | After on GitLab Duo | Screen Recording |
---|---|---|---|
Screen_Recording_2024-10-16_at_7.19.55_PM |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
For frontend changes:
You will need an GitLab Ultimate license for these changes as well as a connection to CustomersDot. Also, make sure you have Duo set up with a group as indicated here.
In gitlab-development-kit
-
env.runit
example
export GITLAB_SIMULATE_SAAS=1
export GITLAB_LICENSE_MODE=test
export LLM_DEBUG=1
export AI_GATEWAY_URL=http://0.0.0.0:5052
export CLOUD_CONNECTOR_SELF_SIGN_TOKENS=1
export CUSTOMER_PORTAL_URL=https://customers.staging.gitlab.com/
-
gdk.yml
example to set up CDot
license:
customer_portal_url: https://customers.staging.gitlab.com
license_mode: test
Group - SaaS Instance
- Run
GITLAB_SIMULATE_SAAS=1 gdk restart
in your GDK. - Go to Group > Settings > GitLab Duo.
- Validate page redirects to
settings/-/gitlab_duo/seat_utilization
(the nav will change to Gitlab Duo page in an upcoming MR). - Validate the breadcrumbs now also include GitLab Duo. Click the GitLab Duo breadcrumb.
- Validate the page you are directed to is
settings/-/gitlab_duo
.
For backend changes:
Tests
- Run
bundle exec rspec ee/spec/features/groups/settings/gitlab_duo/seat_utilization_spec.rb
- Run
bundle exec rspec ee/spec/requests/groups/settings/gitlab_duo_controller_spec.rb