Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove global state from ACL #1145

Merged
merged 47 commits into from Dec 18, 2018
Merged

Conversation

rafalp
Copy link
Owner

@rafalp rafalp commented Dec 9, 2018

This PR removes global state from ACL.

TODO

  • Create new get_user_acl
  • Create testing util for overriding ACL
  • Simplify patch_user_acl test util to patch all users acl's
  • Remove override_acl from tests (fixes Make override_acl utility less fragile and flaky #580)
  • Make permission checks use request.user_acl
  • Remove User.acl_cache and User.acl_
  • Remove importing directly from misago.acl
  • Cleanup misago.acl cache versions
  • Test that changing ACL invalidates ACL cache
  • Update debug toolbar extension
  • Update docs

@rafalp rafalp added area: backend This issue involves Python, Django or dependency (eg. database) enhancement Improvement to existing feature or dev experience labels Dec 9, 2018
@rafalp rafalp added this to the 0.20.0 milestone Dec 9, 2018
@rafalp rafalp self-assigned this Dec 9, 2018
@rafalp rafalp merged commit 7f1ee27 into remove-global-state Dec 18, 2018
@rafalp rafalp deleted the remove-global-state-from-acl branch December 18, 2018 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend This issue involves Python, Django or dependency (eg. database) enhancement Improvement to existing feature or dev experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant