-
-
Notifications
You must be signed in to change notification settings - Fork 12
fix: crud typing fixes and more test cases #21
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces a new MIT license file, refines documentation, and reorganizes dependencies in the CLI package. Major enhancements were made to the runtime's CRUD type system, improving type safety and flexibility for model operations. The test suite was expanded with new schema definitions and comprehensive type validation scripts, while some redundant or skipped tests were removed. Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Developer
participant Script as generate.ts
participant SDK as TsSchemaGenerator
participant FS as File System
Dev->>Script: Run generate.ts
Script->>FS: Read typing-test.zmodel
Script->>SDK: Generate schema.ts from zmodel
SDK-->>Script: schema.ts generated
Script->>FS: Read schema.ts
Script->>FS: Replace '@zenstackhq/runtime' with '../../dist'
Script->>FS: Write updated schema.ts
Script-->>Dev: Log output path
sequenceDiagram
participant Test as verify-typing.ts
participant Client as ZenStackClient
participant DB as Database
Test->>Client: Perform CRUD operations (find, create, update, delete)
Client->>DB: Execute queries
DB-->>Client: Return results
Client-->>Test: Return typed results
Test->>Test: Validate types, expect errors where appropriate
Test-->>Console: Log outputs for verification
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (16)
✨ 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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores
Refactor