Browse Source

Merge "Remove usage of user project caching" into stable/liberty

Jenkins 3 years ago
parent
commit
fa47798f38

+ 0
- 3
openstack_dashboard/dashboards/identity/projects/tables.py View File

@@ -17,8 +17,6 @@ from django.utils.http import urlencode
17 17
 from django.utils.translation import ugettext_lazy as _
18 18
 from django.utils.translation import ungettext_lazy
19 19
 
20
-from openstack_auth import utils as auth_utils
21
-
22 20
 from horizon import exceptions
23 21
 from horizon import forms
24 22
 from horizon import tables
@@ -161,7 +159,6 @@ class DeleteTenantsAction(tables.DeleteAction):
161 159
     def handle(self, table, request, obj_ids):
162 160
         response = \
163 161
             super(DeleteTenantsAction, self).handle(table, request, obj_ids)
164
-        auth_utils.remove_project_cache(request.user.token.unscoped_token)
165 162
         return response
166 163
 
167 164
 

+ 0
- 6
openstack_dashboard/dashboards/identity/projects/workflows.py View File

@@ -21,8 +21,6 @@ from django.conf import settings
21 21
 from django.core.urlresolvers import reverse
22 22
 from django.utils.translation import ugettext_lazy as _
23 23
 
24
-from openstack_auth import utils as auth_utils
25
-
26 24
 from horizon import exceptions
27 25
 from horizon import forms
28 26
 from horizon import messages
@@ -484,8 +482,6 @@ class CreateProject(CommonQuotaWorkflow):
484 482
                                 'members%(group_msg)s and set project quotas.')
485 483
                               % {'users_to_add': users_to_add,
486 484
                                  'group_msg': group_msg})
487
-        finally:
488
-            auth_utils.remove_project_cache(request.user.token.unscoped_token)
489 485
 
490 486
     def _update_project_groups(self, request, data, project_id):
491 487
         # update project groups
@@ -748,8 +744,6 @@ class UpdateProject(CommonQuotaWorkflow):
748 744
                               % {'users_to_modify': users_to_modify,
749 745
                                  'group_msg': group_msg})
750 746
             return False
751
-        finally:
752
-            auth_utils.remove_project_cache(request.user.token.unscoped_token)
753 747
 
754 748
     def _update_project_groups(self, request, data, project_id, domain_id):
755 749
         # update project groups

Loading…
Cancel
Save