-
Notifications
You must be signed in to change notification settings - Fork 736
fix(lambda): skip ecrRepoUri and syncFlags prompters when using flag from samconfig file #5913
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
|
| placeholder: 'Press enter to proceed with highlighted option', | ||
| buttons: createCommonButtons(samSyncParamUrl), | ||
| }) | ||
| this.form.syncFlags.bindPrompter( |
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.
What would be syncFlags if we skipped here? Will it be empty?
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.
I believe that what we discussed last time.
When the customer use samconfig file, we use all the flag values from the file; this mean, we would use --config-file as mention here. The based on the value, the boundArgs is loaded here. We do not need the sync flags for merging with boundArgs here because again, --config-file is used.
Please let me know if there is issue.
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.
What I mean is, are the sync flags actually empty if they are skipped. Could you help to confirm?
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.
Yes, confirm that it is an empty array
roger-zhangg
left a comment
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, thanks for improving the wizard experience
|
One thing we might want to checkout: if appbuilder failed to build/deploy/sync with the current param. Should we still allow |
|
/runIntegrationTests |
|
The integration tests failures do not seem to be related to the new change introduced in this PR but more like false negative resulted from issue with mocking. |
Do you plan to address that here or in a followup pr? It is unusual for integ tests to fail. |
Problem
When customer choose use flag information from
samconfig.tomlfor sync and deploy operations, we assume that all the needed parameters will be available in thesamconfig.toml. Only--config-file <samconfig file path>is passed to SAM CLI.We skip many prompters in such scenario reduce clicking. Yet, we also need to skip prompter for
ecrRepoUriandsyncFlagin sync wizard.Solution
Add condition to skip these prompter when flag information from
samconfig.tomlis used.License: I confirm that my contribution is made under the terms of the Apache 2.0 license.