[MR Widget Eng]: Add CE view to the Security Widget
Summary
When using the CE, the MR security widget displays less information. See the Non-Ultimate
Section in the expected design.
Expected design:
Implementation plan
-
https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/vue_merge_request_widget/extensions/security_reports/index.js is where the CE Security Widget is located. Using the Extension API we need created that logic.
Context
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/vue_shared/security_reports/security_reports_app.vue contains the logic to show the CE version. It uses a GraphQL query to extract the download artifacts.
Verification steps
- Go to savasvedova/security-reports-v2!1 (CE Version)
- You should see a
Security Reports have run
message with artifacts available for download. - Go to https://gitlab.com/svedova/security-reports/-/merge_requests/1 (EE Version)
- You should see the security reports details
Edited by Savas Vedova