diff --git a/.node-version b/.node-version index 22cb9e5..a003776 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -6.10.2 +6.11.5 diff --git a/CHANGES.md b/CHANGES.md index 9c48f79..6fdda34 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +* Nov 16 2017 + * Versions + * 5.6.4 + * Changes + * Support changes in Index Pattern service + * Jul 10 2017 * Versions * 5.5.0 diff --git a/package.json b/package.json index 586e370..b279bbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "transform_vis", - "version": "5.5.0", + "version": "5.6.4", "description": "Transform Visualization", "main": "index.js", "kibana": { diff --git a/public/transform_vis_controller.js b/public/transform_vis_controller.js index a10d745..8b3145d 100644 --- a/public/transform_vis_controller.js +++ b/public/transform_vis_controller.js @@ -2,6 +2,8 @@ import { uiModules } from 'ui/modules'; import { FilterBarQueryFilterProvider } from 'ui/filter_bar/query_filter' import { dashboardContextProvider } from 'plugins/kibana/dashboard/dashboard_context' +import { SavedObjectsClientProvider } from 'ui/saved_objects'; + import chrome from 'ui/chrome'; const Mustache = require('mustache'); @@ -39,14 +41,15 @@ module.controller('TransformVisController', function ($scope, $sce, Private, tim $scope.search = function () { const context = dashboardContext(); - const index = $scope.vis.params.outputs.indexpattern; // This is part of what should be a wider config validation - if (!(typeof index === 'string' || index instanceof String)) { + if ($scope.vis.indexPattern === undefined || $scope.vis.indexPattern.id === undefined) { $scope.setDisplay('