-
-
Notifications
You must be signed in to change notification settings - Fork 90
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: auth()
field from a base model is not properly resolved
#1192
Conversation
WalkthroughWalkthroughThis update streamlines the linking process in the schema language server and refines scope handling for models, particularly focusing on authentication models. Additionally, it introduces a regression test for a previously identified issue, ensuring robustness in data model configurations. The simplification of the linking method and the adjustment in scope retrieval underscore a move towards more efficient and targeted functionality within the schema management framework. Changes
Possibly related issues
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Fixes #1179 |
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: 0
Review Status
Configuration used: CodeRabbit UI
Files selected for processing (3)
- packages/schema/src/language-server/zmodel-linker.ts (1 hunks)
- packages/schema/src/language-server/zmodel-scope.ts (1 hunks)
- tests/integration/tests/regression/issue-1179.test.ts (1 hunks)
Additional Context Used
Additional comments not posted (3)
tests/integration/tests/regression/issue-1179.test.ts (1)
1-27
: The integration test structure looks good and is focused on the specific regression issue it aims to prevent. However, it would be beneficial to add comments explaining the purpose of the test, the specific issue it addresses, and any setup or teardown steps required to ensure the test is self-contained and maintainable.packages/schema/src/language-server/zmodel-scope.ts (1)
227-227
: The change fromcreateScopeForNodes
tocreateScopeForModel
aligns with the PR's objectives and simplifies the scope retrieval for authentication models. Ensure comprehensive tests are in place to verify the correct behavior of this updated mechanism, given its importance to the system's functionality and security.packages/schema/src/language-server/zmodel-linker.ts (1)
100-108
: The simplification of thelink
method by removing theonlyFromExtraScopes
parameter and its related conditional logic is a positive change that aligns with the PR's objectives. Ensure comprehensive tests are in place to verify the correct behavior of the simplifiedlink
method, given its importance to the model linking process.
Summary by CodeRabbit