Repository navigation
[EuiSearchBar] Fix quoted phrases (without a field) removing quotes - #6714
Merged
Merged
Conversation
s-nel
force-pushed
the
quote-separate-terms
branch
2 times, most recently
from
April 16, 2023 10:02
5fa5c7c to
be2e798
Compare
s-nel
force-pushed
the
quote-separate-terms
branch
from
April 16, 2023 10:15
be2e798 to
8638ac8
Compare
Contributor
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6714/ |
s-nel
marked this pull request as ready for review
April 16, 2023 10:54
cee-chen
reviewed
Apr 17, 2023
cee-chen
approved these changes
Apr 17, 2023
cee-chen
left a comment
Contributor
There was a problem hiding this comment.
Thank you so much for this fantastic fix, tests, and documentation - it's seriously very appreciated!
cee-chen
enabled auto-merge (squash)
April 17, 2023 15:53
Contributor
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6714/ |
Contributor
Author
|
Thanks! I wanted to err on the side of caution since the interface is changing (even though it's fixing a bug) 🙇 |
mistic
pushed a commit
to elastic/kibana
that referenced
this pull request
May 5, 2023
## Summary `[email protected]` ⏩ `[email protected]` Closes elastic/eui#6724 --- ## [`77.2.2`](https://github.com/elastic/eui/tree/v77.2.2) - Updated `EuiFocusTrap` to support the `gapMode` prop configuration (now defaults to `padding`) ([#6744](elastic/eui#6744)) **Bug fixes** - Fixed the `scrollLock` property on `EuiFocusTrap` (and other components using `EuiFocusTrap`, such as `EuiFlyout` and `EuiModal`) to no longer block scrolling on nested portalled content, such as combobox dropdowns ([#6744](elastic/eui#6744)) ## [`77.2.1`](https://github.com/elastic/eui/tree/v77.2.1) **Bug fixes** - Fixed `EuiFieldNumber`'s native browser validity detection causing extra unnecessary rerenders ([#6741](elastic/eui#6741)) ## [`77.2.0`](https://github.com/elastic/eui/tree/v77.2.0) - Updated `EuiFieldNumber` to detect native browser invalid state and show an invalid icon ([#6704](elastic/eui#6704)) - Improved the input widths of `EuiRange` and `EuiDualRange` when `showInput={true}` to account for invalid icons ([#6704](elastic/eui#6704)) - Improved the `isInvalid` styling of `EuiDualRange` when `showInput="inputWithPopover"` ([#6704](elastic/eui#6704)) - Updated `EuiFormControlLayoutIcons` to render left icons in expected DOM order ([#6705](elastic/eui#6705)) - Updated `EuiDatePickerRange`'s `isInvalid` state to match other range inputs ([#6705](elastic/eui#6705)) - Updated `EuiSuperDatePicker`'s `isInvalid` state to match other range inputs ([#6705](elastic/eui#6705)) **Bug fixes** - Fixed `EuiValidatableControl` to correctly display `isInvalid` states on mount ([#6705](elastic/eui#6705)) - Fixed an issue with `EuiSearchBar` where quoted phrases were not quoted when generating an Elasticsearch query. ([#6714](elastic/eui#6714)) --------- Co-authored-by: Constance Chen <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Constance Chen <[email protected]>
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.
Summary
This PR fixes an issue where multi-word terms (without a field) aren't quoted properly when converted to an Elasticsearch query.
Before
After
QA
General checklist
- [ ] Checked in both light and dark modes- [ ] Checked in mobile- [ ] Checked in Chrome, Safari, Edge, and Firefox- [ ] Checked Code Sandbox works for any docs examples- [ ] Props have proper autodocs (using@defaultif default values are missing) and playground toggles- [ ] Checked for accessibility including keyboard-only and screenreader modes- [ ] Updated the Figma library counterpart