Rename template_maps -> template-maps
This commit is contained in:
parent
f1de1b3b91
commit
e8cff194fc
@ -11,7 +11,7 @@ const PgConnection = require('../backends/pg-connection');
|
||||
const AnalysisBackend = require('../backends/analysis');
|
||||
const AnalysisStatusBackend = require('../backends/analysis-status');
|
||||
const DataviewBackend = require('../backends/dataview');
|
||||
const TemplateMaps = require('../backends/template_maps.js');
|
||||
const TemplateMaps = require('../backends/template-maps');
|
||||
const PgQueryRunner = require('../backends/pg-query-runner');
|
||||
const StatsBackend = require('../backends/stats');
|
||||
const AuthBackend = require('../backends/auth');
|
||||
|
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const { templateName } = require('../../backends/template_maps');
|
||||
const { templateName } = require('../../backends/template-maps');
|
||||
const credentials = require('../middlewares/credentials');
|
||||
const rateLimit = require('../middlewares/rate-limit');
|
||||
const { RATE_LIMIT_ENDPOINTS_GROUPS } = rateLimit;
|
||||
|
2
lib/cache/named-map-provider-cache.js
vendored
2
lib/cache/named-map-provider-cache.js
vendored
@ -3,7 +3,7 @@
|
||||
const LruCache = require('lru-cache');
|
||||
|
||||
const NamedMapMapConfigProvider = require('../models/mapconfig/provider/named-map-provider');
|
||||
const { templateName } = require('../backends/template_maps');
|
||||
const { templateName } = require('../backends/template-maps');
|
||||
|
||||
const TEN_MINUTES_IN_MILLISECONDS = 1000 * 60 * 10;
|
||||
const ACTIONS = ['update', 'delete'];
|
||||
|
@ -4,7 +4,7 @@ const BaseMapConfigProvider = require('./base-mapconfig-adapter');
|
||||
const crypto = require('crypto');
|
||||
const dot = require('dot');
|
||||
const MapConfig = require('windshaft').model.MapConfig;
|
||||
const templateName = require('../../../backends/template_maps').templateName;
|
||||
const templateName = require('../../../backends/template-maps').templateName;
|
||||
|
||||
// Configure bases for cache keys suitable for string interpolation
|
||||
const baseKey = '{{=it.dbname}}:{{=it.user}}:{{=it.templateName}}';
|
||||
|
@ -8,7 +8,7 @@ var CartodbWindshaft = require(__dirname + '/../../lib/server');
|
||||
var serverOptions = require(__dirname + '/../../lib/server-options');
|
||||
|
||||
var RedisPool = require('redis-mpool');
|
||||
var TemplateMaps = require('../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../lib/backends/template-maps');
|
||||
var mapnik = require('windshaft').mapnik;
|
||||
|
||||
var IMAGE_TOLERANCE = 20;
|
||||
|
@ -9,7 +9,7 @@ var serverOptions = require(__dirname + '/../../lib/server-options');
|
||||
var LayergroupToken = require('../../lib/models/layergroup-token');
|
||||
|
||||
var RedisPool = require('redis-mpool');
|
||||
var TemplateMaps = require('../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../lib/backends/template-maps');
|
||||
|
||||
var step = require('step');
|
||||
|
||||
|
@ -8,7 +8,7 @@ var assert = require('../support/assert');
|
||||
var mapnik = require('windshaft').mapnik;
|
||||
var CartodbWindshaft = require(__dirname + '/../../lib/server');
|
||||
var serverOptions = require(__dirname + '/../../lib/server-options');
|
||||
var TemplateMaps = require('../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../lib/backends/template-maps');
|
||||
var NamedMapsCacheEntry = require('../../lib/cache/model/named-maps-entry');
|
||||
|
||||
describe('named maps authentication', function() {
|
||||
|
@ -8,7 +8,7 @@ var assert = require('../support/assert');
|
||||
var mapnik = require('windshaft').mapnik;
|
||||
var CartodbWindshaft = require('../../lib/server');
|
||||
var serverOptions = require('../../lib/server-options');
|
||||
var TemplateMaps = require('../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../lib/backends/template-maps');
|
||||
|
||||
describe('named maps static view', function() {
|
||||
// configure redis pool instance to use in tests
|
||||
|
@ -8,7 +8,7 @@ var assert = require('../support/assert');
|
||||
var mapnik = require('windshaft').mapnik;
|
||||
var CartodbWindshaft = require(__dirname + '/../../lib/server');
|
||||
var serverOptions = require(__dirname + '/../../lib/server-options');
|
||||
var TemplateMaps = require('../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../lib/backends/template-maps');
|
||||
var NamedMapsCacheEntry = require('../../lib/cache/model/named-maps-entry');
|
||||
|
||||
describe('named maps preview stats', function() {
|
||||
|
@ -4,7 +4,7 @@ require('../support/test-helper');
|
||||
|
||||
var assert = require('assert');
|
||||
var RedisPool = require('redis-mpool');
|
||||
var TemplateMaps = require('../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../lib/backends/template-maps');
|
||||
var PgConnection = require('../../lib/backends/pg-connection');
|
||||
var MapConfigNamedLayersAdapter = require('../../lib/models/mapconfig/adapter/mapconfig-named-layers-adapter');
|
||||
|
||||
|
@ -4,7 +4,7 @@ require('../support/test-helper');
|
||||
|
||||
var assert = require('assert');
|
||||
var RedisPool = require('redis-mpool');
|
||||
var TemplateMaps = require('../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../lib/backends/template-maps');
|
||||
var PgConnection = require('../../lib/backends/pg-connection');
|
||||
var MapConfigNamedLayersAdapter = require('../../lib/models/mapconfig/adapter/mapconfig-named-layers-adapter');
|
||||
|
||||
|
@ -5,7 +5,7 @@ require('../support/test-helper');
|
||||
var assert = require('assert');
|
||||
var redis = require('redis');
|
||||
var RedisPool = require('redis-mpool');
|
||||
var TemplateMaps = require('../../lib/backends/template_maps');
|
||||
var TemplateMaps = require('../../lib/backends/template-maps');
|
||||
|
||||
|
||||
describe('TemplateMaps limits', function() {
|
||||
|
@ -7,7 +7,7 @@ var RedisPool = require('redis-mpool');
|
||||
var cartodbRedis = require('cartodb-redis');
|
||||
var PgConnection = require('../../../lib/backends/pg-connection');
|
||||
var AuthBackend = require('../../../lib/backends/auth');
|
||||
var TemplateMaps = require('../../../lib/backends/template_maps');
|
||||
var TemplateMaps = require('../../../lib/backends/template-maps');
|
||||
|
||||
const cleanUpQueryParamsMiddleware = require('../../../lib/api/middlewares/clean-up-query-params');
|
||||
const authorizeMiddleware = require('../../../lib/api/middlewares/authorize');
|
||||
|
@ -5,7 +5,7 @@ require('../../support/test-helper');
|
||||
var assert = require('assert');
|
||||
var RedisPool = require('redis-mpool');
|
||||
|
||||
var TemplateMaps = require('../../../lib/backends/template_maps');
|
||||
var TemplateMaps = require('../../../lib/backends/template-maps');
|
||||
|
||||
describe('template_maps_auth', function() {
|
||||
|
||||
|
@ -4,7 +4,7 @@ require('../../support/test-helper');
|
||||
|
||||
var assert = require('assert');
|
||||
var RedisPool = require('redis-mpool');
|
||||
var TemplateMaps = require('../../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../../lib/backends/template-maps');
|
||||
var _ = require('underscore');
|
||||
|
||||
describe('template_maps', function() {
|
||||
|
@ -4,7 +4,7 @@ var testHelper = require('../../support/test-helper');
|
||||
|
||||
var assert = require('assert');
|
||||
var RedisPool = require('redis-mpool');
|
||||
var TemplateMaps = require('../../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../../lib/backends/template-maps');
|
||||
var step = require('step');
|
||||
var _ = require('underscore');
|
||||
|
||||
|
@ -4,7 +4,7 @@ require('../../support/test-helper');
|
||||
|
||||
var assert = require('assert');
|
||||
var RedisPool = require('redis-mpool');
|
||||
var TemplateMaps = require('../../../lib/backends/template_maps.js');
|
||||
var TemplateMaps = require('../../../lib/backends/template-maps');
|
||||
var _ = require('underscore');
|
||||
|
||||
describe('template_maps', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user