Javier Goizueta
3add61ec57
Use Camshaft's API to get node filters
2016-05-19 18:32:49 +02:00
Javier Goizueta
2a06405a58
Move definition to the scope where it's needed
2016-05-18 18:21:17 +02:00
Javier Goizueta
a1e024e228
Fix dataview problem for bbox with no query rewrite data
...
Fixes #457
2016-05-18 17:49:09 +02:00
Javier Goizueta
4c375780c7
replace underscore functions by standard (ES5) equivalents
...
Note: _.find(a,...) is not replaced by a.find(...)
because it is not available for all the collections
we need it for.
2016-05-18 15:43:20 +02:00
Javier Goizueta
ba30f460ee
Remove comment
...
Overviews will not be used for dataview search
2016-05-18 13:42:58 +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
5fb7f07498
Prevent problems with missing layers in mapconfig
2016-05-12 18:29:30 +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
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
a35403cd91
Add option to modify host header template for camshaft batch client
2016-04-20 16:36:29 +02:00
Raul Ochoa
f932862ce4
Improve configuration for batch queries
2016-04-18 15:13:00 +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
aa36236ed2
Rename analysis to analysis status backend, making room for analysis backend
2016-04-14 13:25:56 +02:00
Raul Ochoa
09687b3811
Proper endpoint to check node status from analysis
2016-04-14 10:59:51 +02:00
Raul Ochoa
efacafaa0d
Merge remote-tracking branch 'origin/master' into analysis-layers
2016-04-07 15:04:25 +02:00
Daniel García Aubert
b5b8083acd
Overrided cartocss in the instantiation of named maps
2016-04-06 17:43:25 +02:00
Raul Ochoa
499178319d
Add search endpoint/backend for dataviews
2016-03-23 12:14:17 +01:00
Raul Ochoa
2bd3e46a4d
Build dataviews with factory to generalise them
2016-03-22 13:10:42 +01:00
Raul Ochoa
ebe25761d2
Extract variable
2016-03-22 10:52:02 +01:00
Raul Ochoa
b3bbb9d97a
Initial checkin for dataviews
...
It only supports histograms.
2016-03-18 17:22:02 +01:00
Alejandro Martínez
cf06ff86c2
Use node-cartodb-query-tables library
2016-02-22 11:40:25 +01:00
Raul Ochoa
d6ecb8c793
Remove trailing whitespace
2016-01-28 19:44:25 +01:00
Raul Ochoa
9e74e8633a
Merge pull request #359 from CartoDB/query-runner-improvements
...
Query runner improvements
2016-01-13 18:56:26 +01:00
Raul Ochoa
8203c878f4
Send 409 error code when maximum number of templates limit is reached
...
Closes #346
2016-01-12 15:53:16 +01:00
Raul Ochoa
76cbc2f863
Improve PgQueryRunner public run method
...
Last param is callback function, receiving err + result, no need to
keep passing two functions, the query handler and the final callback.
It should be easier to understand now as query handler was in a position
where it had to know about receiving a callback, that was exposing an
implementation detail of PgQueryRunner.
2015-12-30 17:44:49 +01:00
Raul Ochoa
5e1bc3e199
Named map updates does not emit update event if template didn't change
...
closes #323
2015-09-23 19:59:39 +02:00
Raul Ochoa
3abdee5e87
use debug for corner case
2015-09-18 16:40:55 +02:00
Raul Ochoa
9c6c63c167
More strict jshint
2015-07-15 15:03:28 +02:00
Raul Ochoa
8e8f618a22
assert instead of ifs
2015-07-14 17:33:42 +02:00
Raul Ochoa
c6f9152efe
Moves template maps to backends directory
2015-06-29 16:38:13 +02:00
Raul Ochoa
2de0e5d52b
Extracts psql query run to its own class to be reusable
2015-04-27 12:48:34 +02:00
Raul Ochoa
8c09dfd230
No capitalize step
2015-03-16 00:21:55 +01:00
Raul Ochoa
e561f77d4d
jshint: fix Dot notation
2015-03-15 23:49:32 +01:00
Raul Ochoa
90b22b2718
QueryTables and last updated_at retrieved with user
...
Move setDBAuth and setDBConn to PgConnection entity
- It uses cartodb-redis to retrieve datasource configuration
Start using it in ServerOptions, TemplateMaps and QueryTablesApi
QueryTablesApi don't receive anymore the connection/credentials
- It will always use an authenticated query to retrieve last update
- That will allow to query affected private tables last update
2015-02-09 14:46:52 +01:00