-
Notifications
You must be signed in to change notification settings - Fork 356
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
Fixed container provider custom button dialog redirect. #5869
Conversation
@miq-bot add-label bug |
Checked commit Hyperkid123@15f7d08 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
…direct Fixed container provider custom button dialog redirect. (cherry picked from commit 7059285) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1732489
Ivanchuk backport details:
|
Backporting to 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 |
@Hyperkid123 ^ Just want to make sure you're aware of this... |
@simaishi oh sorry i did not get notified (or i missed it) |
…direct Fixed container provider custom button dialog redirect. (cherry picked from commit 7059285) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1733376
Hammer backport details:
|
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
ContainerManager
classChanges
ContainerManager
class indetermine_api_endpoints
method.