-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Show in Dependency-Graph" Button in "Affected Projects" List [improved version] #667
Add "Show in Dependency-Graph" Button in "Affected Projects" List [improved version] #667
Conversation
Adds a `Show in Dependency-Graph` button to the every project in the `Affected Projects` tab of a vulnerability that highlights the affected component in the project's dependency graph Signed-off-by: RBickert <[email protected]>
Clicking on a project from the "Affected Projects"-tab of a vulnerability now opens the project's "Findings"-tab, showing only the expanded vulnerability Signed-off-by: RBickert <[email protected]>
…-graph-from-affected-projects Add "Show in Dependency-Graph" Button in "Affected Projects" List
Adds a `Show in Dependency-Graph` button to the every project in the `Affected Projects` tab of a vulnerability that highlights the affected component in the project's dependency graph Signed-off-by: RBickert <[email protected]>
Clicking on a project from the "Affected Projects"-tab of a vulnerability now opens the project's "Findings"-tab, showing only the expanded vulnerability Signed-off-by: RBickert <[email protected]>
* Fix bug: If opening graph for component, showing outdated versions did no longer work * Dependency graph now supports multiple UUIDs of components to be searched for * Affected components list now opens graph with all affected components Signed-off-by: Ralf King <[email protected]>
…-from-affected-projects' into master-open-dependency-graph-from-affected-projects # Conflicts: # src/views/portfolio/vulnerabilities/AffectedProjects.vue
Signed-off-by: Ralf King <[email protected]>
…mponents instead of only one. Signed-off-by: Ralf King <[email protected]>
Signed-off-by: Ralf King <[email protected]>
@nscuro Could you consider removing the code analysis rule triggering on things like I fixed the one in this PR but I see this failing other PRs, too. and I find it better you define all given parameters even if you do not use them right now, cause it makes it clear that they are available when you work on this part later. |
@rkg-mm Codacy appears to be using ESLint behind the scenes, so you can just add But yeah I think Codacy in general needs some tweaking to be a better fit for the project in general. |
Description
This PR adds the Show in Dependency-Graph button to the every project in the Affected Projects tab of a vulnerability, but only if the affected project has a dependency graph.
Clicking the button redirects the user to the projects dependency graph and highlights the affected component.
Clicking on the project link in a vulnerabilities Affected Projects tab opens the project's Audit Vulnerabilities tab, showing only the expanded finding.
Improved version, replaces #573 :
Addressed Issue
#533
Additional Details
Backend PR: DependencyTrack/dependency-track#3285
The redirect to a project's Audit Vulnerabilities tab works by opening a specific URL and searching for the matrix of a finding.
By adding a hidden Matrix column to the table, the wanted finding can be filtered and expanded by searching for it's matrix.
.../projects/<projectUUID>/findings/<affectedComponentUUID>/<vulnerabilityUUID>
<projectUUID>:<affectedComponentUUID>:<vulnerabilityUUID>
Checklist
This PR introduces new or alters existing behavior, and I have updated the documentation accordingly