Skip to content

Focus dependency graph on searched components - #2139

Merged
nscuro merged 1 commit into
DependencyTrack:mainfrom
nscuro:depgraph-limits
Nov 21, 2026
Merged

nscuro merged 1 commit into
DependencyTrack:mainfrom
nscuro:depgraph-limits

Conversation

@nscuro

@nscuro nscuro commented Nov 21, 2026

Copy link
Copy Markdown
Member

Description

Focuses dependency graph on searched components:

  • Only draws the graph once a component is searched for or linked to. Prompts to search for a component instead of drawing the project's direct dependencies. There is no real use case that requires users starting from the root node and manually expanding node after node.
  • Loads the graph lazily when the search is opened or a component is linked to, instead of on every visit to the tab.
  • Allows expanding the searched component and its dependencies.
  • Draws only the shortest path when more than 500 components lie on the paths to the searched component. Laying out more takes dagre too much time.
  • Gives up on layouts that take longer than 15 seconds and falls back to the shortest path. This is to gracefully degrade instead of loading forever and then timing out. We have to anticipate extreme cases here.

Addressed Issue

N/A

Additional Details

N/A

Checklist

* Only draws the graph once a component is searched for or linked to. Prompts to search for a component instead of drawing the project's direct dependencies. There is no real use case that requires users starting from the root node and manually expanding node after node.
* Loads the graph lazily when the search is opened or a component is linked to, instead of on every visit to the tab.
* Allows expanding the searched component and its dependencies.
* Draws only the shortest path when more than 500 components lie on the paths to the searched component. Laying out more takes dagre too much time.
* Gives up on layouts that take longer than 15 seconds and falls back to the shortest path. This is to gracefully degrade instead of loading forever and then timing out. We have to anticipate extreme cases here.

Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro nscuro added this to the 5.3 milestone Nov 21, 2026
@nscuro nscuro added the enhancement New feature or request label Nov 21, 2026
@nscuro
nscuro merged commit 2821772 into DependencyTrack:main Nov 21, 2026
14 checks passed
@nscuro
nscuro deleted the depgraph-limits branch November 21, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant