-
Notifications
You must be signed in to change notification settings - Fork 35
fix(toolkit): diff prints stack name not display name #454
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
@@ -154,7 +154,7 @@ export class DiffFormatter { | |||
this.ioHelper = props.ioHelper; | |||
this.oldTemplate = props.templateInfo.oldTemplate; | |||
this.newTemplate = props.templateInfo.newTemplate; | |||
this.stackName = props.templateInfo.newTemplate.stackName; | |||
this.stackName = props.templateInfo.newTemplate.displayName ?? props.templateInfo.newTemplate.stackName; |
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.
this is kind of iffy, but i think its safe. diff formatter is using stack name to differentiate nested stacks, and i don't think nested stacks can have a display name clash.
stack.displayName
is defined as this:
/**
* A string that represents this stack. Should only be used in user
* interfaces. If the stackName has not been set explicitly, or has been set
* to artifactId, it will return the hierarchicalId of the stack. Otherwise,
* it will return something like "<hierarchicalId> (<stackName>)"
*/
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #454 +/- ##
=======================================
Coverage 79.18% 79.18%
=======================================
Files 54 54
Lines 6912 6912
Branches 772 773 +1
=======================================
Hits 5473 5473
Misses 1421 1421
Partials 18 18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: github-actions <[email protected]>
Fixes #448
Prior to #301 we were using both
stackName
anddisplayName
interchangably in different areas of the CLI. #301 chose to standardize tostackName
. This PR changes that todisplayName
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license