diff --git a/CHANGELOG.md b/CHANGELOG.md index b22b5556ac33..0addb1e6d221 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### 🛡 Security ### 📈 Features/Enhancements +- [MD]Change cluster selector component name to data source selector ([#6042](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6042)) ### 🐛 Bug Fixes diff --git a/src/plugins/data_source_management/public/components/cluster_selector/create_cluster_selector.tsx b/src/plugins/data_source_management/public/components/cluster_selector/create_cluster_selector.tsx deleted file mode 100644 index 02696e8747f9..000000000000 --- a/src/plugins/data_source_management/public/components/cluster_selector/create_cluster_selector.tsx +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Copyright OpenSearch Contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -import React from 'react'; -import { ClusterSelector, ClusterSelectorProps } from './cluster_selector'; - -export function createClusterSelector() { - return (props: ClusterSelectorProps) => ; -} diff --git a/src/plugins/data_source_management/public/components/cluster_selector/__snapshots__/create_cluster_selector.test.tsx.snap b/src/plugins/data_source_management/public/components/data_source_selector/__snapshots__/create_data_source_selector.test.tsx.snap similarity index 97% rename from src/plugins/data_source_management/public/components/cluster_selector/__snapshots__/create_cluster_selector.test.tsx.snap rename to src/plugins/data_source_management/public/components/data_source_selector/__snapshots__/create_data_source_selector.test.tsx.snap index 68698f7adabe..4ce6e1bc30ab 100644 --- a/src/plugins/data_source_management/public/components/cluster_selector/__snapshots__/create_cluster_selector.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/data_source_selector/__snapshots__/create_data_source_selector.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`create cluster selector should render normally 1`] = ` +exports[`create data source selector should render normally 1`] = ` Object { "asFragment": [Function], "baseElement": @@ -10,7 +10,7 @@ Object { aria-haspopup="listbox" aria-label="Select a data source" class="euiComboBox euiComboBox--compressed" - data-test-subj="clusterSelectorComboBox" + data-test-subj="dataSourceSelectorComboBox" role="combobox" >