You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: pagination bug skipping last page in do-while loops (#1277)
The do-while pagination pattern was incorrectly checking hasNextPage()
after calling getNextPage(), causing the last page of results to be
skipped.
Affected functions:
- getConnectionEnabledClients() in connections.ts
- role permissions listing in roles.ts
- getOrganizationEnabledConnections() in organizations.ts
- getOrganizationClientGrants() in organizations.ts
- getAllOrganizationDiscoveryDomains() in organizations.ts
- getAllFlowConnections() in flowVaultConnections.ts
Added multi-page pagination tests to verify the fix.
Fixes#1272
Co-authored-by: Kushal <43465488+kushalshit27@users.noreply.github.com>
0 commit comments