Skip to content

Commit

Permalink
Providing the default config during access.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Carter committed Apr 13, 2018
1 parent d18132f commit 564c1b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "kibana_object_format",
"version": "0.1.2",
"version": "0.1.3",
"description": "Enables objects in arrays to be configured with a field formatter.",
"license": "Apache 2.0",
"homepage": "https://github.com/istresearch/kibana-object-format",
Expand Down
3 changes: 2 additions & 1 deletion public/hacks/field_mapper_hack.js
Expand Up @@ -46,7 +46,8 @@ app.run(['indexPatterns', 'config', function(indexPatterns, config) {
paths = _.uniq(_.difference(paths, mappingNames));

// 2) Test the discovered field names against the configuration
let settings = config.get('fieldMapperHack:fields');
let defaultConfig = "{\n \"index_pattern\": {\n \"*\": {\n \"include\": [],\n \"exclude\": [\".*\"]\n }\n }\n}"
let settings = config.get('fieldMapperHack:fields', defaultConfig);
settings = settings['index_pattern'];

let match = { includes: [], excludes: []};
Expand Down

0 comments on commit 564c1b2

Please sign in to comment.