From 3109b28a36f58b4c18382a08157f97b26c87afdf Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 13 Oct 2024 21:43:41 +0200 Subject: [PATCH] fix: reduce chunk size while fetching groups --- app/group_exporter.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/group_exporter.go b/app/group_exporter.go index 5c52603..27124ab 100644 --- a/app/group_exporter.go +++ b/app/group_exporter.go @@ -68,7 +68,9 @@ func (g groupExporter) GetGroupNames2IDMapping( return nil, fmt.Errorf("no dynamic groups found") } - chunkSize := 20 + //Chunksize must not exceed 10 otherwise the API will return + //a random subset of 10 groups + chunkSize := 10 for i := 0; i < len(allGroupIDs); i += chunkSize { end := i + chunkSize if end > len(allGroupIDs) {