Dependency Scanning - MVC to enable within the UI - Frontend

Why are we doing this work

This issue tracks frontend work to add an Enable button on the Dependency Scanning row within the Security Configuration page. When clicked, the backend will create an MR and the user will be directed to the MR page.

Relevant links

Information that the developer might need to refer to when implementing the issue.

  • Design Issue
  • backend issue
  • Similar implementation for SAST enable done in %13.2

Non-functional requirements

  • Documentation: yes, needed
  • Feature flag: yes, this work should be controlled by a flag
  • Performance:
  • Testing: needs unit tests. Possibly end to end tests.

Implementation plan

frontend

  • Create a ManageViaMr component: #325694 (closed)
  • Create sec_dependency_scanning_ui_enable feature flag
  • Propagate flag to frontend within https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/controllers/projects/security/sast_configuration_controller.rb
  • Configure Dependency Scanning to use the ManageViaMr component in the scannerComponentMap map in ManageFeature.
  • Create the client-side configureDependencyScanning mutation to be mapped to the ManageViaMr component.
Edited Apr 01, 2021 by Paul Gascou-Vaillancourt
Assignee Loading
Time tracking Loading