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

MiqPolicy - remove form buttons when cancelling a form or sucessfully saving/adding #3462

Merged
merged 2 commits into from
Feb 26, 2018
Merged

MiqPolicy - remove form buttons when cancelling a form or sucessfully saving/adding #3462

merged 2 commits into from
Feb 26, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Feb 23, 2018

Go to any accordion under Control > Explorer (all of them),
Configure > Add a new $thing,
Cancel (or sucessfully save)

Before: you will see the Add/Cancel buttons hanging around on the "list" screen
After: no add/cancel buttons


Done so explicitly by passing :remove_form_buttons => true to replace_right_cell.

Not seeing any previous mechanism to handle this in miq_policy, the handle_bottom_cell mechanism used elsewhere doesn't work when transitiononing to a non-GTL screen.

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

… saving/adding

explicitly by passing `:remove_form_buttons => true` to `replace_right_cell`

not seeing any previous mechanism to handle this in miq_policy,
the `handle_bottom_cell` mechanism used elsewhere doesn't work when transitiononing to a non-GTL screen

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1530971
purely to make rubocop happy :)

```
%s/\(:replace_trees => \)\[:/\1%i(/
%s/\(%i([^)]\+\)]/\1)/

%s/\(%i([^)]\+\)[,:]/\1/g
%s/\(%i([^)]\+\)[,:]/\1/g
%s/\(%i([^)]\+\)[,:]/\1/g
%s/\(%i([^)]\+\)[,:]/\1/g
```

+ 2 manually (`:replace_trees.*?.*:`)
@miq-bot
Copy link
Member

miq-bot commented Feb 23, 2018

Some comments on commits https://github.com/himdel/manageiq-ui-classic/compare/6ff65d861c37fd3e44b4f8c633b8992431879edf~...8a739359cf15684ea2e779b4d70f299930005801

app/controllers/miq_policy_controller/policy_profiles.rb

  • ⚠️ - 61 - Detected pp. Remove all debugging statements.

@miq-bot
Copy link
Member

miq-bot commented Feb 23, 2018

Checked commits https://github.com/himdel/manageiq-ui-classic/compare/6ff65d861c37fd3e44b4f8c633b8992431879edf~...8a739359cf15684ea2e779b4d70f299930005801 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
8 files checked, 0 offenses detected
Everything looks fine. 🍪

@mzazrivec mzazrivec self-assigned this Feb 26, 2018
@mzazrivec mzazrivec added this to the Sprint 80 Ending Feb 26, 2018 milestone Feb 26, 2018
@mzazrivec mzazrivec merged commit 27a3e2a into ManageIQ:master Feb 26, 2018
@himdel himdel deleted the policy-footer-bz1530971 branch February 26, 2018 15:11
simaishi pushed a commit that referenced this pull request Mar 8, 2018
MiqPolicy - remove form buttons when cancelling a form or sucessfully saving/adding
(cherry picked from commit 27a3e2a)

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

simaishi commented Mar 8, 2018

Gaprindashvili backport details:

$ git log -1
commit dcf761e513b02e449c5df594820efb8d7520f814
Author: Milan Zázrivec <[email protected]>
Date:   Mon Feb 26 15:57:26 2018 +0100

    Merge pull request #3462 from himdel/policy-footer-bz1530971
    
    MiqPolicy - remove form buttons when cancelling a form or sucessfully saving/adding
    (cherry picked from commit 27a3e2a623630ebb8d4b2f44b9691243562d1491)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1553317

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