Daniel García Aubert
51ba3db4ac
Use req2params middleware for instantiate named map endpoint
2017-09-22 00:31:16 +02:00
Daniel García Aubert
e2ed0058d8
Use req2params middleware for layergroup create endpoint
2017-09-21 21:52:34 +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
daeae5d95c
Implement error-middleware to handle errors at top level
2017-09-21 11:46:42 +02:00
Mario de Frutos
440953b1cd
If we have the stats FF disbabled return empty array instead of null
...
But we keep checking for elements in the returned object because
we don't want to include the stats property if the FF is disabled
2017-05-30 10:47:47 +02:00
Mario de Frutos
ed56094be2
PR changes
2017-05-18 11:51:12 +02:00
Mario de Frutos
5969c99e8a
Removed not used parameters for layer stats
2017-05-12 16:42:10 +02:00
Mario de Frutos
daf19c5e27
Stats backend only provides stats not metadata
2017-05-10 17:17:01 +02:00
Mario de Frutos
7d5b6b0820
Lint changes and yarn.lock
2017-05-09 18:24:24 +02:00
Mario de Frutos
15c68711aa
Create stats backend to decouple stats logic from map controller
2017-05-09 12:31:16 +02:00
Mario de Frutos
568d6b5458
Include the layers metadata into the layergroup object
2017-05-09 11:59:11 +02:00
Mario de Frutos
525c0f2afa
Added rendererCache as dependency for map controller
2017-05-09 11:58:48 +02:00
Mario de Frutos
3f6c8fa51c
Use windshaft-stats to get layer stats
2017-05-08 18:42:40 +02:00
Mario de Frutos
9707881bf9
Include check for surrogate-key header and renamed the test file
2017-04-07 15:59:58 +02:00
Mario de Frutos
fa6493ae44
Affected tables are now included in X-Cache-Channel
2017-04-07 15:59:58 +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
2da834784f
Generate URLs for resources based on CDN + template rules
2017-03-22 18:58:37 +01:00
Raul Ochoa
1f975e15c1
Default to empty object for cdn URLs
2016-11-22 17:01:34 +01:00
Raul Ochoa
6c69ba54db
Use actual CDN url for HTTP and HTTPS
2016-11-22 16:44:06 +01:00
Raul Ochoa
49f9904d00
Allow to set resource URL templates with substitution tokens
2016-11-22 16:41:31 +01:00
Daniel García Aubert
9faac9f9fe
Retrieve error with context if map validation fails
2016-11-01 11:00:58 +01:00
Raul Ochoa
263294a3f5
Add metadata only for existing layers in turbocarto context
2016-09-20 16:19:22 +02:00
Raul Ochoa
f9df30f70b
Append turbo-carto metadata per layer
2016-09-20 16:09:21 +02:00
Raul Ochoa
d0980a2872
Return last error message for failed nodes on map creation
2016-07-11 10:42:46 +02:00
Raul Ochoa
6c98f14c64
Return full list of nodes in response metadata
2016-07-05 11:26:52 +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
cb1d1bb115
Pick last update time for layergroupid from analyses results
2016-06-17 14:46:22 +02:00
Raul Ochoa
f49c13b1b3
Do not apply twice metadata in anonymous maps
2016-06-02 14:28:32 +02:00
Raul Ochoa
828b817aca
Append widgets metadata from mapconfig
2016-06-02 14:14:11 +02:00
Raul Ochoa
faa24caf5b
Use generic map config adapter
2016-05-23 23:35:42 +02:00
Raul Ochoa
a785ebef65
Use generic map config adapter
2016-05-23 23:29:06 +02:00
Raul Ochoa
8efe844474
Use generic adapter
2016-05-23 21:37:06 +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
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
c4b6f65404
Create map provider into providers package
2016-05-23 13:28:11 +02:00
Raul Ochoa
ab984729f5
Named layers adapter into adapters package
2016-05-23 13:16:34 +02:00
Raul Ochoa
9f8551058d
Analysis adapter into adapter package
2016-05-23 13:10:52 +02:00
Raul Ochoa
2e79781711
Adds support for sql wrap in all layers
...
Previously it was only working for analyses ones.
2016-05-19 13:34:29 +02:00
Javier Goizueta
64a87690ee
💄 Fix line lengths, etc.
2016-05-12 16:20:34 +02:00
Javier Goizueta
65612f0109
Add filters information at map instantion time to the query rewriter data
2016-05-11 19:24:13 +02:00
Raul Ochoa
dd731399dc
Starts using turbo-carto dependency
2016-04-26 16:28:05 +02:00
Raul Ochoa
93dd8a2213
Add analyses metadata for named maps excluding queries
2016-04-21 17:03:41 +02:00
Raul Ochoa
4e4a223f24
Better naming for analysis mapconfig adapter
2016-04-21 16:25:59 +02:00
Raul Ochoa
f932862ce4
Improve configuration for batch queries
2016-04-18 15:13:00 +02:00
Raul Ochoa
ab55b083b4
Style
2016-04-18 14:48:14 +02:00
Raul Ochoa
263b3e3682
Rename file
2016-04-18 14:47:35 +02:00
Raul Ochoa
a26025b259
Add analysis backend so it's possible to inject configuration
2016-04-14 17:09:07 +02:00
Raul Ochoa
e037c8c1b2
Do not use layer index as analysis node is are unique
2016-04-14 11:08:39 +02:00
Raul Ochoa
7a87b8ebef
Use node id instead of param id for endpoint
...
It will be easier to retrieve node status with that id
2016-04-13 18:04:49 +02:00
Raul Ochoa
9ff661480b
Do not append root as it is already included in sorted nodes
2016-04-13 18:02:28 +02:00
Raul Ochoa
dd36877a20
Add per node status
2016-04-11 18:49:43 +02:00
Raul Ochoa
1d860fd202
Remove top level url for analysis
2016-04-11 18:49:22 +02:00
Raul Ochoa
0981ccd0c4
Add metadata information about analyses
2016-04-07 17:58:12 +02:00
Raul Ochoa
077c4ab907
Adds analysis MapConfig adapter to named maps
2016-04-07 16:18:48 +02:00
Raul Ochoa
ab6bae6a7f
Merge branch 'master' into analysis-layers
2016-04-04 16:24:31 +02:00
Javier Goizueta
b97a67b844
Fix overviews integration for named layers
...
Fixes #400
2016-03-31 18:33:41 +02:00
Raul Ochoa
ff147ca3bf
Add dataviews to layergroup metadata
2016-03-18 18:09:17 +01:00
Raul Ochoa
b3bbb9d97a
Initial checkin for dataviews
...
It only supports histograms.
2016-03-18 17:22:02 +01:00
Raul Ochoa
eec44dd62d
Merge branch 'master' into analysis-layers
...
Conflicts:
npm-shrinkwrap.json
test/support/test-client.js
2016-03-14 15:13:19 +01:00
Raul Ochoa
3f41f19ab9
Rename adapter
2016-03-14 11:50:52 +01:00
Daniel García Aubert
052b58ab90
Moved turbo-cartocss integration from named maps admin to named map provider
2016-03-11 18:28:14 +01:00
Daniel García Aubert
dab4b6d56b
Implemented integration of turbo-cartocss for named maps
2016-03-10 20:45:00 +01:00
Raul Ochoa
b2378939c5
Merge branch 'master' of github.com:CartoDB/Windshaft-cartodb into analysis-layers
2016-03-10 11:14:10 +01:00
Daniel García Aubert
46b212b2cd
Merge branch 'move-turbo-cartocss' of github.com:CartoDB/Windshaft-cartodb into move-turbo-cartocss
2016-03-09 20:14:06 +01:00
Daniel García Aubert
f47842c96d
Integrated turbo-cartocss adapter for named maps
2016-03-09 20:12:51 +01:00
Raul Ochoa
bbfcc640d1
Style
2016-03-09 18:08:06 +01:00
Raul Ochoa
e9b8c512c9
Re-indent
2016-03-09 18:07:11 +01:00
Raul Ochoa
15b54a2918
Re-indent
2016-03-09 18:05:17 +01:00
Daniel García Aubert
affa254b9d
Moved and adapted acceptance test for turbo-cartocss integration
2016-03-08 20:06:43 +01:00
Daniel García Aubert
3e0c19a669
Fixed typo
2016-03-08 14:41:10 +01:00
Daniel García Aubert
ab6004f21e
Integrated turbo-cartocss for anonymous maps
2016-03-08 14:34:57 +01:00
Raul Ochoa
c7bdabfc65
Merge branch 'new_querytables_library' into analysis-layers
2016-03-04 12:08:57 +01:00
Raul Ochoa
d9f6df9815
Remove nested step call
2016-03-03 19:01:58 +01:00
Raul Ochoa
7c154dd405
Add notes about why we keep feeding the layergroupAffectedTables cache
2016-03-03 19:01:21 +01:00
Raul Ochoa
b9d2e297b6
Merge branch 'master' of github.com:CartoDB/Windshaft-cartodb into analysis-layers
2016-02-24 10:35:28 +01:00
Alejandro Martínez
dcf156ba21
Merge remote-tracking branch 'origin/master' into new_querytables_library
2016-02-23 19:20:10 +01:00
Alejandro Martínez
e491c0b825
Rename node-cartodb-query-tables to cartodb-query-tables
2016-02-22 19:11:54 +01:00
Alejandro Martínez
e67f7b0d0e
Drop old QueryTablesApi
2016-02-22 15:26:06 +01:00
Raul Ochoa
877425267e
Correct URLs for widgets in named maps
...
Fixes #381
2016-02-22 15:06:39 +01:00
Alejandro Martínez
cf06ff86c2
Use node-cartodb-query-tables library
2016-02-22 11:40:25 +01:00
Raul Ochoa
30f8234bd0
Use analysis configuration as per new camshaft api
2016-02-19 17:13:28 +01:00
Raul Ochoa
dfcb3b6dc1
Merge branch 'new_querytables' into analysis-layers
2016-02-17 11:31:55 +01:00
Alejandro Martínez
9e7b288f44
Merge remote-tracking branch 'origin/master' into new_querytables
2016-02-15 11:47:29 +00:00
Raul Ochoa
bcf3ce71ef
Adds experimental adapter to use queries based on camshaft analysis
2016-02-12 18:38:06 +01:00
Raul Ochoa
39cb463fbd
Fix jsdoc
2016-02-12 16:13:40 +01:00
Raul Ochoa
354c982ea0
Fix jsdoc
2016-02-12 16:12:02 +01:00
Alejandro Martínez
95ab99be4d
Use new CDB_QueryTablesUpdatedAt function
2016-02-09 19:06:34 +01:00
Javier Goizueta
0a218da835
Implement an Overviews query rewriter
...
Use the Windshaft query-rewriter interface to adapt queries so
they use available overview tables.
This requires a version of Windshaft that implements the query-rewriter
interface (package.json/npm-shrinkwap.json have yet to be updated)
2016-02-04 10:26:31 +01:00
Javier Goizueta
3b6abb5c9f
Refactor construction of OverviewsApi
2016-01-26 11:49:41 +01:00
Javier Goizueta
ffd89edaa7
Add overviews metadata to MapController instantiateTemplate
...
As in MapController create.
2016-01-20 18:36:06 +01:00
Javier Goizueta
b9f8812c98
Update comments
2016-01-20 17:09:15 +01:00
Javier Goizueta
4ca8ecf64c
Refactor/fix potential problems
2016-01-20 12:44:00 +01:00
Javier Goizueta
9feae66173
Bugfixes
2016-01-20 11:49:17 +01:00
Javier Goizueta
6aa9515fd1
Merge branch 'master' into overviews-work
2016-01-20 10:19:27 +01:00
Javier Goizueta
89590d32df
Sketch of vector overviews support
2016-01-19 19:31:43 +01:00
Raul Ochoa
3afb7a0eb3
Adds some notes about unsupported endpoints
2016-01-15 17:02:09 +01:00
Pablo Alonso Garcia
7b57d22444
Added trailing slash to API endpoint in widget URLs
2015-10-26 17:50:50 +01:00
Raul Ochoa
8b222914c5
Add URL to widgets with their endpoints
2015-10-26 14:35:51 +01:00
Raul Ochoa
3181bcc63e
Remove app dependency from controllers
2015-09-30 18:00:54 +02:00
Raul Ochoa
9cd67f06c1
User extraction from request middleware
...
Used only where potentially a user is required.
It doesn't make sense to extract a user for request that don't need
a user in the context.
2015-09-30 17:17:01 +02:00
Raul Ochoa
857548bbe4
Adds support for named layers in named tiles/static maps
2015-09-23 18:44:11 +02:00
Raul Ochoa
2bdce4baa7
Replaces console.log with global logger
2015-09-18 17:13:22 +02:00
Raul Ochoa
a4ba21f9db
Call send with correct params
2015-09-17 02:05:25 +02:00
Raul Ochoa
ef86bacf7f
Set headers with set method
2015-09-17 02:03:09 +02:00
Raul Ochoa
38e422e84c
Moves sendError and sendResponse to Base controller
...
Test for findStatusCode moved to controller
2015-09-16 21:54:56 +02:00
Raul Ochoa
352dc6b311
BaseController to encapsulate req2params method
...
All controllers now extending BaseController
- Most of the acceptance ported tests will be broken
2015-09-16 16:18:26 +02:00
Raul Ochoa
72a0c4a487
New sendResponse and sendError methods
...
- fixes response for static named map error cases
2015-09-16 01:36:51 +02:00
Raul Ochoa
fba5a35514
Move sendResponse and sendError to response object
2015-09-15 19:28:02 +02:00
Raul Ochoa
07c920bad5
Use named map provider cache to retrieve providers
2015-07-14 20:53:06 +02:00
Raul Ochoa
e8b5845174
Shared cache for affected tables in layergroup and map controllers
2015-07-14 13:40:41 +02:00
Raul Ochoa
c295584864
Cache channel now in layergroup controller
...
Internal cache channel dbname+layergroupid cache must be unified in layergroup
and map controllers
Removes sendWithHeaders
2015-07-14 11:55:49 +02:00
Raul Ochoa
5e2a20fbe0
Tags layergroup instantiation with surrogate keys per affected tables
2015-07-13 16:15:34 +02:00
Raul Ochoa
f9554ec761
Re-enable render limits
2015-07-10 19:10:55 +02:00
Raul Ochoa
9bece712a9
Splits controllers and supports after layergroup creation actions
2015-07-10 11:24:32 +02:00
Raul Ochoa
579cabdc1a
Initial refactor of layergroup creation
2015-07-10 01:30:38 +02:00
Raul Ochoa
5aad624346
NamedMaps controller using NamedMapMapConfigProvider
...
PreviewBackend with format param
2015-07-09 18:47:21 +02:00
Raul Ochoa
123346ebdb
Refactor controllers to use map store map config provider
2015-07-08 20:51:36 +02:00
Raul Ochoa
fa84813a37
Manage cors with a middleware
2015-07-08 13:27:56 +02:00
Raul Ochoa
ea6bb8dca3
fix jsdoc
2015-07-04 23:20:12 +02:00
Raul Ochoa
2d3f2667ca
Standalone server initial implementation
...
- no dependency over Windshaft.Server
2015-07-04 20:41:22 +02:00