influxdata / influxdata/influxdb

Response object for setup endpoint does not return status for org and user

Open
#10,869 6 comments 0 reactions 0 assignees View on GitHub
area/api kind/bug severity/sev-4 team/compute
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.