Commit Graph

1173 Commits

Author SHA1 Message Date
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
Neil Williams
0f7e3a69f2 Allow private code to have a say in ratelimiting. 2012-03-26 14:34:44 -07:00
bsimpson63
ca01b8c622 Allow users to remove their email address. 2012-03-20 21:11:46 -07:00
ughblah
9886db8de9 Restrict show_friends to only display [F] in div.content 2012-03-21 13:13:53 -07:00
Neil Williams
ee28a0f321 Convert /comments to new query cache. 2012-03-21 13:13:48 -07:00
Neil Williams
8a7d2a8990 Add debug logging to the new query cache. 2012-03-21 13:13:41 -07:00
Neil Williams
afb4de999e Allow CachedQueryMutator to be used not as a context manager. 2012-03-21 13:13:35 -07:00
Neil Williams
b284dc80ae Convert to JSON for query cache storage. 2012-03-21 13:13:28 -07:00
Neil Williams
8fd2169e4f ColumnFamily.get's column_count defaults to 100. Set it higher. 2012-03-21 13:13:23 -07:00
ughblah
1d84f7e5f5 Removed midcol and rank sizing from replace_things function 2012-03-19 15:52:20 -07:00
ughblah
a516ca9ed1 Removed midcol and rank sizing from insert_things function 2012-03-19 15:51:18 -07:00
Keith Mitchell
8b1911d09b Make _defaults dicts more diffable 2012-03-19 15:51:13 -07:00
Keith Mitchell
38eef5483e Add 'from_sr' to Message defaults 2012-03-19 15:51:09 -07:00
Neil Williams
e4ef53b888 Google Analytics: trackPageLoadTime is deprecated.
Site speed is sampled on 1% of requests automatically
as part of _trackPageview. This is the maximum allowed
by Google for properties with >1M hits / day.
2012-03-19 10:52:11 -07:00
Neil Williams
9c9d2e45e8 Google Analytics: use short form of _gaq.push. 2012-03-19 10:52:05 -07:00