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

opening a query with explicit case field leaves an extra whitespace behind #41452

Closed
coury-clark opened this issue Sep 7, 2022 · 1 comment · Fixed by #41456
Closed

opening a query with explicit case field leaves an extra whitespace behind #41452

coury-clark opened this issue Sep 7, 2022 · 1 comment · Fixed by #41456
Assignees
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. search-ux

Comments

@coury-clark
Copy link
Contributor

coury-clark commented Sep 7, 2022

It seems the search box extracts the case field from the query to toggle the case button, but leaves behind an extra whitespace. It's difficult to link (since its then loaded differently), so will post input queries below:

Input: insights case:yes
Result in box: insights <- notice the whitespace at the end

image

Normally this wouldn't be that noticeable, but in the 4.0 aggregations feature this causes some noise in drilldown queries that is somewhat surprising. For example:

type:commit author:^coury-clark$ insights <- double space after the author filter

@coury-clark coury-clark added bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. search-ux labels Sep 7, 2022
@coury-clark
Copy link
Contributor Author

Just from a quick poke, I'm guess that this similar replacement is performing a trim, where the case replacement isn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. search-ux
Projects
None yet
2 participants