influxdata / influxdata/ui

I have an issue saving a Flux query with simple table format. When adding this to a dashbord it fails. The preview is working fine

Open
#7,040 0 comments 0 reactions 0 assignees View on GitHub
kind/bug team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

## About the bug
I have an issue saving a Flux query with simple table format. When adding this to a dashbord it fails. The preview is working fine
I found [same bug ](https://community.influxdata.com/t/saving-simple-table-cell-fails/30367)on the community. Has it been fixed already?

**Steps to reproduce:**
List the minimal actions needed to reproduce the behavior.

1. add cell when editing dashboard
2. create simple table with the following query
```
from(bucket: "solr_querylog")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "measurementName")
|> filter(fn: (r) => r["_field"] == "qTime")
|> aggregateWindow(every: 10m, fn: mean, createEmpty: false)
|> mean()
|> yield(name: "max")
```
4. It shows table on editing screen but when you save cell and go back to dashboard it becomes error.

**Expected behavior:**
simple table shows up in dashboard

**Actual behavior:**
got an error

**Visual Proof:**
when editing
![Image](https://github.com/user-attachments/assets/bd1ef735-9c26-4d7d-95ad-c564a0fe519f)

go back to dashboard

Image

## About your environment

**Environment info:**

`uname -srm`: Darwin 23.5.0 arm64
`influxd version` command didn't work so instead run docker ps to check the version of my image at where influxdb is runnning.
```
11:24:27 : influxdb$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e0a849aff46f influxdb:2.7 "/entrypoint.sh infl…" 5 days ago Up 27 minutes 0.0.0.0:8086->8086/tcp influxdb2
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in the dashboard editor with the provided Flux query, then compare the working preview with the saved dashboard view. Trace the save and render path for the simple table cell; done means the table continues to render after leaving the editor instead of showing an 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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.