You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2024/05/16 08:36:24 UTC
(incubator-devlake) branch main updated: fix: sonarqube nextPageToken always empty (#7477)
This is an automated email from the ASF dual-hosted git repository.
abeizn 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 e24102f29 fix: sonarqube nextPageToken always empty (#7477)
e24102f29 is described below
commit e24102f2964c2035fff948a736a97108d000ba33
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Thu May 16 16:36:21 2024 +0800
fix: sonarqube nextPageToken always empty (#7477)
---
backend/plugins/sonarqube/api/remote_api.go | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/backend/plugins/sonarqube/api/remote_api.go b/backend/plugins/sonarqube/api/remote_api.go
index 167925a7f..704cdabf5 100644
--- a/backend/plugins/sonarqube/api/remote_api.go
+++ b/backend/plugins/sonarqube/api/remote_api.go
@@ -82,6 +82,13 @@ func querySonarqubeProjects(
})
}
+ if resBody.Paging.Total > resBody.Paging.PageIndex*resBody.Paging.PageSize {
+ nextPage = &SonarqubeRemotePagination{
+ Page: resBody.Paging.PageIndex + 1,
+ PageSize: resBody.Paging.PageSize,
+ }
+ }
+
return
}