-
-
Notifications
You must be signed in to change notification settings - Fork 31
🐛 Fix deep selects #197
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
🐛 Fix deep selects #197
Conversation
|
Warning Rate limit exceeded@Samoht70 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 23 minutes and 8 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughReplaced top-level requestArray with currentRequestArray when processing nested relations in Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant Controller
participant Response as Response::modelToResponse
participant Model
participant Relation as Related Model(s)
Client->>Controller: POST /api/... (search with includes/selects)
Controller->>Response: modelToResponse(Model, requestArray)
activate Response
Note over Response: Determine include context -> derive currentRequestArray
alt Single related model
Response->>Response: modelToResponse(Relation, currentRequestArray)
else Collection of related models
loop For each related model
Response->>Response: modelToResponse(Relation[i], currentRequestArray)
end
end
Response-->>Controller: Serialized payload (with deep selects applied)
Controller-->>Client: HTTP response
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
|
As discussed privately, seems ok for me but could you add a test to cover this in the future please ? |
|
@Samoht70 any news on this ? |
Closes #196
Summary by CodeRabbit
Bug Fixes
Tests
Improvements