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

[Discover] Support case-insensitive search in Document Viewer #148312

Merged

Conversation

jughosta
Copy link
Contributor

@jughosta jughosta commented Jan 3, 2023

Closes #147087

Summary

This PR:

  • adds support for case-insensitive search
  • adds search highlights
  • fixes the tooltip when a field has a custom label

Screenshot 2023-01-03 at 17 09 20

@jughosta jughosta added release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) backport:prev-minor Backport to the previous minor version (i.e. one version back from main) labels Jan 3, 2023
@jughosta jughosta self-assigned this Jan 3, 2023
@jughosta jughosta marked this pull request as ready for review January 3, 2023 17:50
@jughosta jughosta requested a review from a team as a code owner January 3, 2023 17:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 395.7KB 395.9KB +207.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jughosta

Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

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

A few nice improvements here, nice! Pulled and tested locally, LGTM 👍

@jughosta jughosta merged commit 84693f6 into elastic:main Jan 5, 2023
@jughosta jughosta deleted the 147087-case-insensitive-fields-search branch January 5, 2023 07:58
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.6

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 5, 2023
…c#148312)

Closes elastic#147087

## Summary

This PR:
- adds support for case-insensitive search
- adds search highlights
- fixes the tooltip when a field has a custom label

<img width="744" alt="Screenshot 2023-01-03 at 17 09 20"
src="https://user-images.githubusercontent.com/1415710/210396131-529a3e76-a6cb-4026-b65a-018e1f627ac6.png">

(cherry picked from commit 84693f6)
kibanamachine added a commit that referenced this pull request Jan 5, 2023
…148312) (#148429)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[Discover] Support case-insensitive search in Document Viewer
(#148312)](#148312)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2023-01-05T07:58:47Z","message":"[Discover]
Support case-insensitive search in Document Viewer (#148312)\n\nCloses
#147087
Summary\r\n\r\nThis PR:\r\n- adds support for case-insensitive search
\r\n- adds search highlights\r\n- fixes the tooltip when a field has a
custom label\r\n\r\n<img width=\"744\" alt=\"Screenshot 2023-01-03 at 17
09
20\"\r\nsrc=\"https://user-images.githubusercontent.com/1415710/210396131-529a3e76-a6cb-4026-b65a-018e1f627ac6.png\">","sha":"84693f6f312449327e86abfc5b1dc20871507da9","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:DataDiscovery","backport:prev-minor","v8.7.0"],"number":148312,"url":"https://github.com/elastic/kibana/pull/148312","mergeCommit":{"message":"[Discover]
Support case-insensitive search in Document Viewer (#148312)\n\nCloses
#147087
Summary\r\n\r\nThis PR:\r\n- adds support for case-insensitive search
\r\n- adds search highlights\r\n- fixes the tooltip when a field has a
custom label\r\n\r\n<img width=\"744\" alt=\"Screenshot 2023-01-03 at 17
09
20\"\r\nsrc=\"https://user-images.githubusercontent.com/1415710/210396131-529a3e76-a6cb-4026-b65a-018e1f627ac6.png\">","sha":"84693f6f312449327e86abfc5b1dc20871507da9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/148312","number":148312,"mergeCommit":{"message":"[Discover]
Support case-insensitive search in Document Viewer (#148312)\n\nCloses
#147087
Summary\r\n\r\nThis PR:\r\n- adds support for case-insensitive search
\r\n- adds search highlights\r\n- fixes the tooltip when a field has a
custom label\r\n\r\n<img width=\"744\" alt=\"Screenshot 2023-01-03 at 17
09
20\"\r\nsrc=\"https://user-images.githubusercontent.com/1415710/210396131-529a3e76-a6cb-4026-b65a-018e1f627ac6.png\">","sha":"84693f6f312449327e86abfc5b1dc20871507da9"}}]}]
BACKPORT-->

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
@mistic mistic added v8.6.1 and removed v8.6.0 labels Jan 10, 2023
@mistic
Copy link
Member

mistic commented Jan 10, 2023

The backport was not included on v8.6.0 at it happened after the build candidate. Changing the label to v8.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to the previous minor version (i.e. one version back from main) release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) v8.6.1 v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discover document flyout searchbar should not be case sensitive
6 participants