Commit graph

243 commits

Author SHA1 Message Date
Jason Ward
811e69b722 refs #11: Updated query counts to take into account the ContentType cache, fixed group caching tests 2013-03-18 16:26:50 -04:00
Jason Ward
1e9d33bc89 refs #11: basically got it working, two tests still failing 2013-03-18 16:08:51 -04:00
Jason Ward
a3a7093910 refs #11: name change since we are building a second perm cache 2013-03-18 15:58:10 -04:00
Jason Ward
4a9ed8aa9d refs #11: added tests for group caching 2013-03-18 15:46:34 -04:00
Jason Ward
2ff3264aa7 Merge pull request #10 from PolicyStat/issue_10
Set up travis ci so we can peg what we support
2013-03-18 11:47:21 -07:00
Jason Ward
0b152b4adf refs #10: updated the DB definition for django 1.4/1.5 2013-03-18 14:39:13 -04:00
Jason Ward
f26f941319 refs #10 I guess django-debug-toolbar is a req 2013-03-18 14:24:33 -04:00
Jason Ward
dd1a5e7a09 refs #10 formalized the reqs 2013-03-18 14:11:46 -04:00
Jason Ward
8870384c9f refs #10: added a .travis file to see what travis has to say 2013-03-18 13:58:28 -04:00
Jason Ward
c7018bb1e0 Merge pull request #3 from PolicyStat/smart_cache
Smart cache for users, groups coming up next
2013-03-18 10:28:16 -07:00
Wes Winham
cfb37b44fa Merge pull request #9 from PolicyStat/issue_9
Add real documentation about the smart cache.
2012-09-28 14:49:24 -07:00
Jason Ward
483cb629c7 refs #9: added a line in the basic overview about the smart cache 2012-09-27 17:17:59 -04:00
Jason Ward
6c1692ae63 refs #9: bumped the version in the docs 2012-09-26 17:49:19 -04:00
Jason Ward
e45d774a76 refs #9: added a section to show how cache invalidation works 2012-09-26 17:44:22 -04:00
Jason Ward
95a7dc5e92 refs #9: added a line in the docs showing how to disable the use of the smart cache 2012-09-26 17:44:01 -04:00
Jason Ward
b98e675f57 Merge pull request #8 from PolicyStat/issue_8
has_user_perms with check_groups does too many queries
2012-09-26 14:24:38 -07:00
Jason Ward
6d6c91dfb6 refs #8: refactor 2012-09-26 17:23:30 -04:00
Jason Ward
342f3d5311 refs #8: name changes and used kwargs in one of the tests 2012-09-26 17:17:27 -04:00
Jason Ward
1f73bdde92 Merge remote-tracking branch 'origin/master' into issue_8 2012-09-26 17:09:00 -04:00
Wes Winham
78f451f782 Merge pull request #7 from PolicyStat/issue_7
Cached perms with groups does n queries right now.
2012-09-26 14:08:35 -07:00
Jason Ward
6326631756 refs #8: language cleanup, code cleanup 2012-09-26 16:27:33 -04:00
Jason Ward
8d62a86e96 refs #8: did a smarter job of building the cache without redoing work 2012-09-26 16:10:45 -04:00
Jason Ward
82bc7ee89e refs #8: updated the tests to the correct expected number of queries 2012-09-26 16:10:20 -04:00
Jason Ward
7c899a245d refs #7: doing the correct number of queries now 2012-09-26 16:01:01 -04:00
Jason Ward
2d71ba46b1 refs #7: wrote a test to show the expected number of queries needed for has_user_perms 2012-09-26 16:00:30 -04:00
Jason Ward
046284359a Merge pull request #6 from PolicyStat/issue_6
Smart cache will break if a user is not provided
2012-09-26 12:32:07 -07:00
Jason Ward
f6bba30407 refs #6: name change 2012-09-26 15:31:09 -04:00
Jason Ward
b81ef7b5d0 Merge remote-tracking branch 'origin/master' into issue_6
Conflicts:
	authority/permissions.py
2012-09-26 14:02:01 -04:00
Jason Ward
f47a71bbeb Merge pull request #4 from PolicyStat/issue_4
Make a setting to dictate weather to do smart caching or not.
2012-09-26 10:59:47 -07:00
Jason Ward
cb2d7c0280 refs #4: typo 2012-09-26 13:58:40 -04:00
Jason Ward
e8c7c46ab4 Merge remote-tracking branch 'origin/master' into issue_4
Conflicts:
	authority/permissions.py
2012-09-26 13:52:45 -04:00
Jason Ward
3cca9dcb2f Merge pull request #3 from PolicyStat/issue_3
has_user_perms is busted with groups and the smart cache
2012-09-26 10:49:43 -07:00
Jason Ward
8b62ad97d2 refs #3: name changes to be more django 2012-09-26 13:47:16 -04:00
Jason Ward
513a1ad99a refs #3: small refactor 2012-09-26 13:41:48 -04:00
Jason Ward
1d8f743065 refs #3: typo 2012-09-26 13:38:14 -04:00
Jason Ward
263144831f refs #4: removed old comment 2012-09-26 11:09:15 -04:00
Jason Ward
de45b9535e refs #6: no longer relying on self.user being set 2012-09-25 16:43:05 -04:00
Jason Ward
6ff9c0f196 refs #6: updated the tests so that there was a permission that did not have a user 2012-09-25 16:08:09 -04:00
Jason Ward
289e9f0bdf refs #4: default to using the smart cache 2012-09-25 13:58:37 -04:00
Jason Ward
57d38c6727 Merge branch 'issue_3' into issue_4
Conflicts:
	authority/permissions.py
2012-09-25 13:34:59 -04:00
Jason Ward
667ef532c8 refs #3: added some select related and kept the query count down 2012-09-25 13:09:28 -04:00
Jason Ward
1818f5885a refs #3: prime both user and group cache at the same time, reduced the number of queries by 1 2012-09-25 12:34:56 -04:00
Jason Ward
485731f3cc refs #3: name change, we are more like Django now 2012-09-24 17:20:37 -04:00
Jason Ward
8f1d2d6a44 refs #3: moved the cached permissions onto the user object (just like django does it) 2012-09-24 17:17:32 -04:00
Jason Ward
877833bdf2 Merge branch 'issue_3' into issue_4
Conflicts:
	authority/permissions.py
	authority/tests.py
2012-09-24 16:44:32 -04:00
Jason Ward
a519da2fdd refs #3: stopped storing the whole perm object in the cache, all we care at this point is if the perm existed in that specific way. 2012-09-24 16:39:33 -04:00
Jason Ward
50b8e42fff Merge remote-tracking branch 'origin/master' into issue_3 2012-09-24 16:26:24 -04:00
Jason Ward
ddd4a9c35a refs #3: split up user and group permissions completely. 2012-09-24 15:45:42 -04:00
Jason Ward
cb7b257972 refs #3: name changes 2012-09-24 15:28:38 -04:00
Jason Ward
77915643d3 refs #3: changed the name of the test case 2012-09-24 15:23:07 -04:00