Skip to content

Commit

Permalink
Fixes 6.6 issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Dec 27, 2018
1 parent 4e40832 commit 6c420c1
Show file tree
Hide file tree
Showing 5 changed files with 312 additions and 342 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The releases of this plugin are synced with Kibana's release cycle. In the "Asse
Run the following from within your Kibana folder:

```
bin/kibana-plugin install https://github.com/walterra/kibana-milestones-vis/releases/download/v<version>/kibana-milestones-vis-<version>.zip
bin/kibana-plugin install https://github.com/walterra/kibana-milestones-vis/releases/download/v7.0.0-alpha1/kibana-milestones-vis-7.0.0-alpha1.zip
```

### Installing by first downloading a zipped release
Expand Down
28 changes: 14 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export default kibana => new kibana.Plugin({
id: 'kibana-milestones-vis',
require: ['elasticsearch'],
export default function (kibana) {
return new kibana.Plugin({
require: ['elasticsearch'],
name: 'kibana-milestones-vis',
uiExports: {
visTypes: ['plugins/kibana-milestones-vis/milestones_vis']
},

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

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

});
config(Joi) {
return Joi.object({
enabled: Joi.boolean().default(true),
}).default();
},
});
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,30 @@
],
"kibana": {
"version": "7.0.0-alpha1",
"templateVersion": "7.2.2"
"templateVersion": "1.0.0"
},
"scripts": {
"preinstall": "node ../../kibana/preinstall_check",
"kbn": "node ../../kibana/scripts/kbn",
"lint": "eslint **/*.js",
"lint": "eslint .",
"start": "plugin-helpers start",
"test:server": "plugin-helpers test:server",
"test:browser": "plugin-helpers test:browser",
"build": "plugin-helpers build"
},
"devDependencies": {
"@elastic/eslint-config-kibana": "link:../../kibana/packages/eslint-config-kibana",
"@elastic/eslint-import-resolver-kibana": "^0.9.0",
"@elastic/eslint-import-resolver-kibana": "link:../../kibana/packages/kbn-eslint-import-resolver-kibana",
"@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",
"babel-eslint": "^9.0.0",
"eslint": "^5.6.0",
"eslint-plugin-babel": "^5.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^21.22.1",
"eslint-plugin-mocha": "^5.2.0",
"eslint-plugin-no-unsanitized": "^3.0.2",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-react": "^7.0.1",
"eslint-plugin-react": "^7.11.1",
"expect.js": "^0.3.1"
},
"dependencies": {
Expand Down
3 changes: 0 additions & 3 deletions public/milestones_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import './milestones_vis_params';
// eslint-disable-next-line import/no-unresolved
import { VisFactoryProvider } from 'ui/vis/vis_factory';
// eslint-disable-next-line import/no-unresolved
import { CATEGORY } from 'ui/vis/vis_category';
// eslint-disable-next-line import/no-unresolved
import { Schemas } from 'ui/vis/editors/default/schemas';
// eslint-disable-next-line import/no-unresolved
import { VisTypesRegistryProvider } from 'ui/registry/vis_types';
Expand All @@ -24,7 +22,6 @@ function MilestonesProvider(Private) {
title: 'Milestones',
image,
description: 'A timeline of events with labels.',
category: CATEGORY.TIME,
requiresUpdateStatus: [Status.PARAMS, Status.RESIZE, Status.DATA],
visualization: Milestones,
visConfig: {
Expand Down
Loading

0 comments on commit 6c420c1

Please sign in to comment.