Change index-pattern text to data view (#125108)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Corey Robertson 2022-02-09 13:26:04 -05:00 committed by GitHub
parent 3c73b605aa
commit a208ae974f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -26,7 +26,7 @@ export const help: FunctionHelp<FunctionFactory<typeof escount>> = {
},
}),
index: i18n.translate('xpack.canvas.functions.escount.args.indexHelpText', {
defaultMessage: 'An index or index pattern. For example, {example}.',
defaultMessage: 'An index or data view. For example, {example}.',
values: {
example: '`"logstash-*"`',
},

View file

@ -35,7 +35,7 @@ export const help: FunctionHelp<FunctionFactory<typeof esdocs>> = {
defaultMessage: 'A comma-separated list of fields. For better performance, use fewer fields.',
}),
index: i18n.translate('xpack.canvas.functions.esdocs.args.indexHelpText', {
defaultMessage: 'An index or index pattern. For example, {example}.',
defaultMessage: 'An index or data view. For example, {example}.',
values: {
example: '`"logstash-*"`',
},

View file

@ -405,7 +405,7 @@ export const DataSourceStrings = {
}),
getIndexLabel: () =>
i18n.translate('xpack.canvas.uis.dataSources.esdocs.indexLabel', {
defaultMessage: 'Enter an index name or select an index pattern',
defaultMessage: 'Enter an index name or select a data view',
}),
getQueryTitle: () =>
i18n.translate('xpack.canvas.uis.dataSources.esdocs.queryTitle', {

View file

@ -30,7 +30,7 @@ describe('Retrieve ES Fields', () => {
routeHandler = routerDeps.router.get.mock.calls[0][1];
});
it(`returns 200 with fields from existing index/index pattern`, async () => {
it(`returns 200 with fields from existing index/data view`, async () => {
const index = 'test';
const mockResults = {
body: {
@ -85,7 +85,7 @@ describe('Retrieve ES Fields', () => {
`);
});
it(`returns 200 with empty object when index/index pattern has no fields`, async () => {
it(`returns 200 with empty object when index/data view has no fields`, async () => {
const index = 'test';
const mockResults = { body: { indices: [index], fields: {} } };
const request = httpServerMock.createKibanaRequest({
@ -107,7 +107,7 @@ describe('Retrieve ES Fields', () => {
expect(response.payload).toMatchInlineSnapshot('Object {}');
});
it(`returns 200 with empty object when index/index pattern does not have specified field(s)`, async () => {
it(`returns 200 with empty object when index/data view does not have specified field(s)`, async () => {
const index = 'test';
const mockResults = {