cnescatlab / sonar-cnes-report

Generates analysis reports from SonarQube web API.
GNU General Public License v3.0
425 stars 150 forks source link

Can return only the first 10000 results. 10500th result asked. #371

Closed kdknive closed 2 months ago

kdknive commented 8 months ago

Describe the bug

I'm using Sonarqube Community Edition with around 20000 projects. I used this plugin on my Enterprise Edition with way less projects than that and it worked flawlessly so I decided to install it on my Community Edition. That's when I came up with this error on the console. { "errors": [ { "msg": "Can return only the first 10000 results. 10500th result asked." } ] } I get that there's a limitation to 10000 results applies to web services that are backed by ElasticSearch index, I just wonder if this plugin could find a work around for it.

To reproduce

Steps to reproduce the behavior.

  1. Go to 'CNES Report'
  2. Open Network Console

Expected behavior

CNES Report showing all of my projects

Screenshots & log

MicrosoftTeams-image (37) it just shows loading

MicrosoftTeams-image (39) up until the 20th query, it's all good

MicrosoftTeams-image (40) then the 21th query shows the error

User environment

Please complete the following information.

Topin2001 commented 2 months ago

This limit is SonarQube induce, we won't look for a way to fix it. The project already generate file too long with 10 000 issues, and it will risk to make the sonarqube instance laagy if more request on required to the API