From 8fe0112568f08cef8649661a780c44620fdd92ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 7 Oct 2019 10:06:01 +0200 Subject: [PATCH] Rename overviews_query_rewriter -> overviews-query-rewriter --- lib/backends/dataview.js | 2 +- lib/server_options.js | 2 +- ...{overviews_query_rewriter.js => overviews-query-rewriter.js} | 0 test/acceptance/ported/support/ported_server_options.js | 2 +- test/unit/cartodb/overviews_query_rewriter.js | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename lib/utils/{overviews_query_rewriter.js => overviews-query-rewriter.js} (100%) diff --git a/lib/backends/dataview.js b/lib/backends/dataview.js index acdf24a7..86ead292 100644 --- a/lib/backends/dataview.js +++ b/lib/backends/dataview.js @@ -6,7 +6,7 @@ var BBoxFilter = require('../models/filter/bbox'); var DataviewFactory = require('../models/dataview/factory'); var DataviewFactoryWithOverviews = require('../models/dataview/overviews/factory'); const dbParamsFromReqParams = require('../utils/database-params'); -var OverviewsQueryRewriter = require('../utils/overviews_query_rewriter'); +var OverviewsQueryRewriter = require('../utils/overviews-query-rewriter'); var overviewsQueryRewriter = new OverviewsQueryRewriter({ zoom_level: 'CDB_ZoomFromScale(!scale_denominator!)' }); diff --git a/lib/server_options.js b/lib/server_options.js index 226153c5..95a3dd7d 100644 --- a/lib/server_options.js +++ b/lib/server_options.js @@ -2,7 +2,7 @@ const fqdn = require('@carto/fqdn-sync'); var _ = require('underscore'); -var OverviewsQueryRewriter = require('./utils/overviews_query_rewriter'); +var OverviewsQueryRewriter = require('./utils/overviews-query-rewriter'); var rendererConfig = _.defaults(global.environment.renderer || {}, { cache_ttl: 60000, // milliseconds diff --git a/lib/utils/overviews_query_rewriter.js b/lib/utils/overviews-query-rewriter.js similarity index 100% rename from lib/utils/overviews_query_rewriter.js rename to lib/utils/overviews-query-rewriter.js diff --git a/test/acceptance/ported/support/ported_server_options.js b/test/acceptance/ported/support/ported_server_options.js index db1a2ecf..6ff5cfe2 100644 --- a/test/acceptance/ported/support/ported_server_options.js +++ b/test/acceptance/ported/support/ported_server_options.js @@ -3,7 +3,7 @@ var _ = require('underscore'); var serverOptions = require('../../../../lib/server_options'); var mapnik = require('windshaft').mapnik; -var OverviewsQueryRewriter = require('../../../../lib/utils/overviews_query_rewriter'); +var OverviewsQueryRewriter = require('../../../../lib/utils/overviews-query-rewriter'); var overviewsQueryRewriter = new OverviewsQueryRewriter({ zoom_level: 'CDB_ZoomFromScale(!scale_denominator!)' }); diff --git a/test/unit/cartodb/overviews_query_rewriter.js b/test/unit/cartodb/overviews_query_rewriter.js index 4aa74264..f77e4bb1 100644 --- a/test/unit/cartodb/overviews_query_rewriter.js +++ b/test/unit/cartodb/overviews_query_rewriter.js @@ -3,7 +3,7 @@ require('../../support/test_helper'); var assert = require('assert'); -var OverviewsQueryRewriter = require('../../../lib/utils/overviews_query_rewriter'); +var OverviewsQueryRewriter = require('../../../lib/utils/overviews-query-rewriter'); var overviewsQueryRewriter = new OverviewsQueryRewriter({ zoom_level: 'ZoomLevel()' });