Unified Storage: Removes check for name ordering and adds test (#110183)

removes check for name ordering. Adds test to assert expected name and rv ordering.
This commit is contained in:
owensmallwood
2025-08-26 12:39:30 -06:00
committed by GitHub
parent 740945511d
commit b4ed217656
2 changed files with 34 additions and 7 deletions
-7
View File
@@ -709,13 +709,6 @@ func (b *backend) ListModifiedSince(ctx context.Context, key resource.Namespaced
continue
}
if mr.Key.Name <= lastSeen {
// resource names should be sorted alphabetically. So if not, the query is not correct.
if !yield(nil, fmt.Errorf("listModifiedSince: resources are not sorted by name ASC, lastSeen: %q, current: %q", lastSeen, mr.Key.Name)) {
return
}
}
lastSeen = mr.Key.Name
if !yield(mr, nil) {