Merge branch 'custom-timeseries'

This commit is contained in:
Jesús Ángel 2019-03-01 18:14:17 +01:00
commit 0ae192b42d
3 changed files with 2 additions and 6 deletions

View File

@ -78,9 +78,7 @@ export class VisualizeDataLoader {
const responseHandlers: ResponseHandlerDescription[] = Private(ResponseHandlerProvider);
if (((vis || {}).type || {}).title === 'Visual Builder') {
console.log(`Processing ${vis.title} with custom request handler`)
const config = $injector.get('config');
const $rootScope = $injector.get('$rootScope')
const discoverPendingUpdates = $injector.get('discoverPendingUpdates')
const $http = $injector.get('$http')
const buildEsQuery = Private(BuildESQueryProvider);
@ -127,10 +125,8 @@ export class VisualizeDataLoader {
resolve({});
const err = new Error(resp.message);
err.stack = resp.stack;
console.log('DEBUG', err)
});
} catch (e) {
console.log('DEBUG 2', e)
return resolve();
}
}

View File

@ -31,7 +31,7 @@ export default [
_source: {
title: 'Top 5 groups',
visState:
'{"title":"Top 5 rule groups","type":"tagcloud","params":{"scale":"linear","orientation":"single","minFontSize":11,"maxFontSize":24,"showLabel":false},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"rule.groups","size":5,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}',
'{"title":"Top 5 rule groups","type":"tagcloud","params":{"scale":"linear","orientation":"single","minFontSize":11,"maxFontSize":24,"showLabel":false},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"rule.groups","size":10,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}',
uiStateJSON: '{}',
description: '',
version: 1,

View File

@ -241,7 +241,7 @@ export default [
_source: {
title: 'Top 5 rule groups',
visState:
'{"title":"Top 5 rule groups","type":"tagcloud","params":{"scale":"linear","orientation":"single","minFontSize":11,"maxFontSize":24,"showLabel":false},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"rule.groups","size":5,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}',
'{"title":"Top 5 rule groups","type":"tagcloud","params":{"scale":"linear","orientation":"single","minFontSize":11,"maxFontSize":24,"showLabel":false},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"rule.groups","size":10,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}',
uiStateJSON: '{}',
description: '',
version: 1,