Keith Mitchell
9babd2e558
/dev/api: Reorder decorators so 'view code' points to the right place
2014-04-07 15:21:22 -07:00
Keith Mitchell
7f35e59a65
Refactor "allowed_scopes" -> "required_scopes"
...
This makes it more clear what the parameter does.
2014-04-07 15:21:17 -07:00
Keith Mitchell
ecb85f0453
/dev/api: Fix docs for /api/v1/me/prefs
2014-04-07 15:21:10 -07:00
Keith Mitchell
1cafe49b5d
OAuth: Allow use of captchas
...
Add support for "scopeless" oauth 2 endpoints,
set captcha endpoints to be scopeless.
2014-04-07 15:20:59 -07:00
Keith Mitchell
573433a4a2
OAuth: Fix APIv1Controller's handling of missing tokens
2014-04-07 15:20:38 -07:00
Jason Harvey
5a39d8a5a1
Do not incr_counts for links if item.is_author.
2014-04-07 04:35:32 -07:00
umbrae
331fab6b7f
Scraper/Websockets: Small cleanup of debug messages, dev config.
2014-04-03 06:14:59 -04:00
Keith Mitchell
db27522eb6
/dev/api: PATCH endpoint with JSON model support
2014-04-03 13:08:45 -07:00
Keith Mitchell
c413a2e2f1
Add PATCH /api/v1/me/prefs endpoint
...
Allows partial update of the user's preferences
2014-04-03 13:08:36 -07:00
Keith Mitchell
3ea509d4c0
Refactor /post/options for re-use
...
* Create a var with the validators
* Don't always grab langs out of request.POST
* Refactor validation to a separate function
2014-04-03 13:08:26 -07:00
Keith Mitchell
f72982b914
OAuth2: Add /api/v1/me/prefs endpoint
...
Returns the logged in users preferences
Supports a 'fields' parameter for limiting the
response to the desired fields.
2014-04-03 13:08:19 -07:00
Keith Mitchell
79765e2cd3
Don't double ratelimit error responses
2014-04-03 13:08:09 -07:00
Keith Mitchell
3cc9896009
Add stats tracking to sitewide ratelimiting
2014-04-03 13:08:00 -07:00
Keith Mitchell
326d332825
Add sample_rate param to Stats.event_count
2014-04-03 13:07:51 -07:00
Keith Mitchell
1ba62d43ca
Ratelimits: Recover if the incr fails
...
For a miniscule number of requests, the old value
in memcache will fall out after the call to `add`,
but before the call to `incr`. This change recovers
from that scenario.
2014-04-03 13:07:42 -07:00
Keith Mitchell
c347805646
Be consistent with cache_chain names
2014-04-03 13:07:31 -07:00
shlurbee
d19cd901f1
Add goldloggedin as a user type in GA custom variable.
...
This change will let us segment users by gold membership.
2014-04-03 11:42:46 -07:00
Brian Simpson
dab16c1458
Handle 'Failed' and 'Denied' PayPal IPNs.
...
These are noops and can be ignored.
2014-04-03 04:27:30 -04:00
Brian Simpson
17fcb723fc
fetch_trackers: allow up to 100 ids.
2014-04-01 21:41:39 -04:00
Brian Simpson
691d00d39f
Add PromosController for showing listings of live promos.
2014-04-01 21:41:39 -04:00
Brian Simpson
b1ddf7eac6
Make CampaignBuilder compatible with LinkListing.
2014-04-01 21:41:35 -04:00
Neil Williams
9ab04143c8
install-reddit: Install plugins about, liveupdate, meatspace by default.
2014-04-02 10:23:20 -07:00
Neil Williams
38348a27e8
install-reddit: Add some helper scripts to the install env.
...
These reduce typing to do paster run and paster shell by taking
advantage of the standard location of run.ini.
2014-04-02 10:23:20 -07:00
Neil Williams
11ac60fa60
install-reddit: Focus on dev-environment installs and reorganize.
...
Production installs should work pretty differently and I have a few
plans for that. In the meantime, this simplifies away a few of the bits
that were ill advisedly trying to help production installs and changes
the installer to be better suited to the modern environment with plugins
etc. by putting all code in a src/ directory.
2014-04-02 10:23:20 -07:00
Brian Simpson
cc7b9f86e5
POST_subscribe: return errors rather than silently fail.
2014-04-01 07:39:31 -04:00
Roger Ostrander
d942c806d8
Domain Notes: Keep and display notes for individual domains
2014-03-31 17:53:22 -07:00
Brian Simpson
debf587e68
Show a warning message when a user changes the bid of a paid campaign.
2014-03-31 17:21:52 -04:00
Brian Simpson
47a84541f4
Send an email when a campaign's transaction is voided.
2014-03-31 17:21:52 -04:00
Andre D
b4dbc7b495
messages: If you are the original sender of a modmail, always inbox.
2014-03-31 17:21:47 -04:00
Andre D
d78a707b33
wiki: Add an emergency admin delete.
2014-03-31 12:53:13 -06:00
Andre D
cac03393fb
saved: Add new categories to list as you save.
2014-03-31 12:53:07 -06:00
Andre D
4ab1826ee9
saved.js: Remove extra show() call.
2014-03-31 12:53:01 -06:00
Andre D
d0864ca0b7
saved.js: Save right away.
2014-03-31 12:52:54 -06:00
Andre D
ad4e2977a4
stylesheet: Add reason field.
2014-03-31 12:52:49 -06:00
Andre D
2043e5ea64
saved: Fix being unable to open dropdown.
2014-03-31 12:52:30 -06:00
Andre D
1dcaae402b
user/about.json: Do not include private values in json.
2014-03-31 12:52:21 -06:00
Chad Birch
c5db88ff88
Userpage sidebar: move mod list above AdminSidebar
2014-03-31 12:52:02 -06:00
Brian Simpson
e6d3b9dc93
CommentTreeStorageV3: remove check for comment id of -1.
2014-03-31 13:36:37 -04:00
Brian Simpson
5c5f181e69
CommentTreeStorageV3: move special no parent id to class attribute.
2014-03-31 13:36:32 -04:00
Brian Simpson
42291074d3
CommentTreeStorageV3: C* without counters.
2014-03-31 13:36:26 -04:00
Neil Williams
d4c4ff9348
Permissions: fix serialization of superuser permissions.
...
JSON serialization of a superuser permission set would return {all:
false} because of the way __getitem__ works.
2014-03-29 12:41:18 -07:00
Neil Williams
2d1a5e5495
Refactor permissions system to be more reusable.
...
These changes are necessary to allow plugins (such as liveupdate) to
reuse core parts of the permission system.
2014-03-29 12:41:16 -07:00
Brian Simpson
5f063a094a
Make it possible to unset Account.cpm_selfserve_pennies_override.
2014-03-27 09:24:19 -04:00
Brian Simpson
a5697d5c36
PromoteController: abort if link or campaign are missing.
2014-03-27 09:24:14 -04:00
Brian Simpson
a1632d761f
POST_promote_note: websafe new notes.
2014-03-27 09:24:08 -04:00
Brian Simpson
bb31bd5d8f
UserController: check item._deleted rather than item.deleted.
...
Comment.add_props can overwrite comment.deleted to be False even
when comment._deleted is True.
2014-03-27 09:23:34 -04:00
Brian Simpson
3c2a582c9d
Check that campaign belongs to the specified link.
2014-03-27 09:22:59 -04:00
shlurbee
619b16be3d
Make explore page settings sticky.
2014-03-25 15:24:08 -07:00
Brian Simpson
bd75868584
Delete selfserve summary emails.
2014-03-21 16:30:47 -04:00
Brian Simpson
906678a149
PromotedLinkTraffic: convert history from generator to list.
2014-03-21 16:30:37 -04:00