Follow-up from "Move project level vulnerabilities to vulnerability report component"
The following discussion from !59586 (merged) should be addressed:
-
@dftian started a discussion: thought: I think this is fine as-is, but since we've been moving more and more stuff into
provide
invulnerability_report_init.js
, this can probably be converted toprovide
as well, to keep them all in one place.As a side note, the current
props
object ininit.js
is this:const props = { projectAddEndpoint, projectListEndpoint, dashboardType, }; if (dashboardType === DASHBOARD_TYPES.PROJECT) { props.pipeline = { ... } }
but
projectAddEndpoint
,projectListEndpoint
, anddashboardType
aren't used, sopipeline
is the only prop that's actually used. If we movepipeline
intoprovide
, then we can remove theprops
object altogether. We don't need to do it in this MR, it's just FYI.