Skip to content
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

[Console] Condition doesn't work for template autocompletion #120888

Closed
yuliacech opened this issue Dec 9, 2021 · 1 comment · Fixed by #126881
Closed

[Console] Condition doesn't work for template autocompletion #120888

yuliacech opened this issue Dec 9, 2021 · 1 comment · Fixed by #126881
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Feature:Dev Tools Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@yuliacech
Copy link
Contributor

yuliacech commented Dec 9, 2021

Kibana version:
Main branch d1774fe
Elasticsearch version:
8.0
Server OS version:
macos Catalina
Browser version:
Version 96.0.4664.55 (Official Build) (x86_64)

Describe the bug:
When there are different conditions for autocomplete, the suggestions work as expected but template is always the same.

Steps to reproduce:

  1. Open Console
  2. Type in
PUT _snapshot/test_repo
{
  "type": "fs",
}
  1. Then start typing "settings" on the 2nd line and select it from the autocomplete suggestions.
  2. The template will be printed into Console
"settings": {
    "location": "path"
  }
  1. Delete everything up to "type" and change it to another value, for example "type": "azure".
  2. Start typing "settings" again, select it from autocomplete suggestions and see the same template printed into Console

Expected behavior:
Different templates for settings param are printed to Console, depending on the value of type param

Screenshots (if relevant):

Screen.Recording.2021-12-09.at.12.52.58.mov

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:
Opened while working on #120775

@yuliacech yuliacech added bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Feature:Dev Tools Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more labels Dec 9, 2021
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Feature:Dev Tools Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants