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

Do not show record's info when status of record is not completed #2801

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

karelhala
Copy link
Contributor

Fixes error when navigating to not yet finished report

When queuing new report in CI -> reports, and the report is not yet finished it will throw nasty error. This PR fixes such issue and won't allow users to do changes to such report unless it's finished.

UI changes

Before

screenshot from 2017-11-22 15-31-50

After

screenshot from 2017-11-22 15-28-05

BZ

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

@karelhala
Copy link
Contributor Author

@miq-bot assign @martinpovolny
@miq-bot add_label bug, gaprindashvili/yes
@skateman please review and test.

:javascript
miq_tabs_init('#rep_tabs', '/report/rep_change_tab');
- if @report.nil?
= render :partial => 'layouts/info_msg', :locals => {:message => _("No Reports available.")}
Copy link
Member

Choose a reason for hiding this comment

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

screenshot from 2017-11-22 17-19-55

@skateman
Copy link
Member

@karelhala your fix causes a regression at the queued node's parent.

Before:
screenshot from 2017-11-23 19-08-17

After:
screenshot from 2017-11-23 19-08-00

@miq-bot
Copy link
Member

miq-bot commented Nov 24, 2017

Checked commit karelhala@5848705 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

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

The Seal of Approval

@martinpovolny martinpovolny merged commit 00c69cc into ManageIQ:master Nov 24, 2017
@martinpovolny martinpovolny added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 24, 2017
simaishi pushed a commit that referenced this pull request Nov 27, 2017
Do not show record's info when status of record is not completed
(cherry picked from commit 00c69cc)

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

Gaprindashvili backport details:

$ git log -1
commit 9eb4b6d4bea4b4eb3326e5b966660c5b00eeb630
Author: Martin Povolny <mpovolny@redhat.com>
Date:   Fri Nov 24 17:23:06 2017 +0100

    Merge pull request #2801 from karelhala/savedReport
    
    Do not show record's info when status of record is not completed
    (cherry picked from commit 00c69cc3699684104fffce28da48e7462f371deb)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1517942

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