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 authored and GitHub committed 2025-08-26 12:39:30 -06:00
1 parent 740945511d
commit b4ed217656
2 files changed
+34 -7

No files matched your search

-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) {