fix(api): implement missing filters on ListAdministrators endpoint (#11319)

# Which Problems Are Solved

A customer reported that multiple filters on the ListAdministrators
endpoint were returning a `List.Query.Invalid` error.
They were missing the implementation.

# How the Problems Are Solved

Implement `and`, `or`, `not` and `role` filters.

# Additional Changes

None

# Additional Context

- reported by customer
- requires backport to v4.x
This commit is contained in:
Livio Spring
2026-01-12 06:22:34 +00:00
committed by GitHub
parent 049622720c
commit 4b6add514f
4 changed files with 261 additions and 6 deletions
+4
View File
@@ -106,6 +106,10 @@ func NewMembershipIsIAMQuery() (SearchQuery, error) {
return NewNotNullQuery(InstanceMemberIAMID)
}
func NewMembershipRoleQuery(role string) (SearchQuery, error) {
return NewTextQuery(membershipRoles, role, TextListContains)
}
func (q *MembershipSearchQuery) toQuery(query sq.SelectBuilder) sq.SelectBuilder {
query = q.SearchRequest.toQuery(query)
for _, q := range q.Queries {