influxdata / influxdata/ui

Dashboard variable not getting updated dynamically

Open
#6,932 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
When i add start parameter to `schema.tagValues()` and set it to `v.timeRangeStart` in a dashboard variable, the dashboard variable is not getting updated in the dashboards when i switch between different time range

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

1.Create a dashboard and add a cell with any query referencing a dashboard variable for a tag
1.Create a dashboard variable using `schema.tagValues()`
2.Set the start parameter to `v.timeRangeStart`

**Expected behavior:**

The dashboard variable(Dropdown) should update dynamically when time range is changed

**Actual behavior:**

The dashboard variable(Dropdown) is only getting updated after a refresh once changing the time range selector

**Visual Proof:**

## About your environment
-Darwin 23.5.0 arm64
-InfluxDB v2.7.7

**Environment info:**

**Config:**

**Logs:**

**Performance:**
Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.

```sh
# Commands should be run when the bug is actively.
# Note: This command will run for at least 30 seconds.
curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=true"
curl -o vars.txt "http://localhost:8086/debug/vars"
iostat -xd 1 30 > iostat.txt
# Attach the `profiles.tar.gz`, `vars.txt`, and `iostat.txt` output files.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the dashboard variable using schema.tagValues() with its start parameter set to v.timeRangeStart, then switch the dashboard time range and observe the dropdown. Trace the dashboard variable refresh path and verify that the dropdown updates without a page refresh when the time range changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.