[vis,agg_types] standardize dsl uses as 'toDsl' or 'dsl'

This commit is contained in:
Spencer Alger 2014-09-03 15:26:42 -07:00
parent 6ed5b17780
commit c45fcaea75
5 changed files with 5 additions and 5 deletions

View file

@ -632,7 +632,7 @@ define(function (require) {
});
$scope.searchSource.aggs(function () {
return $scope.vis.aggs.toDSL();
return $scope.vis.aggs.toDsl();
});
// stash this promise so that other calls to setupVisualization will have to wait

View file

@ -89,7 +89,7 @@ define(function (require) {
}
self.searchSource.aggs(function () {
return self.vis.aggs.toDSL();
return self.vis.aggs.toDsl();
});
return self;

View file

@ -57,7 +57,7 @@ define(function (require) {
* the quality of things like date_histogram's "auto" interval)
* @return {object} output
* output of the write calls, reduced into a single object. A `params: {}` property is exposed on the
* output object which is used to create the agg DSL for the search request. All other properties
* output object which is used to create the agg dsl for the search request. All other properties
* are dependent on the AggParam#write methods which should be studied for each AggType.
*/
AggParams.prototype.write = function (aggConfig, locals) {

View file

@ -30,7 +30,7 @@ define(function (require) {
}));
describe('interval', function () {
// reads aggConfig.params.interval, writes to DSL.interval
// reads aggConfig.params.interval, writes to dsl.interval
it('accepts a number', function () {
var output = paramWriter.write({ interval: 100 });

View file

@ -30,7 +30,7 @@ define(function (require) {
}));
describe('interval', function () {
// reads aggConfig.params.interval, writes to DSL.interval
// reads aggConfig.params.interval, writes to dsl.interval
it('accepts a number', function () {
var output = paramWriter.write({ interval: 100 });