From a2b13f3153cfed6067f2d795fe8322bdf3f863d6 Mon Sep 17 00:00:00 2001 From: Dawid Rusnak Date: Wed, 13 Nov 2024 09:50:42 +0100 Subject: [PATCH] fix(testsuites): build execution filter properly (#6022) --- internal/app/api/deprecatedv1/testsuites.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/api/deprecatedv1/testsuites.go b/internal/app/api/deprecatedv1/testsuites.go index a4f6a00316..6f126efa7a 100644 --- a/internal/app/api/deprecatedv1/testsuites.go +++ b/internal/app/api/deprecatedv1/testsuites.go @@ -624,8 +624,8 @@ func (s *DeprecatedTestkubeAPI) ListTestSuiteExecutionsHandler() fiber.Handler { } l.Debugw("got executions totals", "totals", executionsTotals, "time", time.Since(now)) filterAllTotals := *filter.(*testresult.FilterImpl) - filterAllTotals.WithPage(0).WithPageSize(math.MaxInt64) - allExecutionsTotals, err := s.DeprecatedRepositories.TestSuiteResults().GetExecutionsTotals(ctx, filterAllTotals) + filterAllTotals.WithPage(0).WithPageSize(math.MaxInt32) + allExecutionsTotals, err := s.DeprecatedRepositories.TestSuiteResults().GetExecutionsTotals(ctx, &filterAllTotals) if err != nil { return s.Error(c, http.StatusInternalServerError, fmt.Errorf("%s: client could not get all executions totals: %w", errPrefix, err)) }