1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-12 13:31:57 +00:00

#50968 - Single SQL Transaction for projectsornamespaces filter (#758)

* working for positive case

* changed to custom code

* removed comment

* added tests

* fixing ci error

* one more fix

* Update proxy_store tests for projectornamespace parsing.

Since we no longer need to execute a db query, and just return a filter,
we can drop a lot of code.

* added distinct back to conform with other queries

* one more fix

---------

Co-authored-by: Eric Promislow <epromislow@suse.com>
This commit is contained in:
Felipe Gehrke
2025-08-08 16:07:54 -03:00
committed by GitHub
parent dbd2818d22
commit 3cac88141b
7 changed files with 324 additions and 300 deletions

View File

@@ -27,9 +27,10 @@ const (
// ListOptions represents the query parameters that may be included in a list request.
type ListOptions struct {
Filters []OrFilter
SortList SortList
Pagination Pagination
Filters []OrFilter
ProjectsOrNamespaces OrFilter
SortList SortList
Pagination Pagination
}
// Filter represents a field to filter by.