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

search: Do not show default suggestion for is operator. #9495

Merged
merged 2 commits into from
May 22, 2018

Conversation

shubham-padia
Copy link
Member

Fixes #9492.

Commit 1:
Default suggestion e.g abc messages as a suggestion for is:abc
is not shown in a new suggestion. But if the is operator is already
present before any other operator, the default message text will be
used. e.g is:abc sender:abc@zulipchat.com will have all the suggestions
with the prefix abc messages, sent by abc@zulipchat.com.
selection_135

Commit 2:
is operator uses predefined categories. This commit
displays an invalid operand message if the operand does not fall into
any of these categories and the is operator is not at the last.
e.g. is:abc sender:abc@zulipchat.com will have invalid abc operand for has operator, sent by abc@zulipchat.com as a prefix for all its
suggestions.
selection_136

Fixes zulip#9492.
Default suggestion e.g `abc messages` as a suggestion for `is:abc`
is not shown in a new suggestion. But if the is operator is already
present before any other operator, the default message text will be
used. e.g `is:abc sender:abc@zulipchat.com` will have all the suggestions
with the prefix `abc messages, sent by abc@zulipchat.com`.
Fixes zulip#9492.
`is` operator uses predefined categories. This commit
displays an invalid operand message if the operand does not fall into
any of these categories and the `is` operator is not at the last.
e.g. `is:abc sender:abc@zulipchat.com` will have `invalid abc operand
for has operator, sent by abc@zulipchat.com` as a prefix for all its
suggestions.
@timabbott
Copy link
Sponsor Member

Nice, merged, thanks @shubham-padia!

@timabbott timabbott closed this May 22, 2018
@timabbott timabbott merged commit a5db885 into zulip:master May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

search: Do not show default suggestions for is operator
3 participants