EOSC-synergy / sqaaas-web

Software Quality Assurance as a Service (SQAaaS) Web
https://sqaaas.eosc-synergy.eu
GNU General Public License v3.0
2 stars 3 forks source link

Display a summary of total criteria being assessed #155

Closed orviz closed 1 year ago

orviz commented 2 years ago

The summary block shall be completed (along with #154 and #153) with the summary of the criteria report that follows. Here we are interested in showing the number of subcriteria fulfilled out of the total for each criterion.

A progress bar or a donut chart are good solutions to use:

progress bar (taken from https://clomonitor.io/)

image

donut chart (taken from GitHub)

image

orviz commented 2 years ago

A first approach is available in the API spec release/2.5.0. It adds the report:<criterion_id>:coverage property that is an object containing:

GET https://api-dev.sqaaas.eosc-synergy.eu/pipeline/assessment/{pipeline_id}/output

{
  "report": {
    "QC.Sty": {
      "valid": false,
      "filtered_reason": [],
      "subcriteria": {},
      "coverage": {
        "percentage": 60,
        "total_subcriteria": 5,
        "success_subcriteria": 0
      }
    }
  },
}
orviz commented 1 year ago

Released under 1.5.0