Andrew Bogott has uploaded a new change for review. https://gerrit.wikimedia.org/r/311183
Change subject: Puppet Panel: Cache the project panel tab ...................................................................... Puppet Panel: Cache the project panel tab Without this we load it twice sometimes Change-Id: I1c3b556ba03bee681222081d77d85748d7d9a4cc --- M modules/openstack/files/liberty/horizon/puppettab/projectpanel.py 1 file changed, 10 insertions(+), 8 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/83/311183/1 diff --git a/modules/openstack/files/liberty/horizon/puppettab/projectpanel.py b/modules/openstack/files/liberty/horizon/puppettab/projectpanel.py index b28fdfc..97cca49 100644 --- a/modules/openstack/files/liberty/horizon/puppettab/projectpanel.py +++ b/modules/openstack/files/liberty/horizon/puppettab/projectpanel.py @@ -51,11 +51,13 @@ page_title = _("Project Puppet") def get_tabs(self, request, *args, **kwargs): - tenant_id = self.request.user.tenant_id - caption = _("These puppet settings will affect all VMs" - " in the %s project.") % tenant_id - return self.tab_group_class(request, - prefix='_', - caption=caption, - tenant_id=tenant_id, - **kwargs) + if self._tab_group is None: + tenant_id = self.request.user.tenant_id + caption = _("These puppet settings will affect all VMs" + " in the %s project.") % tenant_id + self._tab_group = self.tab_group_class(request, + prefix='_', + caption=caption, + tenant_id=tenant_id, + **kwargs) + return self._tab_group -- To view, visit https://gerrit.wikimedia.org/r/311183 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1c3b556ba03bee681222081d77d85748d7d9a4cc Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Andrew Bogott <abog...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits