[BUG] data_source.hideLocalCluster
setting and default datasource is not being honored when mounting data source menu via Top Nav Menu
#6368
Labels
Describe the bug
Coming from discussion here. Currently when mounting data source menu via Top Nav Menu,
data_source.hideLocalCluster
setting in data source plugin config to decide if to hide/show local cluster.This is related to how
DataSourceMenu
is consumed in navigation plugin, it's currently imported directly, instead of using the data source management plugin API,const DataSourceMenu = this.props.dataSourceManagement.ui.getDataSourceMenu<DataSourceMultiSelectableConfig>();
.OpenSearch-Dashboards/src/plugins/navigation/public/top_nav_menu/top_nav_menu.tsx
Line 44 in a0eaf84
To Reproduce
Steps to reproduce the behavior:
0. enabled data source plugin and set
data_source.hideLocalCluster: true
yarn start --run-examples
Expected behavior
A clear and concise description of what you expected to happen.
OpenSearch Version
Please list the version of OpenSearch being used.
Dashboards Version
Please list the version of OpenSearch Dashboards being used.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: