Daniel García Aubert
242e63716f
Merge branch 'middlewarify' into stats-middleware
2017-10-05 18:21:02 +02:00
Daniel García Aubert
c70b8cb5bf
Set X-Served-By-DB-Host header in db-conn-setup middleware
2017-10-05 18:05:46 +02:00
Daniel García Aubert
bf637ccd5b
Implement stats middleware removing some duplicated code
2017-10-05 17:06:42 +02:00
Daniel García Aubert
b236112069
Split prepare context middleware and fix unit test
2017-09-25 13:40:22 +02:00
Daniel García Aubert
6dc9cc0b23
Remove req2params dependency
2017-09-22 17:56:08 +02:00
Simon
9d81321d78
Merge branch 'master' into middlewarify
2017-09-22 16:26:56 +02:00
Simon Martín
ca63c2ef1a
Merge pull request #721 from CartoDB/lzma-middleware
...
Implement LZMA query param inflating as middleware
2017-09-22 16:16:36 +02:00
Daniel García Aubert
9bd862ffaf
Remove req2params from BaseController and update related test to use the middleware
2017-09-22 01:08:46 +02:00
Daniel García Aubert
02cd6a43ad
Move req2params method to a its own middleware
2017-09-21 13:27:22 +02:00
Daniel García Aubert
429f070372
Pass node's response object to req2params
2017-09-21 12:22:33 +02:00
Daniel García Aubert
3b9c561cee
Change signature of req2params to follow express' middleware pattern
2017-09-21 11:54:37 +02:00
Daniel García Aubert
daeae5d95c
Implement error-middleware to handle errors at top level
2017-09-21 11:46:42 +02:00
Raul Ochoa
69eaa72819
String comparison and regex to match errors instead of indexOf
2017-08-10 16:06:10 +02:00
Daniel García Aubert
14f85abd39
Merge branch 'master' into response-time-limit
2017-08-09 18:48:38 +02:00
Raul Ochoa
399561d076
Implement LZMA query param inflating as middleware
...
The req2params method is doing too many things,
this is an initial step to do fewer things in that method.
2017-08-04 17:30:46 +02:00
Daniel García Aubert
b2b68ffd5c
Merge branch 'master' into 691-date-histogram
2017-08-01 16:07:27 +02:00
Daniel García Aubert
0594407b38
Change error message
2017-08-01 15:03:09 +02:00
Daniel García Aubert
44fc34b1ce
Improve timeout error message
2017-07-31 20:07:31 +02:00
Daniel García Aubert
1fdc0621e7
Categorize timeout errors
2017-07-31 19:36:07 +02:00
Daniel García Aubert
5974413d5c
Use 429 to indicate timeout errors
2017-07-31 19:08:29 +02:00
Daniel García Aubert
49d2f513c6
Fix typo
2017-07-31 18:51:23 +02:00
Daniel García Aubert
f2e043b063
Do not expose database error info
2017-07-31 17:56:58 +02:00
Daniel García Aubert
eccc3597aa
Respond with 204 when vector tile is empty
2017-07-17 19:44:18 +02:00
Daniel García Aubert
29a6658e3d
Migrate dataviews endpoints to use the allow-query-params
2017-06-08 19:22:33 +02:00
Daniel García Aubert
c1fac13d6b
Be able to accept timezone parameter
2017-06-02 12:45:34 +02:00
Daniel García Aubert
1d66e49910
WIP implemented date histogram
2017-06-01 20:07:46 +02:00
Raul Ochoa
c325df1414
Merge pull request #655 from CartoDB/static-maps-layers-filter
...
Static maps layers filter
2017-04-03 12:07:38 +02:00
Raul Ochoa
cad02bfad7
Remove all conditional branches to call req.profiler
...
req.profiler is created in a middleware for all requests.
2017-03-30 20:31:53 +02:00
Raul Ochoa
94299f0452
Configure extra allowed params per endpoint via middleware
...
Instead of making all params available in all endpoints, we control
what endpoints allow what extra params.
Dataviews endpoints should be migrated to this.
2017-03-30 20:12:55 +02:00
Raul Ochoa
6468822295
Remove layer param before creating a better solution
2017-03-30 20:08:45 +02:00
Raul Ochoa
8694c120bc
Allow to overwrite layers filter in static maps images
2017-03-15 11:00:10 +01:00
Daniel García Aubert
016adb64ef
Fix error context, replaced turbo-carto error type by layer type. Context is no longer used, custom property for each type will be used instead.
2016-06-26 18:43:04 +02:00
Daniel García Aubert
d9297d54de
made error_with_context non optional and adapted test's assertion
2016-06-13 16:14:01 +02:00
Daniel García Aubert
c0ce6e7a8a
WIP fixes 478, adds more error information when either analysis or turbo-carto is not well formed.
2016-06-13 12:20:56 +02:00
Raul Ochoa
6639664b3f
Allow override zoom+center or bbox for static named maps previews
2016-05-09 21:13:13 +02:00
Raul Ochoa
08ad961123
Adds support to return multiple errors in BaseController.sendError
2016-04-21 16:05:48 +02:00
Javier Goizueta
37a4aaeeb4
Refactor findStatusCode for legibility
...
...disregarding jshint opinion
2016-01-27 17:39:24 +01:00
Javier Goizueta
81cb75f821
Refactor statusFromErrorMessage
...
...to make jshint happy
2016-01-21 18:24:49 +01:00
Javier Goizueta
8592136683
Change status code assigned to some errors
...
Errors without an explicit status code with the error message
containing 'does not exist' were assigned codes 404 or 403.
Now if the error message is 'function X does not exist'
(originated in SQL) the error code assigned is 400.
2016-01-21 18:02:21 +01:00
Raul Ochoa
7d2f543284
Allow column_type query string param
2015-12-02 18:50:11 +01:00
Raul Ochoa
d9614cc1c5
Add search endpoint
2015-11-16 13:15:01 +01:00
Raul Ochoa
a84dd7cd29
Add more url params
2015-11-12 19:45:49 +01:00
Raul Ochoa
7d230cc15d
Widgets returning two results
2015-11-04 17:21:33 +01:00
Raul Ochoa
8a81828a3d
Enable bbox query string param
2015-10-29 16:25:56 +01:00
Raul Ochoa
0285f015e2
Pass filters within params
2015-10-27 13:26:11 +01:00
Raul Ochoa
23fd33030d
remove console.log
2015-09-18 17:13:37 +02:00
Raul Ochoa
208dd209a4
Merge branch 'standalone-server' into standalone-server-express-4
...
Conflicts:
lib/cartodb/controllers/base.js
2015-09-17 12:57:33 +02:00
Raul Ochoa
9139feaa30
Move error message handling test to unit
2015-09-17 12:48:29 +02:00
Raul Ochoa
f9f6c8b700
Use debug instead of console
2015-09-17 12:03:58 +02:00
Raul Ochoa
361dd00e9d
Use debug instead of console
2015-09-17 11:06:46 +02:00