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

UI changes to show options as disabled if those are not supported. #2908

Conversation

h-kataria
Copy link
Contributor

This PR uses changes from backend in ManageIQ/manageiq#16559 to determine whether options in the drop down should be available or disabled based upon results returned in hash by backend method.

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

before all options were always available:
before

after:
after

@mkanoor please test/review.

@dclarizio please review, this PR depends upon core PR ManageIQ/manageiq#16559

This PR uses changes from backend in ManageIQ/manageiq#16559 to determine whether options in the drop down should be available or disabled based upon results returned in hash by backend method.

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

mkanoor commented Dec 1, 2017

@h-kataria Tested looks good.

@miq-bot
Copy link
Member

miq-bot commented Dec 2, 2017

Checked commit h-kataria@449896b with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 3 offenses detected

app/views/catalog/_st_form.html.haml

  • ⚠️ - Line 12 - Space missing inside }.
  • ⚠️ - Line 14 - Favor unless over if for negative conditions.
  • ⚠️ - Line 14 - Space missing inside }.

@dclarizio dclarizio merged commit 19ecd2e into ManageIQ:master Dec 4, 2017
@dclarizio dclarizio added this to the Sprint 75 Ending Dec 11, 2017 milestone Dec 4, 2017
@simaishi
Copy link
Contributor

simaishi commented Dec 4, 2017

Marking as gaprindashvili/coflict for now, as the core change which this PR depends on isn't merged yet.

@dclarizio
Copy link

@simaishi thanks Satoe . . . I somehow missed the pending label, but you can just backport once the other PR gets merged.

@himdel
Copy link
Contributor

himdel commented Dec 6, 2017

This is currently breaking creation of new catalog items :(.

Is the backend PR coming soon? :)

@agrare
Copy link
Member

agrare commented Dec 11, 2017

@simaishi @himdel @dclarizio Core PR and all provider PRs have been merged and marked gaprindashvili/yes

simaishi pushed a commit that referenced this pull request Dec 11, 2017
…sabled_catalog_item_types_in_drop_down

UI changes to show options as disabled if those are not supported.
(cherry picked from commit 19ecd2e)

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

Gaprindashvili backport details:

$ git log -1
commit 6cf7b718e28e84fd55d83067e4f3b9b8b3f28321
Author: Dan Clarizio <dclarizi@redhat.com>
Date:   Mon Dec 4 08:58:11 2017 -0800

    Merge pull request #2908 from h-kataria/use_backend_method_to_show_disabled_catalog_item_types_in_drop_down
    
    UI changes to show options as disabled if those are not supported.
    (cherry picked from commit 19ecd2e91c4387f077ceb3f70f54e162d4b14ed6)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1520613

@h-kataria h-kataria deleted the use_backend_method_to_show_disabled_catalog_item_types_in_drop_down branch January 12, 2018 21:51
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.

None yet

7 participants