This is an automated email from the ASF dual-hosted git repository.
likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 089a09e51 fix(sonarqube): fix error that cannot return more than 10000
records (#4586)
089a09e51 is described below
commit 089a09e51a379fe7fa257d363ac89151a6b163a7
Author: Warren Chen <[email protected]>
AuthorDate: Tue Mar 7 17:45:09 2023 +0800
fix(sonarqube): fix error that cannot return more than 10000 records (#4586)
---
backend/plugins/sonarqube/tasks/shared.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/backend/plugins/sonarqube/tasks/shared.go
b/backend/plugins/sonarqube/tasks/shared.go
index 4439af992..c30eba684 100644
--- a/backend/plugins/sonarqube/tasks/shared.go
+++ b/backend/plugins/sonarqube/tasks/shared.go
@@ -57,6 +57,9 @@ func GetTotalPagesFromResponse(res *http.Response, args
*api.ApiCollectorArgs) (
if body.Paging.Total%args.PageSize > 0 {
pages++
}
+ if pages > 100 {
+ pages = 100
+ }
return pages, nil
}