unistore: replace CDK backend with KV store backend" (#112746)

* deprecate the cdk backend in favor of the kv storage backend

* lint

* fix watchtests

* cover limit=0 for ListHistory

* fix rv too large
This commit is contained in:
Georges Chaudy
2025-10-28 10:56:08 +01:00
committed by GitHub
parent a0180f8031
commit fe9c21ebf8
9 changed files with 176 additions and 471 deletions
+1 -1
View File
@@ -1072,7 +1072,7 @@ func (s *server) List(ctx context.Context, req *resourcepb.ListRequest) (*resour
pageBytes += len(item.Value)
rsp.Items = append(rsp.Items, item)
if len(rsp.Items) >= int(req.Limit) || pageBytes >= maxPageBytes {
if (req.Limit > 0 && len(rsp.Items) >= int(req.Limit)) || pageBytes >= maxPageBytes {
t := iter.ContinueToken()
if iter.Next() {
rsp.NextPageToken = t