Forward queries parameter from overview dataviews to base dataviews
This commit is contained in:
parent
32274e66fd
commit
166e29e8ce
@ -90,7 +90,7 @@ var aggregationQueryTpl = dot.template([
|
|||||||
var CATEGORIES_LIMIT = 6;
|
var CATEGORIES_LIMIT = 6;
|
||||||
|
|
||||||
function Aggregation(query, options, queryRewriter, queryRewriteData, params, queries) {
|
function Aggregation(query, options, queryRewriter, queryRewriteData, params, queries) {
|
||||||
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
|
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params, queries);
|
||||||
|
|
||||||
this.query = query;
|
this.query = query;
|
||||||
this.queries = queries;
|
this.queries = queries;
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
var BaseDataview = require('../base');
|
var BaseDataview = require('../base');
|
||||||
|
|
||||||
function BaseOverviewsDataview(query, queryOptions, BaseDataview, queryRewriter, queryRewriteData, options) {
|
function BaseOverviewsDataview(query, queryOptions, BaseDataview, queryRewriter, queryRewriteData, options, queries) {
|
||||||
this.BaseDataview = BaseDataview;
|
this.BaseDataview = BaseDataview;
|
||||||
this.query = query;
|
this.query = query;
|
||||||
this.queryOptions = queryOptions;
|
this.queryOptions = queryOptions;
|
||||||
this.queryRewriter = queryRewriter;
|
this.queryRewriter = queryRewriter;
|
||||||
this.queryRewriteData = queryRewriteData;
|
this.queryRewriteData = queryRewriteData;
|
||||||
this.options = options;
|
this.options = options;
|
||||||
this.baseDataview = new this.BaseDataview(this.query, this.queryOptions);
|
this.queries = queries;
|
||||||
|
this.baseDataview = new this.BaseDataview(this.query, this.queryOptions, this.queries);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = BaseOverviewsDataview;
|
module.exports = BaseOverviewsDataview;
|
||||||
|
@ -50,8 +50,8 @@ var formulaQueryTpls = {
|
|||||||
].join('\n')),
|
].join('\n')),
|
||||||
};
|
};
|
||||||
|
|
||||||
function Formula(query, options, queryRewriter, queryRewriteData, params) {
|
function Formula(query, options, queryRewriter, queryRewriteData, params, queries) {
|
||||||
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
|
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params, queries);
|
||||||
this.column = options.column || '1';
|
this.column = options.column || '1';
|
||||||
this.operation = options.operation;
|
this.operation = options.operation;
|
||||||
this._isFloatColumn = null;
|
this._isFloatColumn = null;
|
||||||
|
@ -132,7 +132,7 @@ var histogramQueryTpl = dot.template([
|
|||||||
].join('\n'));
|
].join('\n'));
|
||||||
|
|
||||||
function Histogram(query, options, queryRewriter, queryRewriteData, params, queries) {
|
function Histogram(query, options, queryRewriter, queryRewriteData, params, queries) {
|
||||||
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
|
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params, queries);
|
||||||
|
|
||||||
this.query = query;
|
this.query = query;
|
||||||
this.queries = queries;
|
this.queries = queries;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
var BaseOverviewsDataview = require('./base');
|
var BaseOverviewsDataview = require('./base');
|
||||||
var BaseDataview = require('../list');
|
var BaseDataview = require('../list');
|
||||||
|
|
||||||
function List(query, options, queryRewriter, queryRewriteData, params) {
|
function List(query, options, queryRewriter, queryRewriteData, params, queries) {
|
||||||
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
|
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params, queries);
|
||||||
}
|
}
|
||||||
|
|
||||||
List.prototype = Object.create(BaseOverviewsDataview.prototype);
|
List.prototype = Object.create(BaseOverviewsDataview.prototype);
|
||||||
|
Loading…
Reference in New Issue
Block a user