-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): dashboard variable chaining #2037
Conversation
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
I am going to record a video and post it for better understanding. |
frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
Show resolved
Hide resolved
frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
Outdated
Show resolved
Hide resolved
frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
Outdated
Show resolved
Hide resolved
frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
Outdated
Show resolved
Hide resolved
frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
Outdated
Show resolved
Hide resolved
frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
Outdated
Show resolved
Hide resolved
frontend/src/container/NewDashboard/DashboardVariablesSelection/index.tsx
Show resolved
Hide resolved
frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
Outdated
Show resolved
Hide resolved
frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
Outdated
Show resolved
Hide resolved
6b63fc5
to
a3cfd6f
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Addresses #1973
https://www.loom.com/share/75fb347f451e4c12b49c6f227e2918fc
This PR adds support for variable chaining. Whenever a variable changes, its dependent variable should be updated too. The default value for this dependent variable will be ALL values for multi-select and the first option for single-select. The independent variable remains the same.
Code changes:
There is a new API for this. This new API is
POST
request which accept the payload of the following type.And the VariableItem is updated with its
onVarUpdate
triggering subsequent updates for dependent vars.