Tyler Renelle
7f2d309eb5
BREAKING CHANGE! partySubscribe: setup subscriptions incrementally to remove unecessary fetches.
2013-04-18 20:19:34 -04:00
Tyler Renelle
08f7367e17
Revert "move task-corruption cleanup to the browser"
2013-04-18 19:15:59 -04:00
Tyler Renelle
878bf3f72a
remove commented-out force-ssl, since we're handling it in nginx. refer back here if needed again
2013-04-18 16:55:04 -04:00
Tyler Renelle
3772672e95
move task-corruption cleanup to the browser. @yangit see if this fixes
...
the freeze on your end?
2013-04-18 16:52:47 -04:00
Tyler Renelle
251890f7b6
BREAKING CHANGE! partySubscribe: setup subscriptions incrementally to
...
remove unecessary fetches. Unsubscribe from first selfQ in the
end (see notes about that bug). IIRC @SLaks recommended subscribing to
all queries in one function call (I can't remember where he said that,
maybe I'm imagining) - but this old code had at least 3 superfluous
fetches that seemed to be causing performance issues
2013-04-18 16:46:56 -04:00
Tyler Renelle
47d2e299db
only do batch.commit() for corruptedTasks if corruption was found
2013-04-18 16:32:30 -04:00
Tyler Renelle
2ea0b1b673
increase item drop chance to 5% (cc @lemoness)
2013-04-18 16:04:56 -04:00
Tyler Renelle
0e5159220e
datepicker seems to have fixed the date-setting, no longer need to set
...
1 day ahead
2013-04-17 22:51:43 -04:00
Tyler Renelle
719ccf291e
untick dailies even if resting
2013-04-16 20:54:40 -04:00
Tyler Renelle
818a208b0d
remove debugger
2013-04-16 15:42:59 -04:00
Tyler Renelle
4cf86a0de9
missing requirements for previous commit
2013-04-16 14:38:48 -04:00
Tyler Renelle
7e0329ef3a
move all feature-unlocking popover notifications into unlock.coffee,
...
so we can better manage from one location and share some code. @switz
notice my change to scoring.coffee - see the comment added for the
reasoning. This before/after checking change is required for the
API
2013-04-16 13:46:44 -04:00
Tyler Renelle
c9b3c3297d
0-index count pets #824
2013-04-15 10:44:36 -04:00
Tyler Renelle
77e7b3e36d
take custom overridden profile name into account
2013-04-15 09:56:32 -04:00
Tyler Renelle
3a64c1104a
add pets count on character popover. also, static bindings wherever
...
possible - saves CPU
2013-04-15 02:27:38 -04:00
Tyler Renelle
9e86248120
"unlock all the pets" style stable layout
2013-04-15 02:03:32 -04:00
Tyler Renelle
2f50518579
remove debugger;
2013-04-14 21:48:21 -04:00
Tyler Renelle
fb6e83758b
rest: test _user.flags.rest is true explicitly
2013-04-14 21:47:43 -04:00
Tyler Renelle
0de27373ad
rest bug - lastCron must be set before "return if resting", otherwise
...
when they unrest they'll get piled by all the days they missed
2013-04-14 21:44:30 -04:00
Tyler Renelle
10da9a502f
Merge pull request #811 from wizonesolutions/587-taskstate
...
Use user's current day for completed/uncompleted.
2013-04-12 14:35:43 -07:00
Kevin Kaland
f6f397dcb0
Use user's current day for completed/uncompleted.
...
References #587 .
2013-04-12 23:20:30 +02:00
Tyler Renelle
299eaa8a14
Merge branch 'develop' of github.com:lefnire/habitrpg into develop
2013-04-12 16:38:41 -04:00
Tyler Renelle
88d2eee519
start adding tests for user.put
2013-04-12 16:38:07 -04:00
Tyler Renelle
cb34cb22b7
begin refactoring PUT /user & POST /user/tasks
2013-04-12 12:49:15 -04:00
Tyler Renelle
5fe344edc6
mass update-user function (PUT /user) which piggy-backs on PUT /tasks to mass-update tasks, including task.del (see mobile 961b86a)
2013-04-12 12:49:07 -04:00
Daniel Saewitz
9917173429
Rest
2013-04-11 18:22:06 -04:00
Tyler Renelle
3b3d4d243a
better wasCorrupted test
2013-04-11 11:49:55 -04:00
Tyler Renelle
81eb2afd9d
some more comments on corrupt tasks
2013-04-11 11:39:54 -04:00
Tyler Renelle
8ed72ae2aa
back to transction for corruptTasks
2013-04-11 11:33:50 -04:00
Tyler Renelle
0680822c19
remoeve character.coffee self-reference
2013-04-11 11:30:40 -04:00
Tyler Renelle
83649c6734
fix clear-completed
2013-04-10 19:24:33 -04:00
Tyler Renelle
570f376421
more fixes to task corruption
2013-04-10 19:24:27 -04:00
Tyler Renelle
b736713624
alright, i give up. put the full restore/cleanup function back in.
...
refLists...
2013-04-10 18:32:38 -04:00
Tyler Renelle
761aeef8cf
move task corruption cleanup back to server to solve #803 . This might
...
pose a problem for #769 , but it seems that websockets / nginx version
was the real culprit there.
2013-04-10 17:30:50 -04:00
Tyler Renelle
4af8a91793
move external script-loading back down to app.on('render')
2013-04-10 11:49:00 -04:00
Tyler Renelle
e9a164d2ad
enable websockets!
2013-04-09 22:15:04 -04:00
Tyler Renelle
d2f6597e9f
remove jquery-ui as git submodule, add it into public/vendor manually due to large direcotry size with build files
2013-04-09 13:45:09 -04:00
Tyler Renelle
72ee444608
back to our roots: store vendor files in public/vendor instead of
...
using CDN, hoping to fix #773 (hoping! will follow up). We can close #755 as a result. We use
require() to min/concat for performance. Note, previously we had "too
many files open" error because we had /vendor tracking git submodules,
which includes all files for those projects - now we're downloading
manually, which gives us minimum required files from each project's
build steps
2013-04-09 13:21:20 -04:00
Tyler Renelle
f6e53a377f
some bug-fixes & cleanup on removal of _view.*
2013-04-08 11:24:45 -04:00
Tyler Renelle
ba750141cf
fix to previous commit
2013-04-07 20:43:16 -04:00
Tyler Renelle
9222b56777
move task-corruption cleanup to cron, restore missing tasks to list -
...
let's see if this fixes #777
2013-04-07 20:38:28 -04:00
Tyler Renelle
6522badaa6
rename _view.* to _* - don't know why I did that whole _view.* thing
...
in the first place, but whatevs
2013-04-07 20:29:13 -04:00
Tyler Renelle
c55118a5bc
don't deduct GP unless purchase successful (see #233 )
2013-04-07 20:23:19 -04:00
Daniel Saewitz
9808b9a9f7
Merge pull request #770 from arscan/valuefix
...
Fixes bug when user attempts to create task with no value field through the API
2013-04-04 17:31:43 -07:00
Tyler Renelle
02a1a0d3b4
cap minimum %chance of drop to 1% so users still rewarded for
...
championed habits. Will remove once we have streaks / combos. Also
factor in task difficulty
2013-04-04 18:01:06 -04:00
Rob Scanlon
3139e51535
fix problem when updating task
2013-04-04 17:11:27 -04:00
Tyler Renelle
584759bd25
shift some require() statements around, attempt to get things out of
...
app.coffee top-level scope - working towards mem leak fix
2013-04-04 16:44:54 -04:00
Tyler Renelle
1c2cc06a6e
BREAKING CHANGE! this removes list cleanup / re-establishment. In the past, id-lists in refLists were being completely emptied (see #85 & #86 ). I'm still not sure why (see https://github.com/codeparty/racer/issues/101 or https://github.com/codeparty/derby/issues/237 possibly?). This commit reverts working around that issue, but potentially fixes #769 . Going to test this on heroku a bit before merging in
2013-04-04 16:24:13 -04:00
Tyler Renelle
0abbc98b1c
move all view helpers out of their respective files and into
...
helpers.coffee. we need viewHelpers at top-level scope, but nothing
else per se - this is preparation for memory leak fixing
2013-04-04 16:17:30 -04:00
Rob Scanlon
4113eefaf1
Fixes bug when user attempts to create task with no value field
2013-04-03 22:51:41 -04:00