-
Notifications
You must be signed in to change notification settings - Fork 524
Specify Retention Policy in SeriesHelper #723
Conversation
Hi @csanz91 please ensure that all the tests are passing in Travis, and then we can take a look |
All tests are passing now. Feel free to review the pull request. |
Hi @csanz91 and thanks for submitting this patch! The implementation looks fine, but please add some tests to ensure this feature functions properly. You'll want to look here: https://github.com/influxdata/influxdb-python/blob/master/influxdb/tests/helper_test.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requested corresponding tests, forgot to do it in a review!
I have added a couple of tests in which I check the args passed to the "write_points" function to look for the specified retention policy. I also have a case without a retention policy to make sure I'm not altering the default rp. |
* Allow specify a retention policy in SeriesHelper * Complete the annotation example with the retention policy * Fix formatting * Fix formatting again * Add helper write with retention policy * Add helper write without retention policy * Remove blank line after the docstring. Co-authored-by: Sebastian Borza <sebito91@gmail.com>
I have added an option in the SeriesHelper meta options to be able to write the data with a custom retention policy.
This request was previously commented in this issue: #300