Commit Graph
239 Commits
Author SHA1 Message Date
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
Daniel García Aubert 5573db2bc1 Do not use Object.assign as _.defautls equivalent 2018-10-19 11:57:54 +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 c54c3754ef fix indentation 2018-09-05 11:51:58 +02:00
Eneko Lakasta 6dde5fc6f1 use .some instead of reduce 2018-09-04 18:22:48 +02:00
Eneko Lakasta 880ef63720 add to logs named maps overviews instantiation 2018-09-04 16:21:20 +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 90efe14bfb Merge pull request #971 from CartoDB/cartovl-130
Send dates as unix epoch instead strings in .mvt files
2018-06-13 13:07:35 +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
Daniel García Aubert ea95050d43 Extract base class in order to share createAffectedTables and getAffectedTables methods 2018-05-31 14:57:34 +02:00
Daniel García Aubert c32dba1ecb Use ES6 class syntax 2018-05-30 20:28:15 +02:00
Daniel García Aubert 94a5020faf Do not use underscore 2018-05-30 20:10:59 +02:00
Daniel García Aubert c0e6bf1299 Use ES6 class syntax 2018-05-30 20:08:35 +02:00
Daniel García Aubert 9fe8958e8c Use ES6 class syntax 2018-05-30 20:02:38 +02:00
Daniel García Aubert 7c51895b0f Use const and let instead of var 2018-05-30 19:50:07 +02:00
Daniel García Aubert 16bca85438 Do not use underscore 2018-05-30 19:43:23 +02:00
Daniel García Aubert 9d415d0dbe Extract method to get and build context 2018-05-30 19:30:34 +02:00
Daniel García Aubert 1d0210a372 Reorder code 2018-05-30 19:07:28 +02:00
Daniel García Aubert 2fb6c08702 Remove unnecessary variables 2018-05-30 18:37:11 +02:00