This repository was archived by the owner on Feb 10, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
feat(orm): add support for runtime virtual fields #654
Open
genu
wants to merge
40
commits into
zenstackhq:dev
Choose a base branch
from
genu:feat/add-virtual-fields
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
ca6debb
feat: add virtual field attribute and utility function
genu 8796ed2
fix: pass authentication context to result processor in createModelCr…
genu 1f25dc0
feat: exclude virtual fields from WhereInput and OrderBy types
genu d64994e
feat: skip virtual fields in select field processing
genu 64091ab
feat: exclude virtual fields from relation selections in LateralJoinD…
genu 14f90d6
feat: exclude virtual fields from submodel field selections in BaseCr…
genu e4c4e06
feat: add support for virtual fields with context and computation fun…
genu 3838b36
feat: enhance ResultProcessor to support async processing of virtual …
genu e5bfd33
feat: make result processing in createModelCrudHandler asynchronous
genu 578bb1d
feat: allow exclusion of virtual fields in InputValidator
genu 05fbe12
feat: add support for virtual fields in ModelDef and FieldDef types
genu 95bf5fb
fix: update filter logic to use typed whereRecord for id field values
genu c2aad29
feat: exclude virtual fields from model field creation in SchemaDbPusher
genu 4d91875
feat: add support for creating virtual fields in TsSchemaGenerator
genu a850776
feat: skip virtual fields in model generation in PrismaSchemaGenerator
genu 019619d
feat: add comprehensive tests for virtual fields functionality
genu ef63095
Merge branch 'dev' into feat/add-virtual-fields
genu 9bbd365
feat: add omit clause support for virtual fields in ResultProcessor
genu fd1d986
feat: add tests for update, upsert, and multiple virtual fields funct…
genu fcbcd1d
feat: add support for virtual fields in BaseOperationHandler
genu a351558
feat: skip virtual fields in scalar field selection within BaseOperat…
genu 612ca58
feat: extract relation-specific args for nested processing in ResultP…
genu 20a6931
feat: enhance virtual fields tests for nested select and omit clauses
genu b8a64fb
feat: reject virtual fields in update data within InputValidator
genu f703373
feat: add real-world e-commerce schema tests for virtual fields
genu d735ecd
chore: add function comments
genu 5d5b784
feat: enforce error when selecting only virtual fields in query
genu 09a93fb
feat: replace internal error with invalid input error for selecting o…
genu 2dfad55
feat: exclude virtual fields from groupBy and aggregate types in clie…
genu c4d5883
feat: exclude virtual fields from aggregate operations in client API
genu c3787f4
feat: prevent virtual fields from being used in create and update ope…
genu dbe9e06
feat: use context
genu 5389bfd
feat: optimize tests
genu 815befe
feat: use transaction client in result processing for model CRUD handler
genu 2a4ff12
feat: update return type of VirtualFieldFunction to support Promise
genu d7b8f1d
feat: enforce required args in processResult and related methods
genu 067700a
feat: add null check for virtual field function in applyVirtualFields
genu 79adc3d
feat: simplify virtual field function retrieval in applyVirtualFields
genu 1cac24e
feat: enhance virtual fields to support dependency injection
genu cb2a279
feat: add virtual field dependencies and enhance related types
genu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.