Skip to content

Commit

Permalink
Merge branch 'master' into fix/elastic#1962
Browse files Browse the repository at this point in the history
  • Loading branch information
stormpython committed Feb 2, 2015
2 parents 1853b30 + fed54eb commit 3dc39c9
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ define(function (require) {
depth: depth,
field: field,
bucket: bucket,
metric: item.value
metric: item.size
});

// If the item has a parent and it's also a child then continue walking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ define(function (require) {
// Map those values to what the tooltipSource.rows format.
$tooltipScope.rows = _.map(rows, function (row) {
row.spacer = $sce.trustAsHtml(_.repeat(' ', row.depth));
row.metric = row.metric + ' (' + Math.round((row.metric / sum) * 100) + '%)';
row.metric = row.metric + ' (' + Math.round((Math.abs(row.metric) / sum) * 100) + '%)';
return row;
});

Expand Down
2 changes: 1 addition & 1 deletion src/kibana/components/vislib/visualizations/pie_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ define(function (require) {
var partition = d3.layout.partition()
.sort(null)
.value(function (d) {
return d.size;
return Math.abs(d.size);
});
var x = d3.scale.linear()
.range([0, 2 * Math.PI]);
Expand Down
1 change: 1 addition & 0 deletions src/kibana/styles/_notify.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
margin: 10px 0;
word-break: normal;
word-wrap: normal;
white-space: pre-wrap;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/lib/migrateConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function () {
return client.search(options)
.then(upgrade)
.catch(function (err) {
if (!/^IndexMissingException/.test(err.message)) throw err;
if (!/SearchParseException.+mapping.+\[buildNum\]|^IndexMissingException/.test(err.message)) throw err;
});
};

2 changes: 1 addition & 1 deletion src/server/lib/upgradeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function (response) {
// Look for upgradeable configs. If none of them are upgradeable
// then resolve with null.
var body = _.find(response.hits.hits, isUpgradeable);
if (body) return Promise.resolve();
if (!body) return Promise.resolve();

return client.create({
index: config.kibana.kibana_index,
Expand Down
2 changes: 1 addition & 1 deletion src/server/routes/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ router.use(function (req, res, next) {

function getPort(req) {
var matches = req.headers.host.match(/:(\d+)/);
if (matches[1]) return matches[1];
if (matches) return matches[1];
return req.connection.pair ? '443' : '80';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ define(function (require) {
results = collectBranch({
name: 'bucket3',
depth: 3,
value: 6,
size: 6,
field: { format: { convert: convert } },
aggConfig: { params: { field: { displayName: 'field3' } }, fieldFormatter: _.constant(String) },
parent: {
name: 'bucket2',
depth: 2,
value: 12,
size: 12,
aggConfig: { label: 'field2', fieldFormatter: _.constant(String) },
parent: {
name: 'bucket1',
depth: 1,
value: 24,
size: 24,
parent: {}
}
}
Expand Down

0 comments on commit 3dc39c9

Please sign in to comment.