influxdata / influxdata/influxdb
Response object for setup endpoint does not return status for org and user
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
- Start `influxd` process
- Create default user/org/bucket using `api/v2/setup` endpoint.
Returned response object does not have the `status` for org and user:
```
u'org':
{u'id': u'031b6cf00747c000',
u'links':
{u'tasks': u'/api/v2/tasks?org=default_org',
u'log': u'/api/v2/orgs/031b6cf00747c000/log',
u'self': u'/api/v2/orgs/031b6cf00747c000',
u'dashboards': u'/api/v2/dashboards?org=default_org',
u'members': u'/api/v2/orgs/031b6cf00747c000/members',
u'buckets': u'/api/v2/buckets?org=default_org'},
u'name': u'default_org'},
```
```
u'user':
{u'id': u'031b6ceff4c7c000',
u'links':
{u'self': u'/api/v2/users/031b6ceff4c7c000',
u'log': u'/api/v2/users/031b6ceff4c7c000/log'},
u'name': u'admin_user'},
```
Contributor guide
Research direction
Start an influxd process and call the api/v2/setup endpoint using the reproduction steps in the issue. Inspect the returned org and user objects and confirm that both include the expected status fields when the response is corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100