Sessions list pagination (#4079)
* Session list pagination refactor * address pr comments, add explanatory comments, clean up sql queries, move tests into proper files * fix build error * fix test error
This commit is contained in:
1 parent
575e9641f8
commit
9c3eb16046
20 files changed
+2339
-222
No files matched your search
@@ -252,7 +252,7 @@ func (c *Controller) registerGrpcServices(s *grpc.Server) error {
|
||||
services.RegisterRoleServiceServer(s, rs)
|
||||
}
|
||||
if _, ok := currentServices[services.SessionService_ServiceDesc.ServiceName]; !ok {
|
||||
ss, err := sessions.NewService(c.baseContext, c.SessionRepoFn, c.IamRepoFn)
|
||||
ss, err := sessions.NewService(c.baseContext, c.SessionRepoFn, c.IamRepoFn, c.conf.RawConfig.Controller.MaxPageSize)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create session handler service: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user