diff --git a/src/kibana/apps/settings/sections/advanced/index.html b/src/kibana/apps/settings/sections/advanced/index.html index 362e648118da0..1074c4bb75160 100644 --- a/src/kibana/apps/settings/sections/advanced/index.html +++ b/src/kibana/apps/settings/sections/advanced/index.html @@ -19,7 +19,10 @@

Caution: You can break stuff here

- {{conf.name}} + + {{conf.name}}
+ {{conf.description}} +

Edit Saved Objects

-
-

Caution: You can break stuff here

- Be careful in here, these setting are for very advanced users only. Tweaks you make here can break large poritions of Kibana. - Some of these settings may be undocumented, unsupported or experimental. Seriously, if you thought the "Advance" tab was dangerous this is even more extreme! -
+

+ From here you can delete saved objects, such as saved searches. You can also edit the raw data of saved objects. Typically objects are only modified via their associated application, which is probably what you should use instead of this screen. +

diff --git a/src/kibana/apps/settings/sections/objects/_view.html b/src/kibana/apps/settings/sections/objects/_view.html index 77321d46fbd74..ea3207c65b000 100644 --- a/src/kibana/apps/settings/sections/objects/_view.html +++ b/src/kibana/apps/settings/sections/objects/_view.html @@ -6,9 +6,8 @@

Edit {{ title }} Object

-

Caution: You can break stuff here

- Be careful in here, these setting are for very advanced users only. Tweaks you make here can break large poritions of Kibana. - Some of these settings may be undocumented, unsupported or experimental. Seriously, if you thought the "Advance" tab was dangerous this is even more extreme! +

Proceed with caution

+ Modifying objects is for advanced users only. Object properties are not validated and invalid objects could cause errors, data loss, or worse. Unless someone with intimate knowledge of the code told you to be in here, you probably shouldn't be.
diff --git a/src/kibana/components/config/config.js b/src/kibana/components/config/config.js index 2c2e69656ded8..c1883bde59da1 100644 --- a/src/kibana/components/config/config.js +++ b/src/kibana/components/config/config.js @@ -75,7 +75,7 @@ define(function (require) { config.get = function (key, defaultVal) { if (vals[key] == null) { if (defaultVal == null) { - return defaults[key]; + return defaults[key].value; } else { return _.cloneDeep(defaultVal); } diff --git a/src/kibana/components/config/defaults.js b/src/kibana/components/config/defaults.js index 8c570dc7766cd..7dfdaa98a445b 100644 --- a/src/kibana/components/config/defaults.js +++ b/src/kibana/components/config/defaults.js @@ -1,23 +1,50 @@ define(function (require) { var _ = require('lodash'); - return _.flattenWith('.', { - dateFormat: 'MMMM Do YYYY, HH:mm:ss.SSS', - defaultIndex: null, - refreshInterval: 10000, - metaFields: ['_source', '_id', '_type', '_index'], - - 'discover:sampleSize': 500, - 'fields:popularLimit': 10, - - 'histogram:barTarget': 50, - 'histogram:maxBars': 100, - - 'csv:separator': ',', - 'csv:quoteValues': true, - - 'history:limit': 10, - - 'shortDots:enable': false - }); + return { + 'dateFormat': { + value: 'MMMM Do YYYY, HH:mm:ss.SSS', + description: 'When displaying a pretty formatted date, use this format', + }, + 'defaultIndex': { + value: null, + description: 'The index to access if no index is set', + }, + 'metaFields': { + value: ['_source', '_id', '_type', '_index'], + description: 'Fields that exist outside of _source to merge into our document when displaying it', + }, + 'discover:sampleSize': { + value: 500, + description: 'The number of rows to show in the table', + }, + 'fields:popularLimit': { + value: 10, + description: 'The top N most popular fields to show', + }, + 'histogram:barTarget': { + value: 50, + description: 'Attempt to generate around this many bar when using "auto" interval in date histograms', + }, + 'histogram:maxBars': { + value: 100, + description: 'Never show more than this many bar in date histograms, scale values if needed', + }, + 'csv:separator': { + value: ',', + description: 'Seperate exported values with this string', + }, + 'csv:quoteValues': { + value: true, + description: 'Should values be quoted in csv exports?', + }, + 'history:limit': { + value: 10, + description: 'In fields that have history (eg query inputs), show this many recent values', + }, + 'shortDots:enable': { + value: false, + description: 'Shorten long fields, for example, instead of foo.bar.baz, show f.b.baz', + }, + }; }); \ No newline at end of file