influxdata / influxdata/kapacitor
[Kapacitor list task API] fields query parameter is not working for template-id
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
Hi,
I am trying to get `template-id` for all tasks on listing task API.
I tried `/kapacitor/v1/tasks?fields=template-id` API but it's throwing error with `"unsupported field \"template-id\""`. Though `template-id` is a valid field for a task it's not returning expected response. It's working fine with other fields. I see there is a issue #1368 which talks about the API. Don't know whether it's in pipeline for next release or not?
I am using kapacitor latest docker image.
Contributor guide
Research direction
Start by reproducing /kapacitor/v1/tasks?fields=template-id with the latest Docker image and trace the task-list API handling for requested fields. Done means the request no longer reports "unsupported field \"template-id\"" and returns template-id for listed tasks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100