-
Notifications
You must be signed in to change notification settings - Fork 179
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): ensure the variable len is applied #2797
Conversation
WalkthroughOhayo, sensei! The recent changes focus on the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Server
Client->>Server: Send request with entity keys
Server->>Server: Process request
Server->>Server: Build keys pattern
Server-->>Client: Return response with processed keys
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🔇 Additional comments (1)crates/torii/grpc/src/server/mod.rs (1)
The addition of a forward slash before Let's verify the pattern construction with some test cases: ✅ Verification successfulOhayo, sensei! The pattern modification is safe and correct! The change in
The implementation aligns with the test case in 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify the regex pattern construction for different key combinations
# Test: Search for examples of key patterns in tests
rg -A 5 'build_keys_pattern|keys_pattern.*\+=' crates/torii/grpc/src/server/tests.rs
# Test: Search for actual usage of these patterns in queries
rg 'REGEXP.*\?' crates/torii/grpc/src/server/mod.rs
Length of output: 494 Script: #!/bin/bash
# Let's check the implementation of build_keys_pattern and its usage
ast-grep --pattern 'fn build_keys_pattern($$$) {
$$$
}'
# Also check for any test files in the crates directory
fd 'test.*\.rs' crates/torii/grpc/src/
# And check for the KEY_PATTERN constant definition
rg 'KEY_PATTERN.*=' crates/torii/grpc/src/
Length of output: 281 Script: #!/bin/bash
# Let's check the test file for any key pattern related tests
cat crates/torii/grpc/src/server/tests/entities_test.rs
# And let's see the full context of the build_keys_pattern function
rg -B 5 -A 10 'fn build_keys_pattern' crates/torii/grpc/src/server/mod.rs
Length of output: 6009 Script: #!/bin/bash
# Let's see the complete implementation of build_keys_pattern
rg -B 10 -A 20 'fn build_keys_pattern' crates/torii/grpc/src/server/mod.rs
# And check how the pattern is used in queries
rg -B 3 -A 3 'keys_pattern.*REGEXP' crates/torii/grpc/src/server/mod.rs
Length of output: 1152 🪧 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 #2797 +/- ##
=======================================
Coverage 55.75% 55.76%
=======================================
Files 439 439
Lines 55522 55522
=======================================
+ Hits 30957 30961 +4
+ Misses 24565 24561 -4 ☔ View full report in Codecov by Sentry. |
Summary by CodeRabbit
Bug Fixes
Style