Tim Abbott
198480ef99
Use get_user_profile_by_email more consistently.
...
The previous situation was bad for two reasons:
(1) It had a lot of copies of the code, some of them missing pieces:
UserProfile.objects.get(user__email__iexact=foo)
This was in particular going to be inconvenient since we are dropping
the __user part of that.
(2) It didn't take advantage of our memcached caching.
(imported from commit 2325795f288a7cf306cdae191f5d3080aac0651a)
2013-03-29 16:18:38 -04:00
Tim Abbott
1e9a85ff05
Fix use of case-sensitive comparisons on email addresses.
...
(imported from commit d420169640a9f9c034b3d9ded207e583691f6652)
2013-02-28 17:49:57 -05:00
Jessica McKellar
8cac04565c
retention: look up domain instead of inferring from a user's email.
...
(imported from commit d678c53e1806922fc23b8e5126493736b675b589)
2013-02-08 13:20:18 -05:00
Keegan McAllister
8f580352a8
retention_policy: Retain all metadata changes in logs
...
(imported from commit 28cfc452f1ceca8a3e6b04e32034911ba384a0a8)
2013-02-07 14:29:53 -05:00
Keegan McAllister
a8ffa339de
retention_policy: On unrecognized events, print the timestamp to full precision
...
(imported from commit 0f5908e0602fa8be7dea3d9e3b1ecbc437531df9)
2013-02-07 11:34:49 -05:00
Keegan McAllister
d80dd021f1
retention_policy: Retain realm_created events
...
Previously these fell through and printed a warning message.
(imported from commit b3e488ff845b636e17c8b5b51d6cd84c1451bd2b)
2013-02-07 11:34:49 -05:00
Keegan McAllister
aeb64959dd
exunge_log: Ignore default_streams entries
...
(imported from commit e7b2cd62be0ba868498db286e9e1671441bf07e6)
2012-11-30 17:24:37 -05:00
Keegan McAllister
c8b6e72cbf
Implement a command to expunge old entries from log files
...
(imported from commit 28bc40bf12dd8cea0ff9b842f72e7713640e55a6)
2012-11-30 17:24:37 -05:00
Keegan McAllister
5caf67f27d
Implement a framework for data retention policies
...
And add customer1.invalid to it.
(imported from commit 32b0293bc48abf5d9a3bd36f14f6b16d48ea6ff2)
2012-11-30 17:24:37 -05:00