-
Notifications
You must be signed in to change notification settings - Fork 356
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
Fixed issues with 'Back' button on right size screen #5878
Fixed issues with 'Back' button on right size screen #5878
Conversation
I am okay with the changes, but I think we need a test for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix works fine, I've tested also in other screens (not just the one from the BZ) ❇️
And I agree with David that some test would be good to have :)
3cc063c
to
738562f
Compare
describe "#right_size" do | ||
before do | ||
stub_user(:features => :all) | ||
@vm = FactoryBot.create(:vm_vmware) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instance variables in rspec can tamper with other specs, please use this outside the before
block.
@vm = FactoryBot.create(:vm_vmware) | |
let!(:vm) { FactoryBot.create(:vm_vmware) } |
Multiple issues fixed with back button on non-explorer version of VM Right Size recommendations screen - fixed a typo it should be `@record.id` - fixed call to javascript_prologue, method does not expect argument - added code to redirect back to previous screen when back button is pressed Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1733207
738562f
to
3389bdd
Compare
Checked commit h-kataria@3389bdd with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed issues with 'Back' button on right size screen (cherry picked from commit a459a48) https://bugzilla.redhat.com/show_bug.cgi?id=1733207
Ivanchuk backport details:
|
Multiple issues fixed with back button on non-explorer version of VM Right Size recommendations screen
@record.id
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1733207
Note: This is only an issue when drilling down to list of VMs thru relationships and selecting a VM from a list view to view it's right size recommendations.
Please review @hstastna @skateman