Skip to content

Get rid of deprecated internal.{Duration,Size,Number}#8969

Merged
ssoroka merged 20 commits intoinfluxdata:masterfrom
HRI-EU:internal_config
Apr 9, 2021
Merged

Get rid of deprecated internal.{Duration,Size,Number}#8969
ssoroka merged 20 commits intoinfluxdata:masterfrom
HRI-EU:internal_config

Conversation

@srebhan
Copy link
Copy Markdown
Member

@srebhan srebhan commented Mar 11, 2021

Required for all PRs:

  • Associated README.md updated.
  • Has appropriate unit tests.

The datatypes internal.Size and internal.Duration are replaced by their config counterparts. This PR moves the code to the new types and fix the fallout. Furthermore, I removed internal.Number which seems to be used by statsd input plugin only to represent a float64.

Copy link
Copy Markdown
Contributor

@telegraf-tiger telegraf-tiger bot left a comment

Choose a reason for hiding this comment

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

🤝 ✅ CLA has been signed. Thank you!

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Mar 11, 2021
Copy link
Copy Markdown
Contributor

@ssoroka ssoroka left a comment

Choose a reason for hiding this comment

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

epic work. Thank you! couple notes

Comment on lines +1 to +4
[[outputs.azure_monitor]]

[[outputs.azure_monitor]]
namespace_prefix = ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks unrelated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is factored out of the config_test which had this inlined in the code. Should I do another PR for factoring this out? Please not that additional PR will have a dependency on this PR... :-)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Will keep as is.


func SMTPCTL(output string) func(string, internal.Duration, bool) (*bytes.Buffer, error) {
return func(string, internal.Duration, bool) (*bytes.Buffer, error) {
var TestTimeout = config.Duration(time.Second)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks like we added this line back in after another PR removed it?

Copy link
Copy Markdown
Contributor

@telegraf-tiger telegraf-tiger bot left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@telegraf-tiger telegraf-tiger bot left a comment

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix pr to fix corresponding bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants