DJC: Provide new command option on Product to "Improve Packages from latest data"
Importing an SBOM into a DejaCode Product can be disappointing if the SBOM does not have much license information. A nice feature would be to provide a new command option to "Improve Packages from PurlDB" on the Product "Scan" dropdown:
Step through the Product Packages Use the PURL to find an entry in the PurlDB Apply PurlDB field values to empty fields in the Product Package and corresponding Package definitions.
Given our recent experience with importing real-world SBOMs into DejaCode with rather scant license information, I think we should raise the priority on this one.
@tdruez when I click on the notification generated by the "Improve..." process, it takes me to the Product (good) but it is not marking the notification as Read, and it continues to show up in the list.
The basic functionality of the "Improve..." process appears to be working fine, although I am still testing that.
@tdruez if possible, it might be better that when I click on the notification, it would open the Product positioned on the History tab rather than the Essentials tab.
Let's expand this enhancement to include checking the DejaCode Package definitions for updates since a Package was initially assigned to a Product; this can be especially useful if the Package was scanned after it was assigned to the Product, such as from the "Scan all Packages" action. The primary field of interest here would be the license_expression on the Product Package, so that if that field is empty it would be eligible for refreshing from an updated Package.
@DennisClark The https://github.com/aboutcode-org/dejacode/pull/135 PR has been refined, merged, and deployed. The "Improve" action is now logged in the "Import" tab of the Product details view, so you can track the progress there and get the list of "Improved" packages directly from that tab. Feel free to close this one or to let me know about any possible improvements.
@tdruez The logging of the Improve action on the Imports tab looks good, thanks. I think we can close this one.