Commit Graph

1355 Commits

Author SHA1 Message Date
Neil Williams
4e04740d62 Remove unused CassandraClick model. 2012-06-04 14:10:01 -07:00
bsimpson63
b27b634b12 Delete things from spam_filtered queries. 2012-06-04 11:51:37 -07:00
Neil Williams
a1bb5eda39 query_cache: Gracefully handle zero-query merge. 2012-06-04 11:51:37 -07:00
shlurbee
55d2038354 Update config with new promocampaign thing table 2012-06-04 11:51:37 -07:00
Neil Williams
5545459aab Add install script. 2012-06-04 10:58:50 -07:00
Neil Williams
74a4a884fa Add upstart job for auto-reloading paster. 2012-06-04 10:58:50 -07:00
Neil Williams
20c126fec1 Add vote queue consumer upstart scripts. 2012-06-04 10:58:50 -07:00
bsimpson63
37da8b585c Reorganize queries.
del_or_ban, unban, clear_reports handle QueryCache queries more clearly.
2012-06-01 13:48:24 -07:00
bsimpson63
fb198d5bd7 Stop writing to old CachedResults for spam and reports. 2012-06-01 13:48:24 -07:00
bsimpson63
634e9b1038 Read reports and spam from new QueryCache. 2012-06-01 13:48:24 -07:00
Neil Williams
f5b6839a78 Losslessly optimize JPEGs.
Disabled by default in example.ini. Install jpegoptim
or an equivalent and set the configuration properly.
2012-06-01 13:48:24 -07:00
Keith Mitchell
78ee90c499 Some link flair updates weren't triggering search uploads 2012-06-01 12:08:51 -07:00
Neil Williams
c517c41501 Don't show "Saved" tab on front page to unlogged users.
It 404s right now and is only there for legacy reasons anyway.
2012-06-01 12:08:43 -07:00
shlurbee
f72e1fbccf more detailed promotion logging
Log creation/deletion of campaigns and include campaign id in promotion logs.
This change will make it easier to troubleshoot self-serve bugs.
2012-05-31 20:04:48 -07:00
Neil Williams
28cf919800 Add queue consumer upstart jobs. 2012-05-31 15:57:57 -07:00
Neil Williams
da3bd2ee69 Get rid of problematic buffering in job wrapper. 2012-05-31 15:57:57 -07:00
Neil Williams
533e695d55 Tweak wrap-job to support queue consumer naming conventions. 2012-05-31 15:57:57 -07:00
Neil Williams
5c80560e51 Add script for starting/restarting queue consumer jobs. 2012-05-31 15:57:57 -07:00
Neil Williams
2028bc4418 Add upstart tasks for cron jobs. 2012-05-31 12:29:07 -07:00
Neil Williams
1c1863e464 Add script to wrap cron jobs. 2012-05-29 12:15:59 -07:00
Neil Williams
e59b61d2cf Cut get_sent query over to new query cache. 2012-05-29 12:15:59 -07:00
Neil Williams
ab039b4722 Use a different set of memcaches for locking. 2012-05-29 12:15:59 -07:00
shlurbee
76142d50cd Remove user id from authorize.net invoice number
Previously, invoice number was [user_id]T[link_id]C[campaign_id].
Since campaigns are represented as Things now, their ids are longer, putting
us over the 20 char limit for invoice numbers defined in the authorize.net
xml api.
(see https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd )

Now invoice number will be T[link_id]C[campaign_id], which is still unique
across campaigns since a link is always associated with only one user
2012-05-29 11:39:16 -07:00
shlurbee
09dbd49445 Update config with new promocampaign thing table
Adds promocampaign table (needed for the PromoCampaign model introduced in the
previous commit) to example.ini
2012-05-24 20:24:08 -07:00
shlurbee
aa2225349e Creates campaign model and dual-write campaigns to Thing table
First step of breaking campaigns out into their own data object.

Campaigns are still stored as an attribute on their promoted Link as before,
and all reads are still done from the link attribute, but writes (creation of
a campaign and edits to a campaign) are also written into a Thing table.

NOTE: This change has a configuration dependency in another repository.
The following lines must be added to the .ini file:
db_table_promocampaign = thing
db_servers_promocampaign = [YOUR SERVER NAMES HERE]
2012-05-24 16:57:34 -07:00
Brandon Carl
1e5b886fab Removes two extraneous quotes in template HTML around IE-specific stylesheet includes. 2012-05-22 15:42:26 -07:00
Bryce Boe
c96fb01d42 Added public_description to SubredditSettingsTemplate. 2012-05-22 15:42:26 -07:00
Neil Williams
bac15c68e4 Destale c.site on subreddit settings page.
This should fix funkiness with changed settings getting "lost" after
the redirect/refresh catches a stale-cached version of the settings.
2012-05-22 13:37:56 -07:00
Neil Williams
5db25a86b5 Add width to subreddit midcol.
Since "+/-frontpage" became "subscribe" and "unsubscribe", the text is
no longer the same width. This causes the subreddits to be jagged on
/reddits listings. This fixes it by giving space (hopefully enough for
all languages) for the buttons.
2012-05-22 13:37:56 -07:00
Neil Williams
ccd6d1f8e0 On /reddits, prefix subreddit titles with /r/srname. 2012-05-22 13:37:56 -07:00
Neil Williams
dbdf637d9f Seperate "description" and "sidebar" for subreddits. 2012-05-22 13:37:56 -07:00
Neil Williams
ac78f0b153 Start dual-writing get_sent. 2012-05-22 13:37:56 -07:00
bsimpson63
295595a397 Only look up account by subscr_id when hardcache is empty. 2012-05-22 13:37:56 -07:00
Max Goodman
7136fcbf4a Fix self serve email in the ad inquiry page. 2012-05-22 13:37:56 -07:00
Neil Williams
9b8e8390cf Cut inbox queries over to new query cache. 2012-05-21 15:45:28 -07:00
shlurbee
9f14001f8a Make payment invoice number unique per campaign
Makes campaign id a part of the invoice number so self-serve users can create
multiple campaigns at the same bid amount without getting a duplicate
transaction error
2012-05-18 11:50:53 -07:00
Neil Williams
a97c2af1ad locale.format -> babel.numbers.format_number 2012-05-17 15:02:40 -07:00
Neil Williams
c9c1bc6fec Only show CNAME form items for subreddits with the option set. 2012-05-17 15:02:39 -07:00
Neil Williams
ac53a4bca2 Preserve extension and query string when doing /saved redirect. 2012-05-15 09:42:54 -07:00
Neil Williams
a0f37adb13 De-stale c.site for stylesheet requests.
Since we're using nginx in front of subreddit stylesheets
to protect ourselves from ponies, we need to make sure we
don't give a stale copy of the CSS when requested with the
new query param thereby poisoning nginx's cache.
2012-05-15 09:42:54 -07:00
Neil Williams
e6555cf680 Bump comment limit to 50K. 2012-05-15 09:42:53 -07:00
Neil Williams
d6cc4403ce Make update_score take a vote object, not valid_thing. 2012-05-15 09:42:53 -07:00
Neil Williams
db4071fcf5 Revert "Log when a thing is thrown out in UserController."
This reverts commit ca39ec469f9832c7baedf4c651757587d5055210.
2012-05-15 09:42:53 -07:00
Keith Mitchell
3a936b3519 Add pointer to /help/search if search query was mangled 2012-05-15 08:43:50 -07:00
Max Goodman
4ec2406f70 Add missing api_doc for POST_del. 2012-05-15 08:38:29 -07:00
DEADB33F
e0aaa3e0fb Mark text of edited self-posts with an asterisk
Self-text submissions which have been edited now get an edited asterisk.
Edited asterisks get title text with 'last edited time'.
2012-05-15 08:38:15 -07:00
Keith Mitchell
c209cc2f32 Switch to cloudsearch as primary search provider
Also, remove unused indextank files
2012-05-15 08:21:01 -07:00
Keith Mitchell
7d01b9a8f4 Skip indexing things that have only been voted on 2012-05-15 08:20:47 -07:00
Neil Williams
4111c7338a Log when a thing is thrown out in UserController.
Hopefully this helps track down the cause of disappearing
items on the /liked and /disliked pages as well as providing
verification of new query cache stuff.
2012-05-04 12:38:37 -07:00
Neil Williams
6ab11b367c Move the saved links listing to the profile page hierarchy. 2012-05-04 12:38:10 -07:00