-
Notifications
You must be signed in to change notification settings - Fork 816
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
fix: apply tags on create and push nested stack #6321
Conversation
This pull request introduces 1 alert when merging 010e6c0 into 091e148 - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #6321 +/- ##
=======================================
Coverage 57.12% 57.12%
=======================================
Files 471 471
Lines 21554 21554
Branches 4066 4066
=======================================
Hits 12313 12313
Misses 8381 8381
Partials 860 860 Continue to review full report at Codecov.
|
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, one change only to not to reimplement object comparison.
if (allResources.filter(resource => resource.category === 'provider').length === 0) { | ||
tagsUpdated = false; | ||
} | ||
const tagsUpdated = compareTags(stateManager.getProjectTags(), stateManager.getCurrentProjectTags()); |
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.
No need for compareTags
just use _.isEqual
This pull request introduces 1 alert when merging acc516c into 8cc85d0 - view on LGTM.com new alerts:
|
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available:
Description of changes:
The goal of this PR is to apply tags when the rootstack is initialized
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.