-
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
unified search - iindex_pattern => data view type improvement #129506
Changes from 4 commits
2030add
28b0909
e594b32
cd25d9e
1e6e170
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
import { DataViewBase } from '@kbn/es-query'; | ||
import React, { useMemo, useState } from 'react'; | ||
import { TimeHistory } from '../../../../../../../src/plugins/data/public'; | ||
import { DataView } from '../../../../../../../src/plugins/data_views/public'; | ||
import { SearchBar } from '../../../../../../../src/plugins/unified_search/public'; | ||
import { Storage } from '../../../../../../../src/plugins/kibana_utils/public'; | ||
import { translations } from '../../../config'; | ||
|
@@ -47,7 +48,7 @@ export function AlertsSearchBar({ | |
|
||
return ( | ||
<SearchBar | ||
indexPatterns={compatibleIndexPatterns} | ||
indexPatterns={compatibleIndexPatterns as DataView[]} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is ok as far as the prop There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fkanout Its the responsibility of the owners of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @XavierM, it would be helpful to get your inputs here, please. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's merge this one as the |
||
placeholder={translations.alertsSearchBar.placeholder} | ||
query={{ query: query ?? '', language: queryLanguage }} | ||
timeHistory={timeHistory} | ||
|
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.
Isn't this pretty risky? If the
QueryStringInput
requires a fullDataView
instance from now on, is there a way to provide one without all the overhead of persisting it?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.
dataViews.create
will create an instance without persisting.We're working to remove all instances of faked data view instances. Is this happening in the infra code? Perhaps a new issue needs to be created to address this.
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.
Yes, that derived data view is "fake". But if data views can now be created without persistence we can replace that. But let's do that separately 👍