-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
merge dev to main (v2.13.0) #2057
Conversation
📝 WalkthroughWalkthroughThis pull request updates the project version and refines several internal functionalities. The version in the gradle build file is incremented. Export statements in TypeScript files have been modified, and query‐building methods across runtime modules now handle missing parameters more safely and consistently. Logger usage has been reworked between policy and query utilities. Enhancements in schema validation and name resolution have been introduced, and a range of new and updated test cases cover nested updates, policy enforcement, and regression issues. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant DelegateHandler
participant QueryUtils
participant Database
Client->>DelegateHandler: Request update/delete (optional where clause)
Note right of DelegateHandler: Clone where clause using `?? {}`
DelegateHandler->>QueryUtils: Call buildReversedQuery(db, context, ...)
QueryUtils->>Database: Execute query (e.g., findUniqueOrThrow)
Database-->>QueryUtils: Return query result
QueryUtils-->>DelegateHandler: Return reversed query details
DelegateHandler-->>Client: Complete operation
sequenceDiagram
participant Client
participant PolicyHandler
participant QueryUtils
participant Database
Client->>PolicyHandler: Send request for create/update/delete with policy check
PolicyHandler->>QueryUtils: Invoke async buildReversedQuery(db, context, ...)
QueryUtils->>Database: Query for necessary keys/records
Database-->>QueryUtils: Return query information
QueryUtils-->>PolicyHandler: Provide reversed query data
PolicyHandler-->>Client: Process policy enforcement and return response
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (13)
📒 Files selected for processing (22)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code Definitions (6)packages/schema/src/plugins/prisma/schema-generator.ts (1)
tests/regression/tests/issue-1964.test.ts (1)
tests/integration/tests/plugins/zod.test.ts (1)
packages/schema/src/language-server/validator/function-invocation-validator.ts (2)
packages/runtime/src/enhancements/node/query-utils.ts (7)
tests/integration/tests/enhancements/with-policy/unique-as-id.test.ts (1)
🪛 Biome (1.9.4)packages/runtime/src/enhancements/node/delegate.ts[error] 1029-1029: Avoid the delete operator which can impact performance. Unsafe fix: Use an undefined assignment instead. (lint/performance/noDelete) ⏰ Context from checks skipped due to timeout of 90000ms (6)
🔇 Additional comments (51)
✨ Finishing Touches
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. 🪧 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
CodeRabbit Configuration File (
|
No description provided.