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.45k stars 532 forks source link

Add Notification For `BOM_VALIDATION_FAILED` #3796

Closed aravindparappil46 closed 1 month ago

aravindparappil46 commented 1 month ago

Description

If uploaded BOM is invalid, dispatches a notification with InvalidBomProblemDetails before throwing the respective exception

Addressed Issue

Fixes #3778 (Dependent on frontend PR)

Additional Details

In the existing BomResource.validate() method, added functionality to dispatch a Notification for BOM_VALIDATION_FAILED

Checklist

codacy-production[bot] commented 1 month ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.05% (target: -1.00%) :white_check_mark: 93.33% (target: 70.00%)
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (133e5ba62b55b87b49ef390405270883b0d80e6e) | 21667 | 16437 | 75.86% | | | Head commit (451aaa6564007705daee0ff710099b66fa78bc10) | 21708 (+41) | 16478 (+41) | 75.91% (**+0.05%**) | **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 (#3796) | 45 | 42 | **93.33%** | **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

Codacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more