Commit Graph
53 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 94a5020faf Do not use underscore 2018-05-30 20:10:59 +02:00
Daniel García Aubert c0e6bf1299 Use ES6 class syntax 2018-05-30 20:08:35 +02:00
Daniel García Aubert 9fe8958e8c Use ES6 class syntax 2018-05-30 20:02:38 +02:00
Daniel García Aubert 7c51895b0f Use const and let instead of var 2018-05-30 19:50:07 +02:00
Daniel García Aubert 16bca85438 Do not use underscore 2018-05-30 19:43:23 +02:00
Daniel García Aubert 9d415d0dbe Extract method to get and build context 2018-05-30 19:30:34 +02:00
Daniel García Aubert 1d0210a372 Reorder code 2018-05-30 19:07:28 +02:00
Daniel García Aubert 2fb6c08702 Remove unnecessary variables 2018-05-30 18:37:11 +02:00
Daniel García Aubert f7c712f6eb Avoid functions with side effects 2018-05-30 18:31:59 +02:00
Daniel García Aubert eabd25ee6a Use the returned template instead of the cached one 2018-05-30 18:18:42 +02:00
Daniel García Aubert 5fc49ab3c2 Remove duplicated assignment 2018-05-30 18:16:42 +02:00
Daniel García Aubert 1b6a722c0c Remove step 2018-05-30 18:15:51 +02:00
Daniel García Aubert 5cfffcfa83 Use const instead of var 2018-05-30 17:22:12 +02:00
Daniel García Aubert 4e28f7bb4e Do not require assert and step 2018-05-30 17:10:18 +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
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