Commit Graph

51 Commits

Author SHA1 Message Date
Keith Holliday
7f65707ee4 Ported user delete route and added initial tests 2016-03-25 08:32:49 -05:00
Keith Holliday
da08b6c814 Removed group query from route 2016-03-22 16:10:17 -05:00
Keith Holliday
a8e4455124 Added group reject invite route and initial tests 2016-03-21 15:42:38 -05:00
Blade Barringer
b97511db31 fix: Use module.exports instead of export default 2016-03-04 13:29:51 -06:00
Matteo Pagliazzi
5e68589ac8 check for membership when leaving public guild, fix memberCount update when leaving group, add missing files 2016-02-28 01:11:45 +01:00
Matteo Pagliazzi
84810ae758 Merge pull request #6778 from HabitRPG/api-v3-session-invite
[API v3] Refactor session invite (no more session!)
2016-02-27 18:07:39 +01:00
Matteo Pagliazzi
6c8da9a53a fix user schema definition and add missing schema 2016-02-27 17:46:00 +01:00
Matteo Pagliazzi
b4e4e31be5 fix invitations and add missing tests 2016-02-27 12:01:00 +01:00
Matteo Pagliazzi
d2ba8e223c remove session party invitation. Implement the same feature using a query string when signing up 2016-02-26 19:18:18 +01:00
Matteo Pagliazzi
fbc944a5cc fix push notifications imports 2016-02-19 20:59:12 +01:00
Matteo Pagliazzi
fb343f8feb port push notifications in api v3 2016-02-19 20:34:55 +01:00
Matteo Pagliazzi
1daf87531a add population to join and update routes of challenges and groups, remove chat flags info everywhere 2016-02-03 11:29:19 +01:00
Matteo Pagliazzi
7a5aa731db add population to challenge.group, challenge.leader and group.leader 2016-02-02 21:47:12 +01:00
Blade Barringer
e5f1c44a3e feat: Add removeFromArray function 2016-01-25 18:08:01 -06:00
Matteo Pagliazzi
f12c9d2353 fix removeMember route and tests 2016-01-26 00:20:56 +01:00
Matteo Pagliazzi
b28e0629b1 add feature to invite user if he is partying solo 2016-01-25 18:17:09 +01:00
Matteo Pagliazzi
ea48194d96 Merge pull request #6543 from TheHollidayInn/api-v3-groups-remove-member
Added intial group remove member tests
2016-01-24 12:53:35 +01:00
Matteo Pagliazzi
fe170a591a Merge pull request #6531 from TheHollidayInn/api-v3-group-get-groups-test
Added initial get groups tests
2016-01-24 12:13:54 +01:00
Keith Holliday
2063070f18 Added group toJSON conversion and fixed syntax errors 2016-01-23 13:42:01 -06:00
Keith Holliday
ab5fc1f526 Added initial get group tests 2016-01-23 13:42:00 -06: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
Keith Holliday
be55176954 Ensured tavern is not returned twice and removed leader population 2016-01-19 08:13:24 -06:00
Keith Holliday
417d754a0d Added intial group remove member tests 2016-01-17 14:02:17 -06:00
Matteo Pagliazzi
d7d63ad229 populate group.leader 2016-01-16 15:10:18 +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
6088b6da42 fix edge case where res.respond would not work, misc comments 2016-01-13 18:35:29 +01:00
Matteo Pagliazzi
b102ff7cae Merge branch 'api-v3-groups-invites' of https://github.com/TheHollidayInn/habitrpg into TheHollidayInn-api-v3-groups-invites 2016-01-12 15:48:47 +01:00
Keith Holliday
1b395b39f8 Added invite limit and tests for when multiple users with an error 2016-01-12 08:43:11 -06:00
Keith Holliday
9141598a34 Updated invite route and function for new standards, and added tests. 2016-01-12 08:43:11 -06:00
Blade Barringer
fffa95ca09 refactor: Test against party not being private, instead of public 2016-01-12 08:11:19 -06:00
Keith Holliday
ffbd4696e3 Converted posts tests to async/await syntax and updated tests 2016-01-11 12:35:46 -06:00
Matteo Pagliazzi
a5b1dfd32d finish implementing tasks syncing for challenges 2016-01-05 20:19:55 +01:00
Kristian Tashkov
5bcce0b86b Add tests for group join route 2016-01-03 18:09:17 +02:00
Kristian Tashkov
7025bbfa32 Fix basilist scroll giving logic when joining party
closes #6416
2015-12-31 12:32:52 -06:00
Matteo Pagliazzi
aebe2fa400 finish porting to async/away syntax 2015-12-31 11:46:21 +01:00
Matteo Pagliazzi
a5aeb6917e allow getGroup to optionally work for groups where the user is not a member 2015-12-29 21:36:52 +01:00
Matteo Pagliazzi
71a910ccfb temporary fix for eslint 2015-12-29 14:45:29 +01:00
Matteo Pagliazzi
547e8a04f5 cleanup group model 2015-12-29 14:43:29 +01:00
Matteo Pagliazzi
9748ffb0a6 add updateGroup route 2015-12-28 19:45:34 +01:00
Matteo Pagliazzi
6ae2c5fa89 wip on groups controller 2015-12-27 17:24:55 +01:00
Matteo Pagliazzi
99be74b6f7 misc fixes 2015-12-21 12:20:10 +01:00
Matteo Pagliazzi
83364c1d56 add leaveGroup, joinGroup and remove member from group methods 2015-12-21 11:53:47 +01:00
Matteo Pagliazzi
8b79f74e54 fix tests 2015-12-19 18:23:13 +01:00
Matteo Pagliazzi
3e87c8d3e9 fix some tests 2015-12-19 18:07:39 +01:00
Matteo Pagliazzi
d8fae3a067 add sanitization to group creation 2015-12-18 17:45:56 +01:00
Matteo Pagliazzi
c4ea3efb2e initial implementation for POST group 2015-12-18 17:37:26 +01:00
Matteo Pagliazzi
1132e3971d initial implementation for GET groups 2015-12-18 17:26:49 +01:00
Matteo Pagliazzi
6b430e6866 add getGroup static method and refactor controllers to use it 2015-12-18 16:38:10 +01:00
Matteo Pagliazzi
7adc060312 add GET group 2015-12-18 16:32:37 +01:00
Matteo Pagliazzi
bbc47f5e00 finish porting group model 2015-12-17 16:11:45 +01:00