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

Refactor interrupts plugin code #2670

Merged
merged 2 commits into from
Apr 14, 2017

Conversation

calerogers
Copy link
Contributor

@calerogers calerogers commented Apr 13, 2017

Required for all PRs:

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)
  • README.md updated (if adding a new plugin)

@danielnelson Sorry for the noise and this extra PR, but I was making some updates to the interrupts plugin's code before I noticed you merged in the previous one (thanks btw!). I think this refactor cleans up the code rather nicely if you'd like to take a look and merge it in, of course it isn't urgent. Feel free to close the PR if you don't think it's necessary. thanks again!

@danielnelson
Copy link
Contributor

Overall I like this, only thing I wouldn't do is move the file reading into parseInterrupts. It's generally a good idea to keep IO separate from logic in case to make testing easier.

@calerogers
Copy link
Contributor Author

@danielnelson ok hopefully I won't be asking you to review this plugin code again anytime soon :). I moved the IO outside of parseInterrupts(). I think it is in a pretty good state now. Let me know if you have anything else.

@calerogers calerogers force-pushed the update-interrupts-plugin branch 2 times, most recently from 103340e to 4ea2d14 Compare April 14, 2017 17:08
@calerogers calerogers force-pushed the update-interrupts-plugin branch from 4ea2d14 to 17a4536 Compare April 14, 2017 17:30
@danielnelson danielnelson merged commit a12e082 into influxdata:master Apr 14, 2017
@calerogers calerogers deleted the update-interrupts-plugin branch April 14, 2017 20:57
vlamug pushed a commit to vlamug/telegraf that referenced this pull request May 30, 2017
maxunt pushed a commit that referenced this pull request Jun 26, 2018
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.

2 participants