fix: Do no aggregate results for CSV downloads from AG Grid raw records table#36247
Conversation
Code Review Agent Run #3286b4Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
|
Hey @alexandrusoare it would be good to get your thoughts on this one since you worked on the original PR. Thanks! |
b434be4 to
87820c2
Compare
|
After talking with @betodealmeida and doing some more testing here, I noticed that this is actually a lot easier to reproduce. Since the AG Grid table is always adding a We've agreed to actually take a first pass on fixing this at the backend: the backend should be capable of receiving |
metrics=[]
|
@betodealmeida will have to revert to fixing this at the AG Grid level. Dashboard native filters intentionally set We used to have both |
metrics=[]
Why?? Do they do this because they want distinct values? |
Yes, dashboard filters always display distinct values. |
…ds table (apache#36247) (cherry picked from commit 9fc7a83)
…ds table (apache#36247) (cherry picked from commit 9fc7a83)
SUMMARY
The AG Grid un-aggregated table is sending
metrics=[]to the backend when a CSV download is triggered from the dashboard, which makes sense (the un-aggregated chart doesn't have any metrics). In the backend, we validateif metrics is not Noneto decide if aGROUP BYshould be added, in this case incorrectly evaluating toTrue.As a consequence, the CSV file would only include distinct rows.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before

After

TESTING INSTRUCTIONS
cleaned_sales_datadataset.deal_sizeas a column.ADDITIONAL INFORMATION