Reorganize Admin dashboard menus

Admin dashboard shows too many panels now.
This commit introduces panel groups for Admin dashboard
as we do for Project dashboard.

The new order of admin panel groups are:
Compute, Volume, Network and System.

Note that the slug of "System" panel group is not changed
to avoid breaking horizon plugins which register panels to
Admin System panel group.

Implements blueprint reorganize-admin-dashboard
Change-Id: I533e60f7cbfab2539b9f8aa7044f7234165f2518
This commit is contained in:
Akihiro Motoki 2017-03-11 22:59:27 +00:00
parent b091fb8016
commit c83a38f18e
20 changed files with 50 additions and 12 deletions

View File

@ -15,7 +15,7 @@ PANEL = 'overview'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'default'
# If set, it will update the default panel of the PANEL_DASHBOARD. # If set, it will update the default panel of the PANEL_DASHBOARD.
DEFAULT_PANEL = 'overview' DEFAULT_PANEL = 'overview'

View File

@ -0,0 +1,8 @@
from django.utils.translation import ugettext_lazy as _
# The slug of the panel group to be added to HORIZON_CONFIG. Required.
PANEL_GROUP = 'compute'
# The display name of the PANEL_GROUP. Required.
PANEL_GROUP_NAME = _('Compute')
# The slug of the dashboard the PANEL_GROUP associated with. Required.
PANEL_GROUP_DASHBOARD = 'admin'

View File

@ -3,7 +3,7 @@ PANEL = 'hypervisors'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'compute'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = ('openstack_dashboard.dashboards.admin.' ADD_PANEL = ('openstack_dashboard.dashboards.admin.'

View File

@ -3,7 +3,7 @@ PANEL = 'aggregates'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'compute'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = 'openstack_dashboard.dashboards.admin.aggregates.panel.Aggregates' ADD_PANEL = 'openstack_dashboard.dashboards.admin.aggregates.panel.Aggregates'

View File

@ -3,7 +3,7 @@ PANEL = 'instances'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'compute'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = 'openstack_dashboard.dashboards.admin.instances.panel.Instances' ADD_PANEL = 'openstack_dashboard.dashboards.admin.instances.panel.Instances'

View File

@ -18,7 +18,7 @@ PANEL = 'flavors'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'compute'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = 'openstack_dashboard.dashboards.admin.flavors.panel.Flavors' ADD_PANEL = 'openstack_dashboard.dashboards.admin.flavors.panel.Flavors'

View File

@ -3,7 +3,7 @@ PANEL = 'images'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'compute'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = 'openstack_dashboard.dashboards.admin.images.panel.Images' ADD_PANEL = 'openstack_dashboard.dashboards.admin.images.panel.Images'

View File

@ -0,0 +1,8 @@
from django.utils.translation import ugettext_lazy as _
# The slug of the panel group to be added to HORIZON_CONFIG. Required.
PANEL_GROUP = 'volume'
# The display name of the PANEL_GROUP. Required.
PANEL_GROUP_NAME = _('Volume')
# The slug of the dashboard the PANEL_GROUP associated with. Required.
PANEL_GROUP_DASHBOARD = 'admin'

View File

@ -3,7 +3,7 @@ PANEL = 'volumes'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'volume'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = 'openstack_dashboard.dashboards.admin.volumes.panel.Volumes' ADD_PANEL = 'openstack_dashboard.dashboards.admin.volumes.panel.Volumes'

View File

@ -3,7 +3,7 @@ PANEL = 'snapshots'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'volume'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = 'openstack_dashboard.dashboards.admin.snapshots.panel.Snapshots' ADD_PANEL = 'openstack_dashboard.dashboards.admin.snapshots.panel.Snapshots'

View File

@ -3,7 +3,7 @@ PANEL = 'volume_types'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'volume'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = \ ADD_PANEL = \

View File

@ -0,0 +1,8 @@
from django.utils.translation import ugettext_lazy as _
# The slug of the panel group to be added to HORIZON_CONFIG. Required.
PANEL_GROUP = 'network'
# The display name of the PANEL_GROUP. Required.
PANEL_GROUP_NAME = _('Network')
# The slug of the dashboard the PANEL_GROUP associated with. Required.
PANEL_GROUP_DASHBOARD = 'admin'

View File

@ -3,7 +3,7 @@ PANEL = 'networks'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'network'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = 'openstack_dashboard.dashboards.admin.networks.panel.Networks' ADD_PANEL = 'openstack_dashboard.dashboards.admin.networks.panel.Networks'

View File

@ -3,7 +3,7 @@ PANEL = 'routers'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'network'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = 'openstack_dashboard.dashboards.admin.routers.panel.Routers' ADD_PANEL = 'openstack_dashboard.dashboards.admin.routers.panel.Routers'

View File

@ -3,7 +3,7 @@ PANEL = 'floating_ips'
# The slug of the dashboard the PANEL associated with. Required. # The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin' PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with. # The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin' PANEL_GROUP = 'network'
# Python panel class of the PANEL to be added. # Python panel class of the PANEL to be added.
ADD_PANEL = \ ADD_PANEL = \

View File

@ -0,0 +1,14 @@
---
features:
- |
Panel group is introduced in the Admin dashboard to organize admin panels
better. Panels in "System" group of Admin dashboard are now categorized
into four groups: "Compute", "Volume", "Network" and "System".
upgrade:
- |
As a result of Admin dashboard reorganization, panel groups of many Admin
panels have been changed. Operators who customize Admin panels (for example,
disable some Admin panels) through ``enabled`` directory need to update
panel groups in ``enabled`` files. Horizon plugin developers and deployers
may also need to update panel configurations under ``enabled`` directory
to adapt the new Admin menus.