Skip to content
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

Add support for rollback of group upgrade rollback (RhBug:2016070) #1852

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

jan-kolarik
Copy link
Member

Support for group upgrade rollback was already added in #1844.

This fix enables also undoing the rollback transaction.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2016070.

@pkratoch
Copy link
Contributor

It took me some time to figure out why should "Upgrade" and "Upgraded" (and "Downgrade" and "Downgraded") be treated the same for groups and environments. For packages, it's different, because there are the two versions and you want to erase one and install the other, but groups don't have versions, so this distinction doesn't make sense. It's always saved as "Upgrade" and "Downgrade", but it can be switched to "Downgraded" and "Upgraded" when making reverse transaction or it can stay as "Upgrade" or "Downgrade" when redoing the same transaction, so the action can be in both forms. It's not nice, but I think making the change here is the best option. However, can you add a comment either to the code or to the commit message explaining what's going on?

@jan-kolarik jan-kolarik force-pushed the jkolarik/group-upgrade-rollback-2 branch from b022428 to c377f4f Compare September 13, 2022 11:55
@jan-kolarik
Copy link
Member Author

@pkratoch Thanks for the review. I've added comments into the code, hope it is more clear now.

@pkratoch pkratoch merged commit e027e02 into master Sep 21, 2022
@pkratoch pkratoch deleted the jkolarik/group-upgrade-rollback-2 branch September 21, 2022 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants