audited file count is 0/0 (100%) in packages with variants
Created by: alpianon
by testing the dashboard with this file, I realized that all packages with variants are shown with audit progress 100% and with 0 files, even if underlying data tell another thing.
See f.e. package linux-oniro-5.10.61+gitAUTOINC+3b283fa8d4_452ea6a15e-r0
. This is the entry shown in the dashboard:
And these are the data found in the loaded json file (the older variant is fully reviewed, apart from 1 file, while the newer one has still 49688 files to audit; aliens4friends correctly set the "aggregate" flag only in the first one, and the Dashboard's expected behaviour would be to show audit data progress only about the first one to represent the real overall audit progress
{
"id": "linux-oniro-5.10.61+gitAUTOINC+3b283fa8d4_452ea6a15e-r0-531ff926+a4f",
"name": "linux-oniro",
"version": "5.10.61+gitAUTOINC+3b283fa8d4_452ea6a15e",
"revision": "r0",
"variant": "531ff926",
"debian_matching": {
"name": null,
"version": null,
"ip_matching_files": 0
},
"session_state": {
"selected": true,
"selected_reason": "Added variant",
"uploaded": false,
"uploaded_reason": "Package already present in Fossology"
},
"statistics": {
"files": {
"audit_total": 64422,
"audit_done": 64421,
"audit_to_do": 1,
"upstream_source_total": 70347,
"unknown_provenance": 13,
"known_provenance": 72391,
"total": 72404
},
"licenses": {
...
},
"aggregate": true
},
...
{
"id": "linux-oniro-5.10.61+gitAUTOINC+3b283fa8d4_452ea6a15e-r0-dbcbbde3+a4f",
"name": "linux-oniro",
"version": "5.10.61+gitAUTOINC+3b283fa8d4_452ea6a15e",
"revision": "r0",
"variant": "dbcbbde3",
"debian_matching": {
"name": null,
"version": null,
"ip_matching_files": 0
},
"session_state": {
"selected": true,
"selected_reason": "Initial state",
"uploaded": null,
"uploaded_reason": "Unknown upload status"
},
"statistics": {
"files": {
"audit_total": 64444,
"audit_done": 14756,
"audit_to_do": 49688,
"upstream_source_total": 70347,
"unknown_provenance": 13,
"known_provenance": 72391,
"total": 72404
},
"licenses": {
...
},
"aggregate": false
},