Skip to content

Commit

Permalink
Migrated kbn_tp_run_pipeline to the new Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Apr 29, 2020
1 parent ad89b1e commit f92486a
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 123 deletions.
49 changes: 0 additions & 49 deletions test/interpreter_functional/plugins/kbn_tp_run_pipeline/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "kbn_tp_run_pipeline",
"version": "0.0.1",
"kibanaVersion": "kibana",
"requiredPlugins": [
"data",
"savedObjects",
"kibanaUtils",
"expressions"
],
"server": false,
"ui": true
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kbn_tp_run_pipeline",
"version": "1.0.0",
"main": "target/test/interpreter_functional/plugins/kbn_tp_run_pipeline",
"kibana": {
"version": "kibana",
"templateVersion": "1.0.0"
Expand All @@ -10,5 +11,13 @@
"@elastic/eui": "22.3.0",
"react": "^16.12.0",
"react-dom": "^16.12.0"
},
"scripts": {
"kbn": "node ../../../../scripts/kbn.js",
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
"@kbn/plugin-helpers": "9.0.2",
"typescript": "3.7.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import React from 'react';
import { EuiPage, EuiPageBody, EuiPageContent, EuiPageContentHeader } from '@elastic/eui';
import { first } from 'rxjs/operators';
import { IInterpreterRenderHandlers, ExpressionValue } from 'src/plugins/expressions';
import { RequestAdapter, DataAdapter } from '../../../../../../../../src/plugins/inspector';
import { RequestAdapter, DataAdapter } from '../../../../../../../src/plugins/inspector';
import { Adapters, ExpressionRenderHandler } from '../../types';
import { getExpressions } from '../../services';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@
* under the License.
*/

export * from './np_ready';
import { PluginInitializer, PluginInitializerContext } from 'src/core/public';
import { Plugin, StartDeps } from './plugin';
export { StartDeps };

export const plugin: PluginInitializer<void, void, {}, StartDeps> = (
initializerContext: PluginInitializerContext
) => {
return new Plugin(initializerContext);
};

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { createGetterSetter } from '../../../../../../src/plugins/kibana_utils/public';
import { createGetterSetter } from '../../../../../src/plugins/kibana_utils/public';
import { ExpressionsStart } from './types';

export const [getExpressions, setExpressions] = createGetterSetter<ExpressionsStart>('Expressions');
9 changes: 5 additions & 4 deletions test/interpreter_functional/test_suites/run_pipeline/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ export default function({
await expectExpression('partial_test_2', metricExpr, context).toMatchSnapshot()
).toMatchScreenshot();

const regionMapExpr = `regionmap visConfig='{"metric":{"accessor":1,"format":{"id":"number"}},"bucket":{"accessor":0}}'`;
await (
await expectExpression('partial_test_3', regionMapExpr, context).toMatchSnapshot()
).toMatchScreenshot();
// disabled because the plugin 'region-map' was not migrated to the new platform
// const regionMapExpr = `regionmap visConfig='{"metric":{"accessor":1,"format":{"id":"number"}},"bucket":{"accessor":0}}'`;
// await (
// await expectExpression('partial_test_3', regionMapExpr, context).toMatchSnapshot()
// ).toMatchScreenshot();
});
});
});
Expand Down

0 comments on commit f92486a

Please sign in to comment.