incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [1/3] git commit: [#6324] Reduce unnecessary project cache clearing on new projects
Date Thu, 20 Jun 2013 16:30:44 GMT
Updated Branches:
  refs/heads/cj/6324 [created] 78f7e4b96


[#6324] Reduce unnecessary project cache clearing on new projects

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/05596148
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/05596148
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/05596148

Branch: refs/heads/cj/6324
Commit: 0559614885d9f3da21d3be896d160a92e5ef0384
Parents: 1bae8fa
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Wed Jun 19 18:38:06 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Wed Jun 19 18:38:06 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/plugin.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/05596148/Allura/allura/lib/plugin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index 4bbf557..bea33d1 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -576,7 +576,8 @@ class ProjectRegistrationProvider(object):
 
         # clear the RoleCache for the user so this project will
         # be picked up by user.my_projects()
-        g.credentials.clear_user(user._id, '*')
+        g.credentials.clear_user(user._id, None)  # unnamed roles for this user
+        g.credentials.clear_user(user._id, p._id)  # named roles for this project + user
         with h.push_config(c, project=p, user=user):
             ThreadLocalORMSession.flush_all()
             # have to add user to context, since this may occur inside auth code


Mime
View raw message