chipx86 got review request #9000!
Move the user infobox view into accounts/ and make it class-based.
Review Request #9000 — Created June 6, 2017 and submitted
The user infobox has lived in reviews/ for a while now, but it's not specific to review requests. The accounts/ module is a better place for it. This change moves it there and also converts it to use class-based generic views, making use of the new mixins offered by Djblets and Review Board for access restrictions.
Tested that the view still works, obeys access restrictions, and handles
ETag caching.
Description | From | Last Updated |
---|---|---|
Can we create an __init__ that sets None values for the cached data (like self._lookup_user), and then assert on their … |
david |
-
-
Can we create an
__init__
that sets None values for the cached data (likeself._lookup_user
), and then assert on their contents before they're accessed? Right now it's a little bit hidden what data gets stored, and while we're always supposed to haveget_etag_data
called beforeget_context_data
, it would be nice to enforce it.It would also be nice to unset that cached data after the dispatch is done.