Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: user search returns partial results #1161

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

mipyykko
Copy link
Collaborator

User search built up a very complicated and slow query with zillions of different conditions, so now we go through each of the possible conditions one by one with a separate query and return the results through a subscription. This way the search feels more responsive. Also added some meta information on the searches in the form, if someone should ever need that -- probably not, but that was almost a side effect of the implementation.

GraphQL playground didn't like subscriptions (probably using some other implementation of subscriptions) so I guess we're using the newer default Apollo ones now. It did only affect the subscription, though, so if we don't really need to do that in the playground, then we can revert. Tthe old user search works there as well.

@mipyykko mipyykko merged commit 162954d into master Apr 12, 2023
@mipyykko mipyykko deleted the feat-user-search-subscription branch April 12, 2023 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant