-
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(applicationautoscaling): typo in DYANMODB_WRITE_CAPACITY_UTILIZATION
#18085
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e45de20
fix(applicationautoscaling): typo in `DYANMODB_WRITE_CAPACITY_UTILIZ…
jumic 1152801
change enum order
jumic ba580b8
Merge branch 'master' into applicationautoscaling-typo
jumic 037587f
Merge branch 'master' into applicationautoscaling-typo
jumic c8edef4
introduce dummy value for new enum value
jumic fc7b252
optimize test (change to `toHaveResourceLike`)
jumic 7f0e76d
Merge branch 'master' into applicationautoscaling-typo
comcalvi 505802b
add comment to enum, optimize test
jumic 46418fb
Merge branch 'master' into applicationautoscaling-typo
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.
The new property needs to be above the deprecated property (see #17731 for details).
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.
Changed as proposed.
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.
@comcalvi Do you have any ideas how I could fix the build error? Value
DYANMODB_WRITE_CAPACITY_UTILIZATION
was not removed. Is there something wrong with the validation? Thanks.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.
@jumic I was mistaken about the effects of the above-mentioned jsii bug. It turns out that because only the first enum member is accepted, the second one is entirely removed from the jsii assembly, which is equivalent to deleting it; this results in a breaking change.
The only way to truly fix this is to give the new enum a dummy value that will be replaced by the correct value whenever it's used. We can do this as follows:
DYNAMODB_WRITE_CAPACITY_UTILIZATION
to a dummy value, something like'DynamoDBWriteCapacityUtilization-dummy'
.if
statement or ternary operator, preferably) to find the dummy value and replace it with the correct value (whichDYANMODB_WRITE_CAPACITY_UTILIZATION
will have).Would you be willing to make those changes? It's totally fine if you're not, this is a good bit more work than this change should be.
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.
@comcalvi Thanks, this fixed the build.
I also added a test case for this special logic. I hope this is okay.