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

BZ#1525692-Hides console buttons when indicated by server sans message #1354

Merged

Conversation

AllenBW
Copy link
Member

@AllenBW AllenBW commented Jan 9, 2018

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

This work ensures we show a console message as a tooltip in the event one exists (you'll notice in both sui ss below, we indicate why cockpit is disabled)

When vnc is not selected in ops, we no longer see the option in sui

screen shot 2018-01-09 at 11 34 35 am

screen shot 2018-01-09 at 11 22 22 am

When vnc is selected in ops, we see the option in sui (you'll notice no tooltip, its only displayed when a message is present)

screen shot 2018-01-09 at 11 35 35 am

screen shot 2018-01-09 at 11 35 47 am

This work is related to https://bugzilla.redhat.com/show_bug.cgi?id=1532720

Shows console message in the event one exists, affects all sui supported consoles, vnc, cockpit
@himdel
Copy link
Contributor

himdel commented Jan 12, 2018

Before:

before

Now:

now

I think you may need to disable the menu dropdown if no item is visible...

@AllenBW
Copy link
Member Author

AllenBW commented Jan 12, 2018

@himdel given the scenario you described above, we now hide the console button when there is no visibility or message with either cockpit or console
screen shot 2018-01-12 at 9 05 15 am

If neither console nor cockpit is visible or has a message to display as to why the button is disabled, do not snow the access button
@miq-bot
Copy link
Member

miq-bot commented Jan 12, 2018

Checked commits AllenBW/manageiq-ui-service@9c12130~...9e413ff with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

Copy link
Contributor

@himdel himdel left a comment

Choose a reason for hiding this comment

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

LGTM, the button goes away when no services are available, and shows the message when present.

@himdel himdel merged commit d21f520 into ManageIQ:master Jan 12, 2018
@himdel himdel added this to the Sprint 77 Ending Jan 15, 2018 milestone Jan 12, 2018
@AllenBW AllenBW deleted the bug/master/#1525692-unclear-console-support branch January 12, 2018 14:28
simaishi pushed a commit that referenced this pull request Jan 12, 2018
…sole-support

BZ#1525692-Hides console buttons when indicated by server sans message
(cherry picked from commit d21f520)

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

Gaprindashvili backport details:

$ git log -1
commit 45732ad2657815d558bc033b8d7069c45c62aa0c
Author: Martin Hradil <[email protected]>
Date:   Fri Jan 12 15:23:57 2018 +0100

    Merge pull request #1354 from AllenBW/bug/master/#1525692-unclear-console-support
    
    BZ#1525692-Hides console buttons when indicated by server sans message
    (cherry picked from commit d21f520406b74667614cd284afee9d59f0fd17c2)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1533935

@simaishi
Copy link
Contributor

@AllenBW There are conflicts backporting to Fine branch. Can you please create a PR for Fine branch?

@AllenBW
Copy link
Member Author

AllenBW commented Jan 15, 2018

@simaishi BUMMER! thanks for checking! will make this happen immediately.

AllenBW added a commit to AllenBW/manageiq-ui-service that referenced this pull request Jan 15, 2018
AllenBW added a commit to AllenBW/manageiq-ui-service that referenced this pull request Jan 15, 2018
AllenBW added a commit to AllenBW/manageiq-ui-service that referenced this pull request Jan 17, 2018
AllenBW added a commit to AllenBW/manageiq-ui-service that referenced this pull request Jan 17, 2018
@simaishi
Copy link
Contributor

Backported to Fine via #1359

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