/api/project_analyses doc has wrong response example in SQ 8.9 LTS and 9.1

Hi,

the response example for /api/project_analyses in the web api documentation for
Sonarqube 8.9 LTS and Sonarqube 9.1 has


“events”: [
{
“key”: “E11”,
“category”: “QUALITY_GATE”,
“name”: “Quality Gate is Red (was Orange)”,
“description”: “Coverage is \u003c 80%”
},

but there is no more "Quality Gate is xxx (was xxx)" value for name, it’s either Passed or Failed
Also the format of the key value has changed, was E11 or A1 …
Now it’s AXxe9ngtXQBCQLQC2jVG or AXxe9w1zXQBCQLQC225W …

i.e.

“paging”: {
“pageIndex”: 1,
“pageSize”: 500,
“total”: 1
},
“analyses”: [
{
“key”: “AXxe9ngtXQBCQLQC2jVG”,
“date”: “2021-10-08T10:07:28+0200”,
“events”: [
{
“key”: “AXxe9w1zXQBCQLQC225V”,
“category”: “QUALITY_GATE”,
“name”: “Failed”,
“description”: “New Blocker Issues > 0, New Major Issues > 0, New Critical Issues > 0”
},
{
“key”: “AXxe9w1zXQBCQLQC225W”,
“category”: “VERSION”,
“name”: “xxxxxxxxx”

Gilbert

Hi @anon67236913

Thanks for reporting it! I’ve created a ticket to fix it. Our team is going to tackle it soon.

Have a nice day :slight_smile:

1 Like