Commit Graph

2202 Commits

Author SHA1 Message Date
bsimpson63
d63fba2d59 Add multireddit for /r/mod. 2012-12-03 14:22:11 -05:00
bsimpson63
257ea95142 Cleanup SubscriptionBox. 2012-12-03 14:22:11 -05:00
bsimpson63
9e3a2fd316 Detach campaign the cool way. 2012-12-03 14:22:11 -05:00
bsimpson63
44c3589758 Rename button edit to save when editing campaign. 2012-12-03 14:22:05 -05:00
Neil Williams
a7d3f3b612 traffic: minor housekeeping and more docstrings. 2012-12-03 10:58:38 -08:00
Ricky Ramirez
603ec0e049 wiki: Fix bug with wiki permissions. 2012-12-03 10:58:26 -08:00
Neil Williams
24aeadea19 Disable last visit processing on GET_info as well. 2012-12-03 10:49:50 -08:00
Neil Williams
a7cad5dac5 Don't do last visit stuff on POSTs.
It isn't really necessary to do it on every POST_vote, POST_hide etc.
2012-12-03 10:49:50 -08:00
Neil Williams
db7e5e9ac6 Temporarily break imgur.com domain listings for the greater good.
Turns out, this is the entire cause of current permacache lock
contention causing vote processing slowdowns.
2012-12-01 22:26:06 -08:00
Neil Williams
f8c264a7de Add client side validation attributes to submit page form elements.
There're several benefits to using the type=url format for the link url
field, including a more context-useful keyboard on some mobile devices
and browser-side validation of URLs before even sending a request to us.

This should save us from the ugly "tried to submit %s but couldn't
parse" warnings coming from people pasting imgur bbcode etc. into the
field.
2012-11-29 15:16:24 -08:00
Max Goodman
815e8563df gilding: Document the gildComment / thingupdater interaction. 2012-11-29 15:16:21 -08:00
Max Goodman
763e824a48 gilding: Fix bug where thingupdater counts were incremented.
The value supplied by the inlined thingupdater data is the current
count and should not be incremented by gildComment.
2012-11-29 15:16:21 -08:00
Max Goodman
e537c3e247 jsonp: Constrain acceptable callback values. 2012-11-29 15:16:21 -08:00
Max Goodman
fd74634669 buttons: Add simple sr name validation. 2012-11-29 15:16:21 -08:00
Logan Hanks
43e29007b2 Update example.ini to enable only comment tree v1. 2012-11-20 14:17:25 -08:00
Neil Williams
f2894776db tdb_sql: Up the number of frames in traceback.
tdb_sql has a lot of functions. Seven frames was frequently insufficient
to see who was phone.
2012-11-20 14:09:38 -08:00
Neil Williams
f0310bc0af amqp: Reduce number of messages sent down to consumers preemptively. 2012-11-20 14:09:38 -08:00
Steve Wilber
3a6db1d1e3 add parent_id to "more" things returned from morecomments.json
This fixes issue #423. morecomments already returns parent_ids, but the
.json version does not. Without parent_id, you cannot know at what
depth the "load more comments…" links should go
2012-11-20 13:36:23 -08:00
Neil Williams
bdad9c4635 stats: Condense all vote_link_q shard stats into one stats key. 2012-11-20 13:36:23 -08:00
Andre D
4a48331422 listing: Deleted users should not appear on user listings. 2012-11-20 11:47:32 -08:00
Robert Picard
2a0c595658 Capitalize "I" on the preferences page
Right now it's capitalized sometimes, and lowercased others. After a little
chat in #reddit-dev, it was agreed that it makes sense to capitalize it.
2012-11-20 11:47:32 -08:00
nekosune
117526abe3 Added Error to Stylesheet API on invalid CSS 2012-11-20 11:47:32 -08:00
DEADB33F
82ed3c9a02 Added is_friend to user account JSON response. 2012-11-20 11:47:32 -08:00
Neil Williams
a492f0ac91 AllSR: Remove obviated sr_id > 0 rule.
This rule was added to ensure that links being returned had at least an
sr_id data attribute.  This prevented an issue where replication lag on
Postgres would cause half-baked objects to be returned by queries on the
slave and then loaded in that bizarro state into Memcached breaking them
for a long time.

Now that we are using proper transactions around Thing._commit, this is
no longer necessary and we can shed it for sanity and speed.
2012-11-20 11:47:32 -08:00
Neil Williams
1e4c8bd37f AllSR: minor cleanup in get_links. 2012-11-20 11:47:32 -08:00
Neil Williams
18a0aee2d8 Synchronize mis-merges from production branch. 2012-11-19 19:05:33 -08:00
bsimpson63
f96478b743 Remove unused argument in decrement_month. 2012-11-19 19:05:33 -08:00
bsimpson63
f0ccf5ae27 Truncate promotion_history to most recent 31 days. 2012-11-19 19:05:33 -08:00
bsimpson63
157362fa6b Specify dates we want in traffic queries. 2012-11-19 19:05:33 -08:00
bsimpson63
fee89d18af Use an autocommit Session for traffic. 2012-11-19 19:05:33 -08:00
shlurbee
c0229834c7 Move to_date() function from bidding to utils 2012-11-19 19:05:32 -08:00
Roger Ostrander
cf8ca9a228 Remove extraneous reports. 2012-11-19 19:04:54 -08:00
Neil Williams
722c5a069c Cassandra: Increase timeout.
The cassandra ring is in a different AZ right now, so we need to
increase the timeout.
2012-11-19 19:04:54 -08:00
shlurbee
f17ba944d6 Change admin_override to sponsor_override since that's what the validator is actually checking 2012-11-19 19:04:54 -08:00
Logan Hanks
92bac3f77c Serve public description (not sidebar) in rss description. 2012-11-19 19:04:54 -08:00
Logan Hanks
2eb24e46ce Don't use account._spam to determine access token validity. 2012-11-19 19:04:54 -08:00
Roger Ostrander
65b146772b Backend support for bans. 2012-11-19 19:04:46 -08:00
Neil Williams
f0b336f72d Add blank templates for GoldPayment.
It is inserted in pages.py now to be a cloneable template, but that
breaks alternate views.
2012-11-19 17:55:15 -08:00
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