Skip to content

shorten config#7583

Merged
ssoroka merged 1 commit intomasterfrom
less-config
Nov 3, 2020
Merged

shorten config#7583
ssoroka merged 1 commit intomasterfrom
less-config

Conversation

@ssoroka
Copy link
Copy Markdown
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
Copy Markdown
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