Skip to content

Use provide/inject for vulnerabilities export endpoint

What does this MR do?

On the vulnerability report, there is an Export button that exports the vulnerabilities to a CSV:

ksnip_20210326-230422

This button needs a vulnerabilitiesExportEndpoint URL that's provided by the backend. The component tree looks like this:

csv_export

We have 3 dashboard levels, and vulnerability_report_init.js will render one of the 3 *_security_dashboard.vue components. Previously, the URL was passed down to the security_dashboard.vue component as a prop, then again to csv_export_button.vue as a prop. However, the security_dashboard.vue component doesn't use it, it just passes it down. This MR simplifies the code by changing it to use provide/inject instead.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #324246

Edited by Daniel Tian

Merge request reports

Loading