Add interactive rollback command#1766
Open
SebastianSzturo wants to merge 1 commit intobasecamp:mainfrom
Open
Conversation
When running 'kamal rollback' without a version argument, present an
interactive menu showing recent deployments with relative timestamps:
Rollback to deployment from:
1) 15 minutes ago (8b71ff79378b)
2) 28 minutes ago (2b97f624d657)
3) about an hour ago (faed64ff269f)
Pick: [1]
Defaults to the most recent version. Direct rollback via argument or
--version flag continues to work as before.
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.
Based on @dhh’s suggestion (#621 (comment)), this PR improves the kamal rollback UX, specially for the “oh no, roll back now” moments.
What changed
When running kamal rollback without a version argument, Kamal now shows an interactive picker of recent deployments with relative timestamps:
Why
This reduces the cognitive load (and likelihood of mistakes) when rolling back under pressure by making the “recent known-good” options easy to identify and select.