Fix issue search optimization in GraphQL
What does this MR do and why?
This enables the CTE search optimization when searching issuables via GraphQL.
When going through GraphQL resolvers, a symbol is passed in as the sort param of the IssuesFinder. This fixes our search optimization which depends on the given sort order to take symbols into account.
Related to gitlab-foss#40379 (comment 685212464) and gitlab-jh/gitlab#229 (closed)
How to set up and validate locally
- Open the "New Issue" form
- Type a few characters into the title field
- Check the GraphQL request in the performance bar and verify that the query for issues uses a CTE
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Heinrich Lee Yu