Revert "fix: unified resource server list queries order column" (#109529)
This commit is contained in:
committed by
GitHub
parent
c662b880fd
commit
7b4fcd486a
@@ -29,7 +29,7 @@ WHERE 1 = 1
|
||||
AND {{ .Ident "resource_version" }} = {{ .Arg .ExactRV }}
|
||||
{{ end }}
|
||||
{{ if .SortAscending }}
|
||||
ORDER BY {{ .Ident "resource_version" }} ASC
|
||||
ORDER BY resource_version ASC
|
||||
{{ else }}
|
||||
ORDER BY {{ .Ident "resource_version" }} DESC
|
||||
ORDER BY resource_version DESC
|
||||
{{ end }}
|
||||
|
||||
@@ -50,7 +50,7 @@ SELECT
|
||||
AND kv.{{ .Ident "name" }} = {{ .Arg .Request.Options.Key.Name }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
ORDER BY kv.{{ .Ident "resource_version" }} ASC
|
||||
ORDER BY kv.{{ .Ident "namespace" }} ASC, kv.{{ .Ident "name" }} ASC
|
||||
{{ if (gt .Request.Limit 0) }}
|
||||
LIMIT {{ .Arg .Request.Limit }} OFFSET {{ .Arg .Request.Offset }}
|
||||
{{ end }}
|
||||
|
||||
@@ -23,5 +23,5 @@ SELECT
|
||||
AND {{ .Ident "name" }} = {{ .Arg .Request.Options.Key.Name }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
ORDER BY {{ .Ident "resource_version" }} ASC
|
||||
ORDER BY {{ .Ident "namespace" }} ASC, {{ .Ident "name" }} ASC
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user