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

[Discover-next] add data source selector #7128

Closed

Conversation

kavilla
Copy link
Member

@kavilla kavilla commented Jun 29, 2024

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

  • feat: add datasource selector in Discover

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

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>
Copy link

codecov bot commented Jun 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 67.44%. Comparing base (b85e177) to head (1b82f62).

Files Patch % Lines
.../data/common/search/search_source/search_source.ts 0.00% 2 Missing ⚠️
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     
Flag Coverage Δ
Linux_1 33.10% <0.00%> (-0.01%) ⬇️
Linux_2 55.05% <0.00%> (-0.01%) ⬇️
Linux_3 45.23% <0.00%> (-0.01%) ⬇️
Linux_4 34.82% <0.00%> (-0.01%) ⬇️
Windows_1 33.12% <0.00%> (-0.01%) ⬇️
Windows_2 55.00% <0.00%> (-0.01%) ⬇️
Windows_3 45.25% <0.00%> (-0.01%) ⬇️
Windows_4 34.82% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -104,6 +107,16 @@ export const TopNav = ({ opts, showSaveQuery }: TopNavProps) => {
onQuerySubmit={opts.onQuerySubmit}
savedQueryId={state.savedQuery}
onSavedQueryIdChange={updateSavedQueryId}
showDataSourceMenu={dataSource?.dataSourceEnabled}
Copy link
Member

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?

@kavilla kavilla marked this pull request as draft July 1, 2024 17:12
@kavilla kavilla closed this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants