-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
perf: Add details to error message in Parse.Query.aggregate
#9689
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
🚀 Thanks for opening this pull request! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #9689 +/- ##
==========================================
- Coverage 93.17% 93.16% -0.01%
==========================================
Files 187 187
Lines 15066 15068 +2
==========================================
+ Hits 14037 14038 +1
- Misses 1029 1030 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Parse.Query.aggregate
Parse.Query.aggregate
Parse.Query.aggregate
Parse.Query.aggregate
Parse.Query.aggregate
with more meaningful error message
Parse.Query.aggregate
with more meaningful error messageParse.Query.aggregate
## [8.1.1-alpha.1](8.1.0...8.1.1-alpha.1) (2025-04-07) ### Performance Improvements * Add details to error message in `Parse.Query.aggregate` ([#9689](#9689)) ([9de6999](9de6999))
🎉 This change has been released in version 8.1.1-alpha.1 |
🎉 This change has been released in version 8.2.0 |
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes introduce a new test to verify that MongoDB aggregation errors are properly handled and mapped to standardized Parse error codes. The Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant AggregateRouter
participant rest
Client->>AggregateRouter: handleFind(request)
AggregateRouter->>rest: find(request)
alt Success
rest-->>AggregateRouter: response
AggregateRouter-->>Client: response (with processed results)
else Error
rest-->>AggregateRouter: error
AggregateRouter-->>Client: Parse.Error(INVALID_QUERY, error.message)
end
sequenceDiagram
participant Test
participant ParseQuery
participant MongoDB
Test->>ParseQuery: aggregate(pipeline with $search)
ParseQuery->>MongoDB: execute aggregation
MongoDB-->>ParseQuery: error (unsupported stage)
ParseQuery-->>Test: throw Parse.Error.INVALID_QUERY
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Pull Request
Issue
Returns Internal Server Error
Approach
Returns Invalid Query error with message
Tasks
Summary by CodeRabbit
Bug Fixes
Tests