Commit graph

73 commits

Author SHA1 Message Date
Samuel Clay
1351aee6a8 Vendorizing new feedparser. 2020-07-01 18:38:37 -04:00
Samuel Clay
eeb44e3400 Fixing a bunch of feed fetch py3 errors. Fetching now works! 2020-06-30 20:50:30 -04:00
Samuel Clay
1fc063ff80 Fixing middleware for new format. 2020-06-30 19:46:32 -04:00
Samuel Clay
0d6cb69548 Merge branch 'django1.11' into django2.0
* django1.11: (73 commits)
  Switching to new celery 4 standalone binary.
  Fixing various mongo data calls.
  Upgrading to latest celery 4 (holy moly), which required some big changes to project layout. Still needs supervisor scripts updated.
  Removing unused log on cookies.
  I believe this Context wrapping is still preserved. See this django ticket: https://code.djangoproject.com/ticket/28125. Reverting this fixes the error, so I'm assuming this is that type of render.
  Have to revert 3f122d5e03 because this broke existing sessions (logged me out) because the model has changed and the serialized model stored in redis no longer matches. Whew, this took a while to figure out.
  Upgrading redis cache.
  Adding cookies to path inspector.
  Removing dupe db log.
  Fixing missing DB logs (redis and mongo) due to this change in django 1.8: "connections.queries is now a read-only attribute."
  Removing migrations that set a default date of 2020-05-08. Not sure why this was committed. I thought we resolved the issue with default datetimes?
  Fixing CallableBool.
  Missing import
  Fixing runtime errors on django 1.10
  Fixing OAuth connect.
  Fixing various django1.9 issues, mainly around templates.
  BASE_DIR
  Not every story is from a feed.
  Styling background colors for newsletters.
  Styling more newsletter elements.
  ...
2020-06-30 12:34:59 -04:00
Samuel Clay
553483ce52 I believe this Context wrapping is still preserved. See this django ticket: https://code.djangoproject.com/ticket/28125. Reverting this fixes the error, so I'm assuming this is that type of render. 2020-06-28 14:52:09 -04:00
Samuel Clay
36b0823786 Merge branch 'django1.10' into django1.11
* django1.10: (131 commits)
  Have to revert 3f122d5e03 because this broke existing sessions (logged me out) because the model has changed and the serialized model stored in redis no longer matches. Whew, this took a while to figure out.
  Upgrading redis cache.
  Adding cookies to path inspector.
  Removing dupe db log.
  Fixing missing DB logs (redis and mongo) due to this change in django 1.8: "connections.queries is now a read-only attribute."
  Removing migrations that set a default date of 2020-05-08. Not sure why this was committed. I thought we resolved the issue with default datetimes?
  Fixing CallableBool.
  Missing import
  Fixing runtime errors on django 1.10
  Fixing OAuth connect.
  Fixing various django1.9 issues, mainly around templates.
  BASE_DIR
  Not every story is from a feed.
  Styling background colors for newsletters.
  Styling more newsletter elements.
  Using the correct attribute.
  Typo in template
  Attempting to style newsletters in dark mode.
  Loading dark theme if selected on load.
  Adding scrollbar colors.
  ...
2020-06-28 14:00:09 -04:00
Samuel Clay
56b17fe72f Merge branch 'django1.9' into django1.10
* django1.9:
  Removing dupe db log.
  Fixing missing DB logs (redis and mongo) due to this change in django 1.8: "connections.queries is now a read-only attribute."
  Removing migrations that set a default date of 2020-05-08. Not sure why this was committed. I thought we resolved the issue with default datetimes?
2020-06-26 16:27:50 -04:00
Samuel Clay
2956cb5861 Merge branch 'master' into django1.8
* master:
  Removing dupe db log.
2020-06-26 16:27:16 -04:00
Samuel Clay
d0f15ab141 Removing dupe db log. 2020-06-26 16:26:59 -04:00
Samuel Clay
c475fd2edc Fixing missing DB logs (redis and mongo) due to this change in django 1.8: "connections.queries is now a read-only attribute." 2020-06-26 15:56:06 -04:00
Jonathan Math
8dfa0053a0 call process_request() in profile middleware 2020-06-20 00:06:01 -04:00
Jonathan Math
044370e2f4 use updated middleware syntax 2020-06-17 03:24:16 -04:00
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