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

[Bug]: DataTable doesn't update when groupBy is used and the query changes the data #2850

Closed
ebardelli opened this issue Nov 24, 2024 · 0 comments · Fixed by #2904
Closed
Labels
bug Something isn't working to-review Evidence team to review

Comments

@ebardelli
Copy link
Contributor

ebardelli commented Nov 24, 2024

Describe the bug

DataTable doesn't update when groupBy is used and the query changes the data (e.g., through a filter). I believe that the bug was introduced with commit #9c1ad71. Removing groupDataPopulated will let the DataTable update, but the group data still isn't updated. But, removing groupDataPopulated also breaks sorting within the group, so removal isn't an option.

Steps to Reproduce

  • Create a page in evidence
  • Write a query with some groups (e.g., customer)
  • Add a dropdown menu to filter the data (e.g., year)
  • Add filter to query
  • Display query results in a DataTable
  • Use dropdown to change data
  • DataTable doesn't update

Severity

serious, but I can work around it

Additional Information, or Workarounds

The workaround is to remove the DataTable grouping, which isn't ideal.

@ebardelli ebardelli added bug Something isn't working to-review Evidence team to review labels Nov 24, 2024
@ebardelli ebardelli mentioned this issue Dec 12, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to-review Evidence team to review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant