-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/elastic/kibana into saved…
…_object_refactor
- Loading branch information
Showing
70 changed files
with
1,747 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[[tagcloud-chart]] | ||
== Cloud Tag Charts | ||
|
||
A tag cloud visualization is a visual representation of text data, typically used to visualize free form text. | ||
Tags are usually single words, and the importance of each tag is shown with font size or color. | ||
|
||
The font size for each word is determined by the _metrics_ aggregation. The following aggregations are available for | ||
this chart: | ||
|
||
include::y-axis-aggs.asciidoc[] | ||
|
||
|
||
The _buckets_ aggregations determine what information is being retrieved from your data set. | ||
|
||
Before you choose a buckets aggregation, select the *Split Tags* option. | ||
|
||
You can specify the following bucket aggregations for tag cloud visualization: | ||
|
||
*Terms*:: A {es-ref}search-aggregations-bucket-terms-aggregation.html[_terms_] aggregation enables you to specify the top | ||
or bottom _n_ elements of a given field to display, ordered by count or a custom metric. | ||
|
||
You can click the *Advanced* link to display more customization options for your metrics or bucket aggregation: | ||
|
||
*JSON Input*:: A text field where you can add specific JSON-formatted properties to merge with the aggregation | ||
definition, as in the following example: | ||
|
||
[source,shell] | ||
{ "script" : "doc['grade'].value * 1.2" } | ||
|
||
NOTE: In Elasticsearch releases 1.4.3 and later, this functionality requires you to enable | ||
{es-ref}modules-scripting.html[dynamic Groovy scripting]. | ||
|
||
|
||
Select the *Options* tab to change the following aspects of the chart: | ||
|
||
*Text Scale*:: You can select *linear*, *log*, or *square root* scales for the text scale. You can use a log | ||
scale to display data that varies exponentially or a square root scale to | ||
regularize the display of data sets with variabilities that are themselves highly variable. | ||
*Orientation*:: You can select how to orientate your text in the tag cloud. You can choose one of the following options: | ||
Single, right angles and multiple. | ||
*Font Size*:: Allows you to set minimum and maximum font size to use for this visualization. | ||
|
||
|
||
include::visualization-raw-data.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
src/core_plugins/elasticsearch/lib/__tests__/get_basic_auth_realm.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import _ from 'lodash'; | ||
import Promise from 'bluebird'; | ||
import Boom from 'boom'; | ||
import getBasicAuthRealm from './get_basic_auth_realm'; | ||
import toPath from 'lodash/internal/toPath'; | ||
import filterHeaders from './filter_headers'; | ||
|
||
module.exports = (server, client) => { | ||
return (req, endpoint, params = {}) => { | ||
return (req, endpoint, clientParams = {}, options = {}) => { | ||
const wrap401Errors = options.wrap401Errors !== false; | ||
const filteredHeaders = filterHeaders(req.headers, server.config().get('elasticsearch.requestHeadersWhitelist')); | ||
_.set(params, 'headers', filteredHeaders); | ||
_.set(clientParams, 'headers', filteredHeaders); | ||
const path = toPath(endpoint); | ||
const api = _.get(client, path); | ||
let apiContext = _.get(client, path.slice(0, -1)); | ||
if (_.isEmpty(apiContext)) { | ||
apiContext = client; | ||
} | ||
if (!api) throw new Error(`callWithRequest called with an invalid endpoint: ${endpoint}`); | ||
return api.call(apiContext, params) | ||
return api.call(apiContext, clientParams) | ||
.catch((err) => { | ||
if (err.status === 401) { | ||
// TODO: The err.message is temporary until we have support for getting headers in the client. | ||
// Once we have that, we should be able to pass the contents of the WWW-Authenticate head to getRealm | ||
const realm = getBasicAuthRealm(err.message) || 'Authorization Required'; | ||
const options = { realm: realm }; | ||
return Promise.reject(Boom.unauthorized('Unauthorized', 'Basic', options)); | ||
if (!wrap401Errors || err.statusCode !== 401) { | ||
return Promise.reject(err); | ||
} | ||
return Promise.reject(err); | ||
|
||
const boomError = Boom.wrap(err, err.statusCode); | ||
const wwwAuthHeader = _.get(err, 'body.error.header[WWW-Authenticate]'); | ||
boomError.output.headers['WWW-Authenticate'] = wwwAuthHeader || 'Basic realm="Authorization Required"'; | ||
throw boomError; | ||
}); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
src/core_plugins/markdown_vis/public/__tests__/markdown_vis_controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.