Hi, I use Sonarqube Server Developer Edition v10.8 with github integration to authenticate users, provision our projects and send pull request analysis comments in Github.
We seem to be encountering problems around Issues reporting for PR analysis in the Sonarqube interface.
A PR was marked as failing Quality Gates because of 2 new issues introduced in the PR. When checking on the Sonarqube Server interface while selecting the correct PR in the top dropdown menu for PR or branches, the Overview tab correctly reports 2 new issues. After clicking on the issues “2” link or heading to the Issues tab, we do not see any Issues, and are instead greeted with the " No Issues. Hooray!" message. I tried removing all filters, filtering for issues in the file with the 2 new issues, or selecting the “Issues in new code” filter, but no issues are found.
When heading to the Measures tab and selecting Issues on the left menu, it correctly reports the 2 issues and the relevant file, but when checking the file in the Measures interface, it only highly new code and not the new issues.
Only when using the Web API /api/issues/list
with the correct project and pullRequest parameters, we can get the information about the new issues. I checked the API endpoint being used when opening the Issue tab in the Sonarqube Server interface and it seems to be calling /api/issues/search
instead with a bunch of parameters. I tried using the same api endpoint using only the pullRequest
, components
and inNewCodePeriod=true
and it reports 0 issues, while using the same parameter on the /api/issues/list
reports 2 issues.
What is happening? Is there a way to fix this to correctly display issues that is failing the PR in the Issues tab?
Thank you for your time