influxdata / influxdata/influxdb
The Read/Write API token failed to find_organizations
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
__Steps to reproduce:__
1. create a Read/Write API token under org 'my-org' in influxdb 2.1.1
2. use the token to query the find_organizations
```
org = client.organizations_api().find_organizations(org='my-org')
print(org)
```
__Expected behavior:__
It should not print the empty list, because the Read/Write API token should have access to get the org info
__Actual behavior:__
the `print(org)` print `[]`
__Specifications:__
- Client Version: 1.26.0
- InfluxDB Version: 2.1.1
- Platform: macos
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the Python client's organizations_api().find_organizations(org='my-org') using InfluxDB 2.1.1 and a Read/Write token, then inspect that API entry point and its request handling. Done means the call returns the organization instead of an empty list, with a regression test covering the token permissions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100