[BE] GraphQL for Vulnerability Details Dependency Paths
Why are we doing this work
The initial implementation for Support dependency graph visuals (&16815 - closed) added a new dependency_paths field to the Dependency List (project level, group level) and Vulnerability Details page level queries. The dependency paths display in a new side bar, which shown when clicking a "View dependency paths" button.
To improve performance and introduce limits, the Dependency Path list should use pagination.
This issue tracks backend scope to:
- Create a new GraphQL query for vulnerabilities' dependency paths
- Include
dependencieskey inVulnerabilityType - Include
dependencies.dependencyPathsinVulnerabilityType - Support pagination parameters
Example query:
{
vulnerabilities {
nodes{
id
dependencies{
nodes {
id
name
version
dependencyPaths(first: 50, after: "WzEsMiwzLDQsNV0=") {
nodes {
path {
name
version
}
}
}
}
}
}
}
}
}
}
Discussion at &16815 (comment 2557174974)
Relevant links
- ~ux https://gitlab.com/gitlab-org/gitlab/-/issues/519625+
- frontend [FE] Add dependency drawer UI on the Vulnerabil... (#519962 - closed)
Verification steps
Edited by Lucas Charles