fix(dashboards): return right token for version api (#115313)

This commit is contained in:
Jean-Philippe Quéméner
2025-12-15 11:23:18 +01:00
committed by GitHub
parent e5c1de390d
commit a716549f36
2 changed files with 130 additions and 1 deletions
@@ -274,6 +274,11 @@ func (s *Service) listDashboardVersionsThroughK8s(
continueToken = tempOut.GetContinue()
}
// Update the continue token on the response to reflect the actual position after all fetched items.
// Without this, the response would return the token from the first fetch, causing duplicate items
// on subsequent pages when multiple fetches were needed to fill the requested limit.
out.SetContinue(continueToken)
return out, nil
}