Improve database errors for studio#10934
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis pull request systematically adds parameterized error messaging throughout the Appwrite platform. The core changes include: (1) updating error definitions in app/config/errors.php to use %s placeholders for entity identifiers, (2) modifying the Exception class in src/Appwrite/Extend/Exception.php to accept an optional params array and format messages using sprintf when provided, and (3) updating approximately 40+ HTTP action/handler files across the database module to pass contextual identifiers (databaseId, collectionId, documentId, etc.) as params when throwing exceptions. Test files have been updated to reflect the new parameterized error message format. No functional logic changes occur beyond message formatting. Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (49)
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 |
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
✨ Benchmark results
⚡ Benchmark Comparison
|
What does this PR do?
(Provide a description of what this PR does and why it's needed.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist