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

Remove defaults from fields.common.yml for more flexibility #3602

Merged
merged 2 commits into from
Feb 16, 2017

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Feb 16, 2017

Having the defaults in code instead of the libbeat fields.yml will allow to reuse the same script also for fields.yml files from a metricbeat module for example without having to merge in the libbeat file. This is a prerequisite for dynamic index template generation in Golang which can be only for a module.

The top level fields entry was removed as without the defaults, it is not needed anymore.

All scripts were adjusted for the new format.

@ruflin ruflin added the review label Feb 16, 2017
Having the defaults in code instead of the libbeat fields.yml will allow to reuse the same script also for fields.yml files from a metricbeat module for example without having to merge in the libbeat file. This is a prerequisite for dynamic index template generation in Golang which can be only for a module.

The top level `fields` entry was removed as without the defaults, it is not needed anymore.

All scripts were adjusted for the new format.
@ruflin ruflin force-pushed the move-defaults-to-code branch from 021acf7 to d4b74b2 Compare February 16, 2017 08:31
Copy link
Contributor

@tsg tsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, waiting from green.

@ruflin ruflin force-pushed the move-defaults-to-code branch from 48f82a5 to 1501bd6 Compare February 16, 2017 09:54
@tsg tsg merged commit 1b6af55 into elastic:master Feb 16, 2017
@ruflin ruflin deleted the move-defaults-to-code branch February 23, 2017 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants