Javier Goizueta
7f7204df6c
Add filter stats information to query rewriter data
2016-05-17 15:41:31 +02:00
Javier Goizueta
3c6d930434
Fix bug
2016-05-17 15:39:32 +02:00
Javier Goizueta
df63fbbd04
Refactor filter application into own model
...
This also avoids storing an object in the overviews query rewriter
for the bbox filter (a plain data structure is used instead).
2016-05-17 13:55:00 +02:00
Javier Goizueta
9d82e8c27c
Use bounding box of dataviews to select overviews level
2016-05-13 20:47:36 +02:00
Javier Goizueta
224eb392ba
Add overviews-dependent dataviews behaviour
...
Now QueryRewriter is used in dataview objects they can decide
whether overviews are applicable, have the oportunity to
adapt queries for overviews, etc.
This is done by having overviews-related behaviour in models/dataview/overviews
and falling back to the regular models/dataview.
2016-05-13 18:46:58 +02:00
Javier Goizueta
b574489950
Refactor to reduce cyclomatic complexity
2016-05-12 18:47:24 +02:00
Javier Goizueta
85788f42a6
Adapt QueryRewriter to new requirements
2016-05-12 18:30:10 +02:00
Javier Goizueta
5fb7f07498
Prevent problems with missing layers in mapconfig
2016-05-12 18:29:30 +02:00
Javier Goizueta
3300c095ed
Merge branch 'master' into overviews-widgets-2
2016-05-12 17:37:24 +02:00
Javier Goizueta
55cf0a8447
Fix typo
2016-05-12 16:43:09 +02:00
Javier Goizueta
64a87690ee
💄 Fix line lengths, etc.
2016-05-12 16:20:34 +02:00
Javier Goizueta
3890014250
Fix QueryRewriter use
...
QueryRewriter should be passed the query that would be used otherwise.
If QR cannot handle it, it will be returned unmodified.
So QR must be used when a query has been prepared and the result
of QR should be used to replace it.
2016-05-12 10:25:09 +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
3e4f71d873
Nicer error message when missing sql from layer options
...
Fixes #446
2016-05-11 18:24:47 +02:00
Javier Goizueta
fa19f90a6a
Apply overviews query rewriter to dataviews
...
This requires the QueryRewriter to handle a filters parametes in
its data (with Camshaft filter definitions) and a final
options parameters with a bounding_box parameter.
2016-05-11 18:18:22 +02:00
Raul Ochoa
4570d17ce1
Use original query from source nodes
...
Doing a st_transform doesn't make sense as we already should have
the_geom_webmercator column available
2016-05-10 17:09:36 +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
3e94e3288f
Use sql as replacement variable
2016-05-06 17:09:41 +02:00
Raul Ochoa
7d4caf6974
Analysis layers can have a sql_wrap option to wrap node queries
2016-05-06 16:37:52 +02:00
Raul Ochoa
c77ea49594
Use a more aggressive cache control header for node status endpoint
2016-05-05 17:52:37 +02:00
Raul Ochoa
e3d6da06a7
Remove console usage
2016-05-05 12:17:51 +02:00
Raul Ochoa
755dfe6822
Append dataviews related columns to layers
2016-04-27 18:30:05 +02:00
Raul Ochoa
dd731399dc
Starts using turbo-carto dependency
2016-04-26 16:28:05 +02:00
Raul Ochoa
c5bed48d61
Handle missing analyses nodes for layers pointing to them
...
Fixes #422
2016-04-21 17:24:52 +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
bc845b2e8d
Validate dataviews format before instantiating
2016-04-21 16:16:00 +02:00
Raul Ochoa
08ad961123
Adds support to return multiple errors in BaseController.sendError
2016-04-21 16:05:48 +02:00
Javier Goizueta
0bb6178d49
Merge pull request #421 from CartoDB/420-overviews-schema
...
Support unneeded schema names in overviews queries
2016-04-20 18:16:16 +02:00
Javier Goizueta
084b3e94a6
Remove unneeded variable
2016-04-20 18:01:34 +02:00
Javier Goizueta
a0445b5cdd
💄 Fix indentation
...
2 spaces were used instead of 4 in some places
2016-04-20 17:47:43 +02:00
Javier Goizueta
ecbae52abe
Refactor: use reduce for collecting overviews metadata
2016-04-20 17:24:16 +02:00
Raul Ochoa
a35403cd91
Add option to modify host header template for camshaft batch client
2016-04-20 16:36:29 +02:00
Raul Ochoa
e04a9a2579
Append dataviews filters after checking if mapconfig must be adapted
2016-04-20 15:40:14 +02:00
Javier Goizueta
57cba3d511
Fix comment
2016-04-20 14:30:13 +02:00
Javier Goizueta
7902b276ad
Support unneeded schema names in overviews queries
...
Fixes #420
Keep table schema of overviews base tables and use it
to support queries that use the schema name when not
strictly needed.
2016-04-19 22:50:05 +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
68b19c65fe
newline at end of file
2016-04-18 14:40:34 +02:00
Raul Ochoa
da602eeda0
Use inline execution in camshaft instead of a database service stub
2016-04-14 17:25:08 +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
25a61c8479
Remove console log
2016-04-14 17:08:23 +02:00
Raul Ochoa
e73b64bfed
Merge branch 'master' into analysis-layers
2016-04-14 13:40:51 +02:00
Raul Ochoa
b5b8085444
Reformat for better indentation
2016-04-14 13:40:02 +02:00
Raul Ochoa
388f08a277
Remove unneeded comma
2016-04-14 13:39:19 +02:00
Raul Ochoa
aa36236ed2
Rename analysis to analysis status backend, making room for analysis backend
2016-04-14 13:25:56 +02:00
Raul Ochoa
a9ca453b17
Remove some JSON.stringify
2016-04-14 13:20:22 +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
09687b3811
Proper endpoint to check node status from analysis
2016-04-14 10:59:51 +02:00