influxdata / influxdata/influxdb
`/templates/export` API only returns one resource per type
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:__
List the minimal actions needed to reproduce the behavior.
1. Create a task named "A"
2. Create a task named "B"
3. Run `influx export --task-names="A,B"`
__Expected behavior:__
The definitions of both `A` and `B` should be included in the resulting YAML.
__Actual behavior:__
Only the definition of `B` is included in the resulting YAML. If you reverse the order of the listed items in the CLI, then only A will be included in the export.
__Environment info:__
Influx DB Cloud 2.0
Influx CLI Tool version: `Influx CLI 2.0.2 (git: 84496e507a) build_date: 2020-11-19T03:59:35Z`
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 at the `/templates/export` API entry point and reproduce the issue with two task names using `influx export --task-names="A,B"`. Trace how the requested resources are collected and verify the resulting YAML includes both task definitions rather than only the last one.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, cli, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100