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

Fix loading templates in config/ directory #4517

Closed

Conversation

spinscale
Copy link
Contributor

The fixes introduced in #4235 and #4411 do not take into account, that a
template JSON in the config/ directory includes a template name, as opposed
when calling the Put Template API.

This PR allows to put both formats (either specifying a template name or not)
into files. However you template name/id may not be one of the template
element names like "template", "settings", "order" or "mapping".

Closes #4511

The fixes introduced in elastic#4235 and elastic#4411 do not take into account, that a
template JSON in the config/ directory includes a template name, as opposed
when calling the Put Template API.

This PR allows to put both formats (either specifying a template name or not)
into files. However you template name/id may not be one of the template
element names like "template", "settings", "order" or "mapping".

Closes elastic#4511
@spinscale
Copy link
Contributor Author

talked to @s1monw - we will revert back to the old behaviour and will not support the one which was introduced in 0.90.8

@spinscale spinscale closed this Dec 20, 2013
@s1monw
Copy link
Contributor

s1monw commented Dec 22, 2013

We decided that it will be a much better user experience if we keep the behaviour that was introduced by the original commit and add support for both the top level template name as well as the version that doesn't have a name. I will update this PR an pull it in.

@s1monw
Copy link
Contributor

s1monw commented Dec 22, 2013

pushed

@s1monw s1monw closed this Dec 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

template mappings are not loading in 0.90.8
2 participants