Daniel García Aubert
ca7acb8339
Merge branch 'master' into use-strict
2018-10-25 11:11:30 +02:00
Daniel García Aubert
5083ccb605
Link development branches of related dependencies
2018-10-25 10:59:27 +02:00
Daniel García Aubert
a7daa077ac
Update NEWS
2018-10-24 15:53:28 +02:00
Rafa de la Torre
9f0d4905b1
Merge pull request #1053 from CartoDB/fix-tests-undefined-server
...
Fix for non-deterministic test (undefined server)
2018-10-24 12:11:36 +02:00
Daniel García Aubert
89d10210be
Fix undefined context error in test, it raised after forcing strict mode
2018-10-24 11:58:20 +02:00
Rafa de la Torre
545d387bb4
Fix for non-deterministic test (undefined server)
...
When running tests I got this error:
```
1) multilayer error cases bogus sql raises 400 status code:
TypeError: Cannot read property 'listen' of undefined
at Function.assert.response (test/support/assert.js:93:26)
at Function.requestLayergroup (test/acceptance/ported/support/test_client.js:79:20)
at next (node_modules/step/lib/step.js:51:23)
at Step (node_modules/step/lib/step.js:122:3)
at Object.createLayergroup (test/acceptance/ported/support/test_client.js:75:5)
at Context.<anonymous> (test/acceptance/ported/multilayer_error_cases.js:304:20)
```
The problem is that `server` is declared but its initialization
may depend on the order of execution of suites, which is basically
that of the filesystem/checkouts.
That is fixed by returning `getServer()`, which seems to be the
original intent: return a singleton of `CartodbServer` properly
initialized in case it is not overriden through options.
2018-10-23 18:55:31 +02:00
Daniel García Aubert
e2d27db828
Ise strict mode for moduler under test folder
2018-10-23 18:39:02 +02:00
Raul Ochoa
33bcac189f
Merge pull request #1050 from CartoDB/prevent-layert-stats-undefined-access
...
Prevent "Cannot read property 'geom_type' of undefined" on layer stats
2018-10-23 18:37:00 +02:00
Daniel García Aubert
361e99006b
Ignore line
2018-10-23 18:20:11 +02:00
Daniel García Aubert
7162ab1631
Add app.js to be linted
2018-10-23 18:19:55 +02:00
Daniel García Aubert
9374e0fe18
Add strict mode to main file (app.js)
2018-10-23 18:09:58 +02:00
Raul Ochoa
b13ae62d0f
Do not assert the estimated count as it seems to change over pg versions
2018-10-23 16:02:37 +00:00
Raul Ochoa
49de289a9c
Merge pull request #1051 from CartoDB/output-versions
...
Output PostgreSQL and PostGIS versions
2018-10-23 17:58:30 +02:00
Daniel García Aubert
b6dcf72268
Missing semicolon
2018-10-23 17:55:35 +02:00
Daniel García Aubert
76cfd185de
Please jshint
2018-10-23 17:54:11 +02:00
Daniel García Aubert
79820a0f05
Add function as method of to be stric mode compilant
2018-10-23 17:52:19 +02:00
Daniel García Aubert
a0126f6a15
Use stric mode for resource-locator module
2018-10-23 17:48:53 +02:00
Raul Ochoa
abd378e5f6
Run tests based on PostGIS version
2018-10-23 15:47:48 +00: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
Raul Ochoa
208dbfd951
Output PostgreSQL and PostGIS versions
2018-10-23 14:34:17 +00:00
Raul Ochoa
26e4a05276
Going green: prevent TypeError for empty tables/results
...
This is the intial step to fix https://github.com/CartoDB/carto-vl/issues/1049 .
2018-10-23 13:50:49 +00:00
Raul Ochoa
3e261fb353
Going red: fails with 400 due to "Cannot read property 'geom_type' of undefined"
2018-10-23 15:49:34 +02:00
Daniel G. Aubert
4775c73aee
Merge pull request #1049 from CartoDB/upgrade-windshaft-4.11.4
...
Upgrade windshaft to version 4.11.4
2018-10-23 13:03:17 +02:00
Daniel García Aubert
1ece97d0a1
Update NEWS
2018-10-23 12:36:03 +02:00
Daniel García Aubert
87ef8d1977
Upgrade windshaft to version 4.11.4
2018-10-23 12:25:36 +02:00
Daniel G. Aubert
2ebb1728ee
Merge pull request #1048 from CartoDB/fix-uncaught-error
...
Prevent from uncaught exception
2018-10-23 11:54:55 +02:00
Daniel García Aubert
621b11ebd6
Update NEWS
2018-10-23 10:05:53 +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 G. Aubert
211e815d9c
Merge pull request #1047 from CartoDB/upgrade-windshaft-4.11.3
...
Upgrade windshaft 4.11.3
2018-10-19 13:26:54 +02:00
Daniel García Aubert
465fd2ec0a
Merge branch 'master' into upgrade-windshaft-4.11.3
2018-10-19 13:08:34 +02:00
Daniel García Aubert
d0c405ae46
Upgrade windshaft to version 4.11.3
2018-10-19 13:04:03 +02:00
Daniel G. Aubert
953d831d5f
Merge pull request #1046 from CartoDB/fix-create-key
...
Do not use 'Object.assign' as '_.defautls' equivalent
2018-10-19 12:49:17 +02:00
Daniel García Aubert
5573db2bc1
Do not use Object.assign as _.defautls equivalent
2018-10-19 11:57:54 +02:00
Rafa de la Torre
195b23248b
Merge pull request #1041 from CartoDB/config-postgis-for-mvts
...
Sample configs: use PostGIS to generate MVT's
2018-10-17 18:37:27 +02:00
Rafa de la Torre
83897293c6
Fix test by giving redis enough time to delete
2018-10-17 17:35:36 +02:00
Rafa de la Torre
f26ddef244
Make rate limit tests work in dual mode
2018-10-17 17:35:36 +02:00
Rafa de la Torre
d25e8e9798
Make the test work in dual mode (mapnik/pgis)
2018-10-17 17:35:36 +02:00
Rafa de la Torre
bfbd9a8f22
Fix another suite (compat mapnik/pgis)
2018-10-17 17:35:36 +02:00
Rafa de la Torre
bd17f9f5e1
A better implementation of mvt suites
2018-10-17 17:35:36 +02:00
Rafa de la Torre
8491b86c17
Extract test generation function
2018-10-17 17:35:36 +02:00
Rafa de la Torre
376a3743c1
Fix buffer size per format tests
2018-10-17 17:35:36 +02:00
Rafa de la Torre
a42af5e0d5
Do not run test if ST_AsMvt not avail.
2018-10-17 17:35:36 +02:00
Rafa de la Torre
e157649571
Use of postgis renderer based on availabilty
2018-10-17 17:35:36 +02:00
Rafa de la Torre
e50d1a10d0
Skip tests if they cannot be run
...
If configured with `mvt.usePostGIS` but with no postgis version
supporting it, they should be skipped.
2018-10-17 17:35:36 +02:00
Rafa de la Torre
d474d49ce8
Do not use point in world's border
2018-10-17 17:35:36 +02:00
Rafa de la Torre
4dba4ef641
Tweak the scale denominator for pg-mvt renderer
...
The scale denominator is calculated with float values and more
precision, resulting in different (but more accurate) values
2018-10-17 17:35:36 +02:00
Rafa de la Torre
be08fa3bfa
Tweak id's to test against pg-mvt renderer
...
Actually, the ID's are not generated by ST_AsMVT. They appear as an
artifact of testing, when using toGeoJSONSync (implemented in mapnik).
2018-10-17 17:35:36 +02:00
Simon Martín
945b151712
using docker tag postgis-2.4.4.5 in travis
2018-10-17 17:35:36 +02:00
Simon Martín
2af6486f73
new docker tags
2018-10-17 17:35:36 +02:00
Rafa de la Torre
9cffc8781a
Sample configs: use PostGIS to generate MVT's
2018-10-17 17:35:36 +02:00