Commit Graph

335 Commits

Author SHA1 Message Date
Matteo Pagliazzi a9f80bd860 fix(notifications): check for group id to be sent with seenMessage 2014-04-22 14:19:56 +02:00
Tyler Renelle 1067c82418 feat(convention): temporary solution to disable dailies for signups
during conventions (have to be on con.habitrpg.com)
2014-04-18 08:58:45 -07:00
Tyler Renelle 8d4652b6b9 feat(coupons): better formatting for wondercon 2014-04-17 21:38:38 -07:00
Tyler Renelle 39b5176c1c feat(coupons): cleaner lookup/validation of coupon code 2014-04-17 17:36:10 -06:00
Tyler Renelle a608419bba feat(coupons): add coupon-code feature 2014-04-16 23:28:37 -06:00
Tyler Renelle 56ab7384cf feat(premium): disallow deleting accounts until they've cancelled
payment plans
2014-04-14 23:07:30 -06:00
Tyler Renelle e76e545e6a fix(challenges): temporarily remove $elemMatch on challenge/user/progress, see #2947 2014-03-31 19:01:08 -06:00
Tyler Renelle 123f8192f4 feat(subscriptions): add misc. IPN handler. For this case, it will catch
off-site cancelled subscriptions
2014-03-24 21:51:49 -06:00
Tyler Renelle 440a2e2884 refactor(subscriptions): move all payments stuff to it's own controller 2014-03-24 21:51:20 -06:00
Tyler Renelle 0f430e102e feat(subscriptions): add paypal recurring cancelation. refactor stripe & paypal code to use auth.authWithUrl. 2014-03-24 20:47:25 -06:00
Tyler Renelle b686b56282 feat(subscriptions): refactor subscription & gem-purchase code, misc bug fixes 2014-03-24 20:47:22 -06:00
Tyler Renelle 10c9595662 feat(subscriptions): convert paypal gem purchases from client-side javascriptButtons to serverside NVP 2014-03-24 20:47:18 -06:00
Tyler Renelle d1a2fbbbd9 feat(subscriptions): implement partial paypal-recurring. It's having issues with cookies 2014-03-24 20:47:10 -06:00
Tyler Renelle 16977bc108 fix(api): sortTask positive on score route definition, not going
next(). Fixes #3118
2014-03-21 20:28:41 -06:00
Tyler Renelle 2e4aa19ac8 fix(facebook): api facebook bug 2014-03-01 17:28:16 -07:00
Tyler Renelle 13094c127a feat(premium): unlock mystery items within timeframe of sub sign-on 2014-02-22 21:43:44 -08:00
Tyler Renelle a8e890a6df feat(premium): mystery items 2014-02-21 17:37:37 -08:00
Tyler Renelle 7651dbee58 fix(groups): err:400 when already in a party, not 500 2014-02-21 10:36:57 -08:00
Tyler Renelle 9da5d4d6d4 fix(challenges): when unlinking tasks, sometimes the challenge no longer exists 2014-02-21 09:36:30 -08:00
Tyler Renelle 87f8a4774b fix(groups): don't show 404 for solo users (not trying to fetch party in
the first place), fixes #2919
2014-02-21 08:24:13 -08:00
Tyler Renelle c2ac90f341 refactor(groups): more res.json(500) => next(err) conversions, for
unified error-handling in express middleware
2014-02-20 22:54:47 -08:00
Tyler Renelle 312685118d perf(challenges): use proper elemMatch in challenge.getMember so we
don't have to sift through which tasks are challenge tasks
2014-02-20 11:18:33 -08:00
Tyler Renelle bf878d0693 refactor(groups): re-rig group.get query compound-index order, so we can
make use of only one compound index
2014-02-20 11:03:25 -08:00
Tyler Renelle aa9059cb2d fix(groups): use proper mongo queries to handle guild/party access in
groups.get, fixes #2664
2014-02-20 10:48:06 -08:00
Tyler Renelle 4f426b9d24 perf(challenges): use some query & elemMatch magic on memberCount to reduce challenges.list overhead. memberCount is now updated when leaving/joining challenges 2014-02-20 10:43:41 -08:00
Tyler Renelle a50f025132 feat(donations): add txnCount for each purchase 2014-02-18 17:17:56 -08:00
Tyler Renelle 78fcdd20c9 chore(tests): tests to go along with #1883 challenges fix 2014-02-14 20:37:16 -07:00
Tyler Renelle 33b326b596 fix(challenges): better handling of deleted challenges. If !chal, break the task.challenge. Move the function into userController#score so we have access to next, etc. fixes #1883 2014-02-14 19:49:34 -07:00
Tyler Renelle fd6eb8724e feat(valentine): valentine event 2014-02-13 18:40:33 -07:00
Tyler Renelle ce82be637d feat(groups): add group chat notifications 2014-02-12 21:21:30 -07:00
Tyler Renelle 72b6c9bc91 feat(event-tracking): track registration count 2014-02-11 17:53:12 -07:00
Tyler Renelle 9217b5174a feat(event-tracking): pass ga to server user.ops 2014-02-11 17:49:19 -07:00
Tyler Renelle 0c99976bf5 fix(event-tracking): stripe sub, not pp 2014-02-10 18:54:29 -07:00
Tyler Renelle d89fb17b03 feat(event-tracking): track ecommerce events 2014-02-10 14:14:45 -07:00
Tyler Renelle f7b4a04a59 feat(event-tracking): add server-side GA tracking for ecommerce events 2014-02-10 11:35:33 -07:00
Lorian 8d03cfc6b5 Made incorrect username and password show the same error, for security purposes. 2014-02-07 21:08:13 -08:00
Tyler Renelle e24d7476e8 refactor(errors): remove more res.json(500) in favor of next(err) 2014-02-07 09:20:40 -07:00
Tyler Renelle 0c21f54c67 fix(user): make sure next is passed to all routes, and is available in
err-back of batch updates
2014-02-05 21:28:46 -07:00
Tyler Renelle 4c3c4b2ae7 perf(user): save user.save till very end of ops queue 2014-02-05 21:22:25 -07:00
Tyler Renelle bf5e9016a4 fix(errors): return next(err) when experiencing errors, instead of res.json(500,{err:err}). Let the top-level error handler handle this (needed for upcoming versionerror discarding) 2014-02-05 17:28:59 -07:00
Tyler Renelle 9b3814575e perf(hall): use $gt in contributors.level index instead of $ne:null for
better performance
2014-02-04 09:49:49 -07:00
Tyler Renelle dfa27b3fa2 Merge pull request #2685 from colegleason/logging
chore(logging): add Winston and replace console.log
2014-02-02 22:06:35 -08:00
Cole Gleason 36f21196f4 fix(challenges): challenge csv export now has proper filename
This sets the Content-disposition filename for the Challenge CSV export
to be {challenge_id}.csv.

Fixes #2689.
2014-02-01 12:14:24 -06:00
Cole Gleason 4494600d92 chore(logging): replace console.* with new logging module 2014-02-01 02:01:19 -06:00
Tyler Renelle 54064debf3 feat(quests): allow dropping scrolls in quests 2014-01-31 15:06:56 -07:00
Tyler Renelle 800231cf64 feat(quests): allow html in quest notes 2014-01-31 15:06:56 -07:00
Tyler Renelle 179316e10f feat(restore): add restore-gp back in. Parly to end the winter event,
partly due to the convo at #2681 regarding subscriptions. Fixes #2681
2014-01-31 12:54:37 -07:00
Tyler Renelle a72b013131 fix(hall): let's try $gt instead of $ne:null, the query is still
slow
2014-01-31 11:11:42 -07:00
Tyler Renelle 87d196b038 chore(throttling): throttle in dev too 2014-01-31 11:11:16 -07:00
Tyler Renelle ab86ba11bd fix(user): if need to upgrade site, send 501, not 400 2014-01-31 10:27:02 -07:00