elasticsearch/kibana — pull request #1969 by rashidkpc (2014-11-19 00:01:29+00:00)
Title: Fix query validation of numbers. Closes #1832

Queries such as `404` were failing to validate because the query validator was treating them as JSON. This fix looks for a leading `{` to decide if the input is an attempted DSL query input.

Also:
- moves the validator into components
- breaks out fromUser and toUser into modules
- Adds tests for fromUser and toUser
- coerces numbers into strings when going from model to view