Daniel García Aubert
7b53b7c30a
Stop using profiling wrongly. Now it only saves custom events from backends (tile, map, attributes, etc..) and calculates the response time. Besides, removed tags to know whether overviews are being used.
2020-06-03 19:51:56 +02:00
Daniel García Aubert
b60116410a
Use req/res logger instead of the one bound to global object
2020-06-02 12:31:18 +02:00
Daniel García Aubert
163c546236
Replace log4js by pino as logger:
...
- Logs to stdout, disabled while testing
- Change log calls signature when needed
- Use development version of camshaft
- Removes unused log cofiguration
- Bind request id to log req/res
- Log req at the begining of the cycle and res at the end
2020-06-01 19:18:15 +02:00
Daniel García Aubert
8cc24bc665
- Drop support for Node.js < 12
...
- Support Node.js 12
- Upgrade `windshaft` to version `7.0.0`
- Upgrade `camshaft` to version `0.65.3`
- Upgrade `cartodb-redis` to version `3.0.0`
2020-05-14 13:00:23 +02:00
Daniel García Aubert
a196a26ab4
Get templateHash for static tile request and errored named map instantiations
2020-04-30 13:09:12 +02:00
Daniel García Aubert
70f0b6ea50
Avoid to use "pubsub" for the name of modules, middlewares, variables, etc..
2020-04-29 10:40:45 +02:00
Daniel García Aubert
1bbde4f5e3
Let to the caller to choose how to handle the call to a method
2020-04-27 13:27:05 +02:00
Daniel García Aubert
e90c196598
Simplified metrics middleware and backend
2020-04-27 12:46:27 +02:00
Daniel García Aubert
6a2333be64
Topic name's lifetime is longer than pubsub backend, we can keep it as property.
2020-04-27 12:13:54 +02:00
Daniel García Aubert
7d6a64d383
Do not expose functions just to be able to mock them while testing
2020-04-27 11:59:36 +02:00
Daniel García Aubert
f583a4240a
Remove jshint comments
2020-04-04 17:29:33 +02:00
Esther Lozano
4a41ee8f75
Add backend and middleware for pubsub metrics
2020-02-20 11:48:32 +01:00
Daniel García Aubert
c877d0b964
Implement polygon filter
2019-12-03 10:58:55 +01:00
Daniel García Aubert
17f151cd5a
Implement circle filter for dataviews
2019-12-02 18:36:41 +01:00
Raúl Marín
fcf2fd1455
Enforce the usage of cartodb schema
2019-12-02 13:43:21 +01:00
Raúl Marín
6eb66de94e
Unify stripQuotes
2019-11-25 13:38:42 +01:00
Raúl Marín
f545b4d002
camshaft quote_columns
2019-11-25 13:17:09 +01:00
Daniel García Aubert
d4719d5707
camel case
2019-11-14 12:17:26 +01:00
Daniel García Aubert
2c8a030ecb
Merge branch 'master' into eslint
2019-11-13 19:00:50 +01:00
Raúl Marín
aa09c079f6
Fix multiple DB login issues
2019-11-12 13:15:32 +01:00
Raúl Marín
3c586caba4
Qualify calls to cartodb extension so having it in the search_path isn't necessary
2019-11-12 13:15:32 +01:00
Daniel García Aubert
575fe8e350
Remove unnecessary escape usage
2019-10-24 19:18:47 +02:00
Daniel García Aubert
d5218a86f6
Enforce callback error handling
2019-10-24 18:38:37 +02:00
Daniel García Aubert
7a1d2ca205
Avoid calling Object.prototype methods directly on object instances
2019-10-21 23:33:27 +02:00
Daniel García Aubert
4d70ac0894
Apply automatic eslint fixes
2019-10-21 19:07:24 +02:00
Daniel García Aubert
e8cff194fc
Rename template_maps -> template-maps
2019-10-07 10:50:14 +02:00
Daniel García Aubert
8fe0112568
Rename overviews_query_rewriter -> overviews-query-rewriter
2019-10-07 10:06:01 +02:00
Daniel García Aubert
b1d5f0f9e8
Rename pg_query_runner -> pg-query-runner
2019-10-07 09:45:46 +02:00
Daniel García Aubert
7142e4db37
Rename pg_connection -> pg-connection
2019-10-07 09:43:40 +02:00
Daniel García Aubert
281a079a62
Simplify folder structure
2019-10-07 09:40:50 +02:00