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

[Console] Only suggest dot-prefixed indices when user types a dot #195283

Merged

Conversation

ElenaStoeva
Copy link
Contributor

@ElenaStoeva ElenaStoeva commented Oct 7, 2024

Closes #194801

Summary

This PR filters the Console autocomplete suggestions in the URL path so that dot-prefixed indices are suggested only if a dot is typed in.

Screen.Recording.2024-10-09.at.12.32.50.mov

@ElenaStoeva ElenaStoeva self-assigned this Oct 7, 2024
@ElenaStoeva ElenaStoeva added Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Oct 9, 2024
@ElenaStoeva ElenaStoeva marked this pull request as ready for review October 9, 2024 11:35
@ElenaStoeva ElenaStoeva requested a review from a team as a code owner October 9, 2024 11:35
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@elasticmachine
Copy link
Contributor

💚 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
console 208.1KB 208.2KB +88.0B

cc @ElenaStoeva

Copy link
Member

@sabarasaba sabarasaba left a comment

Choose a reason for hiding this comment

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

awesome work, cant believe this is finally patched! tested locally and works perfectly fine 🚀

@ElenaStoeva ElenaStoeva merged commit c20f655 into elastic:main Oct 9, 2024
32 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11256461791

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 9, 2024
…astic#195283)

Closes elastic#194801

## Summary

This PR filters the Console autocomplete suggestions in the URL path so
that dot-prefixed indices are suggested only if a dot is typed in.

https://github.com/user-attachments/assets/fe7fc155-f9a8-4fb0-953e-b84b0d052f2a
(cherry picked from commit c20f655)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 9, 2024
…ot (#195283) (#195606)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Console] Only suggest dot-prefixed indices when user types a dot
(#195283)](#195283)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Elena
Stoeva","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-09T13:53:55Z","message":"[Console]
Only suggest dot-prefixed indices when user types a dot
(#195283)\n\nCloses
https://github.com/elastic/kibana/issues/194801\r\n\r\n##
Summary\r\n\r\nThis PR filters the Console autocomplete suggestions in
the URL path so\r\nthat dot-prefixed indices are suggested only if a dot
is typed
in.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/fe7fc155-f9a8-4fb0-953e-b84b0d052f2a","sha":"c20f6550126b05937c1faaf105dd2425fc57f861","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana
Management","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Console]
Only suggest dot-prefixed indices when user types a
dot","number":195283,"url":"https://github.com/elastic/kibana/pull/195283","mergeCommit":{"message":"[Console]
Only suggest dot-prefixed indices when user types a dot
(#195283)\n\nCloses
https://github.com/elastic/kibana/issues/194801\r\n\r\n##
Summary\r\n\r\nThis PR filters the Console autocomplete suggestions in
the URL path so\r\nthat dot-prefixed indices are suggested only if a dot
is typed
in.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/fe7fc155-f9a8-4fb0-953e-b84b0d052f2a","sha":"c20f6550126b05937c1faaf105dd2425fc57f861"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195283","number":195283,"mergeCommit":{"message":"[Console]
Only suggest dot-prefixed indices when user types a dot
(#195283)\n\nCloses
https://github.com/elastic/kibana/issues/194801\r\n\r\n##
Summary\r\n\r\nThis PR filters the Console autocomplete suggestions in
the URL path so\r\nthat dot-prefixed indices are suggested only if a dot
is typed
in.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/fe7fc155-f9a8-4fb0-953e-b84b0d052f2a","sha":"c20f6550126b05937c1faaf105dd2425fc57f861"}}]}]
BACKPORT-->

Co-authored-by: Elena Stoeva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature:Console Dev Tools Console Feature release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Console] Limit system/hidden indices in autocomplete search results
4 participants