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 |
|
Wes Winham
|
4a01fbfaf6
|
Merge pull request #2 from PolicyStat/issue_2
Add comments/docstrings to caching methods.
|
2012-09-24 11:52:48 -07:00 |
|
Jason Ward
|
23814d6e72
|
refs #4: added an update note, and added authors
|
2012-09-24 14:33:51 -04:00 |
|
Jason Ward
|
7744fac9f3
|
refs #4: The smart cache is now only being done if the correct settings is set.
|
2012-09-24 14:28:57 -04:00 |
|
Jason Ward
|
079b1a1595
|
refs #4: made a base test case for smart caching
|
2012-09-24 14:20:00 -04:00 |
|
Jason Ward
|
d27314ce27
|
added docs/build/* to the .gitignore
|
2012-09-24 13:57:12 -04:00 |
|
Jason Ward
|
0b6848baff
|
Merge branch 'issue_2' into issue_3
Conflicts:
authority/permissions.py
authority/tests.py
|
2012-09-24 13:51:50 -04:00 |
|
Jason Ward
|
abe099f9d9
|
Merge remote-tracking branch 'origin/master' into issue_2
|
2012-09-24 13:44:49 -04:00 |
|
Jason Ward
|
c94b9c3930
|
refs #3: Added a cache for group related permissions.
|
2012-09-24 13:43:54 -04:00 |
|
Jason Ward
|
03bd5c9445
|
refs #3: made a distinction for the cache that it was a group free cache
|
2012-09-24 13:34:35 -04:00 |
|
Jason Ward
|
b7e65bbbdd
|
Merge remote-tracking branch 'origin/master' into issue_3
|
2012-09-24 13:27:16 -04:00 |
|
Jason Ward
|
16d324ba5f
|
Merge pull request #1 from PolicyStat/issue_1
Add a git ignore file
|
2012-09-24 10:23:45 -07:00 |
|
Jason Ward
|
ccd3417c99
|
refs #3: added a unit test showing that groups are broken
|
2012-09-24 12:36:30 -04:00 |
|
Jason Ward
|
ca3963ea7b
|
refs #2: properly tested invalidate_cache
|
2012-09-24 12:09:59 -04:00 |
|
Jason Ward
|
c091a91412
|
refs #2: added docstrings and comments
|
2012-09-24 12:09:25 -04:00 |
|
Jason Ward
|
9fe2ad5a0d
|
refs #1: added a git ignore file
|
2012-09-24 11:55:19 -04:00 |
|
Jason Ward
|
3e403abb1c
|
removed base prefix
|
2012-09-20 15:19:06 -04:00 |
|
Jason Ward
|
e49523dace
|
prepended 'base' to all new cache stuff in the base permission class
|
2012-09-20 14:52:01 -04:00 |
|
Jason Ward
|
73cdf40ab2
|
Added a performance test
|
2012-09-20 12:03:12 -04:00 |
|
Jason Ward
|
5cdf9f01b0
|
flake8
|
2012-09-20 11:55:38 -04:00 |
|
Jason Ward
|
ba0d47ac0b
|
Built a pre-cached permission dict to reduce the number of queries.
|
2012-09-20 11:37:44 -04:00 |
|
Jason Ward
|
d41bb71470
|
flake8
|
2012-09-20 11:00:01 -04:00 |
|
Jason Ward
|
a67c7b43bd
|
Fixed Q object query that triggers a deepcopy bug in Python < 2.7 when a backend stores an Ellipsis object on the user
|
2012-09-20 10:56:37 -04:00 |
|