-
Notifications
You must be signed in to change notification settings - Fork 365
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
Provide an easy command for "Rollback to commit" #2343
Comments
Agree the functionality is important - having a way to force my branch state to a specific point in time. |
I Agree, We must have this functionality. |
I think we have the correct data model to structure this nicely. Here's a suggestion:
The benefit is that with these 3 steps, it becomes reversible. I can stash my changes, rollback, and then undo both by rolling-forward (?) to the original newer commit, and then un-stashing the staged changes. Edit: Since |
Absolutely needed functionality. I strongly suggest not introducing the term "rollback". I would add this to the |
This issue is now marked as stale after 90 days of inactivity, and will be closed soon. To keep it, mark it with the "no stale" label. |
@N-o-Z notice this issue |
Lol, good catch of the new workflow 😂 |
This issue is now marked as stale after 90 days of inactivity, and will be closed soon. To keep it, mark it with the "no stale" label. |
Current Status
We have 2 commands that can be used to achieve rollback to a last known good commit.
If a user simply wants to move the HEAD of the branch to a specific commit, she needs to first revert uncommitted, then traverse the tree (in the right reversed order!) and apply revert on all commits along the way (and account for merges, which are trickier).
Desired Status
lakectl branch rollback lakefs://example-repo/example-branch <commithash>
will clear the staging area ofexample-branch
and point the HEAD of it to<commithash>
.Possible solution: Use tags, tag the previous HEAD of
example-branch
withexample-branch-rollback-<time>
, so that it's easier to undo such operations. Commits are still dangling and could be picked up by retention (with garbage collection rules), but that is expected and the grace period for such actions is determined by the user.The text was updated successfully, but these errors were encountered: