-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[UnifiedSearch] Add query DSL docs link to filters UI #156543
Conversation
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
services: { uiSettings }, | ||
} = useKibana(); | ||
services: { uiSettings, docLinks }, | ||
} = useKibana<ObservabilityAppServices>(); |
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.
Uptime team, could you please please test these changes with your data set?
Btw, is it expected that components are duplicated under exploratory_view
and observability
plugins?
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.
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.
My review wasn't requested here, but I'm nosy and just wanted to leave a quick comment about some copy 😅 Otherwise LGTM, seems like a useful link to include here 👍
src/plugins/unified_search/public/filter_bar/filter_editor/filter_editor.tsx
Outdated
Show resolved
Hide resolved
…ter_editor.tsx Co-authored-by: Davis McPhee <davismcphee@hotmail.com>
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.
Very nice addition Julia, LGTM!
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.
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.
Thanks for this! Just some comments related to a change we made just as you were working on your PR.
@@ -11,6 +11,7 @@ import { Filter, buildPhrasesFilter, buildPhraseFilter } from '@kbn/es-query'; | |||
import { FilterItem } from '@kbn/unified-search-plugin/public'; | |||
import type { DataView } from '@kbn/data-views-plugin/common'; | |||
import { useKibana } from '@kbn/kibana-react-plugin/public'; | |||
import { ObservabilityAppServices } from '../../../application/types'; |
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.
Could you please use ObservabilityPluginStart instead? This type is a duplicate and we want to remove it with #158144.
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.
@CoenWarmer Looks like there is no ObservabilityPluginStart
in x-pack/plugins/exploratory_view
. Would it be okay to keep ObservabilityAppServices
for this PR?
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.
@jughosta I mean ObservabilityPublicPluginsStart: x-pack/plugins/observability/public/plugin.ts (line 90).
I'm approving now as I am on paternity leave and don't want to block. But I would prefer if you could apply the change requested.
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.
Hi @elastic/actionable-observability,
Could you please help me understand your code setup so I can improve the PR changes.
From my observation there are 2 ObservabilityAppServices
types: in observability
and in exploratory_view
plugins. They include different services btw. And there is also ObservabilityPublicPluginsStart
which might replace ObservabilityAppServices
in observability
via #158144
My change is in the second exploratory_view
plugin. I am not familiar with how your code is organized in plugins and from the high level it does not seem to fit using a Kibana services type from one plugin inside another plugin (as suggested ObservabilityPublicPluginsStart
from observability
in exploratory_view
). Also ObservabilityPublicPluginsStart
does not include docLinks
as it comes from core
.
How would you suggest to proceed with adding docLinks
for useKibana
call in exploratory_view
plugin?
# Conflicts: # x-pack/plugins/observability/public/components/shared/index.tsx # x-pack/plugins/observability/public/index.ts
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.
Approve to unblock PR, but change requested. Otherwise LGTM
# Conflicts: # src/plugins/unified_search/tsconfig.json
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @jughosta |
Summary
This PR adds a link to "Query DSL" syntax docs.