Commit Graph

1187 Commits

Author SHA1 Message Date
bsimpson63
62ec39460c Start dual-writing spam_links and spam_comments. 2012-04-02 14:12:42 -07:00
bsimpson63
5f9acdc75b Handle comments from spam users. 2012-04-02 14:12:42 -07:00
Neil Williams
242b71310f Start dual-writing the rel queries. 2012-04-02 14:12:42 -07:00
Neil Williams
ca099a4a96 Add magic decorator for dual-writing cached queries. 2012-04-02 14:12:42 -07:00
Neil Williams
17ae72cf09 Renaming: user_rel_query isn't just for users. 2012-04-02 14:12:42 -07:00
Neil Williams
44e001b778 CachedQuery.update() should only grab MAX_CACHED_ITEMS things. 2012-04-02 14:12:42 -07:00
bsimpson63
3bf0d69e30 Hack to allow CachedQuery into MergedCachedResults. 2012-03-30 15:46:12 -07:00
bsimpson63
27f6d93051 Remove trials from modqueue. 2012-03-30 15:46:07 -07:00
bsimpson63
bcd39e132e Use SubredditQueryCache for spam filtered things. 2012-03-30 15:45:59 -07:00
Max Goodman
b352a8ce22 Use abspath when determining api_doc file paths. 2012-03-30 15:45:53 -07:00
Ricky Ramirez
06db06f8e3 Validate gold users correctly
Return a 403 Forbidden instead of raising an exception that never gets caught
2012-03-30 12:22:10 -07:00
Neil Williams
b68a879b04 Record i18n version as well. 2012-03-29 11:39:12 -07:00
Neil Williams
955471333a Pull git version check into reusable function. 2012-03-29 11:39:12 -07:00
Neil Williams
1f59a11b62 Add hook for private code to add stuff to g. 2012-03-29 11:39:12 -07:00
Neil Williams
057dfc99cd Include git revision IDs in /health response. 2012-03-29 11:39:12 -07:00
Keith Mitchell
cae85cf548 Reddit -> reddit in promo email 2012-03-29 11:37:14 -07:00
Keith Mitchell
abe385cc74 Add note to top of generated ini files 2012-03-29 11:36:53 -07:00
Max Goodman
14f84678ea Link to the correct file source in "view code" api docs links. 2012-03-28 15:09:01 -07:00
Neil Williams
9d69c78b36 Add data attributes for ups and downs on links and comments. 2012-03-28 15:09:01 -07:00
DEADB33F
83edb3bb0d Add data-fullname attribute to moderation log. 2012-03-28 15:09:01 -07:00
Logan Hanks
e78bd5e32a Fix sampling of Thing._byID cache hit/miss rate. 2012-03-27 16:09:13 -07:00
Logan Hanks
259559f224 Access CacheStats from Thing._byID more safely. 2012-03-27 16:09:02 -07:00
Logan Hanks
66fa3d3212 Keep count of Thing._byID cache hits/misses. 2012-03-27 16:05:33 -07:00
Neil Williams
bffc43e0c4 Revert "Convert /comments to new query cache."
This reverts commit c91f8a0d09c892c8d46d15bb0e788cc7a8f3889e.

We will have to do this query a different way. The speed
at which new items cycle through this causes tombstones
to pile up and queries become awfully slow.
2012-03-27 16:01:43 -07:00
Neil Williams
1857e8415c Add link to press contact page to /feedback. 2012-03-27 16:00:58 -07:00
Neil Williams
cfd93ee618 Add a custom header to private subreddit CSS.
We'll use this header to disable infrastructure-level
caching to protect subreddit privacy.
2012-03-27 15:59:05 -07:00
Neil Williams
603e14abeb Make ip_and_slash16 resilient to bizarre extra spaces. 2012-03-27 15:18:51 -07:00
ughblah
6bf6064305 Moved "sponsored link" text left to space it out from "what's this" link 2012-03-27 15:18:51 -07:00
Max Goodman
e745eec6fd Add tabindex to the password interstitial. 2012-03-27 15:18:51 -07:00
Max Goodman
da91580dc6 Fix api docs line number computation. 2012-03-27 15:18:51 -07:00
bsimpson63
8b17ea8c20 Admin menu item for modqueue. 2012-03-27 15:18:51 -07:00
Neil Williams
dc2bd127b7 Show moderated subreddits in /r/mod sidebar. 2012-03-27 15:18:51 -07:00
Neil Williams
e6b88800f1 Unify ModContribSR and MultiReddit interfaces and simplify downstream. 2012-03-27 15:18:51 -07:00
Keith Mitchell
3e40a58d42 Get rid of check_essentials hack 2012-03-27 15:18:51 -07:00
Max Goodman
b391fd5dd5 Add API rules link and revamp the docs introduction. 2012-03-26 15:52:13 -07:00
Max Goodman
1462cd3ae2 Add documentation examples to flesh out api_docs. 2012-03-26 15:52:13 -07:00
Max Goodman
e62dcd38af Refactor subreddit about.json to enable separate api_docs. 2012-03-26 15:52:13 -07:00
Max Goodman
ffca452407 Refactor ListingController so api_doc can get param info.
By moving @base_listing to the same function as @api_doc, the validators
@base_listing adds become accessible to the parameter documentation. As
far as I can tell, this is the only place build_listing is called, so I
believe this transformation is safe.
2012-03-26 15:52:12 -07:00
Max Goodman
1890d24ba0 Add api_docs decorator and parameter info. Revamp templates.
Remove OAuth2 api documentation until it lands.
2012-03-26 15:52:12 -07:00
Max Goodman
100991117c Routing changes to move apidocs to /dev/api. 2012-03-26 15:52:12 -07:00
Max Goodman
11605b4873 Move API docs controller to its own module. 2012-03-26 15:50:29 -07:00
Max Goodman
b56ff2a5eb Allow a top level css_class to be specified for page content divs. 2012-03-26 15:50:29 -07:00
Dave Pifke
3a0a034898 Do API documentation formatting in template instead.
Changes the value of the api_methods nested dictionary to be a
dictionary instead of a string.  At a minimum, it will contain
an item named __doc__ with the docstring.  Any OAuth scopes,
instead of being prepended to the docstring, will be present as
an item named oauth2_scopes.  Additional introspected data (such
as required request arguments) can be added later.
2012-03-26 15:50:29 -07:00
Dave Pifke
7f45f3dbf3 Add docstrings for OAuth API endpoints. 2012-03-26 15:50:29 -07:00
Dave Pifke
8a36d0ed77 Fix multi-paragraph docstrings. 2012-03-26 15:50:29 -07:00
Dave Pifke
fb0b650490 Automatically generate API documentation.
Needs CSS love and some rewriting of the docstrings that are now
exposed, but otherwise complete.
2012-03-26 15:50:28 -07:00
klocatelli
f1dc6548f8 Look further into a document to find its title.
Allows "fetch title" to work on youtube again.
2012-03-26 14:35:12 -07:00
Neil Williams
92cf3610f7 Rearrange CSS preview page -- put preview at top. 2012-03-26 14:35:07 -07:00
Neil Williams
a3fae4650f Don't use g.default_sr for preview links.
On reddit.com it's /r/reddit.com which is pretty
barren these days :)
2012-03-26 14:34:55 -07:00
Neil Williams
b279d29ee2 Use query cache to get preview comments for subreddit CSS. 2012-03-26 14:34:50 -07:00