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

Make /report_data protect @lastaction. Fix "No items were selected for XXXXX" #2784

Merged
merged 2 commits into from
Nov 21, 2017

Conversation

hstastna
Copy link

@hstastna hstastna commented Nov 21, 2017

The @lastaction is lost in /report_data due to a regression in
#2669

GTL should pass last action and last action should stay unchanged through the /report_data request.

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

Before:
retire1

After:
retire2

fixing https://bugzilla.redhat.com/show_bug.cgi?id=1514334

Add lastaction to ReportDataAdditionalOptions to fix retiring
VMs in Compute -> Infrastructure -> Virtual Machines.
@hstastna
Copy link
Author

@miq-bot add_label bug, gaprindashvili/yes

@martinpovolny martinpovolny self-assigned this Nov 21, 2017
@miq-bot miq-bot added the wip label Nov 21, 2017
@martinpovolny martinpovolny changed the title [WIP] Add lastaction to fix retiring VMs [WIP] Make /report_data protect @lastaction. Fix "No items were selected for XXXXX" Nov 21, 2017
@martinpovolny martinpovolny changed the title [WIP] Make /report_data protect @lastaction. Fix "No items were selected for XXXXX" Make /report_data protect @lastaction. Fix "No items were selected for XXXXX" Nov 21, 2017
@miq-bot miq-bot removed the wip label Nov 21, 2017
Add a spec test to check if @lastaction is set, for proper rendering the explorer.
@miq-bot
Copy link
Member

miq-bot commented Nov 21, 2017

Some comments on commits hstastna/manageiq-ui-classic@736d0df~...50bbe7f

spec/controllers/vm_infra_controller_spec.rb

  • ⚠️ - 22 - Detected expect_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.

@miq-bot
Copy link
Member

miq-bot commented Nov 21, 2017

Checked commits hstastna/manageiq-ui-classic@736d0df~...50bbe7f with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 🏆

@martinpovolny
Copy link
Member

This PR was green before a while. @hstastna fixed a whitespace issue but meanwhile master was broken.

The fail is unrelated --> Merging this PR anyway.

@martinpovolny martinpovolny merged commit e55eea0 into ManageIQ:master Nov 21, 2017
@martinpovolny martinpovolny added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 21, 2017
@ZitaNemeckova
Copy link
Contributor

Fixed https://bugzilla.redhat.com/show_bug.cgi?id=1514345 👍

@Ladas Ladas mentioned this pull request Nov 23, 2017
@hstastna
Copy link
Author

@simaishi can be this backported to Gaprindashvili? It fixes a lot of bugs so it would be good to do it asap. Thanks a lot!

simaishi pushed a commit that referenced this pull request Nov 27, 2017
Make /report_data protect @lastaction. Fix "No items were selected for XXXXX"
(cherry picked from commit e55eea0)

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

Gaprindashvili backport details:

$ git log -1
commit 65fdeaa85182a5ad411860334cec84890dfabad8
Author: Martin Povolny <[email protected]>
Date:   Tue Nov 21 17:08:30 2017 +0100

    Merge pull request #2784 from hstastna/Cannot_retire_VM
    
    Make /report_data protect @lastaction. Fix "No items were selected for XXXXX"
    (cherry picked from commit e55eea0935db2796a15d8be77042f484be3af63f)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1517842

@hstastna
Copy link
Author

hstastna commented Apr 6, 2018

@miq-bot add_label test

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.

5 participants