Commit Graph
16 Commits
Author SHA1 Message Date
Daniel García Aubert ea95050d43 Extract base class in order to share createAffectedTables and getAffectedTables methods 2018-05-31 14:57:34 +02:00
Daniel García Aubert c32dba1ecb Use ES6 class syntax 2018-05-30 20:28:15 +02:00
Daniel García Aubert 532d50ad7a Return 'null' explicitly 2018-05-30 17:09:01 +02:00
Daniel García Aubert d8b0d338c0 Use 'const' instead of 'var' 2018-05-30 17:02:15 +02:00
Daniel García Aubert cd0be5f79d Do not require 'step' 2018-05-30 17:00:55 +02:00
Daniel García Aubert 3820894454 Do not use 'step' 2018-05-30 17:00:15 +02:00
Daniel García Aubert ac615b4a25 Merge branch 'separate-routers' into improve-folder-structure 2018-04-10 16:15:49 +02:00
Daniel García Aubert 1bbd84b37a Please jshint 2018-04-10 15:56:52 +02:00
Daniel García Aubert d1a4057a8d Rename user limits api by user limits backend 2018-04-10 10:16:07 +02:00
Simon Martín 233f9698f3 fix affectedtables cache 2018-04-06 12:59:53 +02:00
Daniel García Aubert a107ee67fa Use arrow function 2018-03-27 10:32:22 +02:00
Daniel García Aubert b40ed13f47 Do not use step to deal with asyn code 2018-03-21 19:08:37 +01: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
Daniel García Aubert 0684c1b9d3 Work in progress: get timeout from redis 2017-07-05 19:08:19 +02:00
Raul Ochoa 215bbbd29c Store provider into providers package 2016-05-23 13:29:34 +02:00
Raul Ochoa c4b6f65404 Create map provider into providers package 2016-05-23 13:28:11 +02:00