-
-
Notifications
You must be signed in to change notification settings - Fork 89
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: preserve custom attributes as comments in logical prisma schema #1912
Conversation
📝 WalkthroughWalkthroughThis pull request includes updates to two files. The Changes
Assessment against linked issues
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (13)
📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🔇 Additional comments (1)packages/schema/src/plugins/enhancer/enhance/index.ts (1)
The addition of Run the following script to confirm that ✅ Verification successful
The verification shows that:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify that 'PrismaSchemaGenerator.generate' method supports 'customAttributesAsComments' parameter.
# Find the definition of 'PrismaSchemaGenerator' class and check for 'generate' method with 'customAttributesAsComments'
rg -A 10 'class PrismaSchemaGenerator' | rg 'async generate\([^)]*customAttributesAsComments[^)]*\)'
Length of output: 102 Script: #!/bin/bash
# Let's try a broader search to find the PrismaSchemaGenerator class definition and its generate method
rg -A 20 "class PrismaSchemaGenerator"
# Also search for any interface or type definitions that might define the generate method parameters
rg "interface.*PrismaSchemaGenerator|type.*PrismaSchemaGenerator"
# Search for any usage of customAttributesAsComments in the codebase
rg "customAttributesAsComments"
Length of output: 3701 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 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 (
|
fixes #1909