mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
Change index-pattern text to data view (#125108)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
3c73b605aa
commit
a208ae974f
4 changed files with 6 additions and 6 deletions
|
@ -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-*"`',
|
||||
},
|
||||
|
|
|
@ -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-*"`',
|
||||
},
|
||||
|
|
|
@ -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', {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue