Commit Graph
33 Commits
Author SHA1 Message Date
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
Eneko Lakasta b0e9df1400 add pgConnection.getDatabaseParams 2018-02-08 12:04:03 +01:00
Eneko Lakasta 6ebf51ce45 let select apikey type in setDBAuth: regular, default, master 2018-02-08 11:29:17 +01:00
Eneko Lakasta 95538707c9 add parameter asMaster to setDBAuth 2018-02-07 17:14:13 +01:00
Daniel García Aubert 0684c1b9d3 Work in progress: get timeout from redis 2017-07-05 19:08:19 +02:00
Mario de Frutos be58adb1b9 Be able to override buffer-size configuration without placeholders in named maps 2017-04-28 19:20:00 +02:00
Raul Ochoa adf5c17e0d Use context from adapters as provider context 2016-09-28 19:22:03 +02:00
Raul Ochoa 616aac9771 Upgrade camshaft to 0.25.0
Use new configuration with user for nodes.
2016-07-03 10:49:45 +02:00
Raul Ochoa a785ebef65 Use generic map config adapter 2016-05-23 23:29:06 +02:00
Raul Ochoa 4137de5adf Remove class members 2016-05-23 22:01:08 +02:00
Raul Ochoa f012e6092f Remove unused var 2016-05-23 21:58:42 +02:00
Raul Ochoa 9ce4929d87 Use generic adapter in named maps 2016-05-23 21:56:38 +02:00
Raul Ochoa 02cb80daa1 Use context for datasource 2/2 2016-05-23 19:14:03 +02:00
Raul Ochoa e9d1951d48 Use context for datasource 1/2 2016-05-23 19:09:57 +02:00
Raul Ochoa a11cc28dc7 Use context for analyses results 2016-05-23 18:59:23 +02:00
Raul Ochoa a8fdd6726e Fix style 2016-05-23 18:36:03 +02:00
Raul Ochoa 7ad8a99373 Unify getMapConfig signature for overviews adapter 2016-05-23 18:35:16 +02:00
Raul Ochoa efcb73e0d1 Named layers adapter with getMapConfig signature 2016-05-23 18:03:45 +02:00
Raul Ochoa 70750d2c43 Unify getMapConfig signature 2016-05-23 16:50:26 +02:00
Raul Ochoa 9c1db98f67 Unifiy getMapConfig signature 2016-05-23 16:44:14 +02:00
Raul Ochoa 12c44fda6f Unify getMapConfig interface 2016-05-23 16:20:42 +02:00
Raul Ochoa 6ccdb6cefd Overviews adapter with getMapConfig interface 2016-05-23 15:52:31 +02:00
Raul Ochoa 9f6ce64a31 Named maps adapter with getMapConfig interface 2016-05-23 15:39:11 +02:00
Raul Ochoa 3e35604df0 turbo-carto adapter with getMapConfig interface 2016-05-23 15:18:20 +02:00
Raul Ochoa 8134aca14d Named map provider into providers package 2016-05-23 13:32:28 +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