shlurbee
aae622d56e
Update recommend endpoint and validation.
...
get_recommendations was recently changed to accept id36s instead of subreddit
objects for the omit list. This change updates the recommender api endpoint
to match. It also makes the VSRByNames() validator return an empty dict in
case of error so it's safe to call .values() on the result.
Note: Fixes the broken "more suggestions" link in multi recommendations.
2013-12-12 12:32:51 -08:00
Andre D
d847228dca
/dev/api: Document /by_id.
2013-12-11 07:17:49 -05:00
Brian Simpson
3e74706a20
Allow sponsors to approve unpaid promoted links.
2013-12-11 07:17:35 -05:00
Brian Simpson
25cab88345
PromoteReport: don't fail when there are no links.
2013-12-11 07:17:35 -05:00
Brian Simpson
4950837f49
Fix typo in POST_freebie variable name.
2013-12-11 07:17:34 -05:00
Brian Simpson
924b244e65
RenderableCampaign: Fix freebie logic.
...
Don't let users change the bid of a freebie'd campaign and
make sure to show the "freebie" span.
2013-12-11 07:17:30 -05:00
Brian Simpson
5d5c1622e5
paymentform: clean up translations.
2013-12-11 05:04:12 -05:00
Brian Simpson
dea8040368
sponsored.js edit_campaign: use _.each to fill form inputs.
2013-12-11 05:04:12 -05:00
Brian Simpson
1ae3fd0791
promotelinkform: clean up usage of id36 and fullname.
2013-12-11 05:04:12 -05:00
Brian Simpson
50cceae977
Typo in PromoteLinkForm.
2013-12-11 05:04:12 -05:00
Brian Simpson
29f53f2163
Update styles for edit campaign table.
2013-12-11 05:04:12 -05:00
Brian Simpson
4ba7d3f7dc
RenderableCampaign is a real templated thing.
2013-12-11 05:04:06 -05:00
Logan Hanks
20c14d477e
Fix missing comment trees when comment count == batch size.
2013-12-10 22:50:18 -08:00
Neil Williams
6c013e1d63
scraper_q: Don't require a restart to fetch new services.
...
I've received multiple requests from people to confirm why their site
isn't scraping properly despite being set up with embedly. The reason is
the scraper_q wasn't restarted recently and therefore it was still using
an old service list.
Since the service list is memoized, it doesn't really matter if we
"fetch" it on every iteration. This also allows the lookup to be moved
out of the higher layers of the queue which shouldn't have knowledge of
embedly down to the correct place.
2013-12-10 16:13:53 -08:00
Neil Williams
6872f77de7
/dev/api: Use markdown for overview text.
...
This improves styling consistency and makes the source easier to edit.
Yay.
2013-12-09 16:01:37 -08:00
Neil Williams
6b2cc95ba2
/dev/api: Fully document the "subreddits" section.
2013-12-09 16:01:37 -08:00
Neil Williams
89af42e64d
/dev/api: Improve documentation for GET_comments.
2013-12-09 16:01:37 -08:00
Neil Williams
e87fa2a8db
/dev/api: Document how listings work.
2013-12-09 16:01:37 -08:00
Brian Simpson
cc3949a3f5
Don't auto-accept a link when created or edited by a sponsor.
2013-12-09 14:53:44 -05:00
bsimpson63
2a05f17161
No intermediate storage step in mr_process_hour.pig.
...
Made possible by upgrading pig to 0.10.
2013-12-05 04:04:35 -05:00
bsimpson63
e316a29fba
Don't use memory intensive bootstrap action.
...
Amazon says not to use it with AMI versions 2.0.0 and later.
2013-12-05 04:04:35 -05:00
bsimpson63
02aaf0db79
Use hadoop version 1.0.3.
2013-12-05 04:04:31 -05:00
Brian Simpson
a03b9d7de7
all_live_promo_srnames: Eliminate memoize expiration time.
2013-12-05 04:04:22 -05:00
Keith Mitchell
6055429ce0
Not all dialects are in need of translators
...
This change causes language dialects to not be
marked with a (*) on the prefs page if the base,
generic language is sufficiently translated.
2013-12-04 11:43:06 -08:00
shlurbee
b116aff0f6
Remove sr_discovery from example.ini
...
Internal promotions can now be run as house ads, so this variable is no
longer needed.
2013-12-04 11:34:27 -08:00
shlurbee
87aa75df59
Show recommended content in /explore
...
Shows a mix of content from:
- subreddits recommended for the user (based on subscriptions and multis)
- rising threads
- items from discovery-focused subreddits
Listing items emphasize the subreddit name and have feedback controls.
The AccountSRPrefs class builds a user preferences model on-the-fly from
subscriptions, multireddits, and a record of recent user feedback.
The AccountSRFeedback column family stores a user's recent interactions with
the recommendation UI. For example, it records which srs the user dismissed
as uninteresting, and keeps track of which srs were recommended recently to
make sure we don't show the same ones too often.
Each type of feedback has a ttl after which it disappears from the db.
2013-12-04 11:29:11 -08:00
Brian Simpson
1619fe1cc1
authorize: Add exception handling to is_charged_transaction.
2013-12-03 08:41:24 -05:00
Brian Simpson
316b60547f
PromoCampaign: add default value for trans_id.
2013-12-03 08:41:24 -05:00
Brian Simpson
9f28b03a76
Update all_live_promo_srnames when needed.
2013-12-03 08:41:24 -05:00
Brian Simpson
24324b642a
promote.py: Delete unneeded wrap_promoted and sponsor_wrapper.
2013-12-03 08:41:24 -05:00
Brian Simpson
10338889f5
promote.py: remove unused imports.
2013-12-03 08:41:24 -05:00
Brian Simpson
dda49c68ad
Basic support for house priority campaigns.
2013-12-03 08:41:24 -05:00
Brian Simpson
5caf5502dd
make_daily_promotions only runs for current time.
...
Specifying an offset would cause the wrong campaigns to go live.
2013-12-03 08:41:24 -05:00
Brian Simpson
534e7e5d39
promote: cleanup.
...
Consolidate duplicated logic and make methods more direct. There were
many monolithic methods that did many things and were called all over
the place when the desired action was just one piece of the method.
2013-12-03 08:41:24 -05:00
Brian Simpson
943b8e2dd6
Don't worry about everything failing in promote.
2013-12-03 08:41:24 -05:00
Brian Simpson
a9899b2b96
Cleanup house ads query.
2013-12-03 08:41:24 -05:00
Brian Simpson
9a083c3fb2
Delete LiveAdWeights.
2013-12-03 08:41:24 -05:00
Brian Simpson
37d85260c8
Stop using LiveAdWeights.
2013-12-03 08:41:24 -05:00
Brian Simpson
2567163c27
make_daily_promotions: delete test mode.
2013-12-03 08:41:24 -05:00
Brian Simpson
9c1bbd7194
PromotionWeights.get_campaigns can filter by link and sr_names.
2013-12-03 08:41:24 -05:00
Brian Simpson
d3171db97f
promote: Delete unused functions.
...
promotion_key, fuzz_impressions, campaign_lock, complimentary.
2013-12-03 08:41:14 -05:00
Neil Williams
ac25e39dda
pagecache: Degrade gracefully if pagecache.get() fails.
2013-11-25 17:35:49 -08:00
Chad Birch
311d876896
Comment: handle deleted account for link_author
2013-11-25 15:50:26 -08:00
Chad Birch
f9336c9f42
JSON: add link_author to out-of-context comments
2013-11-25 15:50:26 -08:00
Chad Birch
e1bb2f702d
Daily gold goal: store in cassandra
2013-11-25 15:50:26 -08:00
Logan Hanks
2afadc9771
Use correct cache for modmail permalinks.
2013-11-22 15:48:49 -08:00
Brian Simpson
f79949ae60
Don't link subreddit creator if they're not a moderator.
2013-11-21 19:19:31 -05:00
Brian Simpson
bad6963ae0
ipn: clean up aborts.
2013-11-21 15:09:30 -05:00
Brian Simpson
65c8ad2787
all_gold_users: retrieve spam users.
2013-11-21 15:09:30 -05:00
Brian Simpson
ae8359c4bd
accountid_from_paypalsubscription: find spam users.
2013-11-21 15:09:30 -05:00