Skip to content

Add a toggle to format script sources in result window #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tomekred opened this issue Aug 5, 2024 · 1 comment
Open

Add a toggle to format script sources in result window #153

tomekred opened this issue Aug 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tomekred
Copy link

tomekred commented Aug 5, 2024

Is your feature request related to a problem?

When displaying the script source using GET /_scripts/<name_of_a_script>, the source of a script is not formatted - it is displayed in one line as escaped string.
elastic_escaped

When doing the same in Kibana Dev Console, the response is already formatted, which is very convenient, but outside the IDE.
elastic_dev_tools

Describe the solution you'd like

I would like to have a toggle button (or some checkbox in settings) that would allow me to turn on the formatting of a source in a script in similar way as in Kibana Dev Tools.

Additional context

I have a growing list of scripts in elasticsearch instance which needs to be tuned every now and then and also scripted fields that would be much more readable if there would be formatting applied.

@tomekred tomekred added the enhancement New feature or request label Aug 5, 2024
@AntonShuvaev
Copy link
Owner

Thanks for the suggestion! I will consider adding this in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants