Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new response handlers for vislib #12661

Closed
wants to merge 9 commits into from
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/area.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default function PointSeriesVisType(Private) {
addTimeMarker: false,
},
},
responseHandler: 'series_data',
editorConfig: {
collections: {
positions: ['top', 'left', 'right', 'bottom'],
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default function GaugeVisType(Private) {
}
},
},
responseHandler: 'series_data',
editorConfig: {
collections: {
gaugeTypes: ['Arc', 'Circle', 'Metric'],
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/goal.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default function GoalVisType(Private) {
}
},
},
responseHandler: 'series_data',
editorConfig: {
collections: {
gaugeTypes: ['Arc', 'Circle', 'Metric'],
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default function HeatmapVisType(Private) {
}]
},
},
responseHandler: 'series_data',
editorConfig: {
collections: {
legendPositions: [{
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/histogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default function PointSeriesVisType(Private) {
addTimeMarker: false,
},
},
responseHandler: 'series_data',
editorConfig: {
collections: {
positions: ['top', 'left', 'right', 'bottom'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default function PointSeriesVisType(Private) {
addTimeMarker: false,
},
},
responseHandler: 'series_data',
editorConfig: {
collections: {
positions: ['top', 'left', 'right', 'bottom'],
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default function PointSeriesVisType(Private) {
addTimeMarker: false,
},
},
responseHandler: 'series_data',
editorConfig: {
collections: {
positions: ['top', 'left', 'right', 'bottom'],
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/metric.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default function MetricVisType(Private) {
}
},
},
responseHandler: 'series_data',
editorConfig: {
collections: {
gaugeTypes: ['Arc', 'Circle', 'Metric'],
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function HistogramVisType(Private) {
isDonut: false
},
},
responseHandler: 'hierarchical_data',
editorConfig: {
collections: {
legendPositions: [{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import 'ui/timefilter';
import 'ui/share';
import 'ui/query_bar';
import { VisProvider } from 'ui/vis';
import { BasicResponseHandlerProvider } from 'ui/vis/response_handlers/basic';
import { seriesResponseHandlerProvider } from 'ui/vis/response_handlers/series_data';
import { DocTitleProvider } from 'ui/doc_title';
import PluginsKibanaDiscoverHitSortFnProvider from 'plugins/kibana/discover/_hit_sort_fn';
import { FilterBarQueryFilterProvider } from 'ui/filter_bar/query_filter';
Expand Down Expand Up @@ -117,7 +117,7 @@ function discoverController(
const docTitle = Private(DocTitleProvider);
const HitSortFn = Private(PluginsKibanaDiscoverHitSortFnProvider);
const queryFilter = Private(FilterBarQueryFilterProvider);
const responseHandler = Private(BasicResponseHandlerProvider).handler;
const responseHandler = Private(seriesResponseHandlerProvider).handler;
const notify = new Notifier({
location: 'Discover'
});
Expand Down
Loading