influxdata / influxdata/influx-cli
Inconsistency in required parameters for bucket commands
- Dominant language
- Go
- Stars
- 75
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
One bucket command can specify a bucket by name:
```
$ influx bucket delete --name test2
ID Name Retention Shard group duration Organization ID Schema Type Deleted
4336 test2 infinite n/a 26ca implicit true
```
And another cannot:
```
$ influx bucket update -r 3w --name test2
Error: Required flag "id" not set
```
It seems that if _delete_ can look up the bucket by name, then _update_ could as well.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the `influx bucket delete` and `influx bucket update` command definitions and their required-flag validation. Compare how delete resolves `--name` with update's `--id` requirement; done means update accepts a bucket name consistently and its existing behavior remains covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100