Merge branch 'master' into overviews-widgets-2
This commit is contained in:
commit
3300c095ed
16
NEWS.md
16
NEWS.md
@ -1,8 +1,22 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.42.0
|
||||||
|
|
||||||
|
Released 2016-mm-dd
|
||||||
|
|
||||||
|
Announcements:
|
||||||
|
- Upgrades turbo-carto to [0.8.0](https://github.com/CartoDB/turbo-carto/releases/tag/0.8.0)
|
||||||
|
|
||||||
|
|
||||||
## 2.41.1
|
## 2.41.1
|
||||||
|
|
||||||
Released 2016-mm-dd
|
Released 2016-05-11
|
||||||
|
|
||||||
|
Announcements:
|
||||||
|
- Upgrades camshaft to [0.8.0](https://github.com/CartoDB/camshaft/releases/tag/0.8.0)
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
- Nicer error message when missing sql from layer options #446
|
||||||
|
|
||||||
|
|
||||||
## 2.41.0
|
## 2.41.0
|
||||||
|
@ -13,7 +13,7 @@ var affectedTableRegexCache = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function prepareSql(sql) {
|
function prepareSql(sql) {
|
||||||
return sql
|
return sql && sql
|
||||||
.replace(affectedTableRegexCache.bbox, 'ST_MakeEnvelope(0,0,0,0)')
|
.replace(affectedTableRegexCache.bbox, 'ST_MakeEnvelope(0,0,0,0)')
|
||||||
.replace(affectedTableRegexCache.scale_denominator, '0')
|
.replace(affectedTableRegexCache.scale_denominator, '0')
|
||||||
.replace(affectedTableRegexCache.pixel_width, '1')
|
.replace(affectedTableRegexCache.pixel_width, '1')
|
||||||
|
24
npm-shrinkwrap.json
generated
24
npm-shrinkwrap.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "windshaft-cartodb",
|
"name": "windshaft-cartodb",
|
||||||
"version": "2.41.1",
|
"version": "2.42.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": {
|
"body-parser": {
|
||||||
"version": "1.14.2",
|
"version": "1.14.2",
|
||||||
@ -105,13 +105,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"camshaft": {
|
"camshaft": {
|
||||||
"version": "0.7.0",
|
"version": "0.8.0",
|
||||||
"from": "camshaft@0.7.0",
|
"from": "camshaft@0.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/camshaft/-/camshaft-0.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/camshaft/-/camshaft-0.8.0.tgz",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": {
|
"async": {
|
||||||
"version": "1.5.2",
|
"version": "1.5.2",
|
||||||
"from": "async@>=1.0.0 <2.0.0",
|
"from": "async@>=1.5.2 <2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz"
|
"resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz"
|
||||||
},
|
},
|
||||||
"request": {
|
"request": {
|
||||||
@ -584,7 +584,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mime-types": {
|
"mime-types": {
|
||||||
"version": "2.1.11",
|
"version": "2.1.11",
|
||||||
"from": "mime-types@>=2.1.6 <2.2.0",
|
"from": "mime-types@>=2.1.10 <2.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz",
|
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mime-db": {
|
"mime-db": {
|
||||||
@ -763,7 +763,7 @@
|
|||||||
},
|
},
|
||||||
"type-is": {
|
"type-is": {
|
||||||
"version": "1.6.12",
|
"version": "1.6.12",
|
||||||
"from": "type-is@>=1.6.10 <1.7.0",
|
"from": "type-is@>=1.6.6 <1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.12.tgz",
|
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.12.tgz",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"media-typer": {
|
"media-typer": {
|
||||||
@ -773,7 +773,7 @@
|
|||||||
},
|
},
|
||||||
"mime-types": {
|
"mime-types": {
|
||||||
"version": "2.1.11",
|
"version": "2.1.11",
|
||||||
"from": "mime-types@>=2.1.6 <2.2.0",
|
"from": "mime-types@>=2.1.10 <2.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz",
|
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mime-db": {
|
"mime-db": {
|
||||||
@ -988,7 +988,7 @@
|
|||||||
},
|
},
|
||||||
"mime-types": {
|
"mime-types": {
|
||||||
"version": "2.1.11",
|
"version": "2.1.11",
|
||||||
"from": "mime-types@>=2.1.2 <2.2.0",
|
"from": "mime-types@>=2.1.10 <2.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz",
|
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mime-db": {
|
"mime-db": {
|
||||||
@ -1215,9 +1215,9 @@
|
|||||||
"from": "step-profiler@>=0.3.0 <0.4.0"
|
"from": "step-profiler@>=0.3.0 <0.4.0"
|
||||||
},
|
},
|
||||||
"turbo-carto": {
|
"turbo-carto": {
|
||||||
"version": "0.7.1",
|
"version": "0.8.0",
|
||||||
"from": "turbo-carto@0.7.1",
|
"from": "turbo-carto@0.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/turbo-carto/-/turbo-carto-0.7.1.tgz",
|
"resolved": "https://registry.npmjs.org/turbo-carto/-/turbo-carto-0.8.0.tgz",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"colorbrewer": {
|
"colorbrewer": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "windshaft-cartodb",
|
"name": "windshaft-cartodb",
|
||||||
"version": "2.41.1",
|
"version": "2.42.0",
|
||||||
"description": "A map tile server for CartoDB",
|
"description": "A map tile server for CartoDB",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"cartodb"
|
"cartodb"
|
||||||
@ -20,7 +20,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "~1.14.0",
|
"body-parser": "~1.14.0",
|
||||||
"camshaft": "0.7.0",
|
"camshaft": "0.8.0",
|
||||||
"cartodb-psql": "~0.6.1",
|
"cartodb-psql": "~0.6.1",
|
||||||
"cartodb-query-tables": "~0.1.0",
|
"cartodb-query-tables": "~0.1.0",
|
||||||
"cartodb-redis": "~0.13.0",
|
"cartodb-redis": "~0.13.0",
|
||||||
@ -37,7 +37,7 @@
|
|||||||
"request": "~2.62.0",
|
"request": "~2.62.0",
|
||||||
"step": "~0.0.6",
|
"step": "~0.0.6",
|
||||||
"step-profiler": "~0.3.0",
|
"step-profiler": "~0.3.0",
|
||||||
"turbo-carto": "0.7.1",
|
"turbo-carto": "0.8.0",
|
||||||
"underscore": "~1.6.0",
|
"underscore": "~1.6.0",
|
||||||
"windshaft": "1.19.0"
|
"windshaft": "1.19.0"
|
||||||
},
|
},
|
||||||
|
40
test/acceptance/regressions.js
Normal file
40
test/acceptance/regressions.js
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
require('../support/test_helper');
|
||||||
|
|
||||||
|
var assert = require('../support/assert');
|
||||||
|
var TestClient = require('../support/test-client');
|
||||||
|
|
||||||
|
describe('regressions', function() {
|
||||||
|
|
||||||
|
var ERROR_RESPONSE = {
|
||||||
|
status: 400,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json; charset=utf-8'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
it('should expose a nice error when missing sql option', function(done) {
|
||||||
|
var mapConfig = {
|
||||||
|
version: '1.5.0',
|
||||||
|
layers: [
|
||||||
|
{
|
||||||
|
"type": "cartodb",
|
||||||
|
"options": {
|
||||||
|
"cartocss": '#polygons { polygon-fill: red; }',
|
||||||
|
"cartocss_version": "2.3.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
var testClient = new TestClient(mapConfig, 1234);
|
||||||
|
|
||||||
|
testClient.getLayergroup(ERROR_RESPONSE, function(err, layergroupResult) {
|
||||||
|
assert.ok(!err, err);
|
||||||
|
|
||||||
|
assert.equal(layergroupResult.errors.length, 1);
|
||||||
|
assert.equal(layergroupResult.errors[0], 'Missing sql for layer 0 options');
|
||||||
|
|
||||||
|
testClient.drain(done);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user