[Console] Support index template comments #64260
Labels
enhancement
New value added to drive a business result
Feature:Console
Dev Tools Console Feature
Feature:Dev Tools
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Describe the feature:
In Dev Tool's Console, it would be helpful if it did not mark comments in templates as errors and would align the JSON as well.
Describe a specific use case for the feature:
It causes confusion as the comment lines are marked as errors. Plus, the "Auto indent" stops working when comments are present.
For example, let's take this example without the leading white space
✅ Without the comment, if you run "Auto indent" on it, the leading white space is added back in
However, if a comment is thrown into the mix
🔴 It does not format.
To save your eyes, here is same text manually aligned but with the comment
🔴 But in Kibana, it says there is an error despite it being a valid API call.
Although the comments are not stored with the template in Elasticsearch. It would be helpful if Console would handle them gracefully.
The above simple example is based on when I was creating a custom index template using the ECS template as the base of my new one. I wanted to comment which fields were custom for easy (future) identification.
The text was updated successfully, but these errors were encountered: