-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Prevent deleting program domains #3198
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.
|
WalkthroughThis PR enforces a deletion guard for domains active in partner programs by establishing a Domain-Program relation in Prisma, extending the domain retrieval to include partnerProgram data, and adding a 403 check in the DELETE route. Additionally, a temporary skip on poly.market domain deletion is removed, and the cron deletion recording is updated with a deleted flag. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2025-10-28T19:17:28.085ZApplied to files:
📚 Learning: 2025-06-06T07:59:03.120ZApplied to files:
🧬 Code graph analysis (2)apps/web/app/api/domains/[domain]/route.ts (2)
apps/web/app/(ee)/api/cron/domains/delete/route.ts (1)
⏰ 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 (5)
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 |
|
thank you! |
Summary by CodeRabbit
Bug Fixes
Improvements
✏️ Tip: You can customize this high-level summary in your review settings.