Update composer.lock and enhance error logging in HTTP requests#1 8000 1384
Update composer.lock and enhance error logging in HTTP requests#11384
Conversation
- Updated versions for several dependencies in composer.lock, including utopia-php/database (5.3.3), utopia-php/detector (0.2.4), utopia-php/dns (1.6.5), utopia-php/framework (0.33.40), utopia-php/queue (0.15.6), and utopia-php/storage (1.0.1). - Improved error logging in app/http.php and app/controllers/general.php to handle null routes gracefully, ensuring that the HTTP method and request URI are logged correctly even when the route is not defined.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe changes add defensive null-safe handling for route object access in error-logging paths across two files. Method, path, and SDK label retrieval now use null-safe calls and fall back to values from the request when the route is absent. Action resolution gains a concrete fallback format ( Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # composer.lock
✨ Benchmark results
⚡ Benchmark Comparison
|
Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # composer.lock
🔄 PHP-Retry SummaryFlaky tests detected across commits: Commit
|
| Test | Retries | Total Time | Details |
|---|---|---|---|
UsageTest::testDatabaseStatsCollectionsAPI |
1 | 10.21s | Logs |
LegacyCustomClientTest::testInvalidDocumentStructure |
1 | 241.58s | Logs |
TablesDBCustomClientTest::testNotStartsWith |
1 | 240.56s | Logs |
TablesDBCustomServerTest::testUpdateAttributeEnum |
1 | 240.33s | Logs |
TablesDBCustomServerTest::testUniqueIndexDuplicate |
1 | 351ms | Logs |
DatabasesStringTypesTest::testCreateTable |
1 | 246.82s | Logs |
DatabasesStringTypesTest::testCreateVarcharColumn |
1 | 243.88s | Logs |
LegacyT
87CB
ransactionsConsoleClientTest::testTransactionSizeLimit |
1 | 240.39s | Logs |
LegacyTransactionsCustomClientTest::testUpsertDocument |
1 | 241.04s | Logs |
TablesDBTransactionsConsoleClientTest::testBulkDeleteOperations |
1 | 240.87s | Logs |
TablesDBTransactionsCustomServerTest::testCreateDocument |
1 | 241.05s | Logs |
Fix for Sentry error reporting when error happens before we have the route object.