Go to file
Tim Abbott e55eb53297 Use get_user_profile_by_* functions to get UserProfiles.
We had a few bugs where we were using a raw Django database query to
get a UserProfile object.  This might seem OK, but going through
memcached is more efficient, and also guarantees that we get back the
.select_related() version of the object, so that if we later access
related fields like user_profile.realm.domain, we don't end up doing a
second database query as well.

Fixing these should in practice save a substantial number of database
queries on handling update_status_list requests, which happen very
often and access user_profile.realm.domain.

(imported from commit 0a2027da1b5bbc7a4f6c6927aca498530d7a4977)
2013-06-20 17:57:06 -04:00
api api: Don't require 'https://' in site option. 2013-06-18 14:59:07 -04:00
assets favicon: Add an 'infinite' favicon for more than 99 messages 2013-02-15 16:18:24 -05:00
bots Move check_send_receive.py to the naigos plugins directory, renaming it. 2013-05-29 15:36:47 -04:00
certs [manual] Include SSL certificate for wildcard humbughq.com and corresponding chains. 2013-05-29 15:36:47 -04:00
confirmation Add metrics variables to the template context via a context processor 2013-06-18 17:07:36 -04:00
humbug Use get_user_profile_by_* functions to get UserProfiles. 2013-06-20 17:57:06 -04:00
node_modules Import Handlebars compiler and dependencies 2013-04-02 14:43:58 -04:00
servers Don't pass along client locale settings when sshing in to our servers 2013-06-18 17:20:48 -04:00
templates Prevent buttons from stacking in a narrow window by removing their text labels 2013-06-20 09:24:40 -07:00
tools Use different mechanism to determine the running user 2013-06-19 16:35:35 -04:00
zephyr Use get_user_profile_by_* functions to get UserProfiles. 2013-06-20 17:57:06 -04:00
.gitignore gitignore memcached_prefix 2013-06-12 17:16:37 -04:00
manage.py Make manage.py spit out tracebacks, without a patched django 2013-05-28 19:05:06 -04:00