Add additional out of scope compliance report violation types
Problem to solve
The basic violation types were added in Introduce concept of Merge Request Violation (&7222 - closed) and Compliance report merge request violations fron... (&6870 - closed).
This issue is to add additional out of scope compliance report violations listed in the epic &5237.
Proposed solution
Create components that can display the following violations:
- Pushed to a protected branch
- CI status
- Code coverage report
- Security report
- Performance report
- Missing linked issue
- Last completed pipeline status
Design
Implementation
backend
- Add violation types to http://gitlab.com/gitlab-org/gitlab/blob/master/ee/lib/gitlab/compliance_management/violations
- Make sure the GraphQL endpoint can pass the new types and any additional info needed for these types
- Add new specs
frontend
- Create components to display the following violation types:
- Protected branch: Link to branch (
GlLink
) - CI status: Render ci status (reuse GitLab component)
- Code coverage report: Render report (reuse MR widget component)
- Security report: Render report (reuse MR widget component)
- Performance report: Render report (reuse MR widget component)
- Missing linked issue: Text body
- Last completed pipeline status: pipeline status (reuse GitLab component)
- Protected branch: Link to branch (
- Add specs to confirm that violations are displayed correctly