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:
Michael Milton authored and Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:20 -08:00
1 parent 575e9641f8
commit 9c3eb16046
20 files changed
+2339 -222

No files matched your search

@@ -51,7 +51,7 @@ func TestListingScopeIds(t *testing.T) {
sessionsRepoFn := func(opt ...session.Option) (*session.Repository, error) {
return session.NewRepository(ctx, rw, rw, kms, opt...)
}
sess, err := sessions.NewService(ctx, sessionsRepoFn, iamRepoFn)
sess, err := sessions.NewService(ctx, sessionsRepoFn, iamRepoFn, 1000)
require.NoError(t, err)
tcs := []struct {