Skip to content

Commit 53068f6

Browse files
authored
Merge pull request #35 from ExpediaInceCommercePlatform/2.0.2
2.0.2 release
2 parents 0140cbb + 9194a67 commit 53068f6

File tree

8 files changed

+166
-24
lines changed

8 files changed

+166
-24
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
indent_size = 4
13+
max_line_length = off
14+
trim_trailing_whitespace = false
15+
16+
[*.json]
17+
indent_size = 2
18+
max_line_length = off
19+
trim_trailing_whitespace = false

CHANGELOG.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# 2.0.2
2+
3+
## Bug Fixes
4+
5+
- Elasticsearch Data Source: Removed unneeded `"json": true` option breaking requests
6+
7+
# 2.0.1
8+
9+
## Features
10+
11+
- InfluxDB Data Source: Added additional properties for controlling the HTTP(S) request that gets generated. `options` gives full control of the request, while `insecureSsl` is a boolean shortcut for ignoring SSL validation
12+
13+
- Elasticsearch Data Source: Added undocumented `options` property
14+
115
# 2.0.0
216

317
## Features
@@ -133,7 +147,7 @@
133147
- CloudWatch Data Source: Added new Data Source for retrieving data from Amazon CloudWatch
134148

135149
- JSON Data Source: Added options for AWS signing, allowing use with AWS APIs that require Signature Version 4
136-
150+
137151
- SSL/TLS: Proxy server initializes itself with a list of trusted root CAs. Added server option for manually providing CAs to trust when executing HTTPS requests
138152

139153
- Highcharts upgraded to 4.2.7
@@ -271,7 +285,7 @@
271285
## Features
272286

273287
- Table Widget: Added optional pagination--can automatically or manually specify the number of rows displayed per page. Improves performance when displaying large Data Sources.
274-
288+
275289
- Number Widget: Added Click event handler: can provide a JavaScript function that gets executed when the Number is clicked.
276290

277291
- Dashboard Controls: Added an option to disable the UI controls completely
@@ -313,7 +327,7 @@
313327
## Features
314328

315329
- Persistent Parameters: added an option to persist the value of a parameter in the browser's storage. Any value changes are persisted automatically, and will be restored the next time the user opens the Dashboard
316-
330+
317331
- Search: added sort parameters to URL, paging for results
318332

319333
- Browse Dashboards: added a new link to see the top liked dashboards; new search filter "is:liked"

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: '2.0.1'
42+
version: '2.0.2'
4343

4444
logging:
4545
enableDebug: false

cyclotron-site/app/scripts/dashboards/dataSources/dataSources.elasticsearch.coffee

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# Copyright (c) 2016-2018 the original author or authors.
33
#
44
# Licensed under the MIT License (the "License");
5-
# you may not use this file except in compliance with the License.
5+
# you may not use this file except in compliance with the License.
66
# You may obtain a copy of the License at
77
#
88
# http://www.opensource.org/licenses/mit-license.php
99
#
10-
# Unless required by applicable law or agreed to in writing,
11-
# software distributed under the License is distributed on an
12-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
# either express or implied. See the License for the specific
14-
# language governing permissions and limitations under the License.
10+
# Unless required by applicable law or agreed to in writing,
11+
# software distributed under the License is distributed on an
12+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13+
# either express or implied. See the License for the specific
14+
# language governing permissions and limitations under the License.
1515
###
1616

1717
#
@@ -20,7 +20,7 @@
2020
# Queries the Elasticsearch API.
2121
# Implements a limited but useful subset of functionality and attempts to parse the results into Cyclotron's format.
2222
# For more control, the JSON Data Source should be used directly.
23-
#
23+
#
2424
# Always proxies requests through the Cyclotron service.
2525
#
2626
cyclotronDataSources.factory 'elasticsearchDataSource', ($q, $http, configService, dataSourceFactory, logService) ->
@@ -36,9 +36,8 @@ cyclotronDataSources.factory 'elasticsearchDataSource', ($q, $http, configServic
3636
proxyBody =
3737
url: url.toString()
3838
method: 'POST'
39-
json: true
4039
body: options.request
41-
headers:
40+
headers:
4241
'Content-Type': 'application/json'
4342

4443
if options.options?
@@ -97,7 +96,7 @@ cyclotronDataSources.factory 'elasticsearchDataSource', ($q, $http, configServic
9796
if responseAdapter == 'auto'
9897
if response.aggregations?
9998
responseAdapter = 'aggregations'
100-
else
99+
else
101100
responseAdapter = 'hits'
102101

103102
# Convert the Elasticsearch result based on the selected adapter
@@ -132,7 +131,7 @@ cyclotronDataSources.factory 'elasticsearchDataSource', ($q, $http, configServic
132131
data = _.map result.body.responses, (response) ->
133132
processResponse response, responseAdapter, reject
134133
data = _.flatten data
135-
else
134+
else
136135
data = processResponse result.body, responseAdapter, reject
137136

138137
if _.isNull data
@@ -159,7 +158,7 @@ cyclotronDataSources.factory 'elasticsearchDataSource', ($q, $http, configServic
159158

160159
# Do the request, wiring up success/failure handlers
161160
req = $http.post proxyUri, getProxyRequest(options)
162-
161+
163162
# Add callback handlers to promise
164163
req.success successCallback
165164
req.error errorCallback

cyclotron-site/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cyclotron-site/package.json

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

cyclotron-svc/package-lock.json

Lines changed: 114 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cyclotron-svc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cyclotron-svc",
33
"description": "Cyclotron: REST API",
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"author": "Dave Bauman <dbauman@expedia.com>",
66
"license": "MIT",
77
"private": true,
@@ -19,7 +19,7 @@
1919
"start": "node app.js"
2020
},
2121
"dependencies": {
22-
"aws4": "^1.3.2",
22+
"aws4": "^1.8.0",
2323
"bluebird": "2.3.6",
2424
"body-parser": "^1.18.3",
2525
"compression": "^1.7.3",

0 commit comments

Comments
 (0)