Commit Graph
38 Commits
Author SHA1 Message Date
Daniel García Aubert d28744a5e3 Be able to pass the logger to the analysis creation (camshaft) while instantiating a named map with analysis 2020-06-05 20:08:08 +02:00
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 c37e3f173d Handle error properly in user middleware, it will logged in error middleware 2020-06-03 15:39:02 +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 3cf17c8bab typo 2020-05-01 10:40:56 +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 c91d78fe51 Also export template hash 2020-04-29 16:44:14 +02:00
Daniel García Aubert 798d010776 Ensure "map_id" and "cache_buster" as part of the event 2020-04-29 14:32:08 +02:00
manmorjim d1696425fd Prevent using cast column from alias __ctx_query
Fixes #1160 by keep the original name of the column and using it if the
column type is date.
2020-04-10 14:14:24 +02:00
Daniel García Aubert f583a4240a Remove jshint comments 2020-04-04 17:29:33 +02:00
Daniel García Aubert 726e1a2268 Add test to validate parameters 2019-12-16 16:12:57 +01:00
Daniel García Aubert 6e455a1205 Better condition 2019-12-16 12:54:17 +01:00
Daniel García Aubert da07d550d2 Use ST_DWithin() 2019-12-16 12:30:52 +01:00
Daniel García Aubert 95f66b8c4b Transform from 3857 2019-12-13 12:36:13 +01:00
Daniel García Aubert ea1f43bec7 Fix query to make the proper transformations 2019-12-11 11:02:31 +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 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 dc669f5cd4 Do not use object built-ins 2019-11-14 12:18:13 +01:00
Daniel García Aubert d4719d5707 camel case 2019-11-14 12:17:26 +01:00
Daniel García Aubert f9082dad94 Merge branch 'eslint' of github.com:CartoDB/Windshaft-cartodb into eslint 2019-11-14 11:13:04 +01:00
Daniel García Aubert 7b13c12ab4 Automatically lint fixes 2019-11-13 20:07:41 +01:00
Daniel García Aubert 2c8a030ecb Merge branch 'master' into eslint 2019-11-13 19:00:50 +01:00
Daniel G. Aubert 09d3e8aabb Merge pull request #1139 from CartoDB/fix/bad-aggregation-method-overview
Validate aggregation method is either sum or count
2019-11-13 10:11:28 +01:00
Raúl Marín aa09c079f6 Fix multiple DB login issues 2019-11-12 13:15:32 +01:00
Esther Lozano acecb88efb Validate aggregation method is either sum or count 2019-11-11 18:14:30 +01:00
Daniel García Aubert cc24228511 Fix eslint issues 2019-11-06 13:56:59 +01:00
Daniel García Aubert 27106fea57 Avoid regular string contains what looks like a template literal placeholder 2019-11-06 13:29:03 +01:00
Daniel García Aubert 575fe8e350 Remove unnecessary escape usage 2019-10-24 19:18:47 +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 c4054f0ac9 Use develop branch of query-tables 2019-10-15 10:39:31 +02:00
Daniel García Aubert f7707141d6 Rename variable 2019-10-08 17:22: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 808718fb26 Rename cdb_request -> cdb-request 2019-10-07 09:58:21 +02:00
Daniel García Aubert 281a079a62 Simplify folder structure 2019-10-07 09:40:50 +02:00