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

Rename index-template directory to index_template #565

Closed
3 tasks done
ruflin opened this issue Jun 29, 2020 · 8 comments
Closed
3 tasks done

Rename index-template directory to index_template #565

ruflin opened this issue Jun 29, 2020 · 8 comments
Assignees
Labels
Ingest Management:beta1 Group issues for ingest management beta1

Comments

@ruflin
Copy link
Member

ruflin commented Jun 29, 2020

As discussed in #552 (comment) for consistency reason we should use - or _ for all the directory names. The only exception at the moment is index-template. Instead it should be called index_template.

To support this change, not changes in the package-registry are needed but Kibana and packages need to be updated. The suggested path forward is:

@ruflin ruflin added the Ingest Management:beta1 Group issues for ingest management beta1 label Jun 29, 2020
@ruflin ruflin self-assigned this Jun 29, 2020
@ruflin
Copy link
Member Author

ruflin commented Jun 29, 2020

Updating the base package, I realised there is also component-template and ilm-policy. I renamed both to component_template and ilm_policy. These also need to be updated on the Kibana side.

ruflin added a commit to ruflin/package-storage that referenced this issue Jun 29, 2020
As discussed in elastic/package-registry#565 the names of the directories should only use `_` and no `-`. This updates the base package to use both directories in parallel.
@ruflin
Copy link
Member Author

ruflin commented Jun 29, 2020

@ycombinator @jonathan-buttner @mtojek Do you know of a place other then the base package where we use the above paths? Or one more path using -?

ruflin added a commit to elastic/package-storage that referenced this issue Jun 29, 2020
As discussed in elastic/package-registry#565 the names of the directories should only use `_` and no `-`. This updates the base package to use both directories in parallel.
@jonathan-buttner
Copy link
Contributor

@ycombinator @jonathan-buttner @mtojek Do you know of a place other then the base package where we use the above paths? Or one more path using -?

Thanks for the ping. I'm not aware of any others 👍

@ycombinator
Copy link
Contributor

@ruflin What about the ingest-pipeline directories?

development/github/package-storage ‹master› » find packages -iname *-* -type d | awk -F\/ '{print $NF}' | sort | uniq -c
   3 component-template
   3 ilm-policy
   3 index-template
  65 ingest-pipeline

@ruflin
Copy link
Member Author

ruflin commented Jun 30, 2020

@ycombinator Looks like I'm missed these :-(

@ruflin
Copy link
Member Author

ruflin commented Jul 1, 2020

This now becomes a bit more complicated because of the ingest-pipelines as these exist in all packages. My thinking: Also add duplicates for the ingest-pipeline directory in all packages, get elastic/kibana#70320 in and then remove it?

@ruflin
Copy link
Member Author

ruflin commented Jul 2, 2020

We now copied all directories with - in package-registry, package-storage and integrations repo to make it compatible with elastic/kibana#70320. The old directories can be removed when snapshot builds with elastic/kibana#70320 are available which is probably in the next 24h.

@ruflin
Copy link
Member Author

ruflin commented Jul 3, 2020

Kibana updated, all assets removed from package-storage and package-registry and check built into registry now. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ingest Management:beta1 Group issues for ingest management beta1
Projects
None yet
Development

No branches or pull requests

3 participants