Skip to content

Commit

Permalink
Fixes 6.3 issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Nov 27, 2018
1 parent 2d822fe commit 46bfb0b
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
extends: "@elastic/kibana"
extends: "@elastic/eslint-config-kibana"
18 changes: 0 additions & 18 deletions gather-info.js

This file was deleted.

17 changes: 12 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
export default kibana => new kibana.Plugin({
require: ['kibana', 'elasticsearch'],
id: 'kibana-milestones-vis',
require: ['elasticsearch'],

uiExports: {
visTypes: [
'plugins/kibana-milestones-vis/milestones_vis'
]
}
visTypes: ['plugins/kibana-milestones-vis/milestones_vis']
},

config(Joi) {
return Joi.object({
enabled: Joi.boolean().default(true),
}).default();
},

});
33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,31 @@
"Walter Rafelsberger <walter.rafelsberger@elastic.co>"
],
"kibana": {
"version": "6.2.0",
"templateVersion": "7.2.2"
"version": "6.3.0",
"templateVersion": "1.0.0"
},
"scripts": {
"lint": "eslint",
"preinstall": "node ../../kibana/preinstall_check",
"kbn": "node ../../kibana/scripts/kbn",
"lint": "eslint **/*.js",
"start": "plugin-helpers start",
"test:server": "plugin-helpers test:server",
"test:browser": "plugin-helpers test:browser",
"build": "plugin-helpers build",
"postinstall": "plugin-helpers postinstall",
"gather-info": "node gather-info.js"
"build": "plugin-helpers build"
},
"devDependencies": {
"@elastic/eslint-config-kibana": "0.13.0",
"@elastic/plugin-helpers": "7.1.3",
"babel-eslint": "7.2.3",
"eslint": "3.19.0",
"eslint-plugin-babel": "4.1.1",
"eslint-plugin-import": "2.3.0",
"eslint-plugin-mocha": "4.9.0",
"eslint-plugin-react": "7.3.0",
"expect.js": "0.3.1"
"@elastic/eslint-config-kibana": "link:../../kibana/packages/eslint-config-kibana",
"@elastic/eslint-import-resolver-kibana": "^0.9.0",
"@kbn/plugin-helpers": "link:../../kibana/packages/kbn-plugin-helpers",
"babel-eslint": "^8.0.2",
"eslint": "^4.11.0",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-import": "^2.3.0",
"eslint-plugin-jest": "^21.3.2",
"eslint-plugin-mocha": "^4.9.0",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-react": "^7.0.1",
"expect.js": "^0.3.1"
},
"dependencies": {
"d3": "3.5.6",
Expand Down
5 changes: 2 additions & 3 deletions public/milestones_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import './milestones.less';
import './milestones_vis_params';
import { VisFactoryProvider } from 'ui/vis/vis_factory';
import { CATEGORY } from 'ui/vis/vis_category';
import { VisSchemasProvider } from 'ui/vis/editors/default/schemas';
import { Schemas } from 'ui/vis/editors/default/schemas';
import { VisTypesRegistryProvider } from 'ui/registry/vis_types';
import image from './images/icon-milestones.svg';

Expand All @@ -11,8 +11,7 @@ import { MilestonesResponseHandlerProvider } from './response_handler';

function MilestonesProvider(Private) {
const VisFactory = Private(VisFactoryProvider);
const Schemas = Private(VisSchemasProvider);
const responseHandler = Private(MilestonesResponseHandlerProvider).handler;
const responseHandler = MilestonesResponseHandlerProvider().handler;

return VisFactory.createBaseVisualization({
name: 'milestones',
Expand Down

0 comments on commit 46bfb0b

Please sign in to comment.