Loading
SDLC Context Agent - Add project-level setting (frontend)
What does this MR do and why?
We're adding the project-level toggle for Vulnerability Context Analysis. The backend logic of this setting lives in:
- SDLC Context Agent - Add project-level setting ... (!249617 - merged) • Charlie Kroon • 19.4
- SDLC - Add check for project setting for worker... (!250192 - merged) • Charlie Kroon • 19.3
References
- Main epic https://gitlab.com/groups/gitlab-org/-/work_items/21005
- Relevant discussion on this implementation https://gitlab.com/groups/gitlab-org/-/work_items/21005#note_3677538263
- This MR closes part 2: https://gitlab.com/gitlab-org/gitlab/-/work_items/611376;
- This MR is dependent on the merge of:
- Backend implementation: !249617 (merged)
- Backend implementation of trigger check: !250192 (merged)
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
How to set up and validate locally
Set up
- Ensure your GDK instance has an active EE Ultimate license with GitLab Duo enabled
- Checkout on
duo/feature/611376-duo-vulnerability-context-analysis-project-settingand pull the changes from this branch. - Run migrations:
bundle exec rails db:migrate - Checkout this branch
CK-SLDC-Setting-Project-FE-v2 - Run
gdk restart
Validate the UI toggle
- Navigate to a project's
Settings > General > GitLab Duo - Verify the
Turn on Vulnerability Context Analysistoggle appears. - Toggle it on and click
Save changes. Verify that the page reloads with the toggle still on. - Toggle off the main
Turn on GitLab Duo featurestoggle and save. Verify theTurn on Vulnerability Context Analysistoggle becomes disabled.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Charlie Kroon
