-
Notifications
You must be signed in to change notification settings - Fork 473
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
refactor(lambda): decompose methods for SAM sync/deploy/build #6014
Conversation
570e036
to
b2a3891
Compare
b2a3891
to
9c070de
Compare
@@ -0,0 +1,61 @@ | |||
/*! |
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.
Moving wizards/prompters into shared/ui/sam/
is a good thought, thanks 👍
This PR adds 800 lines though. Why? |
I think it's coming from the additional tests I added. These include tests for Build and some function in Utils that did not have any unit test. |
- add `Prompter` suffix to file name - update all import following the renaming
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.
Left few comments, thanks for implementing all these tests, they are super helpful
Co-authored-by: Roger Zhang <[email protected]>
Co-authored-by: Roger Zhang <[email protected]>
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.
LGTM, action item to follow: use correct link in helper button in deploy template prompter. Currently is linking to sync help url.
ec1ca94
to
17f5c3a
Compare
Problem
The
sync.ts
are huge consisting of many helper functions that being reused for deploy and build.Solution
paramsSourcePrompter
for both sync and deploy to avoid duplicate codeLicense: I confirm that my contribution is made under the terms of the Apache 2.0 license.