-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
autocompletion of component_templates #91180
Conversation
In the dev console, working with component_templates autocomplete will only provide suggestions for deleting them. This set of fixes adds in support to autocomplete puts and gets for component templates
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @joxley-elastic! I left a few comments that I think need to be addressed before merging.
I also think we can add a file to the overrides
directory to provide autocomplete suggestions for the request body when creating a component template. @cuff-links do you think you can help with this?
{ | ||
"indices.get_template": { | ||
"url_params": { | ||
"include_type_name": "__flag__", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is a valid flag in 8.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and removed this.
...ugins/console/server/lib/spec_definitions/json/generated/cluster.get_component_template.json
Outdated
Show resolved
Hide resolved
...ugins/console/server/lib/spec_definitions/json/generated/cluster.put_component_template.json
Outdated
Show resolved
Hide resolved
...ugins/console/server/lib/spec_definitions/json/generated/cluster.put_component_template.json
Show resolved
Hide resolved
@elasticmachine merge upstream |
This PR should resolve #75967. |
I'm removing the |
@alisonelizabeth I can help with these overrides. |
Reviewing |
I have a commit ready to push. Just figuring out how to push it to this PR. Should have it up today though. |
Pushed the overrides and tested the autocompletions locally. @joxley-elastic @alisonelizabeth |
…y-component-autocomplete
…/cluster.get_component_template.json
…/cluster.put_component_template.json
Thanks @cuff-links! Looks great. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest LGTM. I went ahead and addressed the comments I had added previously. I will handle merging/backporting once CI is green. Thanks so much for the contribution @joxley-elastic!
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
* [Console] Autocompletion of component_templates (#91180) # Conflicts: # src/plugins/console/server/lib/spec_definitions/json/generated/cluster.get_component_template.json # src/plugins/console/server/lib/spec_definitions/json/generated/cluster.put_component_template.json # src/plugins/console/server/lib/spec_definitions/json/overrides/cluster.put_component_template.json * update backport Co-authored-by: joxley-elastic <[email protected]>
Summary
In the dev console, working with component_templates autocomplete will only provide suggestions for deleting them. This set of fixes atteempts to add in support to autocomplete puts and gets for component templates
Checklist
Delete any items that are not applicable to this PR.
For maintainers