Create search filters by interface (#39843)

* Extract search users to a new service

* Fix wire provider

* Fix common_test and remove RouteRegister

* Remove old endpoints

* Fix test

* Create search filters using interfaces

* Move Enterprise filter, rename filter for filters and allow use filters with params

* Each filter has unique key

* Back activeLast30Days filter to OSS

* Fix tests

* Delete unusued param

* Move filters to searchusers service and small refactor

* Fix tests
This commit is contained in:
Selene
2021-10-07 16:06:16 +02:00
committed by GitHub
parent e7b81e1918
commit da813877fb
10 changed files with 150 additions and 22 deletions
+1 -5
View File
@@ -138,17 +138,13 @@ type GetUserProfileQuery struct {
Result UserProfileDTO
}
type SearchUsersFilter string
const ActiveLast30Days SearchUsersFilter = "activeLast30Days"
type SearchUsersQuery struct {
OrgId int64
Query string
Page int
Limit int
AuthModule string
Filter SearchUsersFilter
Filters []Filter
IsDisabled *bool