DependencyTrack / DependencyTrack/frontend
Improve interaction between hierarchical project view and tag filtering
- Dominant language
- Vue
- Stars
- 171
- Forks
- 250
- Avg merge
- 11h 12m
- Merged PRs (30d)
- 82
Description
### Current Behavior
When working with a nested project structure in which a project `a` has a child `b` with a tag `mytag`:

clicking the `mytag` link from `b`'s project page:

navigates to the project view and ends up showing an empty list:

I found this to be surprising and it took me a while to realize what happened.
The reason this behavior is that the filtering for the tag is applied at the root level only in the hierarchical view. Manually switching back to flat project view will show all projects with the tag.
### Proposed Behavior
What I would have expected to happen for the hierarchical view would be for a pruned tree to be shown with all projects having the tag being visible regardless of their depth in the tree. This would also show parents of tagged projects without the tag themselves.
A simpler alternative or intermediary solution might be to default disable (or enforce) the show flat project view option for tag queries instead of default enabling it. This would be similar to how a search enforces the flat view right now.
### Checklist
- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/frontend/issues) for whether this enhancement was already requested
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.