-
Notifications
You must be signed in to change notification settings - Fork 79
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
[DONOT MERGE]fix: handle Enums correctly on Typescript data schema generation #2965
Draft
tejas2008
wants to merge
105
commits into
main
Choose a base branch
from
Handle-enums-sql
base: main
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.
Conversation
This file contains 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
… to fix undefined field
…comments for more clarity
…fy-category-api into Handle-enums-sql
…y-api into Handle-enums-sql
* refactor: combine indexName assignment branches * refactor: explicitly assign undefined in falsy condition for table validation * docs: remove unnecessary comment
* test: add some migration validation tests * test: override migration e2es to use ddb managed encryption * chore: split e2e tests * test: temp for testing * Revert "test: temp for testing" This reverts commit 84ff77b.
* chore: add missing types * test: ts schema serial field gen happy case * test: ts schema serial field gen sad cases * chore: add DEFAULT_METHOD to TS schema constants * feat: intepret pg serial fields in ts schema gen * test: do not handle db provided int constants * refactor: simpler serial field default condition * test: pg string adapter sets model field correctly from a schema with a SERIAL field * test: align text in template string the text alignment was causing weird names in snaphot * test: serial gen snapshots against all of getModels() * refactor: extract sequence field identification logic * chore: no-op change to force rebuild
Signed-off-by: Kevin Shan <[email protected]>
tejas2008
changed the title
fix: handle Enums correctly on Typescript data schema generation
[DONOT MERGE]fix: handle Enums correctly on Typescript data schema generation
Oct 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of changes
CDK / CloudFormation Parameters Changed
Issue #, if available
#2596
Description of how you validated changes
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.