There are some typos (search/replace errors?) in the response from the Metrics API for SonarQube 9.0 (build 45539), Developer Edition.
Screenshot:
Steps to reproduce:
- On a SonarQube instance, call
/api/metrics/search?ps=500
- Search for:
security_hotspots_reviewed_status
- Search for:
security_hotspots_to_review_status
Expected results:
- On step 2, there is 1 match for the key
security_hotspots_reviewed_status
and it has a proper name and description, e.g. “Number of Security Hotspots That Has Been Reviewed.” - On step 2, there is also 1 match for the key
new_security_hotspots_reviewed_status
and it has a proper name and description, e.g. “Number of New Security Hotspots That Has Been Reviewed.” - On step 3, there is 1 match for the key
security_hotspots_to_review_status
and it has a proper name and description, e.g. “Number of Security Hotspots That Needs Review.” - On step 3, there is also 1 match for the key
new_security_hotspots_to_review_status
and it has a proper name and description, e.g. “Number of New Security Hotspots That Needs Review.”
Actual results:
- The match is there, but the name and description seem erroneous; they are both: “Security Review Reviewed Status”
- The match is there, but the name and description seem erroneous; they are both: “Security Review Reviewed Status on New Code”
- The match is there, but the name and description seem erroneous; they are both: “Security Review To Review Status”
- The match is there, but the name and description seem erroneous; they are both: “Security Review To Review Status on New Code”