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

InfluxDBClient default org is not used by WriteAPI #46

Closed
ptamilarasan opened this issue Dec 13, 2019 · 2 comments · Fixed by #48
Closed

InfluxDBClient default org is not used by WriteAPI #46

ptamilarasan opened this issue Dec 13, 2019 · 2 comments · Fixed by #48
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ptamilarasan
Copy link

InfluxDBClient org parameter is documented as being the default for the query and write api, however only the QueryAPI client actually does this. The WriteAPI client requires the org to be specified.

https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/influxdb_client.py#L28

if org is None:
org = self._influxdb_client.org

:param str org: specifies the destination organization for writes; take either the ID or Name interchangeably; if both orgID and org are specified, org takes precedence. (required)

@russorat russorat added the bug Something isn't working label Dec 16, 2019
@russorat
Copy link
Contributor

@ptamilarasan thanks for opening this! we will fix, but we'd be happy to review a community PR as well.

@rhajek rhajek self-assigned this Dec 17, 2019
@rhajek rhajek added this to the 1.3.0 milestone Dec 17, 2019
@bednar bednar mentioned this issue Jan 6, 2020
4 tasks
@bednar bednar closed this as completed in #48 Jan 6, 2020
@bednar bednar assigned bednar and unassigned rhajek Jan 6, 2020
@bednar
Copy link
Contributor

bednar commented Jan 6, 2020

Hi @ptamilarasan,

The issue is fixed in 1.3.0 milestone.

If you would like to use a dev version then install client via:

pip install git+https://github.com/influxdata/influxdb-client-python.git@master

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants