Make scanner injection optional in vulnerability_filters
Problem
When the feature flag pipeline_security_dashboard_graphql
is enabled, the following vue error exists on the pipeline security tab:
[Vue warn]: Injection "scanners" not found
Context
The vulnerability_filters.vue
component, which is a container for all the filters in the list, uses this to check for custom vendors and show a modified tool filter. However, on the pipeline security tab, we currently show the tools in the filter and not the individual scanners.
Solution
- We can make the injection optional and provide a default empty array with using the inject object format: https://v2.vuejs.org/v2/api/#provide-inject
- modify specs if needed
Edited by Lorenz van Herwaarden