DependencyTrack / DependencyTrack/dependency-track

Child projects are not shown in search by tag, unless flat view is enabled

Open
#4,867 2 comments 0 reactions 0 assignees View on GitHub
api docs api-inconsistency
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

If I go to `/projects?tag=production` in UI I can only see projects that are children if I use the "Flat view".

Otherwise the projects are filtered out.
I expect this is because the parent doesn't have the tag.

### Steps to Reproduce

Create project "Parent"
Create project "Child" as a child of "Parent", tag it with "production".

Go to `/projects?tag=production` in UI, observe the project is not shown unless you enable "Show flat project view"

### Expected Behavior

The projects should be shown regardless. The option "Show flat project view" should only affect the project list layout, not filter out projects.

### Dependency-Track Version

4.13.0

### Dependency-Track Distribution

Container Image

### Database Server

H2

### Database Server Version

_No response_

### Browser

Mozilla Firefox

### 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/dependency-track/issues) for whether this defect was already reported

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.