-
Notifications
You must be signed in to change notification settings - Fork 816
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
@mapsTo
directive to enable renaming models while retaining d…
…ata (#9340) * chore: dumping progress * feat: retain original table on type rename * feat: map table name in dependent functions * chore: little bit of cleanup * fix: push failures for dependent functions * feat: support table renames in mock * test: refactor orig directive and add tests * fix: test failures * test: remove unneeded test file * chore: update package version * test: fix other tests * chore: cleanup before PR * chore: rename directive to mapsTo * fix: searchable transformer with renamed model * fix: auth and searchable table translation * fix: more searchable issues and mock test * chore: address PR comments * test: add e2e tests and some refactoring * fix: hopefully closer to having rename working with relations * fix: rename works for existing data in hasOne, hasMany, and belongsTo relations * chore: fix a few more merge issues * fix: renamed relations except for manyToMany working * feat: mapsTo with searchable * chore: minor renaming * fix: refactor to support multiple renamings per type * fix: issue with transformer dependency chain * test: bunch of tests plus start refactor * fix: refactor complete with tests passing * test: add test w/ multiple field renames on single model * chore: fix dep * test: add and fix tests * fix: add de-dupe logic to field rename map * chore: add comments and fix LGTM warnings * chore: fix dep * fix: searchable bug * chore: fixup versions * fix: address most PR comments * test: add test for conflicting model name * fix: add sync resolvers to mapped resolver list * test: add sync resolver test * fix: switching to lambda resolver for input mapping * fix: update vtl for mapped input * fix: revert searchable input changes * chore: fix cdk iam package name * fix: move mapsto slotting to after transformer * fix: transform input args in searchable resolvers * chore: use common util for setting transformedArgs * test: update vtl snapshots for arg mapping * test: update snapshots * fix: destructive update prompt for mapsTo * test: add mapsTo e2e tests * test: remove log lines * test: add/update tests for lambda vtl invoker * fix: map @manytomany fields on server side * fix: use transformed args filter in type.field resolver * chore: move input mapping function to preUpdate slot * fix: add sort and aggregates to lambda pre-check * chore: address PR comments and LGTM errors
- Loading branch information
1 parent
7b56ea4
commit aedf45d
Showing
83 changed files
with
5,291 additions
and
1,505 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.