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

Fixed container provider custom button dialog redirect. #5869

Merged

Conversation

Hyperkid123
Copy link
Contributor

@Hyperkid123 Hyperkid123 commented Jul 25, 2019

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

After submit/cancel container provider dialog triggered with custom button, user was redirected to infra provider screen. He should have been redirected back from where the dialog was open (container provider detail)

Cause

  • missing branch for ContainerManager class

Changes

  • added extra case for ContainerManager class in determine_api_endpoints method.

@Hyperkid123
Copy link
Contributor Author

@miq-bot add-label bug
@miq-bot assign @h-kataria

@miq-bot
Copy link
Member

miq-bot commented Jul 25, 2019

Checked commit Hyperkid123@15f7d08 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@mzazrivec mzazrivec assigned mzazrivec and unassigned h-kataria Jul 25, 2019
@mzazrivec mzazrivec added this to the Sprint 117 Ending Aug 5, 2019 milestone Jul 25, 2019
@mzazrivec mzazrivec merged commit 7059285 into ManageIQ:master Jul 25, 2019
@Hyperkid123 Hyperkid123 deleted the fix-emx-container-dialog-redirect branch July 25, 2019 11:06
simaishi pushed a commit that referenced this pull request Jul 25, 2019
…direct

Fixed container provider custom button dialog redirect.

(cherry picked from commit 7059285)

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

Ivanchuk backport details:

$ git log -1
commit 7f2d89105a339b82677c8b515f19cde018fb1124
Author: Milan Zázrivec <[email protected]>
Date:   Thu Jul 25 12:39:28 2019 +0200

    Merge pull request #5869 from Hyperkid123/fix-emx-container-dialog-redirect
    
    Fixed container provider custom button dialog redirect.
    
    (cherry picked from commit 705928522644c1adec4fc63bd94b57869b4085d3)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1732489

@simaishi
Copy link
Contributor

Backporting to hammer branch conflicts. Please create a separate PR for hammer branch.

 54     when /ExtManagementSystem/
 55       api_collection_name = "providers"
 56 <<<<<<< HEAD
 57       cancel_endpoint = obj.class.name.demodulize == "CloudManager" ? "/ems_cloud" : "/ems_infra"
 58 =======
 59       class_name = obj.class.name.demodulize
 60       cancel_endpoint =
 61         case class_name
 62         when "CloudManager"
 63           "/ems_cloud"
 64         when "NetworkManager"
 65           "/ems_networks"
 66         when "CinderManager"
 67           "/ems_block_storage"
 68         when "SwiftManager"
 69           "/ems_object_storage"
 70         when "ContainerManager"
 71           "/ems_container/#{obj.id}"
 72         else
 73           "/ems_infra"
 74         end
 75 >>>>>>> 705928522... Merge pull request #5869 from Hyperkid123/fix-emx-container-dialog-redirect

@simaishi
Copy link
Contributor

simaishi commented Aug 1, 2019

@Hyperkid123 ^ Just want to make sure you're aware of this...

@Hyperkid123
Copy link
Contributor Author

@simaishi oh sorry i did not get notified (or i missed it)

simaishi pushed a commit that referenced this pull request Aug 16, 2019
…direct

Fixed container provider custom button dialog redirect.

(cherry picked from commit 7059285)

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

Hammer backport details:

$ git log -1
commit c55d6f00da830327d5dd00f36c631c0105be2c06
Author: Milan Zázrivec <[email protected]>
Date:   Thu Jul 25 12:39:28 2019 +0200

    Merge pull request #5869 from Hyperkid123/fix-emx-container-dialog-redirect
    
    Fixed container provider custom button dialog redirect.
    
    (cherry picked from commit 705928522644c1adec4fc63bd94b57869b4085d3)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1733376

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