24679550 Horizon Edit flavor should point to Flavor information
authorBrian Reitz <Brian.Reitz@Oracle.COM>
Wed, 21 Sep 2016 09:01:17 -0700
changeset 6949 1a4ab4022bac
parent 6946 489c678d5f7c
child 6950 b14572a6af9b
24679550 Horizon Edit flavor should point to Flavor information
components/openstack/horizon/patches/20-launchpad-1600062.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/openstack/horizon/patches/20-launchpad-1600062.patch	Wed Sep 21 09:01:17 2016 -0700
@@ -0,0 +1,40 @@
+Backport of upstream patch to address
+https://bugs.launchpad.net/horizon/+bug/1600062
+The fix first appears in newton-2.
+
+fixed by Change-Id:  I45a4097413e8e5154350459d15e2f45b61f811a8
+
+commit fc02a0207da0f3bdfce023789009fc2c529a5bee
+Author: [email protected] <[email protected]>
+Date:   Fri Jul 8 00:25:30 2016 +0000
+
+    Modify "Edit Flavor" action
+
+    Reproduce:
+    1 Open Admin/Flavors
+    2 Click "Edit Flavor" in the table list actions
+
+    Expected result:
+    Open "Flavor Information" tab.
+
+    Actual result:
+    Open "Flavor Access" tab.
+
+    Change-Id: I45a4097413e8e5154350459d15e2f45b61f811a8
+    Closes-Bug: #1600062
+
+--- horizon-9.0.1/openstack_dashboard/dashboards/admin/flavors/tables.py.orig	2016-09-16 10:28:54.006726137 +0000
++++ horizon-9.0.1/openstack_dashboard/dashboards/admin/flavors/tables.py	2016-09-16 10:29:38.550645259 +0000
[email protected]@ -64,6 +64,12 @@ class UpdateFlavor(tables.LinkAction):
+     classes = ("ajax-modal",)
+     icon = "pencil"
+ 
++    def get_link_url(self, flavor):
++        step = 'update_info'
++        base_url = reverse(self.url, args=[flavor.id])
++        param = urlencode({"step": step})
++        return "?".join([base_url, param])
++
+ 
+ class UpdateMetadata(tables.LinkAction):
+     name = "update_metadata"