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

Fix missing full text search cancellation #978

Merged
merged 1 commit into from
Mar 12, 2023

Conversation

danielzgtg
Copy link
Contributor

This fixes the corruption of the search.status variable due to an illegal state transition cancelled -> complete in the full text search callback. Before it was causing the search results list to show around 10% of the time when I press enter quickly, and 100% if I cause the full text search to be delayed artificially. After this PR, the search results list cancellation bug for the full text search occurs 0% of the time.

Closes #977

Copy link
Member

@Jaifroid Jaifroid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, many thanks for this PR! Let me know if you're happy for me to press the squash/merge button.

@danielzgtg
Copy link
Contributor Author

Ready!

@Jaifroid Jaifroid merged commit d52c5d5 into kiwix:main Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search results list fails to close when typing quickly
2 participants