This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch release-v0.17
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.17 by this push:
     new e42ed4312 fix: no pagination is used in the collectionAccounts of 
gitlab (#5135)
e42ed4312 is described below

commit e42ed43121c4efd9939379084ed68504d1584e3b
Author: Klesh Wong <[email protected]>
AuthorDate: Tue May 9 15:06:45 2023 +0800

    fix: no pagination is used in the collectionAccounts of gitlab (#5135)
---
 backend/plugins/gitlab/tasks/account_collector.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/backend/plugins/gitlab/tasks/account_collector.go 
b/backend/plugins/gitlab/tasks/account_collector.go
index 67f27a9ff..43142938d 100644
--- a/backend/plugins/gitlab/tasks/account_collector.go
+++ b/backend/plugins/gitlab/tasks/account_collector.go
@@ -19,6 +19,7 @@ package tasks
 
 import (
        "encoding/json"
+       "fmt"
        "net/http"
        "net/url"
 
@@ -54,12 +55,11 @@ func CollectAccounts(taskCtx plugin.SubTaskContext) 
errors.Error {
                RawDataSubTaskArgs: *rawDataSubTaskArgs,
                ApiClient:          data.ApiClient,
                UrlTemplate:        urlTemplate,
-               //PageSize:           100,
+               PageSize:           100,
                Query: func(reqData *api.RequestData) (url.Values, 
errors.Error) {
                        query := url.Values{}
-                       // query.Set("sort", "asc")
-                       // query.Set("page", fmt.Sprintf("%v", 
reqData.Pager.Page))
-                       // query.Set("per_page", fmt.Sprintf("%v", 
reqData.Pager.Size))
+                       query.Set("page", fmt.Sprintf("%v", reqData.Pager.Page))
+                       query.Set("per_page", fmt.Sprintf("%v", 
reqData.Pager.Size))
                        return query, nil
                },
 

Reply via email to