fix: fix error with dashboard filters when global async queries is enabled and user navigates quickly#36639
Conversation
|
CodeAnt AI is reviewing your PR. |
Code Review Agent Run #c66b96Actionable 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 |
Nitpicks 🔍
|
|
CodeAnt AI finished reviewing your PR. |
|
Oops... I didn't mean to click approve quite yet on this. This needs more review and bot feedback :P |
|
Slapping a HOLD label on it due to my mistake... any other reviewer can remove that once they've actually approved it. |
|
@LevisNgigi any way to add tests to this change? Would be good to catch these in the future in case if anyone touches dashboard filters. |
|
CodeAnt AI is running Incremental review Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
CodeAnt AI is running Incremental review Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
@sadpandajoe I have added the tests. I am wondering why CI is having some inconsistent behaviours. |
ef71e84 to
08e1098
Compare
|
CodeAnt AI is running Incremental review Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
geido
left a comment
There was a problem hiding this comment.
Based on the fix in the original PR that introduced this issue #35998, this fix makes sense. However, I agree with Kamil that a longer-term solution would be to avoid storing the abort controllers in Redux. I'll track this as tech debt.
…abled and user navigates quickly (#36639)
User description
SUMMARY
Related to Pr. Prevents aborted chart requests from surfacing as hard errors in the UI.
Treats AbortError / "Request aborted" responses as expected behavior (e.g. when filters change quickly or charts unmount) and dispatches chartUpdateStopped(key) instead of chartUpdateFailed.
Keeps real failures unchanged: for non-abort errors, especially when GlobalAsyncQueries is enabled, the raw error still flows through chartUpdateFailed, preserving existing error handling.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:
2025-12-15.14-43-10.mp4
AFTER:
2025-12-15.14-40-30.mp4
TESTING INSTRUCTIONS
Make sure global async queries is enabled first:
On a dashboard, add cross filters
Quickly change them to other filters
OR
On a dashboard, apply filters, then quickly use the browser forward button then back
Currently:
Signal aborted error does not appear. User does not see an error and the dashboards with filters should load properly
ADDITIONAL INFORMATION
CodeAnt-AI Description
Ignore aborted chart requests so quick filter changes don't surface as hard errors
What Changed
Impact
✅ Fewer spurious dashboard error messages when changing filters quickly✅ Less confusing behavior when navigating away or unmounting charts rapidly✅ Real chart failures still reported and logged💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.