Commit graph

61 commits

Author SHA1 Message Date
Jonathan Math
7112b19f18 upgrade middleware classes and run 2to3 on apps/profile/ 2020-06-17 00:40:16 -04:00
jmath1
88f19ffaf6 render receives a dict instead of a context object in apprs.profiel.middleware.py 2020-06-12 03:19:53 -04:00
jmath1
7d95dbb5cf change User.is_authenticated() and User.is_anonymous() to attributes 2020-06-11 15:13:12 -04:00
Samuel Clay
182c8f8d18 Profiling fewer app servers. 2018-02-26 18:35:02 -08:00
Samuel Clay
6a8dd09ecc Only profiling 10%. 2018-02-26 15:16:20 -08:00
Samuel Clay
5ae1e3f341 Profiling individual feeds. 2018-02-26 15:06:06 -08:00
Samuel Clay
55eb59c0cd Adding db profiler to 1% of app calls. 2018-02-26 15:02:26 -08:00
Samuel Clay
d904c6ad1a Removing banned user. 2017-05-30 15:14:22 -07:00
Samuel Clay
811520ef0c Banning users. 2017-05-26 18:29:10 -07:00
Samuel Clay
4a12c220fe Risky business: now capturing db times (sql/mongo/redis) for 1% of all tasks. Also updating munin to recognize new db profiling times. 2015-12-16 17:31:41 -08:00
Samuel Clay
9bf765ba07 DB checks OK in middleware. 2015-08-05 20:05:54 -07:00
Samuel Clay
cf43747b20 Adding user sub counts to redis, using new redis cache to count subscribers only when feed is entirely cached. Still need automatic conversion from postgres to redis sub counts. 2015-07-28 18:46:37 -07:00
Samuel Clay
0b398f4194 Capping IP at 15 characters. 2015-07-27 18:21:40 -07:00
Samuel Clay
553688c629 Fixing HTTP_X_FORWARDED_FOR header. 2015-07-21 10:35:02 -07:00
Samuel Clay
3859ae154d Changing IP header. 2015-07-21 10:31:07 -07:00
Samuel Clay
c880dbac17 Adding /reader/feeds so that Android also gets a repeat visitor check. 2015-03-12 22:46:28 -07:00
Samuel Clay
d5625ad336 Allowing push urls to not have a User Agent. 2014-12-02 12:54:05 -08:00
Samuel Clay
d26b6825b7 Stubbing in saved story tags in ios feed list. 2014-05-20 12:21:17 -07:00
Samuel Clay
e2eb5bd2a4 Ensuring db times. 2014-03-19 15:46:40 -07:00
Samuel Clay
16005087a5 Fixing broken segments. 2014-03-19 14:59:07 -07:00
Samuel Clay
c95366f828 Only profile feed load calls. 2014-03-19 14:56:28 -07:00
Samuel Clay
043598777e Bumping db logging down to 1% of all requests. 2014-03-19 14:22:36 -07:00
Samuel Clay
2caa5a91d7 Adding special DB request logs for sql, mongo, and redis. 2014-03-18 19:19:43 -07:00
Samuel Clay
4cb75f782d Allowing oauth users to not bother having a user agent. 2014-01-27 13:00:41 -08:00
Samuel Clay
178f7983c8 Turning off chance for cleanup. Everybody gets a cleanup. 2014-01-21 14:56:59 -08:00
Samuel Clay
5ae725364f Cleaning up user read stories. 2014-01-21 13:34:53 -08:00
Samuel Clay
ab3eadbb3f Fixing reader tests and fixing broken delete where multiple feeds would be deleted. 2013-11-06 11:12:41 -08:00
Samuel Clay
c286c0ed91 Adding haproxy exception for health check. 2013-07-30 18:24:34 -07:00
Samuel Clay
6ae5628d2c Taking Feed Reader off the ban list. 2013-07-02 16:55:14 -07:00
Samuel Clay
7863c57cb5 Fixing Paypal IPN issues by whitelisting profile path. 2013-06-28 10:36:15 -07:00
Samuel Clay
6fd63489c1 Banning missing user agents. 2013-06-26 11:47:49 -07:00
Samuel Clay
3f786a65c6 Banning Feed Reader Background app, as it's causing a ton of bogus requests. 2013-06-25 21:48:30 -07:00
Samuel Clay
2836989d71 Fixing middleware to activate users. Faulty paths resulted in paths that had a / not being recognized. Thanks to @subglass! 2013-06-20 10:31:09 -07:00
Samuel Clay
f425a1602d Scheduling stale feeds for flat feed users, too. 2013-06-15 12:48:35 -07:00
Samuel Clay
631ea2de0c Fixing IP address saving after HAProxy originally obscured it. 2013-06-04 12:31:45 -07:00
Samuel Clay
3e8c3b7e4b Adding X-nginx-server and X-gunicorn-server. 2013-03-25 11:53:31 -07:00
Samuel Clay
d283294bcc Adding X-server to headers to figure out request pinning. 2013-03-18 11:32:24 -07:00
Samuel Clay
e6f8157745 Fixing issue around saving new stories to redis. Also adding redis middleware to introspect raw redis calls. 2012-07-25 17:58:00 -07:00
Samuel Clay
cdf42f323e Adding elapsed time to all requests logging. 2012-07-13 14:56:12 -07:00
Samuel Clay
05ec54c61c The Simpsons commit. Adding X-headers so everybody who visits NewsBlur gets that Simpsons boost, whether they know it or not. 2012-07-05 18:30:16 -07:00
Samuel Clay
e281e1ee91 Changing the color of sql duration times in debug logging. Yeah, nobody but me will see this, but boy is it pretty. Ask me sometime and I'd love to show you my insanely colorful logs. 2012-04-17 12:12:05 -07:00
Samuel Clay
2ab37d20e1 Adding MongoDB logging for debug. 2012-04-06 18:28:26 -07:00
Samuel Clay
622358e05c Moving to $ per year instead of per month. Cleaning up new account email. Clearing out the story iframe between stories and feeds. 2011-09-30 18:02:48 -07:00
Samuel Clay
c83f11e668 Adding /load_feeds to repeat visitor tracking, since the iPhone app never hits refresh_feeds. 2011-09-25 09:53:57 -07:00
Samuel Clay
c051bcfac9 Adding browser user agent to all logging. 2011-09-16 09:26:22 -07:00
Samuel Clay
56e0292197 Using new django1.3 logging. Adding SQL middleware for use in development. Pretty SQL. 2011-05-08 19:25:58 -04:00
Samuel Clay
54a10301b9 Adding community feedback to whats new module on dashboard. 2011-05-07 12:06:51 -04:00
Samuel Clay
909339381a Statistics graph. 2011-04-15 11:34:41 -04:00
Samuel Clay
de80258365 Adding *'s to premium users during logging. 2011-02-23 13:46:47 -05:00
Samuel Clay
7fdd173ac0 Refreshing stale feeds for old users returning. 2011-01-17 14:20:36 -05:00