Merge pull request #7812 from specify/issue-7649#8090
Conversation
Allow new discipline deletion when it has no users and no collections
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR implements discipline deletion with blocker guards and authorization checks. It adds tree model constants and CRUD helpers to detect disciplines, compute deletion blockers from collections and users, and perform cleanup before deletion. Dispatch and backend views add authorization and blocker collection logic. Tests validate blocker behavior. ChangesDiscipline Deletion with Guards
🚥 Pre-merge checks | ✅ 4 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Allow new discipline deletion when it has no users and no collections
Fixes #
Checklist
self-explanatory (or properly documented)
specify7/specifyweb/specify/management/commands/run_key_migration_functions.py
Line 50 in ea04665
Testing instructions
Summary by CodeRabbit
New Features
Tests