-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Improved scripted field development experience #14546
Copy link
Copy link
Closed
Labels
Feature:Kibana ManagementFeature label for Data Views, Advanced Setting, Saved Object management pagesFeature label for Data Views, Advanced Setting, Saved Object management pagesFeature:Scripted FieldsScripted fields featuresScripted fields featuresimpact:needs-assessmentProduct and/or Engineering needs to evaluate the impact of the change.Product and/or Engineering needs to evaluate the impact of the change.loe:smallSmall Level of EffortSmall Level of Effort
Metadata
Metadata
Assignees
Labels
Feature:Kibana ManagementFeature label for Data Views, Advanced Setting, Saved Object management pagesFeature label for Data Views, Advanced Setting, Saved Object management pagesFeature:Scripted FieldsScripted fields featuresScripted fields featuresimpact:needs-assessmentProduct and/or Engineering needs to evaluate the impact of the change.Product and/or Engineering needs to evaluate the impact of the change.loe:smallSmall Level of EffortSmall Level of Effort
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently, it is risky to create new scripted fields: a mistake on the code can cause discovery/visualization and dashboards to break, even when the new field is not used.
Also there is not much opportunities to test the code in Kibana before "deploying"/"saving" it.
I think Kibana needs a set of features to reduce the risk of breaking, but also empower users while coding/testing new scripted fields.
I can think of:
run the code against some rows and see the output at script writing time: so there would be a test section in the form where you can provide a search to narrow the rows you want to test your script against.
script field sandbox/isolation: if a field is broken or failing, fail just what uses the field. For instance, if in discovery the field is selected, everything is shown but that field column with some error icon. Visualizations that use the field for aggregating or filtering show a error in the widget, but a complete failure on the whole dashboard on every dashboard.
syntax highlighting and API auto completion.