-
Notifications
You must be signed in to change notification settings - Fork 1
fix: Dashboard chart processing indicator disappears too quickly on hard refetch #271
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughCache invalidation steps are added after background pipeline operations (soft-refresh, hard-refresh, ingestion-only, chart-only triggers) to ensure the Prisma cache refreshes with organization and team-based tags. The cache invalidation logic within Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/server/api/routers/**/*.ts📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (6)📓 Common learnings📚 Learning: 2025-12-20T16:32:46.829ZApplied to files:
📚 Learning: 2025-12-20T22:12:00.576ZApplied to files:
📚 Learning: 2025-12-20T16:32:46.829ZApplied to files:
📚 Learning: 2025-12-20T22:12:00.576ZApplied to files:
📚 Learning: 2025-12-20T22:12:00.576ZApplied to files:
🧬 Code graph analysis (1)src/server/api/routers/pipeline.ts (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Fixes an issue where the "Processing" indicator on dashboard charts would disappear immediately after triggering a hard refetch from the drawer, even though the pipeline was still running.
Problem
When hard refetch was triggered, the
onSuccesscallback invalidated React Query cache, which then refetched data from Prisma Accelerate's stale cache (whererefreshStatuswas stillnull), causing the optimistic processing state to be replaced with stale data.Changes
refresh,regenerate,regenerateIngestionOnly,regenerateChartOnly) after setting the processing status in the databaseSummary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.