Skip to content

Fix broken GraphQL members search pagination

Adam Hegyi requested to merge 359945-fix-broken-member-search-graphql into master

What does this MR do and why?

This MR fixes the broken group members search when requesting the second page. The returned ActiveRecord scope from the User.search method returned a query with an ORDER BY clause incompatible with keyset pagination. Example query: #359945 (closed)

This MR modifies the query to support keyset pagination. The change is behind a feature flag: use_keyset_aware_user_search_query

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #359945 (closed)

Edited by Adam Hegyi

Merge request reports