-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed as not planned
Labels
Feature:ConsoleDev Tools Console FeatureDev Tools Console FeatureFeature:Dev ToolsTeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//enhancementNew value added to drive a business resultNew value added to drive a business result
Description
Describe the feature: Most APIs of Elasticsearch support YAML requests and ES can send responses also in YAML. Please consider supporting it also in Dev Tools -> Console. For completeness, "raw" filter blocks ("Edit Query DSL") should then also support YAML.
Describe a specific use case for the feature:
- YAML is intended to be human readable and editable.
- YAML supports comments which is useful for temporary disabling parts of the request.
- YAML is known to people from other places in the Elastic Stack. See: Support YAML in Dev Tools -> Console #28754 (comment).
- https://www.json2yaml.com/yaml-vs-json
Stages of implementation
- Basic support to accept YAML as request. (ES supports this so you just need to set the
Content-Type: application/yamlin the request. ES will then also answer YAML encoded.) - Folding support.
- Optional, might be out of scope: Conversion between YAML and JSON in the Console to have the best of both worlds.
- Request completion.
Example:
GET index/_search
---
size: 5
_source:
- 'license'
- 'name'
query:
query_string:
query: '+license:("GPL-3.0-only" OR "AGPL-3.0-only")'
...
tdmalone, david-in-perth, ikr0m, quagly, ThoTischner and 3 morephoerious, mwesthelle, ThoTischner, i0 and noancloarec
Metadata
Metadata
Assignees
Labels
Feature:ConsoleDev Tools Console FeatureDev Tools Console FeatureFeature:Dev ToolsTeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//enhancementNew value added to drive a business resultNew value added to drive a business result