TabGroup: Make tabs pluggable via horizon plugin config
This commit enhances django tab implementation to allow horizon plugins
to add tabs to a tab group in other repository like the main horizon repo.
New setting "EXTRA_TABS" is introduced to the horizon plugin 'enabled' file.
To this aim, the tab group class looks up HORIZON_CONFIG['extra_tabs']
with its class full name and loads them as extra tabs if any.
HORIZON_CONFIG['extra_tabs'] are populated via horizon plugin settings.
This commit moves update_settings in openstack_dashboard.test.helpers
to horizon as I would like to use it in a new horizon unit test.
Reviewed: https:/ /review. openstack. org/540097 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=a987c039cfa 7943afd5bb9d1ae f50c30b32ad8f4
Committed: https:/
Submitter: Zuul
Branch: master
commit a987c039cfa7943 afd5bb9d1aef50c 30b32ad8f4
Author: Akihiro Motoki <email address hidden>
Date: Fri Feb 2 02:33:23 2018 +0900
TabGroup: Make tabs pluggable via horizon plugin config
This commit enhances django tab implementation to allow horizon plugins CONFIG[ 'extra_ tabs'] CONFIG[ 'extra_ tabs'] are populated via horizon plugin settings.
to add tabs to a tab group in other repository like the main horizon repo.
New setting "EXTRA_TABS" is introduced to the horizon plugin 'enabled' file.
To this aim, the tab group class looks up HORIZON_
with its class full name and loads them as extra tabs if any.
HORIZON_
This commit moves update_settings in openstack_ dashboard. test.helpers
to horizon as I would like to use it in a new horizon unit test.
blueprint horizon- plugin- tab-for- info-and- quotas 4929826d14d20b4 719bd1f62d3
Closes-Bug: #1746754
Change-Id: Ice2469a9055375