Neil Williams
e191b3866e
install-reddit: Upgrade to Ubuntu 12.04 LTS (Precise Pangolin)
...
Two packages got renamed:
python-pybabel -> python-babel
python-python-statsd -> python-statsd
2012-10-11 14:36:29 -07:00
Neil Williams
408d53a983
install-reddit: Add python-kazoo dependency.
2012-10-11 14:36:29 -07:00
Neil Williams
4a5f5c7cb5
install-reddit: Make sure to enable the haproxy service.
2012-10-11 14:36:29 -07:00
Neil Williams
c63d336010
install-reddit: Disable consumers that aren't configured by default.
...
cloudsearch_q and scraper_q rely on external services (Amazon
CloudSearch and embed.ly respectively) that must be configured manually
before they will run properly. To avoid a spew of useless error messages
after installation, we'll just set the consumer counts to zero.
2012-10-11 14:36:29 -07:00
Neil Williams
548091fae9
install-reddit: Use template0 for CREATE DATABASE for UTF-8 safety.
...
template0 is the base template that should be immutable, while template1
is the site-customized version. PostgreSQL defaults to using template1
when doing CREATE DATABASE. Unfortunately, in some situations, template1
will have an encoding set that makes it impossible for us to CREATE
the reddit database with UTF-8 encoding.
2012-10-11 14:36:29 -07:00
Neil Williams
e4b827ceee
install-reddit: Fix apt-add-repository wanting user input.
2012-10-11 14:36:29 -07:00
Neil Williams
0c0efaf141
install-reddit: Allow domain to be configured at install time.
...
Automated runs of the installer need to be able to configure the
domain ahead of time to ensure that the site will come up in a valid
state. The install script will now check for an environment variable,
REDDIT_DOMAIN, and use that value if it is present. If not present,
it will default to the previous "reddit.local".
2012-10-11 14:36:29 -07:00
Neil Williams
88662070a2
setup.py: Update dependencies now that they're all officially released.
2012-10-11 14:36:29 -07:00
Neil Williams
79446e2f60
query_cache: Clean up cjson remnants.
...
It was removed because it's actually rather buggy.
2012-10-11 14:36:29 -07:00
Max Goodman
228753f70b
Fix editable value for UserList rows.
...
The most dangerous lines are the ones that look too simple to consider.
2012-10-10 11:25:55 -07:00
Neil Williams
cf68046674
query_cache: Limit prune deletion size for safety.
...
If prunings fail, the number of items in a fast-moving cached query
could grow rather large. This prevents a bad case where the pruning
ends up way too big and fails itself, causing the query to snowball in
size.
2012-10-10 11:23:24 -07:00
Neil Williams
8c62ace8bb
query_cache: Add lots of documentation.
2012-10-10 11:23:24 -07:00
Neil Williams
2ef0a7f452
query_cache: Assert that the decorated function starts with get_.
2012-10-10 11:23:24 -07:00
Neil Williams
30b404005e
query_cache: Remove unused parameter from fetch.
2012-10-10 11:23:24 -07:00
Neil Williams
2bd87bf16c
query_cache: Mark some classes as module-private.
2012-10-10 11:23:24 -07:00
Neil Williams
e2c9d98062
query_cache: Get rid of "update" method and clean up classes.
...
Update isn't even possible for the pure-Cassandra queries, and is
dreadfully slow on the SQL backed queries. If we need to recalculate
queries, they should be done from a map/reduce job.
2012-10-10 11:23:24 -07:00
Neil Williams
5c2c0e67e7
query_cache: PEP-8 and whitespace tweaks.
2012-10-10 11:23:24 -07:00
bsimpson63
96845173b5
Separate SqlCachedQuery and CassandraCachedQuery.
...
Original CachedQuery assumed an underlying SQL query to be cached.
New CassandraCachedQuery can cache arbitrary Things by a specified
sort. SqlCachedQuery has same behavior as CachedQuery.
2012-10-10 11:23:21 -07:00
Neil Williams
eec49ad45c
CommentPaneCache: time uncached views, cache hits, and cache misses.
...
This should give us a little more insight into how much work the
CommentPaneCache is doing.
2012-10-10 10:35:31 -07:00
bsimpson63
840cea6067
Allow comments on old promoted links.
2012-10-10 10:35:31 -07:00
Max Goodman
9d97503ccb
Move space escaping to individual tagline templates.
2012-10-09 16:23:36 -07:00
Keith Mitchell
e673f1f977
error pages: c.errors sometimes not set
...
With the proper import this time.
2012-10-09 15:52:14 -07:00
Keith Mitchell
77731b52f9
Whitespace changes for @spladug
2012-10-09 15:52:14 -07:00
Keith Mitchell
dca1431548
search: Make 'flair' a searchable field again
2012-10-09 15:52:13 -07:00
Keith Mitchell
a392ef2ffe
css: Remove -moz/-webkit-border-radius
...
Removed from reddit.css, per:
http://caniuse.com/#search=border-radius
2012-10-09 15:52:13 -07:00
Keith Mitchell
a444de7341
Gold: Add proper "Thanks!" landing page
2012-10-09 15:52:13 -07:00
Keith Mitchell
239d01ee67
analytics: Track gold checkouts via Analytics
...
This adds the necessary HTML and JS to the gold
checkout pages to get google analytics data on
those actions.
2012-10-09 15:52:13 -07:00
Neil Williams
1a30a7012f
Revert "Move /comments to new query cache."
...
Looks like we'll have to figure out a different data model for this
one. It's just too high-volume.
This reverts commit 56852f1f068b7fb1dc83d547e383e93b3877abb9.
2012-10-09 15:44:59 -07:00
Max Goodman
47549b4bb3
Defer translating system messages.
...
Currently, messages are sent using the language of the sender, which
doesn't work well for system messages. We're going to avoid translating
them for now until we can return such messages in the language of the
receiver.
2012-10-09 15:38:13 -07:00
Max Goodman
db7b531a71
Change moderator adding to an invite system.
2012-10-09 15:38:13 -07:00
Max Goodman
7706f844f3
Generalize moderator toggle UI styles.
2012-10-09 15:38:13 -07:00
Max Goodman
8f3084f03d
Remove unused UserList.addable property.
2012-10-09 15:38:12 -07:00
Max Goodman
8edf4d5fec
UserList wants to be with its friends.
2012-10-09 15:38:12 -07:00
Max Goodman
fa856f515e
Whitespace.
2012-10-09 15:38:12 -07:00
Max Goodman
61ae776245
Fix spacing in message taglines.
2012-10-09 15:38:12 -07:00
Max Goodman
4c7eb1b561
Add modmail handling to user added system notifications.
2012-10-09 15:38:12 -07:00
Max Goodman
f23bef2445
Move POST_friend notifications to a system messages lib.
2012-10-09 15:38:12 -07:00
Max Goodman
ca3ce29cf4
Deduplicate sr friend types.
2012-10-09 15:34:37 -07:00
Max Goodman
136826343e
Make SR UserRel list diff friendly.
2012-10-09 15:33:15 -07:00
cswider
d3f82297d1
Set header separator cursor to the default cursor.
2012-10-09 15:33:15 -07:00
Kevin Kress
6d5952703b
Remove unreferenced models files.
...
2 files that haven't been updated since 2008.
2012-10-09 15:33:15 -07:00
Max Goodman
736b4866b9
This alt text has no semantic value.
2012-10-05 15:42:46 -07:00
Max Goodman
3c1f792679
Silly tooltips.
2012-10-05 15:42:46 -07:00
Max Goodman
57e8bbe6bb
Brick the submit page rule reminder.
2012-10-05 15:42:46 -07:00
shlurbee
0e238fa9a3
Don't create new record for failed transaction
...
This fixes a bug where "authorized" bid records with trans_id 0 were showing
up in the bid history.
2012-10-05 15:25:04 -07:00
shlurbee
242a4fbe67
Cass data store for promotion metrics
...
Used in inventory prediction.
2012-10-05 15:25:02 -07:00
shlurbee
ba77b47457
Inventory prediction functions
...
Fetch and store min daily pageviews from last 2 weeks for every subreddit in the traffic db
2012-10-05 15:24:56 -07:00
Keith Mitchell
3326bb153c
search: Metaclasses are dangerous tools
2012-10-04 15:54:43 -07:00
Keith Mitchell
fe7b7ef7e7
search: sr.sidebar is actually sr.description
2012-10-04 15:54:37 -07:00
Keith Mitchell
7000b97490
search: Be less silent on errors
2012-10-04 15:54:31 -07:00