-
Notifications
You must be signed in to change notification settings - Fork 979
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-next] add data source selector #7128
[Discover-next] add data source selector #7128
Conversation
Onboards data source selector from Discover next. The index patterns populated are based on the current data source. If the default cluster is not the local cluster then Discover pretty much breaks because it will default assume the data source by the current context which is currently only the local cluster. Another way to say it: when the default data source is not the local cluster, Discover is still only displaying the index patterns in the local cluster. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7128 +/- ##
==========================================
- Coverage 67.45% 67.44% -0.01%
==========================================
Files 3448 3448
Lines 67964 67966 +2
Branches 11057 11057
==========================================
- Hits 45845 45843 -2
- Misses 19446 19449 +3
- Partials 2673 2674 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -104,6 +107,16 @@ export const TopNav = ({ opts, showSaveQuery }: TopNavProps) => { | |||
onQuerySubmit={opts.onQuerySubmit} | |||
savedQueryId={state.savedQuery} | |||
onSavedQueryIdChange={updateSavedQueryId} | |||
showDataSourceMenu={dataSource?.dataSourceEnabled} |
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.
Im a lil confused how this PR works. If you are using the local cluster, whats the purpose of this menu?
Description
Onboards data source selector from Discover next.
The index patterns populated are based on the current data source. If the default cluster is not the local cluster then Discover pretty much breaks because it will default assume the data source by the current context which is currently only the local cluster.
Another way to say it:
when the default data source is not the local cluster, Discover is still only displaying the index patterns in the local cluster.
Issues Resolved
related: #7129
Changelog
Check List
yarn test:jest
yarn test:jest_integration