Raul Marin
7b731a24d1
Overviews Adapter: Do not check overviews if using MVT pure style or aggregations
2019-07-16 12:48:12 +02:00
Daniel García Aubert
e7e3d612a1
Use strict mode in modules under lib folder (except lib/cartodb/models/resource-locator.js)
2018-10-23 17:45:42 +02:00
Daniel García Aubert
12d58f3af2
Prevent from uncaught exception: Range filter Error from camshaft when getting analysis query
2018-10-22 15:26:59 +02:00
Javier Goizueta
c9786ee3f6
Catch aggregation query errors
2018-10-03 23:13:22 +02:00
Eneko Lakasta
dd1ee56648
use .some instead of .map & .some
2018-09-05 11:56:45 +02:00
Eneko Lakasta
6dde5fc6f1
use .some instead of reduce
2018-09-04 18:22:48 +02:00
Eneko Lakasta
b75150e91e
set mapType in the controller instead of in the adapter
2018-09-04 16:20:38 +02:00
Eneko Lakasta
7df0fb456b
add to log anonymous maps instantiations that use overviews tables
...
Added to tiler profiler object:
overviewsAddedToMapconfig: true
mapType: 'anonymous'
2018-09-04 15:13:17 +02:00
Daniel García Aubert
63e4bcebef
Move function to class as private method
2018-08-02 13:13:48 +02:00
Daniel García Aubert
593a72a967
Reorganize code, estract methods and rename others
2018-08-02 11:40:41 +02:00
Daniel García Aubert
df14afb55f
Remove unnecessary code
2018-08-01 19:15:28 +02:00
Daniel García Aubert
732a2d7742
Early return is the way to go. Avoid checking conditions later
2018-08-01 17:39:08 +02:00
Daniel García Aubert
78f4cf3155
Move code
2018-08-01 17:33:20 +02:00
Daniel García Aubert
8f763d655d
Do not rename output values
2018-08-01 17:23:40 +02:00
Daniel García Aubert
64329c3fac
Rename callback
2018-08-01 16:39:15 +02:00
Daniel García Aubert
c8c22a787e
CamelCase
2018-08-01 16:35:19 +02:00
Daniel García Aubert
6a6ec4300b
Extract functions to compose query-rewrite-data
2018-08-01 16:30:59 +02:00
Daniel García Aubert
d25740ed51
Extract function to avoid dynamic clousures
2018-08-01 16:02:05 +02:00
Daniel García Aubert
843f4b8e28
Use early return
2018-08-01 15:53:43 +02:00
Simon Martín
ea0805b017
early return
2018-07-31 15:01:22 +02:00
Simon Martín
324e614902
change _.extend by Object.assign
2018-07-30 18:25:26 +02:00
Simon Martín
20c8d07a46
remove step: last function
2018-07-30 17:59:06 +02:00
Simon Martín
fe9f4939d5
remove step: function 2
2018-07-30 17:49:20 +02:00
Simon Martín
a89131c043
remove step: function 1
2018-07-30 17:34:14 +02:00
Simon Martín
1f6bb6839a
remove step
2018-07-30 17:32:57 +02:00
Simon Martín
1e70717554
indentation
2018-07-30 17:31:42 +02:00
Javier Goizueta
e89503e1fa
Subsitute tokens to get columns for dates_as_numbers
...
Fixes #980
2018-06-18 13:16:49 +02:00
Javier Goizueta
4a52620d83
Various fixes
...
This avoids errors when trying to wrap dates or detect wrapped dates in non-mapnik layers
2018-06-12 12:05:31 +02:00
Javier Goizueta
660c1777e3
Fix per-layer date wrapping
2018-06-11 19:31:42 +02:00
IagoLast
a883514c8a
Remove control flag
2018-06-05 09:35:01 +02:00
IagoLast
9ee6d7fc91
Implement multiple layer date wrapping
2018-06-05 09:34:44 +02:00
IagoLast
2ee6c8487d
PR style fixes
2018-06-05 08:44:20 +02:00
IagoLast
8ec2b35557
Fix tests
2018-06-01 12:25:36 +02:00
Ubuntu
ae4b233458
Pass tests
2018-06-01 10:18:07 +00:00
elenatorro
d4c6282455
Refactor date wrapper
2018-05-31 18:53:01 +02:00
elenatorro
db3370cd21
Use wrapDates function from vector adapter
2018-05-31 18:46:23 +02:00
IagoLast
3850bbb68e
Send dates as unix epoch instead strings in .mvt files
...
This commit creates a new ConfigAdapter used in vector maps instantiations.
This adapter generates a new sql query for ONE SINGLE LAYER (carto-vl currently only supports one layer per mvt)
where the date columns are wrapped into a epoch using the `date_part` function.
Due this mvt files are smaller since we use numbers instead strings to represent dates, this is also faster in carto-gl
where we interpolate linearly between 0 and 1 to create animations.
Notice we should add a parameter to make this transformation optional.
We also should take into account the epoch precission.
2018-05-31 17:49:40 +02:00
Javier Goizueta
4bc8fb207a
Use sql_raw for query without aggregation
2018-05-18 15:29:46 +02:00
Javier Goizueta
5e09c80b71
Remove comment
2018-05-11 19:57:49 +02:00
Javier Goizueta
24b1b53ba0
Merge branch 'master' into metadata
2018-05-11 18:58:38 +02:00
Javier Goizueta
cae4dd81c9
WIP: fix problems for aggregations & metadata
2018-05-10 19:12:47 +02:00
Daniel García Aubert
ba36a47228
Rename overviews metadata api by overviews metadata backend
2018-04-09 19:47:43 +02:00
Daniel García Aubert
e0d8dc0334
Rename filter stats api by filter stats backend
2018-04-09 18:56:01 +02:00
Daniel García Aubert
6b7c2675f1
Use database params module
2018-03-22 19:20:51 +01:00
Eneko Lakasta
6ebf51ce45
let select apikey type in setDBAuth: regular, default, master
2018-02-08 11:29:17 +01:00
Eneko Lakasta
95538707c9
add parameter asMaster to setDBAuth
2018-02-07 17:14:13 +01:00
Javier Goizueta
7641542e67
Check the type of the_geom_webmercator for aggregation
...
Fixes #841
2018-01-29 15:48:35 +01:00
Daniel García Aubert
1c7da2c4b3
Going green: do not fail when map-config is vector-only and a layer doesn't have points
2018-01-03 12:00:25 +01:00
Daniel García Aubert
9a1bc51fdb
Use aggregation-mapconfig's method to discover columns to be exposed used to aggregate
2017-12-28 13:12:41 +01:00
Daniel García Aubert
418c8691d1
Support default full-sample aggregation for postgis vector renderer
2017-12-27 20:08:43 +01:00