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

fixing pipeline_data_loader #32478

Merged
merged 4 commits into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const visualization = () => ({

handlers.onDestroy(() => visualizationLoader.destroy());

await visualizationLoader.render(domNode, handlers.vis, visData, uiState, params).then(() => {
await visualizationLoader.render(domNode, handlers.vis, visData, visConfig || handlers.vis.params, uiState, params).then(() => {
if (handlers.done) handlers.done();
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class EmbeddedVisualizeHandler {
* This should not be used by any plugin.
* @ignore
*/
public static readonly __ENABLE_PIPELINE_DATA_LOADER__: boolean = false;
public static readonly __ENABLE_PIPELINE_DATA_LOADER__: boolean = true;
public readonly data$: Rx.Observable<any>;
public readonly inspectorAdapters: Adapters = {};
private vis: Vis;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,27 +224,45 @@ export const buildPipelineVisFunction: BuildPipelineVisFunction = {
return `kibana_markdown ${expression}${visConfig}`;
},
table: (visState, schemas) => {
const visConfig = buildVisConfig.table(schemas);
const visConfig = {
...visState.params,
...buildVisConfig.table(schemas),
};
return `kibana_table ${prepareJson('visConfig', visConfig)}`;
},
metric: (visState, schemas) => {
const visConfig = buildVisConfig.metric(schemas);
const visConfig = {
...visState.params,
...buildVisConfig.metric(schemas),
};
return `kibana_metric ${prepareJson('visConfig', visConfig)}`;
},
tagcloud: (visState, schemas) => {
const visConfig = buildVisConfig.tagcloud(schemas);
const visConfig = {
...visState.params,
...buildVisConfig.tagcloud(schemas),
};
return `tagcloud ${prepareJson('visConfig', visConfig)}`;
},
region_map: (visState, schemas) => {
const visConfig = buildVisConfig.region_map(schemas);
const visConfig = {
...visState.params,
...buildVisConfig.region_map(schemas),
};
return `regionmap ${prepareJson('visConfig', visConfig)}`;
},
tile_map: (visState, schemas) => {
const visConfig = buildVisConfig.tile_map(schemas);
const visConfig = {
...visState.params,
...buildVisConfig.tile_map(schemas),
};
return `tilemap ${prepareJson('visConfig', visConfig)}`;
},
pie: (visState, schemas) => {
const visConfig = buildVisConfig.pie(schemas);
const visConfig = {
...visState.params,
...buildVisConfig.pie(schemas),
};
return `kibana_pie ${prepareJson('visConfig', visConfig)}`;
},
};
Expand Down