Commit Graph

2255 Commits

Author SHA1 Message Date
Andre D
4d9c2e7d63 wiki: Add missing json endpoints.
- pages list
- discussions
- settings
2012-12-06 14:54:14 -08:00
Andre D
266c2d9312 wiki: Added missing discussions rss endpoint. 2012-12-06 14:54:14 -08:00
Andre D
8cde040be9 wiki: Use c.site.path. 2012-12-06 14:54:14 -08:00
Andre D
55dc8831b3 wiki: If no edit_date, do not attempt to convert it. 2012-12-06 14:54:14 -08:00
Andre D
b64f29b235 wiki: Remove c.page_obj. 2012-12-06 14:54:14 -08:00
Andre D
967d725751 wiki: Add docs. 2012-12-06 14:54:13 -08:00
Andre D
9b98e05392 wiki: Include page in request automatically. 2012-12-06 14:54:13 -08:00
Andre D
9e8c66fab8 wiki: Add modhash checking. 2012-12-06 14:54:13 -08:00
Andre D
f66ce75c90 wiki: Move wikimarkdown calls into templates. 2012-12-06 14:54:13 -08:00
Andre D
512c147b9d wiki: Visual cleanup of pages listing. 2012-12-06 14:54:13 -08:00
Andre D
e36780f4c4 wiki: Link in the revision listing. 2012-12-06 14:54:13 -08:00
Andre D
b357725544 wiki: Show wiki actions on banned and contributors pages. 2012-12-06 14:54:13 -08:00
Andre D
5a1a913286 wiki: Put wiki page title in the page title. 2012-12-06 14:54:13 -08:00
Andre D
652d24e77d wiki: Rename c.wiki to c.wiki_page. 2012-12-06 14:54:13 -08:00
Andre D
8e188e2b3c wiki: Rename wiki_disabled to disable_wiki. 2012-12-06 14:54:13 -08:00
Andre D
ac8c222d21 errors: Correct the way api mode is detected. 2012-12-06 14:54:13 -08:00
Andre D
4a5f0cf3c7 wiki: Restructure api endpoints. 2012-12-06 14:54:13 -08:00
Andre D
4963fd239f wiki: Remove some inline css. 2012-12-06 14:54:13 -08:00
Max Goodman
f858121086 wiki: Move state variables out of inline JS. 2012-12-06 14:54:13 -08:00
Max Goodman
511ca3e56d wiki: URL-escape constructed API call URLs. 2012-12-06 14:54:13 -08:00
Max Goodman
a0899409b1 wiki: Fix files undefined in finally case. 2012-12-06 14:54:13 -08:00
Max Goodman
d56f02e8ed wiki: Remove debug statement. 2012-12-06 14:54:13 -08:00
Andre D
4ecee12d33 wiki: Rework page creation. 2012-12-06 14:54:13 -08:00
Andre D
f4bab12564 wiki: Use VSrModerator. 2012-12-06 14:54:13 -08:00
Max Goodman
4d86ad0a8f Add small front page gold advertisement. 2012-12-06 14:54:13 -08:00
Max Goodman
8bf881535f Make the subreddit field required. 2012-12-06 14:54:13 -08:00
Max Goodman
09b0be2583 Add maxlength attribute to submit form title field. 2012-12-06 14:54:13 -08:00
Max Goodman
d7644b8f00 Remove spurious submit form title wrap attribute.
This was prompted by buggy IE10 behavior where the "required" attribute
form validation seems to treat the textarea as empty with the "wrap"
attribute present.
2012-12-06 14:54:12 -08:00
Ricky Ramirez
aa645a45df sharelink: Clearly specifiy methods of sharing links. 2012-12-06 14:54:12 -08:00
Neil Williams
2d22cd2aa9 Split the rendercache and pagecache.
The pagecache and rendercache have very different usage profiles.
2012-12-06 14:54:12 -08:00
Neil Williams
b201405a0e Move CommentPane cache to the render cache pool. 2012-12-06 14:53:51 -08:00
bsimpson63
9da18a9926 Cleanup RenderableCampaign and add batching for live campaigns. 2012-12-06 15:17:16 -05:00
bsimpson63
f7c2437f24 Adweight uses Link fullname as 'link' field. 2012-12-06 15:17:01 -05:00
bsimpson63
4e850ca427 Batch lookup subreddits in make_daily_promotions. 2012-12-06 15:17:01 -05:00
bsimpson63
90dfcdf7be promote.py: Use more descriptive names. 2012-12-06 15:17:01 -05:00
bsimpson63
81272f7dd4 Stop using traffic to weight promotions. 2012-12-06 15:17:01 -05:00
bsimpson63
c944834650 promote.py: Reorganize for readability. 2012-12-06 15:17:01 -05:00
bsimpson63
20061dffb3 Fix typo so we correctly calculate Subreddit traffic weights. 2012-12-06 15:16:50 -05:00
Neil Williams
cadc79f517 DenormalizedRelation: fix bug in fast_query single thing2 case. 2012-12-04 13:44:46 -08:00
Neil Williams
6e7c3d697c CommentPane cache: save some work when not logged in.
Skip the authorship checks and ThingUpdater work (two iterations over
the comment listing) when the user is not logged in.
2012-12-04 13:44:46 -08:00
Neil Williams
efa3bb4009 Add migration script for regenerating CommentParticipationByAccount CF. 2012-12-04 11:41:24 -08:00
Neil Williams
68291521b5 Move query_cache scripts to a more general "migrate" directory.
Not just for the query cache anymore!
2012-12-04 11:41:24 -08:00
Neil Williams
925c9ccc68 /dev/api: Fully document the "links and comments" section. 2012-12-04 10:29:21 -08:00
Neil Williams
9f5740e3ff /dev/api: Use "fullname" instead of "id" where appropriate.
ID is used elsewhere to mean the raw numerical ID (usually represented
in decimal) rather than the fullname which includes the type ID and is
in base36.
2012-12-04 10:29:21 -08:00
Neil Williams
01a67579a8 /dev/api: Improve semantics of param markup and tweaks styles.
The style changes should make it easier to match param names to
descriptions, especially with multi-line descriptions.
2012-12-04 10:29:21 -08:00
Neil Williams
e99a34c36b /dev/api: Remove translation markers from param docs.
The docstrings are untranslated so it is inconsistent to mark the
params for translation.
2012-12-04 10:29:21 -08:00
Max Goodman
d566d91d84 Temporarily use "[deleted]" in JSON for deleted usernames.
This is to work around Alien Blue crashing when it encounters a `null`
in the author property. We'll revert this after a grace period for
Alien Blue and any other affected apps to be updated.
2012-12-03 18:05:21 -08:00
Neil Williams
4e620f96b5 Start writing comment participation by thread.
This new DenormalizedRelation tracks when a user is the author of a
comment in the given thread.  Once it's backfilled, we can use it to
quickly determine eligibility for the CommentPane cache.
2012-12-03 15:33:44 -08:00
Neil Williams
3a5eabc7cc JSON: Fix deleted account names being leaked. 2012-12-03 15:33:44 -08:00
Keith Mitchell
faa59a2b4c check-code: Rework check-code for other use cases
check-code now handles 3 main use cases:

check-code report: Generate a report of pep8, pep257, and pyflakes problems
check-code regression: Diff said report from current ref to the upstream git ref
check-code junit: Create a junit report of all problems in the current git ref

Additionally:
* You can specify which files to check (check-code junit r2/r2/models/link.py)
* You can send output to a file (check-code -O junit.xml junit)
2012-12-03 14:21:59 -08:00