Windshaft-cartodb/lib/cartodb/middleware
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
..
authorize.js Extract authorize middeware form prepareContext 2018-03-15 18:48:29 +01:00
cache-channel-header.js Make generic middlewares to calculate surrogate key and cache channel headers: 2018-03-21 14:11:54 +01:00
clean-up-query-params.js Reorder middlewares to optimize workflow 2018-03-16 16:12:36 +01:00
cors.js merge master 2018-03-12 11:52:38 +01:00
credentials.js Extract rest of the middlewares from prepare contex 2018-03-15 19:38:11 +01:00
db-conn-setup.js Extract db-conn-setup middleware for prepare-context 2018-03-15 15:33:20 +01:00
error-middleware.js stringifyForLogs more usual case first 2017-12-18 14:54:36 +01:00
last-modified-header.js Make generic middlewares to calculate surrogate key and cache channel headers: 2018-03-21 14:11:54 +01:00
layergroup-token.js Extract rest of the middlewares from prepare contex 2018-03-15 19:38:11 +01:00
locals.js Reorder middlewares to optimize workflow 2018-03-16 16:12:36 +01:00
lzma.js merge master 2018-03-12 11:52:38 +01:00
rate-limit.js rate limit analysis catalog endpoint 2018-03-14 17:46:19 +01:00
send-response.js Extract sendResponse middleware 2018-03-19 19:48:14 +01:00
stats.js merge master 2018-03-12 11:52:38 +01:00
surrogate-key-header.js Make generic middlewares to calculate surrogate key and cache channel headers: 2018-03-21 14:11:54 +01:00
user.js merge master 2018-03-12 11:52:38 +01:00
vector-error.js merge master 2018-03-12 11:52:38 +01:00