-
-
Notifications
You must be signed in to change notification settings - Fork 422
Add 6 missing 'domainId' for error tracing #1086
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
WalkthroughThis PR standardizes not-found error construction to pass Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)packages/hydrooj/src/handler/problem.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
packages/hydrooj/src/handler/discussion.ts(1 hunks)packages/hydrooj/src/handler/problem.ts(2 hunks)packages/hydrooj/src/model/contest.ts(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (3)
packages/hydrooj/src/model/contest.ts (1)
packages/hydrooj/src/error.ts (1)
ContestNotFoundError(80-80)
packages/hydrooj/src/handler/problem.ts (1)
packages/hydrooj/src/error.ts (2)
ProblemNotFoundError(77-77)SolutionNotFoundError(78-78)
packages/hydrooj/src/handler/discussion.ts (1)
packages/hydrooj/src/error.ts (1)
DiscussionNotFoundError(81-81)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build
🔇 Additional comments (4)
packages/hydrooj/src/model/contest.ts (1)
846-850: LGTM!The error constructor now correctly receives
domainIdas the first parameter, providing proper domain context for error tracing.packages/hydrooj/src/handler/discussion.ts (1)
354-368: LGTM!All four
DiscussionNotFoundErrorconstructor calls now consistently includedomainIdas the first parameter, providing proper domain context for error tracing across different discussion entity types (history, tail reply, reply, discussion).packages/hydrooj/src/handler/problem.ts (2)
216-228: LGTM!The error constructor correctly receives
domainIdandpidfrom the reference object, which remains accessible sincepdocis reassigned only after the check.
913-921: LGTM!The error constructor correctly receives
domainIdas the first parameter, with both variables accessible in scope.
Summary by CodeRabbit