-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[GS] add tag and dashboard suggestion results #85144
[GS] add tag and dashboard suggestion results #85144
Conversation
@ryankeairns @alexfrancoeur the PR is still in draft, but I think it is functionally complete. Could you take a quick look see if everything is looking good? Some remarks:
|
I just did a quick pass, this is looking really nice!
In response to your questions:
Thanks for working on this, its quite helpful. |
I'll defer to Ryan here, but I'm +1 on a static icon to simplify
This feels like a nice to have to me. Technically, you're still going to a filtered list?
I agree, a constant reminder of filter types might be useful. The PR is looking great! A few quick observations and questions below Does exact match have to be case sensitive? Because it's an exact match, I'm guessing yes, but thought I'd post the question. I think there might be some issues filtering on tags with white space by using the default suggestion. Adding quotes around the string will provide the appropriate filter |
Na, just forget to make the match case-insensitive. Will fix.
Yea, already have a TODO for this 😄
|
I didn't cover it in the previous PR because the badge question is a bigger effort to fix and has a few technical issues in the way of implementing it. I meant to open a ticket for it earlier but forgot to. Done now! |
Pinging @elastic/kibana-core (Team:Core) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KibanaApp changes LGTM, code review only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected; tested the whitespace and case fixes.
The filter
icon makes sense, as well 🥇
I can't wait to hear the feedback, this search feature is really powerful.
+1. I like the idea of using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's all coming together, this looks fantastic. Whitespace and case sensitivity tested on my end. Thanks Pierre, this is amazing!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pgayvallet is a global search machiiine! The implementation looks great, only small question/suggestion.
return typeRegistry | ||
.getVisibleTypes() | ||
.filter((type) => type.management?.defaultSearchField && type.management?.getInAppUrl) | ||
.map((type) => type.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we DRY this up with lines 26-29 to ensure the implementations of these two functions are consistent?
💛 Build succeeded, but was flaky
Test FailuresPlugin Functional Tests.x-pack/test/plugin_api_integration/test_suites/task_manager/health_route·ts.task_manager health should return a breakdown of idleTasks in the task manager workloadStandard Out
Stack Trace
Metrics [docs]Module Count
Distributable file count
Page load bundle
History
To update your PR or re-run it, just comment with: |
* initial draft * polish * fix mocks * add tests * tests on suggestions * add comment * add FTR tests * factorize getSearchableTypes * move to bottom
…k-field-to-hot-phase * 'master' of github.com:elastic/kibana: (429 commits) simplify popover open state logic (elastic#85379) [Logs UI][Metrics UI] Move actions to the kibana header (elastic#84648) [Search Source] Do not pick scripted fields if * provided (elastic#85133) [Search] Session SO polling (elastic#84225) [Transform] Replace legacy elasticsearch client (elastic#84932) [Uptime]Refactor header and action menu (elastic#83779) Fix agg select external link (elastic#85380) [ILM] Show forcemerge in hot when rollover is searchable snapshot is enabled (elastic#85292) clear using keyboard (elastic#85042) [GS] add tag and dashboard suggestion results (elastic#85144) [ML] API integration tests - skip GetAnomaliesTableData Add ECS field for event.code. (elastic#85109) [Functional][TSVB] Wait for markdown textarea to be cleaned (elastic#85128) skip flaky suite (elastic#62060) skip flaky suite (elastic#85098) Bump highlight.js to v9.18.5 (elastic#84296) Add `server.publicBaseUrl` config (elastic#85075) [Alerting & Actions ] More debug logging (elastic#85149) [Security Solution][Case] Manual attach alert to a case (elastic#82996) Loosen UUID regex to accept uuidv1 or uuidv4 (elastic#85338) ... # Conflicts: # x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.helpers.tsx # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/hot_phase/hot_phase.tsx # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/shared_fields/index.ts # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/warm_phase/warm_phase.tsx # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/edit_policy.tsx # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/i18n_texts.ts # x-pack/plugins/index_lifecycle_management/server/routes/api/policies/register_create_route.ts
Summary
Fix #83888
PR Adds 'filter by tag' and 'filter by type' suggestions when the user searches for a term matching a search type or a tag name.
Screenshots
Checklist
Delete any items that are not applicable to this PR.