Commit Graph

2929 Commits

Author SHA1 Message Date
Neil Williams
14ea67a8ac Merge pull request #787 from morrisgn/patch-1
Create Morris+Ganis
2013-05-16 14:49:53 -07:00
morris ganis
b1b506426f Create Morris+Ganis 2013-05-16 23:46:10 +02:00
Roger Ostrander
f1db8effe8 API: Record account deletion time 2013-05-15 16:29:32 -07:00
bsimpson63
3f9def5e3d Don't memoize on get_promotion_list_cached. 2013-05-15 16:23:30 -07:00
bsimpson63
2e29366a2d Don't memoize cached_organic_links. 2013-05-15 16:23:30 -07:00
Jason Harvey
834e2702bf Use the amqp message timestamp to set the Vote date. 2013-05-15 16:23:30 -07:00
Jason Harvey
1b5d22089c If a user is loggedin, and does not have over18 pref, do not show over18 content.
Previously, the existence of an over18 cookie would display over18 content to
loggedin users, even if their preferences disallowed over18 content.
2013-05-15 16:23:30 -07:00
Jason Harvey
7ecceb9169 Revert "Remove memoize on normalize_hot."
This reverts commit 1dbc2b181a463828a0eda76551a1e1d1b31afeb5.
2013-05-15 16:23:30 -07:00
Keith Mitchell
6f1028e6b3 Skip over Ads with 0 weight 2013-05-15 16:23:30 -07:00
Max Goodman
79ccaca4ea Add support for a live-config sidebar info message. 2013-05-15 16:14:13 -07:00
Neil Williams
bf8750f32f pagecache: Add a debug header to indicate hits/misses.
To get the header in responses, be in debug mode or send
"Pragma: x-reddit-pagecache" in your request.
2013-05-15 11:33:22 -07:00
Neil Williams
c5380a4e59 pagecache: Don't cache GET_info.
Most of these results are negative lookups, so we end up spending a lot
of memcache bandwidth and memory space on identical json responses.
2013-05-15 11:33:22 -07:00
Neil Williams
fd96b5319b pagecache: Make actions able to specify pagecache policies.
This allows us to control pagecache behaviour at a per-action level.
There are three policy levels,

LOGGEDIN_AND_LOGGEDOUT - allow caching of resp. generated for loggedin.
LOGGEDOUT_ONLY - the current default.
NEVER - don't use the pagecache.
2013-05-15 11:33:22 -07:00
Neil Williams
c32617dd43 pagecache: Do not write 304s to the cache.
304s are triggered in reddit by the value of a request's
If-Modified-Since header. This header is not accounted for in the
request_key. We mustn't cache a response that isn't necessarily valid
for that request.
2013-05-15 11:33:22 -07:00
bsimpson63
aa16ccd352 Show gold creddit balance even if user doesn't have gold. 2013-05-14 15:03:49 -04:00
David Hu
54d5becaaf Submit page subreddit suggestion obeys user's over_18 preference. 2013-05-13 15:09:45 -04:00
bsimpson63
a2f0a9e35c PromoteReport for generating traffic reports on promoted links. 2013-05-13 15:09:45 -04:00
bsimpson63
9442f16cb4 traffic: Add campaign_history for querying targeting things. 2013-05-13 15:09:39 -04:00
Andre D
0e34dd7d6a wiki: Add wiki page name to body class. 2013-05-13 11:30:32 -07:00
Andre D
2c905548fe wiki: Add page name to title. 2013-05-13 11:30:32 -07:00
Andre D
4dcd7c2ec7 wiki: Ensure spammed users cannot create pages. 2013-05-13 11:30:32 -07:00
Andre D
1ae0ad796b wiki: Allow dashes in page names. 2013-05-13 11:30:32 -07:00
Andre D
24a4511beb wiki: Fix an xss fixed server side already. 2013-05-13 11:30:32 -07:00
Andre D
533ae1f8dc wiki: unsafe() diff html on conflict. 2013-05-13 11:30:32 -07:00
Andre D
f3c9c753b3 wiki: Ensure users who cannot revise do not get a create link. 2013-05-13 11:30:31 -07:00
Andre D
2e36cab7d4 wiki: Ensure wiki page not found gives a 404. 2013-05-13 11:30:31 -07:00
Andre D
1e57168013 wiki: Ensure wiki less gets evalulated before custom css. 2013-05-13 11:30:31 -07:00
Andre D
618f16cce6 reddit: Decompose stylesheet inclusion into functions. 2013-05-13 11:30:31 -07:00
cswider
833583b39d Adjust numbered lists margin to show two digits. 2013-05-10 16:33:12 -04:00
Chad Birch
6211d82f7a Use correct fullname prefixes for message parents
Previously, all parent_id values would be prefixed with t4_ (message),
even if the message was from a comment, which would actually have either
a comment or link parent.
2013-05-10 14:23:52 -06:00
Neil Williams
810bbc1096 Don't use referrer as a fallback in VDestination.
Since the referrer is not included in cache keys for pagecache or
Akamai, this can result in weird stuff getting cached and causing
downstream users to get redirected after login/registration to
unexpected destinations.
2013-05-10 11:00:27 -07:00
Neil Williams
6ba84d7ab9 /dev/api: Add an explanation of modhashes to the overview. 2013-05-09 14:42:57 -07:00
Neil Williams
d1ae49b4d9 /dev/api: Add an overview section and explain fullnames. 2013-05-09 14:42:57 -07:00
Neil Williams
60f9ce7af3 /dev/api: Add api_type to parameters where appropriate. 2013-05-09 14:42:57 -07:00
David Hu
23ee164ab0 Fix unexpected captcha iden when API call fails and captcha is not needed. 2013-05-09 13:49:38 -04:00
David Hu
77a591df37 Fix unexpected captcha iden in response of successful API calls. 2013-05-09 13:49:38 -04:00
Steve C
bfd5f69d7f Follow oauth2 expires_in spec. 2013-05-09 13:49:32 -04:00
bsimpson63
e04e0714cc Use EST to get fixed UTC-5 for traffic date displays. 2013-05-08 17:14:15 -04:00
bsimpson63
0e3017788f Let promote.get_total_run figure out dates for get_traffic_dates. 2013-05-08 17:14:15 -04:00
bsimpson63
1322668a1e Return datetimes with tzinfo=g.tz from get_total_run. 2013-05-08 17:14:15 -04:00
bsimpson63
97caffc934 Take PromoCampaigns as inputs in promote.get_total_run. 2013-05-08 17:14:15 -04:00
bsimpson63
b717296dd6 Delete old campaign traffic pages. 2013-05-08 17:14:15 -04:00
bsimpson63
bc23801d4e Redesign PromotedLinkTraffic. 2013-05-08 17:14:14 -04:00
bsimpson63
00623614c9 PromotedLinkTraffic: set chart date to EST. 2013-05-08 17:14:14 -04:00
bsimpson63
1ea76b8f28 Reclass traffic-table to traffic_viewer-table.
The table was picking up the odd/even highlighting.
2013-05-08 17:14:14 -04:00
bsimpson63
1f64bf6e83 Use the correct selector in POST_traffic_viewer. 2013-05-08 17:14:14 -04:00
bsimpson63
89a2638bd7 Don't show empty UserList table. 2013-05-08 17:14:14 -04:00
bsimpson63
2cebd2881f Add promotion_history to targeted traffic classes. 2013-05-08 17:14:14 -04:00
bsimpson63
6ca97cca5e Sum promotion_history for all rows with the same interval/codename/date.
Also don't return uniques because their summed values are not meaningful.
2013-05-08 17:14:14 -04:00
bsimpson63
637b5770c0 Get correct width in zip_timeseries. 2013-05-08 17:14:07 -04:00