Commit Graph

83 Commits

Author SHA1 Message Date
Matteo Pagliazzi
382e391fd0 port updateTask, addTask, clearCompleted, taskDefaults, uuid 2016-04-04 17:18:42 +02:00
Matteo Pagliazzi
68ff26e6d6 v3: check that tasks are deleted when the user deletes the acocunt and misc fixes 2016-04-04 17:16:36 +02:00
Victor Piousbox
e6e2c26a12 shared-code-user-score-task 2016-04-01 16:11:37 +00:00
Keith Holliday
b46219adc5 Added tests for challenge task scoring and moved scoring code to model 2016-03-18 14:00:14 -05:00
Matteo Pagliazzi
7c005e7c68 fix typo in tests and increase sleep time 2016-03-17 15:20:41 +01:00
Matteo Pagliazzi
219ec01ce9 port shared.ops.allocate 2016-03-15 18:41:23 +01:00
Matteo Pagliazzi
73cb50b01a Merge pull request #6872 from TheHollidayInn/api-v3-delete-challenge-tasks-tests
Added initial delete challenge tasks tests
2016-03-15 17:26:39 +01:00
Keith Holliday
534ec07b6a Added tests to ensure challenge member can not delete active challenge task and can delete broken or unlinked challenge task 2016-03-15 10:03:48 -05:00
Matteo Pagliazzi
8e3284a4e3 wip(shared): adapt to v3 2016-03-13 22:26:32 +01:00
Keith Holliday
c04e53b5a5 Added initial delete challenge tasks tests 2016-03-12 21:00:43 -06:00
Matteo Pagliazzi
13a86c3858 Merge pull request #6869 from TheHollidayInn/api-v3-remove-challenge-checklist-item
Added initial test for removing challenge checklist item
2016-03-12 18:08:27 +01:00
Matteo Pagliazzi
ce916e31bd Merge pull request #6866 from TheHollidayInn/api-v3-updated-checklist-item
Added initial checklist item update tests
2016-03-12 18:07:50 +01:00
Keith Holliday
152f7605cd Added initial test for removing challenge checklist item 2016-03-12 10:55:12 -06:00
Keith Holliday
e4124f9e02 Added initial checklist item update tests 2016-03-12 10:38:40 -06:00
Matteo Pagliazzi
2fa361d9ea Merge pull request #6865 from TheHollidayInn/api-v3-challenge-add-checklist-item
Add initial tests for add checklist item to challenge
2016-03-12 15:56:32 +01:00
Matteo Pagliazzi
8463abb830 Merge pull request #6853 from TheHollidayInn/api-v3-challenge-tasks-put
Added initial challenge task update tests
2016-03-12 14:52:54 +01:00
Keith Holliday
0af912bebb Add initial tests for add checklist item to challenge 2016-03-11 14:19:46 -06:00
Matteo Pagliazzi
29b6e958c6 fix failing tests 2016-03-11 09:51:59 +01:00
Keith Holliday
61e360a1d8 Added initial challenge task update tests 2016-03-10 15:30:22 -06:00
Matteo Pagliazzi
fbdbd8e006 Merge branch 'develop' into api-v3 2016-03-10 18:30:09 +01:00
Keith Holliday
22e64bb88e Added initial get challenge task by id 2016-03-08 12:42:05 -06:00
Matteo Pagliazzi
863ca9954e errors working with babel 6, export v3 shared modules in main common module 2016-03-05 18:58:40 +01:00
Blade Barringer
b97511db31 fix: Use module.exports instead of export default 2016-03-04 13:29:51 -06:00
Matteo Pagliazzi
8b7719d25e fix apidoc comments 2016-02-14 12:56:40 +01:00
Matteo Pagliazzi
e1b01e3853 Merge pull request #6565 from HabitRPG/sabrecat/quest-accept
WIP: Quests for API v3
2016-02-12 20:56:19 +01:00
Matteo Pagliazzi
35e6274cd6 Move cron and preening code to server, add support for quests in cron 2016-02-08 22:18:57 +01:00
Matteo Pagliazzi
7a5aa731db add population to challenge.group, challenge.leader and group.leader 2016-02-02 21:47:12 +01:00
Matteo Pagliazzi
337b68ce43 make sure that tasks are returned in the correct order 2016-02-02 12:23:56 +01:00
Matteo Pagliazzi
4aa6545c79 fix access control when getting tasks for a challenge 2016-02-02 11:56:06 +01:00
Matteo Pagliazzi
9854d1cf34 add missing test file and update parameters for GET tasks 2016-02-02 11:42:05 +01:00
Matteo Pagliazzi
824603bc89 fix moveTask and add tests 2016-02-02 11:14:55 +01:00
Matteo Pagliazzi
f16b605c37 add update challenge with tests 2016-01-27 12:22:24 +01:00
Blade Barringer
e5f1c44a3e feat: Add removeFromArray function 2016-01-25 18:08:01 -06:00
Matteo Pagliazzi
d5751837ed add clearCompletedTodos route with tests, add test for getting completed todos, misc fixes 2016-01-25 17:23:01 +01:00
Keith Holliday
ef6afaedb4 Added intitial group leave tests
Fixed test readability, updated party test, and updated challenge update code when leaving group
Updated library, added group existance check, and reset full party
Updated syntax, added new userUnlinkChallenges, and added some initial testing for challenges
Added challenge tasks tests
Added try/catch to group remove, add more party tests, fixed broken challenge test, removed useless return value
Added public guild tests, added more tests to party, and abstracted remove invitations logic

Closes #6506
2016-01-20 08:51:30 -06:00
Matteo Pagliazzi
ee854229c7 fix dateCompleted not remove from un-completed todos and fix tasks test 2016-01-18 15:01:46 +01:00
Matteo Pagliazzi
ec7ed9c90e add tests for getChallengeMemberProgress route and several bug fixes 2016-01-17 18:31:03 +01:00
Matteo Pagliazzi
b0caf71641 fix several busg with tasks and challenges 2016-01-15 18:54:28 +01:00
Matteo Pagliazzi
7d5a7503cb fix access to user.tasksOrder 2016-01-14 20:55:13 +01:00
Matteo Pagliazzi
5206469e90 add unlinkTask route and refactor user.unlink (now user.unlinkChallengesTasks) 2016-01-14 19:46:43 +01:00
Matteo Pagliazzi
2b9aa11598 Merge branch 'api-v3-groups' into api-v3-challenges-tasks 2016-01-14 18:25:59 +01:00
Matteo Pagliazzi
9a908785c1 new history preening, save tasks after cron 2016-01-13 23:07:08 +01:00
Matteo Pagliazzi
8ba486ec12 change tasks routes to /tasks/(user|challenge) 2016-01-06 18:40:11 +01:00
Matteo Pagliazzi
a5b1dfd32d finish implementing tasks syncing for challenges 2016-01-05 20:19:55 +01:00
Matteo Pagliazzi
3bc8945bcc adapt current tests and change urls to avoid conflicts 2016-01-04 22:03:21 +01:00
Matteo Pagliazzi
6680853078 finish adding challenges support for tasks (except syncing) 2016-01-04 20:48:48 +01:00
Matteo Pagliazzi
b73f5a8f40 add support for getting single challenges tasks 2016-01-04 19:57:20 +01:00
Matteo Pagliazzi
d25cb70f66 wip get and create tasks plus initial user syncing 2016-01-04 19:44:39 +01:00
Matteo Pagliazzi
743f98d67d make sure user.tasksOrder is update only when necessary 2016-01-02 17:46:31 +01:00
Matteo Pagliazzi
775766b30f allow multiple tasks to be created at once 2016-01-02 15:43:33 +01:00