Andre D
1d64fa367c
tdb_cassandra: Add the ability to remove items from views
2012-09-11 15:36:38 -07:00
Andre D
a131ae7084
Links: Add the ability to get links to urls rather than just articles
2012-09-11 15:36:38 -07:00
Andre D
a805fa6a44
tdb_cassandra: Fix unicode error in deserialization
2012-09-11 15:36:38 -07:00
bsimpson63
df32e50a70
DenormalizedView encodes dates to base64 before dumping to json.
2012-09-11 15:36:38 -07:00
bsimpson63
eab8a83da6
Add _on_commit hook for tdb_cassandra.ThingBase.
2012-09-11 15:36:38 -07:00
bsimpson63
051ec10e25
DenormalizedView that stores entire Thing in column.
2012-09-11 15:36:38 -07:00
Neil Williams
17a2e1c2f9
Make queue declarations and bindings plugin-friendly.
...
This allows plugins to declare queues and bind routing keys to them
using a declarative syntax.
This also removes some r2admin cruft from public.
2012-09-11 11:48:33 -07:00
Neil Williams
3147fc9ee5
amqp: Remove some dead code.
2012-09-11 11:48:33 -07:00
Neil Williams
91c6ab63a8
Locks: Pare down the traceback stored in the lock cache.
...
This reduces the size of the traceback data stored in the lock caches by
an order of magnitude. It is intended to help with the drastic imbalance
in lock cache network usage.
2012-09-11 11:08:20 -07:00
Neil Williams
792c7d5ad5
Move stub admin-templates to root template directory.
...
This fixes the import of stub templates in open-source installs.
Before pluginization, the admin-stub templates were imported from the
admin sub-module of the templates directory if r2admin were not
available. Since we're not doing that logic anymore, these stub
templates need to move into the root template directory so they can be
found by the system.
2012-09-10 17:26:42 -07:00
Max Goodman
207f2ad17a
plugins: Give later plugin routes precedence over former ones.
...
This is to be consistent with templates, js, and static files, where
later plugins can override former ones.
2012-09-10 17:26:42 -07:00
Max Goodman
b591a27628
plugins: Load plugins in the order listed in the .ini.
2012-09-10 17:26:42 -07:00
Max Goodman
bbafea9d71
PEP8 imports.
2012-09-10 17:26:41 -07:00
Max Goodman
203cce4378
plugins: Single template_dir and precedence over base templates.
2012-09-10 17:26:41 -07:00
Max Goodman
bfbe3e1532
Work around mako compiled template updating issue.
2012-09-10 17:26:41 -07:00
Max Goodman
2407a0cda6
s/reddit/subreddit.
2012-09-10 17:26:05 -07:00
Max Goodman
a4e06d6328
Save our kindhearted admin clippy readers a redirect.
2012-09-10 17:26:05 -07:00
Max Goodman
9f180b2e16
Pluralise moderators in the admin clippy message.
2012-09-10 17:26:05 -07:00
Max Goodman
0f12bd92bf
Update admin clippy message to the new team page.
2012-09-10 17:26:05 -07:00
Keith Mitchell
5f116b09c8
Fix domain_override handling for approved sponsors
2012-09-10 17:26:05 -07:00
Neil Williams
c12c4082fd
VotesByAccount: enable new LastModified stuff.
2012-09-10 14:09:59 -07:00
Neil Williams
e867dea55f
DenormalizedRelation: Add in LastModified support.
...
I did an experiment to see if DenormalizedRelation would need the
LastModified stuff, since it takes heavy advantage of row-level bloom
filters. It turns out that there are a huge number of completely
not-found rows being fetched per second that LastModified would save us
from doing a round trip for.
Since LastModified is shared between several relations in a single
request, and CommentVote, Save, and Hide will be denormalized soon, this
should give us a good amount of savings in the long run.
2012-09-10 14:09:59 -07:00
Neil Williams
f7cfcc4aaa
VotesByAccount: Go down to RCL ONE.
...
We don't need quorum here.
2012-09-10 14:09:59 -07:00
Neil Williams
15ee1e0434
vote: Cut vote reads over to LinkVotesByAccount.
...
This is a somewhat hacky and temporary way to do this until we are
confident that it works and want to turn off dual-writes to the column
family.
2012-09-10 14:09:59 -07:00
Keith Mitchell
b29f09ac03
Remove unused i18n email code
2012-09-10 10:24:55 -07:00
Neil Williams
b832496391
js: Fix load_plugin_modules use from build commands.
2012-09-05 16:41:26 -07:00
Neil Williams
86f920fa32
Remove r2admin hooks obviated by pluginization.
...
The private code is becoming a plugin, so a lot of the special-case
infrastructure for it can be handled by the plugin stuff instead.
2012-09-05 14:02:36 -07:00
Neil Williams
78501dbf6d
plugins: Add needs_static_build flag to toggle Makefile use.
...
Not every plugin needs to build static files. Instead of assuming they
do, the plugins will have to opt-in to having their Makefile called.
2012-09-05 14:02:36 -07:00
Jason Harvey
4e3ca52037
Move update_last_visit to post().
...
Avoids triggering use_write_db logic at the beginning of the request.
2012-09-05 12:01:28 -07:00
Jason Harvey
a327439989
Increase self-post length to 15k.
2012-09-05 12:01:18 -07:00
Neil Williams
1b6b839c06
CommentSortsCache: Use new column fetching behaviour.
...
And now that we're doing so, we can reduce the max_column_count in
tdb_cassandra as it was only boosted to help this column family out.
2012-09-04 11:17:20 -07:00
Neil Williams
24c3793b17
tdb_cassandra: Optionally fetch very wide rows in small batches.
...
Thrift will materialize the entire result set into memory before
returning it to the client, so requesting very large numbers of columns
is quite detrimental to the server's health. Instead of increasing the
max_column_count ad infinitum, we'll fetch the columns in batches when
the model tells us that's desired.
2012-09-04 11:17:20 -07:00
Neil Williams
f93c685637
traffic: Link recent 300x100 campaigns on SR traffic page.
...
The previous 300x100 traffic links weren't actually helpful as 300x100s
generally have a campaign added onto the codename. This finds campaigns
that have been seen in a subreddit recently and links them on the
subreddit traffic page.
2012-09-04 10:27:53 -07:00
Max Goodman
1bb821b7fc
Remove defunct iphone bookmarklets.
2012-08-31 16:15:36 -07:00
Max Goodman
ae908d39ae
Remove deprecated button code and templates.
...
Redirect deprecated requests to /button?t=<num>... to the static js.
2012-08-31 16:15:36 -07:00
Neil Williams
87c86c4e9f
Authentication: Add HTTP Basic access authentication.
2012-08-31 11:39:37 -07:00
Neil Williams
2a8cc84faa
Refactor user authentication to be more modular.
...
This allows alternate authentication methods to be easily plugged in for
custom installs of reddit, such as LDAP on intranets.
2012-08-31 11:39:04 -07:00
Neil Williams
c7f92ca960
Factor out HTTP Basic auth header parsing code for re-use.
2012-08-31 11:38:57 -07:00
Keith Mitchell
05ee678362
Check for c.user before grabbing pref_local_js
...
During some errors, additional tracebacks
were being generated due to the attempted
reference to c.user before it had been properly
set. This should protect against that and let
the proper errors go through.
2012-08-31 11:36:42 -07:00
Keith Mitchell
127e890f5e
Search: Sort by number of comments
2012-08-31 11:36:37 -07:00
Keith Mitchell
4327c8d15c
Fix unicode for plain syntax queries
2012-08-31 11:36:29 -07:00
Keith Mitchell
34418630d6
Let subreddits_by_topic use plain syntax
2012-08-31 11:36:22 -07:00
Keith Mitchell
1dea92c1de
Ensure that unicode is being passed to l2cs
...
This is in preparation for some enhancements
to l2cs that require it to have a decent interface
(i.e., it's going to require unicode rather than
accepting either byte strings or unicode)
2012-08-31 11:36:17 -07:00
Neil Williams
a8c6631c40
Comment Pane Cache: make cache lifetime configurable in INI.
...
This allows us to independently vary it on some servers via ini file
(i.e. fastlane).
2012-08-30 13:28:47 -07:00
Neil Williams
3812f7ba8f
Comment Pane Cache: disable caching for the author of the link.
2012-08-30 13:28:47 -07:00
Neil Williams
cb1d625b1a
fastlane: Make commentstree_q have a fastlane counterpart.
...
This allows us to isolate gigantic comment threads from the rest of the
system.
2012-08-30 13:27:12 -07:00
Neil Williams
c337280e47
fastlane: Separate votes on some links and their comments.
...
If a specific link has ridiculous traffic, we can inform the
apps (via ZK live config) that votes on it should be sent to a
separate, dedicated, queue to avoid overwhelming the rest of the
system.
2012-08-30 13:27:12 -07:00
Neil Williams
5ba0618963
queries: Parameterize queue name for run_commentstree.
...
This allows us to reuse the code for a queue of the same meaning but
different name (i.e. a commentstree fastlane).
2012-08-30 13:27:12 -07:00
Neil Williams
1b6423a073
example.ini: Document subreddit suggester live config options.
2012-08-30 13:27:11 -07:00
DEADB33F
7d3986e3d4
Added 'body.moderator' class to /r/mod and mod-multireddit pages.
2012-08-28 16:20:37 -07:00