influxdata / influxdata/influxdb
Incorrect frontend payload when updating Heatmap visualization
- 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.
1. Go into Explore
2. Select any value you like
3. Select Heatmap Visualization
4. Change Y Axis Domain to fixed values, example: 0, 100
5. Apply - Works as expected
6. Save as a Dashboard Cell
7. Get error

```
Failed to add cell: json: cannot unmarshal string into Go struct field HeatmapViewProperties.yDomain of type float64
```
In the request payload `properties.yDomain` has value `["0", "100"]` instead of `[0, 100]`
__Expected behavior:__
Correctly save as a dashboard cell
__Environment info:__
Running docker pinned version `influxdb:2.0.6-alpine`
Contributor guide
Research direction
Start by reproducing the failure through Explore with the Heatmap visualization and saving it as a dashboard cell. Inspect the frontend path that builds the dashboard-cell request and verify that properties.yDomain is sent as numeric values; done when the cell saves successfully without the unmarshalling error.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100