Repository navigation
Return Mail search results when the scope count times out - #314
Merged
Merged
Conversation
Envelope 0.5.0 returns a search page with a nil scope count when the count passes the time limit, instead of throwing (#312).
Mail searches on a large store failed because the scope count passed the time limit after the page was found (#312). With Envelope 0.5.0, the search returns the page with a nil count. Report the count as null, and say that it could not be counted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A Mail search also counts the indexed messages in the selected mailbox, or in all mailboxes when none is selected, without the search filters. On a large Mail store, that count could take longer than the default 100 ms limit, so the search failed with "stopped at the time limit" even after the matching messages were found.
This PR updates Envelope to 0.5.0, which returns the page without the count when that happens.
localIndex.indexedMessageCountisnullin that case, andlocalIndex.descriptionsays that the count is unavailable. A search whose matching messages can't be fetched in time still fails.Related to #312