Dashboard crash with certain scripted queries
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 117
- Forks
- 51
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 4
Description
About the bug
Steps to reproduce:
I have two queries that crash.
The first is
import "strings"
from(bucket: "ytmnd")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "video_has_stickers")
|> filter(fn: (r) => strings.hasPrefix(v: r["_field"], prefix: "sticker_"))
|> group(columns: ["_field"])
|> sum(column: "_value")
|> sort(columns: ["_value"])
...and the second I have now lost because I can't retrieve it back, but it was a scripted query that gave me quantiles. I will probably have to write it again so I can put it in here if it helps when I do.
When I open them in configure, I see "Failed to load resources for cell: e.properties.queries is undefined".
Expected behavior:
I expect to see them in my dashboard.
Actual behavior:
It works when I preview it in the query editor, but putting it in a dashboard gives me just "An InfluxDB error has occurred".
Visual Proof:
About your environment
Environment info:
Linux 5.19.0-46-generic x86_64
InfluxDB v2.7.3 (git: ed645d9216) build_date: 2023-10-17T15:39:09Z
Put through a Docker container
Contributor guide
No contributing guide indexed for this repository
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 crash in a dashboard using the provided scripted query, then compare its behavior in the query editor and in configure, where the issue reports that e.properties.queries is undefined. Done means the scripted query renders in the dashboard without the resource-loading or generic InfluxDB error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100