Skip to content

Commit

Permalink
Show a warning if any field name contains a space.
Browse files Browse the repository at this point in the history
  • Loading branch information
timroes committed Aug 15, 2016
1 parent 5882830 commit 22344eb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ modules.get('apps/management')
this.formattedErrors.push('Column names must be unique');
}

if (results.meta.fields.some(name => /\s/.test(name))) {
this.formattedWarnings.push('Field names with spaces are dificult to search for in Kibana');
}

let hasEmptyHeader = false;
_.forEach(results.meta.fields, (field) => {
if (_.isEmpty(field)) {
Expand Down

0 comments on commit 22344eb

Please sign in to comment.