fix: skip email notifications for system bundles (unknown, builtin)#1401
Conversation
When an app is created, two system bundles are automatically created: "unknown" and "builtin". These were triggering email notifications to users saying they uploaded a bundle, which is incorrect and confusing. This fix skips both email and LogSnag notifications for these special system bundle names while still allowing the last_version update. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughA single trigger function was modified to conditionally skip email and LogSnag notifications for bundle types named 'unknown' or 'builtin', while enriching notification payloads with additional metadata (app_id, bundle_name, bundle_id, owner_org) when notifications are sent. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (6)**/*.{ts,tsx,js,jsx,vue}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
supabase/functions/_backend/**📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
supabase/functions/**/*.ts📄 CodeRabbit inference engine (CLAUDE.md)
Files:
supabase/functions/_backend/**/*.{ts,js}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
supabase/functions/**/*.{ts,js}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
🧠 Learnings (4)📚 Learning: 2025-12-23T02:53:12.055ZApplied to files:
📚 Learning: 2025-12-23T02:53:12.055ZApplied to files:
📚 Learning: 2025-12-23T02:53:12.055ZApplied to files:
📚 Learning: 2026-01-08T00:40:00.524ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (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 |
|
…1401) When an app is created, two system bundles are automatically created: "unknown" and "builtin". These were triggering email notifications to users saying they uploaded a bundle, which is incorrect and confusing. This fix skips both email and LogSnag notifications for these special system bundle names while still allowing the last_version update. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>



Summary
last_versionupdate on the apps table still happens normallyTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.