Skip to content

Scripted Fields Lack Validation #5088

@panda01

Description

@panda01

When creating a scripted field, if you use a field that isn't a numeral, when you go to discover Kibana just kind of barfs on itself.

Since we can get the field types from ES, i think we should use those to help the user along with making them.

Also, When you input a non valid value into the formatters, no error is thrown, or anything indicating that that value, will not work.

This probably will need to be broken down, into two actionable tasks.

Repro

  • Creating a field that uses doc['cluster.state.status'].value
  • Go to Discover
  • That field is the only field in the sidebar, and Discover does not load

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:Scripted FieldsScripted fields featuresbugFixes for quality problems that affect the customer experience

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions