Daniel García Aubert
788cd9d6fb
Be explicit while forwarding parametes
2019-09-13 18:15:11 +02:00
Daniel García Aubert
824d41ef0f
Consitent quotes
2019-09-13 18:11:47 +02:00
Daniel García Aubert
329b5d9b9e
Use ES6 class syntax
2019-09-13 18:07:50 +02:00
Daniel García Aubert
b55c2ec55c
Use template string
2019-09-13 18:03:39 +02:00
Daniel García Aubert
d99e5a44f5
Use const instead of var
2019-09-13 18:00:13 +02:00
Daniel García Aubert
e8d5e42300
Use Object.assign() instead of _.defaults()
2019-09-13 17:58:23 +02:00
Daniel García Aubert
c0afd42fa2
Use template strings instead of dot module
2019-09-13 17:53:10 +02:00
Daniel García Aubert
1bb6a2ac0d
Move invalidation closer to its definition
2019-09-13 17:42:56 +02:00
Daniel García Aubert
3d2f554be9
Use early return pattern
2019-09-13 16:53:53 +02:00
Daniel García Aubert
6229455d25
Remove mechanism to reset named map's provider as, in the end, it's reading from storage (redis) always so cache isn't doing its job. There is already a mechanism to invalidate cache entry when a template is modified (see template-maps emits on "update" and "delete", and listeners attached at server startup)
2019-09-12 20:34:18 +02:00
Daniel García Aubert
9d6726227a
Add maxAge param to lru-cache to be able to refresh entries when staled
2019-09-12 18:02:13 +02:00
Daniel García Aubert
e7e3d612a1
Use strict mode in modules under lib folder (except lib/cartodb/models/resource-locator.js)
2018-10-23 17:45:42 +02:00
Daniel García Aubert
d1a4057a8d
Rename user limits api by user limits backend
2018-04-10 10:16:07 +02:00
Daniel García Aubert
a142620b70
Make generic middlewares to calculate surrogate key and cache channel headers:
...
- In controllers: all reference to map config are now camelized, for instance: mapconfig -> mapConfig or mapconfigProvider -> mapConfigProvider
- In controllers: all map config providers created in req/res cycle are saved into `res.locals` and `mapConfigProvider` as key.
- In map-config-providers: all of them implement `.getAffectedTables()`, in order to calculate the tables involved for a given map-config. For that, `pgConnection` and `affectedTablesCache` are injected as constructor argument.
- Named Map Provider: rename references from `affectedTablesAndLastUpdate` to `affectedTables`.
- Named Map Provider Cache: In order to create new named map providers, needs affectedTablesCache.
- Extract locals middlewares (surrogate-key and cache-channel) from controllers and create an unified version of them.
- Extract last-modified middleware from named maps controller (draft).
2018-03-21 14:11:54 +01:00
Raul Ochoa
a785ebef65
Use generic map config adapter
2016-05-23 23:29:06 +02:00
Raul Ochoa
efcb73e0d1
Named layers adapter with getMapConfig signature
2016-05-23 18:03:45 +02:00
Raul Ochoa
8134aca14d
Named map provider into providers package
2016-05-23 13:32:28 +02:00
Raul Ochoa
ab984729f5
Named layers adapter into adapters package
2016-05-23 13:16:34 +02:00
Raul Ochoa
9f8551058d
Analysis adapter into adapter package
2016-05-23 13:10:52 +02:00
Raul Ochoa
c12e5f7a27
Fix named maps with analysis
...
Named map provider was missing analysis backend dependency
Fixes #450
2016-05-13 16:57:27 +02:00
Raul Ochoa
dd731399dc
Starts using turbo-carto dependency
2016-04-26 16:28:05 +02:00
Raul Ochoa
263b3e3682
Rename file
2016-04-18 14:47:35 +02:00
Raul Ochoa
077c4ab907
Adds analysis MapConfig adapter to named maps
2016-04-07 16:18:48 +02:00
Javier Goizueta
b97a67b844
Fix overviews integration for named layers
...
Fixes #400
2016-03-31 18:33:41 +02:00
Daniel García Aubert
052b58ab90
Moved turbo-cartocss integration from named maps admin to named map provider
2016-03-11 18:28:14 +01:00
Alejandro Martínez
e67f7b0d0e
Drop old QueryTablesApi
2016-02-22 15:26:06 +01:00
Raul Ochoa
857548bbe4
Adds support for named layers in named tiles/static maps
2015-09-23 18:44:11 +02:00
Raul Ochoa
f553efa69e
Named map mapconfig provider takes care of template modifications
...
If a template changes it will flush the provider so it recreates the mapconfig
2015-09-23 16:45:20 +02:00
Raul Ochoa
84bf375f72
Makes cache async
2015-09-23 14:32:26 +02:00
Raul Ochoa
943509864d
Improve uniqueness of named map map config provider
2015-07-31 12:24:34 +02:00
Raul Ochoa
909f8da2ff
Adds lru cache for layergroups and named maps mapconfig provider
2015-07-15 16:51:26 +02:00
Raul Ochoa
1f7daab677
Caching named map providers by template name and config/auth token
...
Named Map provider cache buster changes on creation
2015-07-14 21:17:58 +02:00
Raul Ochoa
07c920bad5
Use named map provider cache to retrieve providers
2015-07-14 20:53:06 +02:00