feat(deployment): replace redeploy with a "Run again" action on the deployment detail page - #2866
Merged
Merged
Conversation
The Redeploy button on the deployment detail page previously redeployed the whole environment. It now scopes the redeploy to the exact set of services that were part of the viewed deployment, by threading the deployment's deploymentHistory into EnvironmentActionToolbar and calling deployAllServices with a DeployAllRequest built from those services. When no deploymentHistory is provided (other toolbar usages), the whole-environment deploy behavior is unchanged.
|
View your CI Pipeline Execution ↗ for commit 3131e48
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## staging #2866 +/- ##
===========================================
- Coverage 49.58% 46.41% -3.18%
===========================================
Files 850 486 -364
Lines 21162 12741 -8421
Branches 6375 3908 -2467
===========================================
- Hits 10494 5914 -4580
+ Misses 8898 5792 -3106
+ Partials 1770 1035 -735
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ent detail The deployment detail page now replays the deployment's original action (deploy/restart/stop/uninstall/delete) scoped to that deployment's services, via a "Run again" button, instead of redeploying the whole environment. Reverts the interim scoped-redeploy change to the shared environment toolbar.
RemiBonnet
approved these changes
Aug 13, 2026
…deployment detail The deployment detail action is now a single context-aware button — Cancel while a deployment is in progress, Run again once finished; Run again replays the deployment's original action (deploy/restart/stop/uninstall/delete) scoped to its services, defaulting to a deploy replay for unmapped actions; renamed RunAgainButton → DeploymentActionButton.
… defaulting to deploy per review discussion, unmapped trigger actions (terraform ops, DELETE_RESOURCES_ONLY, unknown) leave the Run again button disabled rather than falling back to a deploy replay.
Member
|
🎉 This PR is included in version 1.337.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
From the Slack thread: on a deployment's detail page, the deploy action redeployed the whole environment instead of the deployment being viewed, and the fixed "Deploy"/"Redeploy" wording was misleading since a deployment-history item can represent other actions (stop, restart, …).
Change
The deployment detail page now shows a single context-aware action button:
deploymentHistory.stages[].services[].identifier).Run again maps the deployment's
trigger_actionto the matching bulk, service-scoped action:trigger_actionDEPLOY,DEPLOY_DRY_RUNdeployAllServices)RESTARTrestartAllServices— applications/containers/databases only, per the API)STOPstopAllServices)UNINSTALLuninstallAllServices)DELETEdeleteAllServices)For any other action type, Run again is disabled.
Behavior details:
arrow-rotate-rightis used for Run again (instead of the deploy-implyingrotate-right),xmarkfor Cancel.Files
libs/domains/environment-logs/feature/src/lib/deployment-action-button/deployment-action-button.tsx— new context-aware button (renamed fromrun-again-button).libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.tsx— renders it on the deployment detail page.libs/domains/services/feature/src/index.ts— exports theuseDeployAllServices/useUninstallAllServiceshooks (were not exported from the barrel).deployment-action-button.spec.tsx— unit tests for the cancel/run-again toggle, the action mapping, and the destructive/cancel confirmations.Notes
codecov/projectmay show a coverage delta driven by CI's affected-only coverage upload ("HEAD has 1 upload less than BASE"), not a real regression from this change.