Tyler Renelle
62012a1052
fix adding challenges as subdoc to groups. write migration to restore those that have been created. Also in migration fix missing task.ids (taskSchema issue)
2013-11-02 18:05:14 -07:00
Tyler Renelle
c5d3d142d9
[ #1711 ] taskSchema back to doc so we can use .id(). The performacne hit isn't
...
drastic, it was the history entries that was hurting us
2013-11-02 17:09:24 -07:00
Tyler Renelle
e84aa13d62
fix reroll
2013-11-02 16:58:24 -07:00
Tyler Renelle
ba8a8d2494
add .id back to task schema
2013-11-02 16:40:00 -07:00
Tyler Renelle
8a9059aabf
[ #1723 ] send down pets array for clicked members for now (we'll eventually want to just
...
send count(items.pets) for better performance)
2013-11-02 16:22:42 -07:00
Tyler Renelle
989bdc245b
challenges: fix adding new tasks on update
2013-11-02 15:19:56 -07:00
Tyler Renelle
838108d579
[ #1711 ] got it! task.*.history & user.history as defined schemas was the
...
problem, since they're arrays of >100 each
2013-11-02 12:49:08 -07:00
Tyler Renelle
01536a2e29
Revert "[ #1711 ] back to Schema.Types.Mixed for user.tasks, this makes me sad :("
...
This reverts commit c0292d0842 .
2013-11-02 12:24:05 -07:00
Tyler Renelle
c0292d0842
[ #1711 ] back to Schema.Types.Mixed for user.tasks, this makes me sad :(
2013-11-02 11:41:34 -07:00
Matteo Pagliazzi
f784e2a0d2
remove blank line
2013-11-02 15:55:28 +01:00
Matteo Pagliazzi
567b69a0f1
fix #1669
2013-11-02 15:54:10 +01:00
Matteo Pagliazzi
3fa023452f
Merge branch 'develop' of https://github.com/HabitRPG/habitrpg into develop
2013-11-02 09:56:32 +01:00
Tyler Renelle
0a6eefe5c1
[ #1718 ] order of operations on group check. (false && false || true) ==
...
true... am I just a n00b?
2013-11-02 01:54:54 -07:00
Matteo Pagliazzi
b08a30a76b
Merge branch 'develop' of https://github.com/HabitRPG/habitrpg into develop
2013-11-02 09:54:44 +01:00
Matteo Pagliazzi
5a103db716
upgrade lodash to 2.2.1
2013-11-02 09:52:48 +01:00
Tyler Renelle
08498e37ac
[ #1718 ] don't 404 for group not found
2013-11-02 01:38:51 -07:00
Tyler Renelle
8ae75e09c5
[ #1716 ] use ui-router to collapse challenge participants (WIP)
2013-11-01 23:46:14 -07:00
Tyler Renelle
43eafb3cb7
[ #1711 ] refactored handling of group population
2013-11-01 22:45:26 -07:00
Tyler Renelle
b512f16223
[ #1711 ] more limiting fields returned by party/guild queries
2013-11-01 22:45:26 -07:00
Tyler Renelle
65b18f3af1
[ #1711 ] limit number of members that get sent down with group, limit profile
...
fields sent down
2013-11-01 19:27:08 -07:00
Tyler Renelle
a143cf09f0
Merge pull request #1710 from HabitRPG/paglias/no-reloading
...
Paglias/no reloading
2013-11-01 17:07:03 -07:00
Tyler Renelle
0638888e4b
make sure task._id == task.id (we should put this in pre(save) or something)
2013-11-01 13:38:46 -07:00
Tyler Renelle
57116d949a
[ #1709 ] fix to 'user is not defined' (for whomever is using this route, not
...
us. we need to clean up our api)
2013-11-01 13:38:46 -07:00
Tyler Renelle
fbbcecc6e2
[ #1708 ] fix to taskDefault when creating a task and scoring
2013-11-01 13:38:46 -07:00
Matteo Pagliazzi
f7dba5f323
avoid reloading for group operations
2013-11-01 21:08:36 +01:00
Tyler Renelle
2f83ac27ae
[ #1702 ] much more thorough migration of tasks to new schema, providing defaults
...
where task attrs fail type checks
2013-11-01 10:43:24 -07:00
Tyler Renelle
37027ac874
[ #1672 ] assign tasks.id = tasks._id for challenges, fixes html ids & for lables
2013-11-01 09:48:22 -07:00
Tyler Renelle
cc5126f09b
challenges: 404 challenge not foudn on GET /challenge/:cid
2013-11-01 00:30:39 -07:00
Tyler Renelle
751ae60342
[ #1701 ] don't sync chal scoring for broken chals
2013-10-31 20:37:56 -07:00
Tyler Renelle
dfeae89a07
challenges: minimum 1 gem for public challenges
2013-10-31 19:30:07 -07:00
Tyler Renelle
58fa97fb19
challenges: shortcode for tag names & task tooltips
2013-10-31 18:18:34 -07:00
Tyler Renelle
0ce76ee689
[ #1673 ] challenges: better tag-syncing, show tag bull-horn
2013-10-31 17:49:51 -07:00
Tyler Renelle
287beb363f
challenges: chal creator auto-joins
2013-10-31 16:50:22 -07:00
Tyler Renelle
b3804c4d1f
[ #1675 ] fixes to populating Group.challenges, and display challenges in party
...
page. I'm not sure about having challenges as a subdoc anymore, i think
it will be better performance and maintenance if we just reference
Challenge.group/members and remove User.challenges & Group.challenges
2013-10-31 16:20:48 -07:00
Tyler Renelle
4afcd406f5
[ #1675 ] GET /challenges retrieves challenges in groups I belong to. As a result,
...
we need to be sure to manage adding/removing Group.challenges properly
2013-10-31 15:48:21 -07:00
Tyler Renelle
14b5044fd7
[ #1695 ] add access control to update/deleting challenges
2013-10-31 15:32:30 -07:00
Tyler Renelle
d8218927e5
add debug buttons back in, including +10 gems (@sabrecat)
2013-10-31 15:14:19 -07:00
Tyler Renelle
238d796ec4
[ #1677 ] only set TASK_DELETED on tasks in current challenge (don't clobber other
...
challenges)
2013-10-31 14:52:24 -07:00
Tyler Renelle
4a442d924e
challenge: small tweaks on descriptions
2013-10-31 14:16:01 -07:00
Tyler Renelle
d5e78266e5
challenge prize: various fixes. Woo, challenge prizes work now!
...
@sabrecat @lemoness @wc8 (still some bugs & cleanup, but it's mostly there)
2013-10-31 14:06:18 -07:00
Tyler Renelle
693061c77b
challenge prize: award winner 1 achievement and challenge.prize gems. then close challenge.
2013-10-31 13:57:12 -07:00
Tyler Renelle
9d15e724e2
challenge prize: award winner 1 achievement and challenge.prize
...
gems. then close challenge.
2013-10-31 13:49:31 -07:00
Tyler Renelle
35e6f40cb6
challenge gems: deduct gems from group.balance & user.balance on the server
2013-10-31 12:39:10 -07:00
Tyler Renelle
13fa947c57
challenge prize: add to challenge creation form (including min/max validation)
2013-10-31 11:44:50 -07:00
Tyler Renelle
8b1ef412b2
[ #1692 ] don't sync score to challenge's rewards
2013-10-31 10:22:57 -07:00
Matteo Pagliazzi
9daef15ce9
typo
2013-10-31 17:47:44 +01:00
Matteo Pagliazzi
70c630fcc9
Merge branch 'develop' of https://github.com/HabitRPG/habitrpg into develop
2013-10-31 17:35:20 +01:00
Matteo Pagliazzi
904677e3a6
try to limit need to refresh after party operations, @lefnire this is only for parties and I got it working only for removeMember and leave party because I could not get join & create working
2013-10-31 17:35:04 +01:00
Tyler Renelle
9e8cdac06f
[ #1676 ] show memberCount on challenges.list. will follow up on ticket for reasoning
2013-10-31 09:17:40 -07:00
Matteo Pagliazzi
fc10e9d6e6
move party.removeSelf to client side
2013-10-31 15:41:22 +01:00