DependencyTrack / dependency-track

Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
https://dependencytrack.org/
Apache License 2.0
2.43k stars 529 forks source link

Add REST endpoints for bulk tagging & un-tagging of projects #3894

Closed nscuro closed 2 days ago

nscuro commented 3 days ago

Description

Adds REST endpoints for bulk tagging & un-tagging of projects.

image

Addressed Issue

Relates to #586

Additional Details

Bulk operations are currently limited to 100 projects per request. We can raise this limit if users need it. But for a beginning it's better to stay conservative since limiting it later would mean a breaking change.

Both POST and DELETE endpoints are implemented to be atomic operations.

Portfolio ACLs are considered:

There will be no HTTP 403 response if tagging or un-tagging of inaccessible projects is attempted.

Checklist

codacy-production[bot] commented 3 days ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.08% (target: -1.00%) :white_check_mark: 92.22% (target: 70.00%)
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (a0407b46afd55bd77d02712ff0ebdab58f0f1991) | 21903 | 16650 | 76.02% | | | Head commit (c41717f515d8eb5bb942fb9bf228d3a46ffc8a58) | 21963 (+60) | 16714 (+64) | 76.10% (**+0.08%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#3894) | 90 | 83 | **92.22%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences


:rocket: Don’t miss a bit, follow what’s new on Codacy.

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more