-
Notifications
You must be signed in to change notification settings - Fork 38
fix(toolkit-lib): remove deprecated DeployOptions.force
in favor of more specific options
#315
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
@@ -27,7 +27,7 @@ export function buildParameterMap(parameters?: Map<string, string | undefined>): | |||
/** | |||
* Remove the asset publishing and building from the work graph for assets that are already in place | |||
*/ | |||
export async function removePublishedAssets(graph: WorkGraph, deployments: Deployments, options: DeployOptions) { | |||
export async function removePublishedAssetsFromWorkGraph(graph: WorkGraph, deployments: Deployments, options: DeployOptions) { |
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 name just confused me. The function does not actually remove the assets, it just removes the upload job from the work graph.
… multiple more specific options - Rename `force` option to more descriptive `forceDeployment` for clarity - Add new `forceAssetPublishing` option to control asset publishing separately - Add `orphanFailedResourcesDuringRollback` option for better rollback control - Rename `removePublishedAssets` to `removePublishedAssetsFromWorkGraph` for clarity - Update tests and implementation to use the new parameter names - Improve documentation for deployment options BREAKING CHANGE: The deprecated `force` option on `DeployOptions` has been removed. The removed option originally caused multiple different "force" actions. Each action now has a more targeted alternative. To force a deployment even if the CDK Toolkit has not detected any changes, use `forceDeployment`. To force re-publishing of previously published assets, use `forceAssetPublishing`. To force failing resource being orphaned during a rollback, use `orphanFailedResourcesDuringRollback`. To implement interactive confirmation of rollbacks during a deployment, react to the message request with code `CDK_TOOLKIT_I5050` in your `IoHost`.
019afa8
to
c7d34a4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #315 +/- ##
==========================================
- Coverage 85.58% 85.57% -0.02%
==========================================
Files 223 223
Lines 37002 36989 -13
Branches 4493 4469 -24
==========================================
- Hits 31668 31652 -16
- Misses 5233 5239 +6
+ Partials 101 98 -3
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:
|
force
in DeployOptions
in favor of more specific alternativesDeployOptions.force
in favor of more specific options
force
option to more descriptiveforceDeployment
for clarityforceAssetPublishing
option to control asset publishing separatelyorphanFailedResourcesDuringRollback
option for better rollback controlremovePublishedAssets
toremovePublishedAssetsFromWorkGraph
for clarityBREAKING CHANGE: The deprecated
force
option onDeployOptions
has been removed. The removed option originally caused multiple different "force" actions. Each action now has a more targeted alternative. To force a deployment even if the CDK Toolkit has not detected any changes, useforceDeployment
. To force re-publishing of previously published assets, useforceAssetPublishing
. To force failing resource being orphaned during a rollback, useorphanFailedResourcesDuringRollback
. To implement interactive confirmation of rollbacks during a deployment, react to the message request with codeCDK_TOOLKIT_I5050
in yourIoHost
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license