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

shorten config #7583

Merged
merged 1 commit into from
Nov 3, 2020
Merged

shorten config #7583

merged 1 commit into from
Nov 3, 2020

Conversation

ssoroka
Copy link
Contributor

@ssoroka ssoroka commented May 26, 2020

Ideas behind this change:

  • reduce duplication by providing standard methods for parsing field types.
  • allow reusing fields by not deleting them
  • delay unused field errors by instead adding them to a list and removing it if it's later processed
  • reduce repetitious error handling by collecting errors on the config
  • provide our own toml.Config settings that allows us to capture missingField errors and handle them ourselves.

@ssoroka
Copy link
Contributor Author

ssoroka commented Jun 22, 2020

on hold until after 1.15

@sjwang90 sjwang90 added this to the 1.16.0 milestone Sep 14, 2020
@ssoroka ssoroka modified the milestones: 1.16.0, Planned Oct 2, 2020
@ssoroka ssoroka merged commit 998ae54 into master Nov 3, 2020
@ssoroka ssoroka deleted the less-config branch November 3, 2020 21:40
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants