Skip to content

Commit 1507138

Browse files
committed
Update data layer source name
Signed-off-by: Junqiu Lei <[email protected]>
1 parent 811e8b0 commit 1507138

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1818
### Bug Fixes
1919
### Infrastructure
2020
### Documentation
21+
* Update data layer source name [#588](https://github.com/opensearch-project/dashboards-maps/pull/588)
2122
### Maintenance
2223
### Refactoring

cypress/e2e/documentsLayer.cy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Documents layer', () => {
2424
cy.contains('Create map').click();
2525
cy.get("button[data-test-subj='addLayerButton']").click();
2626
cy.contains('Documents').click();
27-
cy.contains('Select data source', { timeout: 60000 }).click({ force: true });
27+
cy.contains('Select index pattern', { timeout: 60000 }).click({ force: true });
2828
cy.contains('opensearch_dashboards_sample_data_flights').click();
2929
cy.contains('Select data field', { timeout: 60000 }).click({ force: true });
3030
cy.contains('DestLocation').click();

public/components/layer_config/documents_config/document_layer_source.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export const DocumentLayerSource = ({
264264
<EuiFlexGrid columns={1}>
265265
<EuiFlexItem>
266266
<EuiFormRow
267-
label="Data source"
267+
label="Index pattern"
268268
isInvalid={!indexPattern}
269269
error={errorsMap.datasource}
270270
data-test-subj={'indexPatternSelect'}
@@ -273,7 +273,7 @@ export const DocumentLayerSource = ({
273273
<IndexPatternSelect
274274
savedObjectsClient={savedObjectsClient}
275275
placeholder={i18n.translate('documentLayer.selectDataSourcePlaceholder', {
276-
defaultMessage: 'Select data source',
276+
defaultMessage: 'Select index pattern',
277277
})}
278278
indexPatternId={indexPattern?.id || ''}
279279
onChange={async (newIndexPatternId: any) => {

0 commit comments

Comments
 (0)