-
Notifications
You must be signed in to change notification settings - Fork 4k
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(cloudwatch): automatic metric math label cannot be suppressed #17639
Merged
+100
−7
Merged
Changes from 4 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5e14fbf
fix(cloudwatch): allow empty label im a math expression
NetaNir 885eecb
english
NetaNir 461487e
update tests
NetaNir 79d0982
i never liked this linter anyway
NetaNir c2bf6c7
emoty string
NetaNir cc97964
Merge branch 'neta/allow-empty-label' of github.com:aws/aws-cdk into …
NetaNir 147c399
revert test
NetaNir b6f0856
scope test
NetaNir d1d6760
Merge branch 'master' into neta/allow-empty-label
NetaNir 21455ac
Merge remote-tracking branch 'origin/master' into neta/allow-empty-label
rix0rrr be3c016
Update docs
rix0rrr 5d7c26c
Change implementation a bit
rix0rrr 65269f8
Also explain dynamic labels in the README
rix0rrr 598b6a8
Fix compilation of example
rix0rrr 5d104f7
Fix another example compilation failure
rix0rrr d378bcc
Merge branch 'master' into neta/allow-empty-label
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If we change the default here, won't customers be surprised that their stacks have changed upon update? That seems problematic for a stable module.
Instead of omitting the label entirely, can you set
label = ''
? To me, that seems to follow the cloudformation docs of explicitly setting the label to 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 would argue that the current default behavior is unexpected, but I see your point about the stability of the API and limiting the change to a specific input
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 like Neta's behavior better, actually, so I would recommend doing that. My apologies for implementing the original thing (shittily).
If we are concerned about introducing unexpected changes, I would recommend going with a feature flag instead.