Neil Williams
7f666afa86
tdb_cassandra: Remove obviated Relation infrastructure.
...
This has been replaced with DenormalizedRelation which:
* uses an order of magnitude less storage space.
* has shown, on average, 50% better response times.
* does single-row lookups rather than large multigets.
2012-11-19 17:53:59 -08:00
Logan Hanks
b521e2f793
Change c.site to site throughout POST_selectflair.
2012-11-19 17:53:59 -08:00
Ricky Ramirez
f9bc583146
wiki: (TEMPORARY FIX) require 100 karma before editing wiki.
2012-11-19 17:53:59 -08:00
Jason Harvey
e1cba69d78
Don't return accounts_active counts from /reddits.
2012-11-19 17:53:59 -08:00
Neil Williams
eec1066db7
Stale cache user_subreddits in the SubredditTopBar.
...
This is an attempt to reduce the bandwidth being spent transferring
large subreddit objects from the central memcached servers.
2012-11-19 17:53:59 -08:00
Max Goodman
c2f14a9e9d
Replace vislink logging with a FIXME.
2012-11-19 17:53:59 -08:00
Max Goodman
3beee33287
Log vislink builder skipped occurrences.
...
It appears that sometimes vislink is being skipped by the builder,
leading to a blank ad box. I discovered this because the interest bar
code would raise an exception upon the occurrence. I'd like to log this
case to gauge how often this is occurring.
2012-11-19 17:53:59 -08:00
Max Goodman
4a6d1ab69f
Band-aid for NS_ERROR_DOM_SECURITY_ERR toggle issue.
...
Attempt to catch an exception in tracking code that may be interfering with toggle buttons for some Firefox users.
2012-11-19 17:53:59 -08:00
Logan Hanks
1cbd9d0995
Fix bug where top-level comments are added to v2 tree twice.
2012-11-19 17:32:15 -08:00
Logan Hanks
345ff6d4a9
Improve comment tree version changes and rebuilds.
2012-11-19 17:32:15 -08:00
Logan Hanks
874a753647
Add timing stats to the comment tree library.
2012-11-19 17:32:15 -08:00
Logan Hanks
c1fcca8569
Cast to int the comment tree version chosen by weighted lottery.
2012-11-19 17:32:15 -08:00
Logan Hanks
3bc7b620f0
Don't use fetch_things2 for link comments.
2012-11-19 17:32:15 -08:00
Logan Hanks
33666aa7fd
Pass link in a list to changed() to stay Wrapped-safe.
2012-11-19 17:32:15 -08:00
Logan Hanks
34bc34a461
Add set_last_modified import back to queries.py.
2012-11-19 17:32:14 -08:00
Logan Hanks
ceecb3ca51
Fix various comment deletion bugs in comment trees.
2012-11-19 17:32:14 -08:00
Logan Hanks
be2757f71e
Move common weighted lottery logic to utils.
2012-11-19 17:32:14 -08:00
Logan Hanks
2868e6590a
Randomly assign comment tree implementation to new links.
2012-11-19 17:32:14 -08:00
Logan Hanks
c5d1a4fc3e
Add ConfigValue.dict(key_type, value_type) parser.
2012-11-19 17:32:14 -08:00
Logan Hanks
879f6c44da
Refactor comment tree management and support multiple implementations.
...
This helps us migrate comment trees out of permacache, and offers a new
lockless schema for storing the data.
2012-11-19 17:32:14 -08:00
Max Goodman
5d6ec36d26
Simplify post-under-... class steps and include all matching.
2012-11-19 15:23:37 -08:00
Max Goodman
8131555ee4
Add post-submitter body class.
2012-11-19 14:24:29 -08:00
Max Goodman
bebbe7c19f
Add post-under-10m-old body class.
2012-11-19 14:24:29 -08:00
Max Goodman
992fce34f7
Broaden flair selector button event delegation.
...
This makes the flair selector work on dynamically added elements, such
as by neverending reddit style extensions.
2012-11-19 14:24:29 -08:00
Neil Williams
7e33825319
/dev/api: Fill out documentation for "account" API endpoints.
2012-11-19 12:08:56 -08:00
Neil Williams
da16a70cdb
app-startup: Make startup banner a little shorter.
2012-11-19 11:28:58 -08:00
Neil Williams
cad2e0638e
tdb_sql: Clean up imports.
2012-11-19 11:28:58 -08:00
Neil Williams
284c1e8b60
tdb_sql: Use simplified stack trace format for query prefix.
2012-11-19 11:28:58 -08:00
Max Goodman
45e8209d8d
Move comment gilding icon to :before.
...
This allows .gilded-comment-icon to take up its full size (not relying
on a width:0 hack) and avoids the need for an extra element containing
the gilding count.
2012-11-16 15:29:15 -08:00
shlurbee
df695257be
Fix inventory viz javascript
...
Javascript function in the template had "//" style comments which wiped out
the rest of the function when the template was condensed to one line. Now
the js uses "/* */" comments instead.
2012-11-16 15:04:03 -08:00
Neil Williams
f4e4ad81e8
install-reddit: Use HTTPS for git clones.
...
For those behind proxies.
2012-11-16 13:02:25 -08:00
Jason Harvey
81c7c1a57d
Increase sr_pops limit and random_reddit limit to 2500.
2012-11-16 11:41:37 -08:00
Logan Hanks
1ff7ba8657
Add front compression for stats multisamples.
2012-11-16 11:31:04 -08:00
shlurbee
107cfc31ae
Allow sponsors to override min bid
2012-11-16 09:54:53 -08:00
Neil Williams
83e63699f9
Remove unused usage_q code.
...
usage_q used to monitor the volume of various types of request and how
long it took to generate the response for them. This has been replaced
by graphite-based stats collection.
2012-11-15 15:42:52 -08:00
Neil Williams
e93dede2d1
stats: Reorganize request timers for more granular timing.
...
Current request timers move from stats.timers.service_time.web.action to
stats.timers.service_time.web.action.total and other keys can be on the
same level as `total` allowing for more granular timing information so
we can see exactly where in a request the time is going.
This also adds some initial sub-timers.
2012-11-15 15:42:52 -08:00
Neil Williams
4ce98dcbb5
stats.Timer: don't send intermediates immediately.
...
This allows us to change the base name of the timer before stop/flush is
called and have the intermediates update as well.
2012-11-15 15:42:52 -08:00
Jason Harvey
d476208e38
Re-work the gen_time_listings query WHERE clause.
2012-11-15 15:22:55 -08:00
Jason Harvey
856a67e845
Ignore reports older than the report age limit.
2012-11-15 15:18:19 -08:00
Max Goodman
0cfc455490
Wrap thingupdater in a closure.
...
To prevent thingupdater JSON data from being JS globals.
2012-11-15 14:24:12 -08:00
Max Goodman
987eb7b176
Display the number of comment gildings.
2012-11-15 14:24:12 -08:00
Max Goodman
039a85d45c
Prevent users from gilding themselves via the icon.
2012-11-15 14:24:12 -08:00
Max Goodman
79358e95b3
Make reddit login cookie HTTP only.
2012-11-15 14:24:12 -08:00
Max Goodman
b06dc9b8f1
Add equality implementation for Account model.
2012-11-15 14:24:12 -08:00
Max Goodman
54fbb405f1
Reorder login/reg methods to copy docs from real handlers.
2012-11-15 14:24:11 -08:00
Max Goodman
6d8f87f044
Add missing @wraps to cross_domain.
2012-11-15 14:24:11 -08:00
Max Goodman
0b9e433101
apidoc: Replace wraps_api with functools.wraps.
...
Since functools.wraps updates based on the source fn.__dict__, it looks
like this was a wasteful nop. :/
2012-11-15 14:24:11 -08:00
Roger Ostrander
1340e0c0ef
The 'share' link can now share with reddit users via PM.
...
From /r/ideasfortheadmins http://redd.it/z5d0y
2012-11-15 14:20:08 -08:00
Keith Mitchell
2efdb437fa
promote.py: Clearer timer names
...
Also, replace Timer with log message for infrequently hit
code path.
2012-11-15 14:02:52 -08:00
Keith Mitchell
f2d815ef25
promote.py: Use namedtuple for storing weights
...
This replaces the difficult-to-follow tuples with
a namedtuple, AdWeight, that should be slightly less
difficult to understand when reading.
2012-11-15 14:02:46 -08:00