influxdata / influxdata/iot-api-python

`authorization` variable is unused

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
28
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Function creates the `authorization` object, but doesn't use it in the API call.
https://github.com/influxdata/iot-api-python/blob/main/api/devices.py#L148

Also, the API call doesn't contain the `desc_prefix` for the authorization.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at api/devices.py#L148 and inspect the function that creates the authorization object and makes the API call. Verify how that call should use authorization and include desc_prefix. Done means the request uses both values correctly; no tests are mentioned in the issue, so check the surrounding API code for the relevant validation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.