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

Select active snapshot instead of the last one in the snapshots 🌳 #6103

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

skateman
Copy link
Member

In the snapshots tree for VMs the last tree node is not always the active snapshot. Therefore, I had to alter the logic of the selected node evaluation to select the active snapshot instead of the last one. It's testing the node's text for the (Active) suffix, which is not ideal. However, this is a fix to be backported and a more cleaner change would require a lot of risky changes in the codebase.

@miq-bot add_reviewer @h-kataria
@miq-bot add_label bug, trees, ivanchuk/yes
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1745065

@miq-bot
Copy link
Member

miq-bot commented Aug 27, 2019

Checked commit skateman@233d563 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@skateman
Copy link
Member Author

@miq-bot assign @h-kataria

Copy link
Contributor

@h-kataria h-kataria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified in UI

@h-kataria h-kataria added this to the Sprint 120 Ending Sep 16, 2019 milestone Sep 5, 2019
@h-kataria h-kataria merged commit 7de5d52 into ManageIQ:master Sep 5, 2019
@skateman skateman deleted the active-snapshot-select branch September 5, 2019 15:12
simaishi pushed a commit that referenced this pull request Feb 21, 2020
Select active snapshot instead of the last one in the snapshots 🌳

(cherry picked from commit 7de5d52)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1805803
@simaishi
Copy link
Contributor

Ivanchuk backport details:

$ git log -1
commit 7dd5016c347d4588980e5c66e0f679d2a406d16d
Author: Harpreet Kataria <[email protected]>
Date:   Thu Sep 5 11:05:01 2019 -0400

    Merge pull request #6103 from skateman/active-snapshot-select

    Select active snapshot instead of the last one in the snapshots 🌳

    (cherry picked from commit 7de5d523f8dbfbf71488345bd01493010479caa0)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants