mirror of
https://github.com/rancher/steve.git
synced 2025-09-08 10:49:25 +00:00
Revert part of steve PR 633 (#708)
Specifically, recomment a test that was uncommented in this PR, and revert the underlying code that made this test pass. That code change causes user-based integration tests to fail, so something is not correct in that code. This was actually unrelated to the reason for PR 633, to fix a problem when sorting on a label that dropped objects that didn't have that label. That part remains untouched.
This commit is contained in:
@@ -683,10 +683,8 @@ func (l *ListOptionIndexer) constructQuery(lo *sqltypes.ListOptions, partitions
|
||||
names := thisPartition.Names
|
||||
|
||||
if len(names) == 0 {
|
||||
if len(singlePartitionClauses) == 0 {
|
||||
// degenerate case, there will be no results
|
||||
singlePartitionClauses = append(singlePartitionClauses, "FALSE")
|
||||
}
|
||||
// degenerate case, there will be no results
|
||||
singlePartitionClauses = append(singlePartitionClauses, "FALSE")
|
||||
} else {
|
||||
singlePartitionClauses = append(singlePartitionClauses, fmt.Sprintf(`f."metadata.name" IN (?%s)`, strings.Repeat(", ?", len(thisPartition.Names)-1)))
|
||||
// sort for reproducibility
|
||||
|
Reference in New Issue
Block a user