Skip to content

Commit 8174320

Browse files
committed
1.48.0 release
1 parent 6cc73f2 commit 8174320

File tree

8 files changed

+32
-27
lines changed

8 files changed

+32
-27
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# 1.48.0
2+
3+
## Bug Fixes
4+
5+
- Table Widget: fixed export to exclude internally-used columns
6+
7+
# 1.47.0
8+
9+
## Features
10+
11+
## Bug Fixes
12+
13+
- CyclotronData: Fixed incorrect 404 responses for POST /data with a new key
14+
15+
- Proxy: Proxy request bodies that include an array were getting mangled
16+
117
# 1.46.0
218

319
## Features

cyclotron-site/app/scripts/common/services/services.commonConfigService.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cyclotronServices.factory 'commonConfigService', ->
3939

4040
exports = {
4141

42-
version: '1.46.0'
42+
version: '1.48.0'
4343

4444
logging:
4545
enableDebug: false

cyclotron-site/app/widgets/table/tableWidget.coffee

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -332,26 +332,9 @@ cyclotronApp.controller 'TableWidget', ($scope, $location, $window, dashboardSer
332332

333333
data = eventData.data[dsDefinition.resultSet].data
334334
isUpdate = eventData.isUpdate
335-
336-
# Filter the data if the widget has "filters"
337-
if $scope.widget.filters?
338-
data = dataService.filter(data, $scope.widget.filters)
339-
340-
# Check for no data
341-
if _.isEmpty data
342-
$scope.sortedRows = null
343-
$scope.widgetContext.loading = false
344-
$scope.widgetContext.allowExport = false
345-
346-
if $scope.widget.noData?
347-
$scope.widgetContext.nodata = _.jsExec($scope.widget.noData)
348-
349-
else
350-
$scope.widgetContext.nodata = null
351-
return
352-
else
353-
$scope.widgetContext.nodata = null
354-
$scope.widgetContext.allowExport = $scope.widget.allowExport != false
335+
336+
# Filter and sort the data
337+
data = $scope.filterAndSortWidgetData(data)
355338

356339
data = _.cloneDeep(data)
357340
_.each data, (row, index) -> row.__index = index
@@ -421,7 +404,7 @@ cyclotronApp.controller 'TableWidget', ($scope, $location, $window, dashboardSer
421404
$scope.processRules(data, $scope.widget.rules)
422405

423406
# Save and sort rows
424-
$scope.sortedRows = $scope.widgetContext.data = data
407+
$scope.sortedRows = data
425408
$scope.sortRows()
426409

427410
$scope.paging.totalItems = $scope.sortedRows.length

cyclotron-site/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cyclotron-site",
33
"description": "Cyclotron: website",
4-
"version": "1.46.0",
4+
"version": "1.48.0",
55
"author": "Dave Bauman <dbauman@expedia.com>",
66
"license": "MIT",
77
"private": true,
@@ -59,4 +59,4 @@
5959
"merge-stream": "~0.1.7",
6060
"phantomjs-prebuilt": "~2.1.13"
6161
}
62-
}
62+
}

cyclotron-svc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cyclotron-svc",
33
"description": "Cyclotron: REST API",
4-
"version": "1.46.0",
4+
"version": "1.48.0",
55
"author": "Dave Bauman <dbauman@expedia.com>",
66
"license": "MIT",
77
"private": true,

cyclotron-svc/routes/api.data.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ exports.putPostSingle = function (req, res) {
8989
},
9090
$inc: { rev: 1 }
9191
}, {
92+
new: true,
9293
upsert: true
9394
}).exec(_.wrap(res, api.getCallback));
9495
};

cyclotron-svc/routes/api.proxy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
var config = require('../config/config'),
2525
_ = require('lodash'),
2626
request = require('request'),
27-
aws4 = require('aws4'),
27+
aws4 = require('aws4'),
2828
crypto = require('crypto');
2929

3030
/* Crypto-process request options */
@@ -39,6 +39,8 @@ var decrypter = function (req) {
3939
encrypted += cipher.final('utf8');
4040
return encrypted;
4141
});
42+
} else if (_.isArray(value)) {
43+
return _.map(value, decrypt);
4244
} else if (_.isObject(value)) {
4345
return _.mapValues(value, decrypt);
4446
} else {

cyclotron-svc/routes/api.users.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ var createSession = function (user, ip) {
6565
$setOnInsert: {
6666
firstLogin: new Date()
6767
}
68-
}, { upsert: true})
68+
}, {
69+
new: true,
70+
upsert: true
71+
})
6972
.then(_.partial(auth.createNewSession, ip))
7073
.spread(function (session) {
7174
return session.populateAsync('user');

0 commit comments

Comments
 (0)