fix(stats): reuse deleted unknown placeholder#2267
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adjusts the stats plugin's app version fallback logic to allow deleted "unknown" version records. When an initial version lookup fails, the second lookup now forces ChangesStats deleted unknown version handling
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsStopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|



Summary (AI generated)
unknownplaceholder version when/statsfalls back after a missing version.Motivation (AI generated)
The stats endpoint could fail to find a deleted
unknownplaceholder when the reported version was missing, causing repeated placeholder insert scheduling instead of accepting the existing placeholder.Business Impact (AI generated)
This keeps plugin stats ingestion stable for apps that already have a deleted
unknownplaceholder, reducing noisy retries and avoiding unnecessary backend work on a hot plugin path.Test Plan (AI generated)
bun lintbun lint:backendbun run supabase:with-env -- bunx vitest run tests/stats.test.tsGenerated with AI
Summary by CodeRabbit
Bug Fixes
Tests