Merge branch 'master' of github.com:CartoDB/Windshaft-cartodb into analysis-layers

This commit is contained in:
Raul Ochoa 2016-03-10 11:14:10 +01:00
commit b2378939c5
4 changed files with 21 additions and 17 deletions

10
NEWS.md
View File

@ -1,8 +1,14 @@
# Changelog
## 2.26.4
## 2.27.0
Released 2016-mm-dd
Released 2016-03-09
New features:
- Add [Surrogate-Key](https://github.com/CartoDB/cartodb/wiki/CartoDB-Surrogate-Keys) headers to responses
Enhancements:
- Use new `node-cartodb-query-tables` library to obtain affected tables in queries
Announcements:
- Remove deprecated tools directory

View File

@ -173,20 +173,18 @@ MapController.prototype.create = function(req, res, prepareConfigFn) {
);
},
function addOverviewsInformation(err, requestMapConfig, datasource) {
assert.ifError(err);
var next = this;
self.overviewsAdapter.getLayers(req.context.user, requestMapConfig.layers,
function(err, layers) {
if (err) {
return next(err);
}
assert.ifError(err);
var next = this;
self.overviewsAdapter.getLayers(req.context.user, requestMapConfig.layers, function(err, layers) {
if (err) {
return next(err);
}
if (layers) {
requestMapConfig.layers = layers;
}
return next(null, requestMapConfig, datasource);
}
);
if (layers) {
requestMapConfig.layers = layers;
}
return next(null, requestMapConfig, datasource);
});
},
function createLayergroup(err, requestMapConfig, datasource) {
assert.ifError(err);

2
npm-shrinkwrap.json generated
View File

@ -1,6 +1,6 @@
{
"name": "windshaft-cartodb",
"version": "2.26.4",
"version": "2.27.0",
"dependencies": {
"body-parser": {
"version": "1.14.2",

View File

@ -1,7 +1,7 @@
{
"private": true,
"name": "windshaft-cartodb",
"version": "2.26.4",
"version": "2.27.0",
"description": "A map tile server for CartoDB",
"keywords": [
"cartodb"