Commit Graph

3783 Commits

Author SHA1 Message Date
Neil Williams
5dc0e7e367 Factor activity fuzzing out of Subreddit.get_accounts_active.
This allows liveupdate to reuse the same code.
2013-11-19 14:33:28 -08:00
Neil Williams
0e7758db89 Remove unused util interleave_lists. 2013-11-19 14:33:19 -08:00
Neil Williams
c3c2f200fc read_secrets: Don't transform INI options on output. 2013-11-19 12:43:28 -08:00
Francesco Frassinelli
f7c2ebb6ef Added missing netcat dependency
netcat is needed (tested on Ubuntu 12.04.3 LTS x86_64)
2013-11-19 12:16:58 -08:00
Neil Williams
3366083663 Create a vault for secret tokens and move some into it.
This is intended to reduce the number of critical secrets stored in the
INI file.  An initial subset of secrets is moved into the vault to test
things out.
2013-11-19 12:16:58 -08:00
Neil Williams
342ad24409 Factor out INI file parsing into util. 2013-11-19 12:16:58 -08:00
Brian Simpson
484ac3b850 CassandraCache: convert 0 time to None ttl. 2013-11-15 05:00:14 -05:00
Brian Simpson
7a0b633c73 GoldSubscription: convert pennies to a float before doing math on it. 2013-11-15 05:00:14 -05:00
Brian Simpson
2315e77e6d Raise NotFound if full name type is not thing or relation. 2013-11-15 05:00:14 -05:00
Brian Simpson
d2d325ce7f CreditGild needs a value for period. 2013-11-15 05:00:14 -05:00
Brian Simpson
929e1db472 Need to use hasattr to check for stripe_customer_id. 2013-11-15 05:00:14 -05:00
Brian Simpson
5c64272668 complete_gold_purchase is a classmethod of GoldPaymentController. 2013-11-15 05:00:14 -05:00
Brian Simpson
1a03651dee Don't allow multiple gold subscriptions on an account. 2013-11-15 05:00:14 -05:00
Brian Simpson
19d9968455 Don't PM users with gold subscription about expiration. 2013-11-15 05:00:14 -05:00
Brian Simpson
89ffb73378 Renable submit button on all stripe exceptions. 2013-11-15 05:00:14 -05:00
Brian Simpson
a0d39d680e Stripe gold subscriptions. 2013-11-15 05:00:14 -05:00
Brian Simpson
8db4d6721a Show a status message immediately when user submits credit card. 2013-11-15 05:00:14 -05:00
Brian Simpson
e20e9eb7a0 ipn: move state to Webhook object. 2013-11-15 05:00:02 -05:00
Brian Simpson
89f6f1ad9c Delete cython versions of normalized_hot. 2013-11-14 02:09:21 -05:00
Brian Simpson
82a1e0dde7 find_preview_comments/links: use sr rather than c.site. 2013-11-14 02:09:21 -05:00
Brian Simpson
380140f0aa Use sgm to cache each subreddit's normalized_hot links. 2013-11-14 02:09:14 -05:00
Ricky Ramirez
1f4682ce8a set_subreddit: Protect against IDNA encoding errors. 2013-11-13 22:30:12 -05:00
Brian Simpson
c827dea143 Add timer around normalized_hot. 2013-11-13 22:30:12 -05:00
Brian Simpson
bdfecf27c5 sgm: use the time parameter. 2013-11-13 22:30:12 -05:00
Brian Simpson
683c88baf8 Count clicks on the "comments" link for a selftext promoted link. 2013-11-13 22:30:03 -05:00
Brian Simpson
5b0f8f3efd Promotion_Summary: comment explaining campaign accounting. 2013-11-12 16:44:00 -05:00
Brian Simpson
1f5dbcb6f4 Promotion_Summary: subtract refund_amount. 2013-11-12 16:44:00 -05:00
Brian Simpson
27986fc2bf PromotionWeights: delete get_schedule and bid_history. 2013-11-12 16:44:00 -05:00
Brian Simpson
c5ce5f851d Delete unused promote.traffic_totals. 2013-11-12 16:44:00 -05:00
Brian Simpson
fe93947f85 Move inventory multiplier to INVENTORY_FACTOR constant. 2013-11-12 16:44:00 -05:00
Brian Simpson
3281b27ae9 Better handling of ignore in inventory methods. 2013-11-12 16:44:00 -05:00
Brian Simpson
55ac9f7aed PromoteInventory page. 2013-11-12 16:44:00 -05:00
Brian Simpson
f4a03851ea inventory: split out get_predicted_pageviews. 2013-11-12 16:44:00 -05:00
Brian Simpson
0db61fcc9b inventory: get_campaigns_by_date method. 2013-11-12 16:44:00 -05:00
Brian Simpson
c48b98554f PromotionWeights.get_campaigns can filter by sr_name. 2013-11-12 16:44:00 -05:00
Brian Simpson
0dce9b97a7 Delete Promote_Graph. 2013-11-12 16:44:00 -05:00
Brian Simpson
0a652a9513 Stop using Promote_Graph in Promotion_Summary. 2013-11-12 16:44:00 -05:00
Brian Simpson
19af2d5f33 Revert "Promo admin tool"
This reverts commit 301512551aca1231f7bc3cbd7bca96720415ef35.
2013-11-12 16:43:53 -05:00
Brian Simpson
7e14f37921 Remove Google Checkout.
The service is being discontinued.
2013-11-12 15:59:16 -05:00
Brian Simpson
d9611d6c58 Rename variable in stripeResponseHandler.
The error span is named 'status' and we don't want to overwrite it.
2013-11-11 16:51:59 -08:00
Neil Williams
1daefe4ad7 gold progress: Use Pacific time.
Additionally, this adds a function for fetching revenue by day in batch.
2013-11-11 16:51:59 -08:00
Chad Birch
e97767715d Gold goal: allow employees to see actual goals 2013-11-11 16:51:59 -08:00
Chad Birch
c4e3c9fa35 Gold goal: switch to dynamic goal
Previously the goal was simply a static amount, this changes it so that
it is set to 110% of the average revenue from the previous 7 days
(disregarding highest and lowest revenues). To prevent too large of
swings due to "spikes", the goal is restricted to no more than a 20%
change from the previous day's goal.
2013-11-11 16:51:59 -08:00
powerlanguage
9a135ac379 contact us: Add password/username recovery detail 2013-11-11 16:51:17 -08:00
Roger Ostrander
18a57c3f40 JSON: Don't include spam settings for non-moderators 2013-11-11 16:45:56 -08:00
Brian Simpson
ec845b9d9e PromoteReport: use promote.charged_or_not_needed. 2013-11-07 22:58:15 -05:00
Brian Simpson
370314ed1d Show house campaigns on the traffic page. 2013-11-07 22:58:07 -05:00
Neil Williams
2f5d8cd4fa Add a middleware to sanitize response splitting attempts.
Thanks to Jordan Milne (/u/largenocream) for reporting this and
joyent/node@3c293ba272 for inspiration for
this solution.
2013-11-07 13:04:09 -08:00
Andre D
909ce5fefb submit_text: Solve race condition issues by aborting old requests. 2013-11-06 13:03:35 -08:00
Roger Ostrander
533d3765d7 Subreddit Creation: Display defaults for spam 2013-11-06 13:03:35 -08:00