Commit 03bae1e
authored
Add project filters to component identity search (#6085)
* Add project filters to component identity search
Adds onlyActive and onlyLatestVersion query parameters to
GET /v1/component/identity, allowing portfolio-wide component
searches to be scoped to active projects and/or projects flagged
as the latest version. Reduces noise from archived projects and
older project versions when triaging components across the
portfolio.
Closes #4570
Signed-off-by: hoobio <7289249+hoobio@users.noreply.github.com>
* Document component search project filters
Adds a short note to the Impact Analysis page describing the
"Only active projects" and "Only latest project versions" toggles
on the Components search page, and the matching onlyActive and
onlyLatestVersion query parameters on /api/v1/component/identity.
Refs #4570
Signed-off-by: hoobio <7289249+hoobio@users.noreply.github.com>
* Tighten javadoc and parameter descriptions
Trim wording in the new ComponentQueryManager overload, the new
@parameter descriptions on /v1/component/identity, and the
Impact Analysis doc paragraph added in the previous commit.
Signed-off-by: hoobio <7289249+hoobio@users.noreply.github.com>
* Rename query params to disambiguate on /component endpoint
Per PR review: onlyActive and onlyLatestVersion read as if they
filter on component attributes when the endpoint is scoped to
components. Rename to:
- excludeInactiveProjects, mirroring the existing convention
used by /v1/project, /v1/vulnerability, and others.
- onlyLatestProjectVersion, mirroring the existing field on
Policy and its use in PolicyEngine.
Refs #4570
Signed-off-by: hoobio <7289249+hoobio@users.noreply.github.com>
* Update Impact Analysis doc to match toggle framing
Reflect the renamed query parameters and the toggle relabel
(Show inactive projects / Show all project versions, both on by
default) in the doc paragraph added by the previous commit.
Signed-off-by: hoobio <7289249+hoobio@users.noreply.github.com>
* Update Impact Analysis doc for renamed latest-version toggle
Track the frontend label change from "Show all project versions"
to "Show non-latest project versions".
Signed-off-by: hoobio <7289249+hoobio@users.noreply.github.com>
* Pluralize onlyLatestProjectVersions query parameter
Per PR review, the parameter takes effect across all matching
projects (one latest per name, multiple in aggregate), so the
plural form reads more accurately. Renames the corresponding
internal Java identifiers, test methods, test query strings, and
the Impact Analysis doc reference.
Signed-off-by: hoobio <7289249+hoobio@users.noreply.github.com>
---------
Signed-off-by: hoobio <7289249+hoobio@users.noreply.github.com>1 parent bf3b39b commit 03bae1e
5 files changed
Lines changed: 151 additions & 2 deletions
File tree
- docs/_docs/usage
- src
- main/java/org/dependencytrack
- persistence
- resources/v1
- test/java/org/dependencytrack/resources/v1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
254 | 269 | | |
255 | 270 | | |
256 | 271 | | |
| |||
262 | 277 | | |
263 | 278 | | |
264 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
265 | 286 | | |
266 | 287 | | |
267 | 288 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
570 | 575 | | |
571 | 576 | | |
572 | 577 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
| |||
229 | 233 | | |
230 | 234 | | |
231 | 235 | | |
232 | | - | |
| 236 | + | |
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| |||
Lines changed: 112 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
521 | 633 | | |
522 | 634 | | |
523 | 635 | | |
| |||
0 commit comments