elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.64k stars 8.22k forks source link

[Console] Improve variable substitution #149555

Open henrikno opened 1 year ago

henrikno commented 1 year ago

Describe the feature: https://github.com/elastic/kibana/pull/134215 added support for variables in Dev console, but they are very basic. I needed to do a basic repeat of a variable but with a prefix/basic interpolation.

Describe a specific use case for the feature: For instance I wanted to restore multiple indices, but with a different name.

POST _snapshot/repo/<snapshot name>/_mount?wait_for_completion=true&storage=shared_cache`
{
    "index": "<index name>",
    "renamed_index": "frozen_<index name>", 
}

I tried with

POST _snapshot/repo/<snapshot name>/_mount?wait_for_completion=true&storage=shared_cache`
{
    "index": "${indexName}",
    "renamed_index": "frozen_${indexName}", 
}

But this only substituted the first one.

elasticmachine commented 1 year ago

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

elasticmachine commented 1 month ago

Pinging @elastic/kibana-management (Team:Kibana Management)