Skip to content

Commit 4022abd

Browse files
committed
update class name
Signed-off-by: Hailong Cui <[email protected]>
1 parent 245cb86 commit 4022abd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

public/components/visualization/text2viz.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { useLocation, useParams } from 'react-router-dom';
2626
import { Pipeline } from '../../utils/pipeline/pipeline';
2727
import { Text2PPLTask } from '../../utils/pipeline/text_to_ppl_task';
2828
import { PPLSampleTask } from '../../utils/pipeline/ppl_sample_task';
29-
import { PPLAutoSuggestTask } from '../../utils/pipeline/ppl_aggs_auto_suggest_task';
29+
import { PPLAggsAutoSuggestTask } from '../../utils/pipeline/ppl_aggs_auto_suggest_task';
3030
import { SourceSelector } from './source_selector';
3131
import type { IndexPattern } from '../../../../../src/plugins/data/public';
3232
import { EmbeddableRenderer } from '../../../../../src/plugins/embeddable/public';
@@ -112,7 +112,7 @@ export const Text2Viz = () => {
112112
if (text2vegaRef.current === null) {
113113
text2vegaRef.current = new Pipeline([
114114
new Text2PPLTask(http),
115-
new PPLAutoSuggestTask(data.search),
115+
new PPLAggsAutoSuggestTask(data.search),
116116
new PPLSampleTask(data.search),
117117
new Text2VegaTask(http, savedObjects),
118118
]);

public/utils/pipeline/ppl_aggs_auto_suggest_task.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
*/
55

66
import { DataPublicPluginStart } from '../../../../../src/plugins/data/public';
7-
import { PPLAutoSuggestTask } from './ppl_aggs_auto_suggest_task';
7+
import { PPLAggsAutoSuggestTask } from './ppl_aggs_auto_suggest_task';
88

99
describe('PPLAutoSuggestTask', () => {
10-
let pplAutoSuggestTask: PPLAutoSuggestTask;
10+
let pplAutoSuggestTask: PPLAggsAutoSuggestTask;
1111
let mockSearchClient: DataPublicPluginStart['search'];
1212

1313
beforeEach(() => {
@@ -18,7 +18,7 @@ describe('PPLAutoSuggestTask', () => {
1818
calculateAutoTimeExpression: jest.fn(),
1919
},
2020
};
21-
pplAutoSuggestTask = new PPLAutoSuggestTask(mockSearchClient);
21+
pplAutoSuggestTask = new PPLAggsAutoSuggestTask(mockSearchClient);
2222
});
2323

2424
it('should return original input if PPL is empty', async () => {

public/utils/pipeline/ppl_aggs_auto_suggest_task.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Input {
1212
timeFiledName?: string;
1313
}
1414

15-
export class PPLAutoSuggestTask extends Task<Input, Input> {
15+
export class PPLAggsAutoSuggestTask extends Task<Input, Input> {
1616
searchClient: DataPublicPluginStart['search'];
1717

1818
constructor(searchClient: DataPublicPluginStart['search']) {

0 commit comments

Comments
 (0)