Skip to content
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

Fix: collapse expanded values on measure change #5165

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

djbarnwal
Copy link
Member

Temporary fix for https://rilldata.slack.com/archives/CTZ8XBQ85/p1719374514886679

We don't have support for asynchronous calls in our pivot data store. To fetch the values for a particular nested sub-table, we need to know the values of its parents. This generally works well when a user expands the table one by one. However, if we attempt to call everything at once, we need an asynchronous way to handle data in the Svelte store. This is also why implementing an "Expand All" feature would require a significant refactor. Currently, we are looking at ways to fix it so that we at least don't show incorrect data. One solution could be to collapse all expanded values when measures are changed.

A follow up for this would be to add support for asynchronous sequential calls.

@djbarnwal djbarnwal merged commit 5df95bb into main Jul 1, 2024
6 checks passed
@djbarnwal djbarnwal deleted the fix/collapse-expanded-on-measure-change branch July 1, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants