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

autocompletion of component_templates #91180

Merged
merged 7 commits into from
Feb 25, 2021

Conversation

joxley-elastic
Copy link
Contributor

@joxley-elastic joxley-elastic commented Feb 11, 2021

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

    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
@joxley-elastic joxley-elastic added v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.12.0 labels Feb 11, 2021
@joxley-elastic joxley-elastic requested a review from a team as a code owner February 11, 2021 18:39
@joxley-elastic joxley-elastic self-assigned this Feb 11, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@cjcenizal cjcenizal added Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:skip Skip the PR/issue when compiling release notes labels Feb 11, 2021
Copy link
Contributor

@alisonelizabeth alisonelizabeth left a 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__",
Copy link
Contributor

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

Copy link
Contributor

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.

@alisonelizabeth
Copy link
Contributor

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor

This PR should resolve #75967.

@alisonelizabeth
Copy link
Contributor

I'm removing the 7.12 label for now, since FF is today.

@cuff-links
Copy link
Contributor

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?

@alisonelizabeth I can help with these overrides.

@cuff-links
Copy link
Contributor

Reviewing

@cuff-links
Copy link
Contributor

cuff-links commented Feb 24, 2021

I have a commit ready to push. Just figuring out how to push it to this PR. Should have it up today though.

@cuff-links
Copy link
Contributor

Pushed the overrides and tested the autocompletions locally. @joxley-elastic @alisonelizabeth

@alisonelizabeth
Copy link
Contributor

Thanks @cuff-links! Looks great.

Copy link
Contributor

@alisonelizabeth alisonelizabeth left a 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!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @joxley-elastic

@alisonelizabeth alisonelizabeth merged commit 06d966e into master Feb 25, 2021
@alisonelizabeth alisonelizabeth deleted the joxley-component-autocomplete branch February 25, 2021 18:31
alisonelizabeth added a commit that referenced this pull request Feb 25, 2021
* [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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants