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
Keith Mitchell
a481dc33b3
promote.py: Whitespace cleanup
2012-11-15 14:02:40 -08:00
Keith Mitchell
9583c04604
promote.py: Clean up imports
2012-11-15 14:02:35 -08:00
Keith Mitchell
e0f8706d46
promote.py: Redundant param in set_live_promotions
...
set_live_promotions had a redundant "links" parameter
(an item that can be calculated from its other param).
This removes that from the function call, as well
as from the return value of its partner, get_live_promotions
2012-11-15 14:02:22 -08:00
Keith Mitchell
91ae50a394
promote.py: No more permacache for get/set_live_promotions
2012-11-15 14:02:17 -08:00
Keith Mitchell
b1a3c00568
Tighten permissions checking on modmail responses
...
Prevents users who don't have permission to see a mail
thread from submitting replies to it.
2012-11-15 14:02:02 -08:00
Neil Williams
6d6c8335a0
app_globals: Clean up imports.
2012-11-15 13:18:09 -08:00
Neil Williams
929c6bdcd3
Drastically reorganize app_globals and time app startup.
...
This should give us more information on which steps of app startup are
taking the most time so that we can minimize the effects of pushes on
capacity.
2012-11-15 13:18:09 -08:00
Neil Williams
c8a725758c
Add "days" config type and move MODWINDOW into it.
2012-11-15 13:18:09 -08:00
Neil Williams
64378cf031
stats.Timer: Add method for getting timer's elapsed time.
2012-11-15 13:18:09 -08:00
shlurbee
0e54ffbe23
Function to fetch refund amount from authorize.net
2012-11-13 14:03:47 -08:00
Neil Williams
b8b7786efc
app_globals: Move queue declarations to setup() etc.
...
It now relies on ini file configuration.
2012-11-12 16:03:06 -08:00
Neil Williams
e412fdcde7
Shard vote_link_qs by last digit of subreddit ID.
...
This should help with permacache contention.
2012-11-12 16:02:59 -08:00
Neil Williams
9faa009082
gilding: Add some views for stats gathering.
2012-11-12 16:02:29 -08:00
Brian Simpson
ed44ccf213
tdb_cassandra: Resurrect View.get_time_sorted_columns.
2012-11-12 16:02:23 -08:00
Keith Mitchell
0aaf9b9307
Correct duplicate PromotionLog from mis-merge
2012-11-12 15:49:52 -08:00
Keith Mitchell
141f3d3b0a
Search upload: Fix bug in NSFW status of subreddits
2012-11-12 15:49:52 -08:00
Keith Mitchell
9ae5aaa82a
Serve ad data from LiveAdWeights, not permacache
2012-11-12 15:49:52 -08:00
Keith Mitchell
a0eef4ca5d
Organize imports in bidding.py
2012-11-12 15:49:52 -08:00
Keith Mitchell
940b54fc84
LiveAdWeights: Cache friendly, non-permacache ads
2012-11-12 15:49:51 -08:00
Keith Mitchell
1ef424958e
SponsorBoxWeightings: optimize set_from_weights
...
It now will do a smart lookup of what Subreddits might be
active, and update only that set.
2012-11-12 15:49:40 -08:00
Keith Mitchell
df7df27aab
bidding: Refactor PromotionWeights queries
2012-11-12 15:49:40 -08:00
Keith Mitchell
7e9f9fb488
Fix issues with use of amqp for SponsorBoxWeights
2012-11-12 15:49:12 -08:00
bsimpson63
3602982f34
Useful keep_fn for unmoderated.
2012-11-12 13:20:22 -05:00
Max Goodman
0185a1fbb4
Scale gold message preview width to fit containing box.
...
This prevents the inline-block behavior of displaying on the
same line as the buy buttons if the preview is very thin.
2012-11-09 11:22:50 -08:00
Max Goodman
789a6ee5b6
Show comment gilding in compact.
2012-11-09 11:22:50 -08:00