influxdata / influxdata/influxdb
`/templates/export` API silently converts resource subtypes into top-level types before looking up IDs
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
__Steps to reproduce:__
1. Create 1 deadman & 1 threshold check
2. Run `echo | influx export --resource-type CheckThreshold`
__Expected behavior:__
Either:
* No output because the provided ID doesn't map to a threshold check
* An error message stating `CheckThreshold` isn't a valid kind-filter
__Actual behavior:__
The server converts `CheckThreshold` to `Check`, searches for the ID, and returns the deadman check
Contributor guide
Research direction
Start at the /templates/export API and the influx export handling for the --resource-type option, then reproduce the command with a deadman ID and CheckThreshold. Done means a subtype ID is not resolved as its top-level Check type, and an invalid kind-filter produces the documented error or no output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100