yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #49337
[Bug 1430615] Re: Duplicate panels in custom panel group causes KeyError
This is by design. The panel group name is a unique key.
** Changed in: horizon
Status: New => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1430615
Title:
Duplicate panels in custom panel group causes KeyError
Status in OpenStack Dashboard (Horizon):
Won't Fix
Bug description:
If there are two panels configured with the same name in a custom
plugin panel group, a KeyError is thrown. Under
horizon/openstack_dashboard/local/enabled/, configure a new panel
group in a file named _50_foo.py with these contents:
PANEL_GROUP = 'foo'
PANEL_GROUP_NAME = 'Foo'
PANEL_GROUP_DASHBOARD = 'admin'
Also create files named _55_bar.py and _60_bar.py, each with these
contents:
PANEL_DASHBOARD = 'admin'
PANEL = 'bar'
PANEL_GROUP = 'foo'
ADD_PANEL = 'dashboards.admin.overview.panel.Overview'
Restart the server and load Horizon in a web browser, which results
in:
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/base.py" in get_panel_groups
467. registered.pop(panel.__class__)
Exception Type: KeyError at /admin/
Exception Value: <class 'dashboards.admin.overview.panel.Overview'
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1430615/+subscriptions
References