Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Specify Retention Policy in SeriesHelper #723

Merged
merged 8 commits into from
Apr 10, 2020
Merged

Specify Retention Policy in SeriesHelper #723

merged 8 commits into from
Apr 10, 2020

Conversation

csanz91
Copy link
Contributor

@csanz91 csanz91 commented Jun 8, 2019

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

@csanz91 csanz91 requested review from aviau, sebito91 and xginn8 as code owners June 8, 2019 17:36
@xginn8
Copy link
Collaborator

xginn8 commented Sep 9, 2019

Hi @csanz91 please ensure that all the tests are passing in Travis, and then we can take a look

@csanz91
Copy link
Contributor Author

csanz91 commented Sep 15, 2019

All tests are passing now. Feel free to review the pull request.

@xginn8
Copy link
Collaborator

xginn8 commented Sep 16, 2019

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

Copy link
Collaborator

@xginn8 xginn8 left a 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!

@csanz91
Copy link
Contributor Author

csanz91 commented Sep 29, 2019

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.

@csanz91 csanz91 requested a review from xginn8 October 12, 2019 17:43
@sebito91 sebito91 self-assigned this Apr 8, 2020
@sebito91 sebito91 merged commit d2bf36c into influxdata:master Apr 10, 2020
ocworld pushed a commit to AhnLab-OSS/influxdb-python that referenced this pull request Apr 13, 2020
* 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants