refactor: fix pagination with stable resolveKey, use reactive default… (#4951)
* refactor: fix pagination with stable resolveKey, use reactive defaultRoles, and remove email permission check * Changes from call * More changes from call * WIP fixing team composite cursor * paginated items fix * minor rename * composite cursor tools improved * fe undoing debugging stuff * extra fixes * invitable collabs fix --------- Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
This commit is contained in:
committed by
GitHub
parent
794bd7c7e9
commit
c89fe339ec
@@ -463,6 +463,11 @@ describe('Workspaces GQL CRUD', () => {
|
||||
limit: 10,
|
||||
cursor: resA.data?.workspace.team.cursor
|
||||
})
|
||||
const resC = await largeWorkspaceApollo.execute(GetWorkspaceTeamDocument, {
|
||||
workspaceId: largeWorkspace.id,
|
||||
limit: 10,
|
||||
cursor: resB.data?.workspace.team.cursor
|
||||
})
|
||||
|
||||
expect(resA).to.not.haveGraphQLErrors()
|
||||
expect(resA.data?.workspace.team.items.length).to.equal(2)
|
||||
@@ -475,7 +480,11 @@ describe('Workspaces GQL CRUD', () => {
|
||||
|
||||
expect(resB).to.not.haveGraphQLErrors()
|
||||
expect(resB.data?.workspace.team.items.length).to.equal(4)
|
||||
expect(resB.data?.workspace.team.cursor).to.be.null
|
||||
expect(resB.data?.workspace.team.cursor).to.be.not.null
|
||||
|
||||
expect(resC).to.not.haveGraphQLErrors()
|
||||
expect(resC.data?.workspace.team.items.length).to.equal(0)
|
||||
expect(resC.data?.workspace.team.cursor).to.be.null
|
||||
})
|
||||
|
||||
it('should return correct total count', async () => {
|
||||
|
||||
Reference in New Issue
Block a user