influxdata / influxdata/influxdb
influx export --endpoint-names requires organisation but not influx export --endpoints
Open
Nobody has claimed this yet.
area/2.x
area/templates
- 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.
influx config create --active -n myOrg -u http://localhost:8086 -t <TOKEN> -o myOrginflux export --endpoint-names slack-xxxfailsinflux export --endpoints idworks
Expected behavior:
First command should output endpoint configuration
Actual behavior:
influx export --endpoint-names slack-xxx
Error: Failed to clone resource: resource_id= resource_kind=NotificationEndpoint err="cloning resource: cannot process a request without a org or user filter".
whereas:
influx export --endpoints <endpoint id>
apiVersion: influxdata.com/v2alpha1
kind: NotificationEndpointSlack
metadata:
name: mystifying-ellis-fb6001
spec:
name: slack-xxx
status: active
url: https://hooks.slack.com/services/<REDACTED>
Environment info:
- System info: Debian 10.10 / Linux 4.19.0-17-cloud-amd64 x86_64
- InfluxDB version: InfluxDB 2.0.8 (git: e91d41810f) build_date: 2021-08-13T18:22:30Z
- Other relevant environment details: Using go binaries (no deb package)
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 by reproducing the two influx export commands from the issue using the shown active configuration and compare their behavior. Trace the export paths for --endpoint-names and --endpoints; done means the name-based command accepts the configured organisation and outputs the endpoint configuration without the reported error.
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
- 40/100