Files
habitica/website/server/controllers/api-v3
Mateus Etto b0eda344f1 Limit party size to 30 members (#8589)
* Added a field in Party page with members count and maximum members in party

* Added information of invitations counter

* Limited party to 2 members on server (API)

* Fixed english text

* Consider current number of invitations in the party

* Moved PARTY_LIMIT_MEMBERS to common folder

* Access the PARTY_LIMIT_MEMBERS through groupsCtrl

* Some corrections

* Hide invite button when invite limit is reached

* Added missing trailing comma

* Do not test 'returns only first 30 invites' in a party anymore, but in a guild: party is limited to 30 members, so it would always fail

* Test: allow 30 members in a party

* Test: do not allow 30+ members in a party

* Improved 'allow 30 members in a party' test

* Test: 'allow 30+ members in a guild'

* Added missing trailing comma

* Code style corrections

* Fixed new line position

* Party limit check done inside Group.validateInvitations function

* Improved members count query

* Fixed tests

* Rewrite tests

* Removed import of BadRequest: value became unused

* Added 'await' to remaining 'Group.validateInvitations' functions

* Fixed tests that would always success
2017-03-26 21:23:19 +02:00
..
2017-01-11 19:16:20 +01:00
2017-02-27 13:58:30 -07:00
2017-01-19 23:02:22 +00:00
2016-10-06 21:45:37 -05:00
2016-10-19 21:31:07 -05:00
2017-02-16 08:53:21 -07:00
2017-02-05 22:32:10 -07:00
2016-12-20 15:32:59 +01:00
2017-01-13 14:06:46 -07:00
2016-11-23 19:34:09 -06:00
2017-03-18 12:01:41 -05:00
2016-11-03 08:31:30 -05:00
2017-03-06 15:09:50 -07:00