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

Switch to Advanced tab when only error is "Request is required" #5873

Merged
merged 4 commits into from
Aug 7, 2019

Conversation

ZitaNemeckova
Copy link
Contributor

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

Go to Automation -> Automate -> Customization -> Buttons -> Configuration -> Add/Edit a Button -> make sure Request in Advanced tab is empty and Text, Hover Text, Icon in Options are set -> click Add/Save

First commit fixes the bug, other commits just clean around a bit.

Before:
Screenshot 2019-07-25 at 14 13 34

After:
Screenshot 2019-07-25 at 14 13 16

@miq-bot add_label bug, automation/automate, ivanchuk/yes, hammer/yes

@h-kataria please have a look, thanks :)

@ZitaNemeckova
Copy link
Contributor Author

@h-kataria Fixed. Please re-review, thanks :)

@h-kataria
Copy link
Contributor

@ZitaNemeckova minor issue found,
Add a new button, enter some text, hover text, choose a button icon, press Add button, this will show a flash message "Request is required" and make Advacned tab active. Now press "Define Expression" button this will switch tab back to "Options" tab, user should remain on "Advanced" tab after Define Expression is pressed

@ZitaNemeckova
Copy link
Contributor Author

@h-kataria I cannot reproduce it :/ For me it stays on Advanced tab.

@romanblanco
Copy link
Member

@ZitaNemeckova minor issue found,
Add a new button, enter some text, hover text, choose a button icon, press Add button, this will show a flash message "Request is required" and make Advacned tab active. Now press "Define Expression" button this will switch tab back to "Options" tab, user should remain on "Advanced" tab after Define Expression is pressed

@ZitaNemeckova, the same happens to me

@ZitaNemeckova
Copy link
Contributor Author

@romanblanco @h-kataria sorry my local branch and this PR were not in sync. I pushed my changes and now it should work well.

Copy link
Member

@romanblanco romanblanco left a comment

Choose a reason for hiding this comment

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

Tested, works 👍

@h-kataria
Copy link
Contributor

@ZitaNemeckova test failures look related to changes in this PR

@miq-bot
Copy link
Member

miq-bot commented Aug 7, 2019

Checked commits ZitaNemeckova/manageiq-ui-classic@a0760fc~...47b25af with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@h-kataria h-kataria self-assigned this Aug 7, 2019
@h-kataria h-kataria added this to the Sprint 118 Ending Aug 19, 2019 milestone Aug 7, 2019
@h-kataria h-kataria merged commit 88b4b54 into ManageIQ:master Aug 7, 2019
simaishi pushed a commit that referenced this pull request Aug 7, 2019
Switch to Advanced tab when only error is "Request is required"

(cherry picked from commit 88b4b54)

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

simaishi commented Aug 7, 2019

Ivanchuk backport details:

$ git log -1
commit 907631a0294372ae6f50eba735a349b81f2b3caa
Author: Harpreet Kataria <[email protected]>
Date:   Wed Aug 7 11:41:32 2019 -0400

    Merge pull request #5873 from ZitaNemeckova/fix_cb_tabs
    
    Switch to Advanced tab when only error is "Request is required"
    
    (cherry picked from commit 88b4b54e8c037eab2114233538f45eedcf7e6520)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1717843

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.

6 participants