-
Notifications
You must be signed in to change notification settings - Fork 188
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(torii-grpc): member clause should never error out if no entities #2418
Conversation
WalkthroughOhayo, sensei! The changes in this pull request update the method for retrieving model data from the database. The previous implementation used Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Server
participant Database
Client->>Server: Request model data
Server->>Database: fetch_optional(query)
alt Result found
Database-->>Server: Return model data
Server-->>Client: Send model data
else No result found
Database-->>Server: Return None
Server-->>Client: Send empty vector and count zero
end
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
TipsChatThere are 3 ways to chat with CodeRabbit:
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
Documentation and Community
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2418 +/- ##
==========================================
- Coverage 67.92% 67.90% -0.02%
==========================================
Files 364 364
Lines 47759 47773 +14
==========================================
Hits 32439 32439
- Misses 15320 15334 +14 ☔ View full report in Codecov by Sentry. |
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.
Format and let's add this to ensure Torii doesn't error.
Would have been great to have a test associated to it, maybe done in a subsequent PR. But feeling like we've edge cases being fixed, but not way to ensure no regressions. 👍
Summary by CodeRabbit