Skip to content

Commit

Permalink
Support Kibana 6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dlumbrer committed Jun 24, 2018
1 parent 969ea32 commit aa20acf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 5 additions & 3 deletions public/kbn_polar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'ui/agg_table/agg_table_group';

import { CATEGORY } from 'ui/vis/vis_category';
import { VisFactoryProvider } from 'ui/vis/vis_factory';
import { VisSchemasProvider } from 'ui/vis/editors/default/schemas';
import { Schemas } from 'ui/vis/editors/default/schemas';
import PolarVisTemplate from 'plugins/kbn_polar/kbn_polar.html';
import { VisTypesRegistryProvider } from 'ui/registry/vis_types';
import image from './images/polar.svg';
Expand All @@ -25,7 +25,6 @@ VisTypesRegistryProvider.register(PolarVisTypeProvider);
// define the PolarVisType
function PolarVisTypeProvider(Private) {
const VisFactory = Private(VisFactoryProvider);
const Schemas = Private(VisSchemasProvider);

// define the PolarVisController which is used in the template
// by angular's ng-controller directive
Expand All @@ -49,7 +48,10 @@ function PolarVisTypeProvider(Private) {
title: 'Metric',
aggFilter: '!geo_centroid',
min: 1,
max: 1
max: 1,
defaults: [
{ type: 'count', schema: 'metric' }
]
},
{
group: 'buckets',
Expand Down
3 changes: 0 additions & 3 deletions public/kbn_polar_controller.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AggResponseTabifyProvider } from 'ui/agg_response/tabify/tabify';
import { uiModules } from 'ui/modules';
import { assign } from 'lodash';

Expand All @@ -9,8 +8,6 @@ const module = uiModules.get('kibana/kbn_polar', ['kibana']);
// add a controller to tha module, which will transform the esResponse into a
// tabular format that we can pass to the table directive
module.controller('KbnPolarVisController', function ($scope, $element, $timeout, Private) {
const tabifyAggResponse = Private(AggResponseTabifyProvider);

const uiStateSort = ($scope.uiState) ? $scope.uiState.get('vis.params.sort') : {};
assign($scope.vis.params.sort, uiStateSort);

Expand Down

0 comments on commit aa20acf

Please sign in to comment.