mc1arke / sonarqube-community-branch-plugin

A plugin that allows branch analysis and pull request decoration in the Community version of Sonarqube
GNU Lesser General Public License v3.0
2.23k stars 522 forks source link

Pull request analysis does not store the date of analysis #940

Closed lorentz-1 closed 1 month ago

lorentz-1 commented 2 months ago

Describe the bug On version 1.18.0 of plugin with SonarQube 10.3, Pull request analysis do not have the field Last Analysis Date filled out. It seems to only be filled out for branch scans and not PR scans.

To Reproduce Steps to reproduce the behavior:

  1. Perform a PR analysis for any project and also perform a branch analysis
  2. Go to the project on SonarQube once analysis is done for both project and the pull requests,
  3. Click on Project Settings tab
  4. Click on Branches and Pull Requests tab
  5. See that branches will show Last Analysis Date for all Branches that have been scanned
  6. See that the Pull requests tab wont show Analysis Date for any PRs that have been scanned

Expected behavior I expect the Last Analysis Date tab to be filled for both Pull Request and Branches.

Screenshots Pull request: image

Branch Scan image

Software Versions

Additional context Since the in-build housekeeping does not work for SonarQube 10.3 , our Database is never being cleaned up. So I rely on the Last Analysis data to perform manual clean ups. This issue never existed on older version of SonarQube / Plugin 9.9 (LTS) | 1.14.0

mc1arke commented 2 months ago

Since the in-build housekeeping does not work for SonarQube 10.3

You should be able to kick this into life by changing the retention days to something other than the default value, and then change it back.

lorentz-1 commented 2 months ago

Since the in-build housekeeping does not work for SonarQube 10.3

You should be able to kick this into life by changing the retention days to something other than the default value, and then change it back.

Just did this and now it seems to work for all branches. However the Pull Requests are still left without being cleaned up.

lilayam commented 1 month ago

Waiting for this fix.

mc1arke commented 1 month ago

Released in 1.22.0