914 Commits

Author SHA1 Message Date
Wolfgang Huß
bfc60bcbf0 Test 'UpdateGroup' with 'categoryIds', remainders 2022-09-02 08:13:53 +02:00
Wolfgang Huß
7ec6086915 Test 'UpdateGroup' in general resolver and 'Group' resolver with 'id' 2022-09-02 08:10:46 +02:00
Wolfgang Huß
b82dcd45aa Add a missing await in 'posts.spec.js' 2022-09-02 05:35:52 +02:00
Wolfgang Huß
da66aa4852 Test 'UpdateGroup' resolver, a start 2022-09-01 15:33:28 +02:00
Wolfgang Huß
4f7ce5a6c1 Fix slugification tests of 'UpdateGroup' 2022-09-01 15:04:49 +02:00
Wolfgang Huß
44eb9d0bde Implement 'UpdateGroup' resolver, not working 2022-09-01 09:31:50 +02:00
Wolfgang Huß
a8f59a4c42 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-epic-groups
# Conflicts:
#	backend/src/constants/categories.js
#	backend/src/db/seed.js
2022-08-31 09:02:26 +02:00
Wolfgang Huß
d8d080dae5 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into categories-filter-menu 2022-08-25 17:39:38 +02:00
Wolfgang Huß
921adb9d8b Fixed all tests 2022-08-25 13:47:37 +02:00
Wolfgang Huß
c3ab014d9c Set 'updatedAt' to 'null' on 'MEMBER_OF' creation in all group resolvers 2022-08-25 13:44:05 +02:00
Wolfgang Huß
a5857c1436 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5188-query-members-of-group 2022-08-25 13:41:46 +02:00
Tima Gixe
4031605467 Revert comment's content 2022-08-25 12:43:55 +03:00
Tima Gixe
c83096fe39 Adjust comments test to expect authorized 2022-08-25 09:10:59 +03:00
Tima Gixe
15ce070288 Update tests to expect Not Authorized! 2022-08-25 09:08:14 +03:00
Wolfgang Huß
72eedef8d0 Cleanup 2022-08-23 13:12:38 +02:00
Wolfgang Huß
47027ad86b Move 'Group' resolver to building up mode in 'groups.spec.js' 2022-08-23 12:47:57 +02:00
Wolfgang Huß
cd090420cf Move 'JoinGroup' to building up mode in 'groups.spec.js' 2022-08-23 12:30:01 +02:00
Wolfgang Huß
c7c2ebdeb7 Refine clean db mode in 'groups.spec.js' 2022-08-23 12:20:27 +02:00
Wolfgang Huß
fd497a03aa Change GQL parameter for 'ChangeGroupMemberRole' from 'id' to 'groupId'
Co-Authored-By: Mogge <moriz.wahl@gmx.de>
2022-08-23 11:58:23 +02:00
Wolfgang Huß
813c072dc7 Change GQL parameter for 'JoinGroup' from 'id' to 'groupId'
Co-Authored-By: Mogge <moriz.wahl@gmx.de>
2022-08-23 11:32:22 +02:00
Wolfgang Huß
826cf5a8e0 Renamed 'GroupMember' to 'GroupMembers'
Co-Authored-By: Mogge <moriz.wahl@gmx.de>
2022-08-23 11:03:47 +02:00
Wolfgang Huß
b703621eb7 Remove local variables 'expected' and some 'variable' and put the values directly in the 'expect' calls in 'groups.spec.js'
Co-Authored-By: Mogge <moriz.wahl@gmx.de>
2022-08-23 10:52:15 +02:00
Wolfgang Huß
356fac9d94 Destruction of 'mutate' and 'query' in 'groups.spec.js' in one line now
Co-Authored-By: Mogge <moriz.wahl@gmx.de>
2022-08-23 10:36:37 +02:00
Wolfgang Huß
9dd819f8d2 Set not 'membership.updatedAt' on relation creation
Co-Authored-By: Mogge <moriz.wahl@gmx.de>
2022-08-23 10:25:39 +02:00
Wolfgang Huß
95cebd577d Refactor to group joining by ChangeGroupMemberRole and that JoinGroup is not possible for hidden groups
Co-Authored-By: Mogge <moriz.wahl@gmx.de>
2022-08-23 10:18:00 +02:00
Wolfgang Huß
e3549d3aa9 Rename resolver SwitchGroupMemberRole to ChangeGroupMemberRole
Co-Authored-By: Mogge <moriz.wahl@gmx.de>
2022-08-23 05:11:10 +02:00
Moriz Wahl
d948067f44 add category name again to seed and init to avoid conflicts with graphql model 2022-08-22 20:47:37 +02:00
Wolfgang Huß
dee20c25a9 Add test todo for 'has "updatedAt" newer as "createdAt"' 2022-08-22 11:46:41 +02:00
Wolfgang Huß
41bf1f7d39 Refactor tests in 'groups.spec.js' to have modes 'clean db' and 'building up' 2022-08-22 10:41:31 +02:00
Wolfgang Huß
e91394948c Add tests for 'SwitchGroupMemberRole' resolver 2022-08-22 10:08:58 +02:00
Wolfgang Huß
74589d4d3f Resort creation of groups and its connected joins of the groups 2022-08-22 07:27:46 +02:00
Wolfgang Huß
0fe609e294 Add test for find all member of closed and hidden groups if you are usual member 2022-08-22 07:19:07 +02:00
Wolfgang Huß
695a71bf25 Implement 'SwitchGroupMemberRole' resolver and write the beginning to test it 2022-08-20 09:43:37 +02:00
Wolfgang Huß
14620b00eb Add tests for 'JoinGroup' and 'GroupMember' resolver 2022-08-19 10:47:17 +02:00
Wolfgang Huß
d36f0eab57 Add tests for 'GroupMember' resolver, a start 2022-08-18 11:48:26 +02:00
Wolfgang Huß
25ed30dba1 Implement 'EnterGroup' resolver 2022-08-18 10:12:11 +02:00
Wolfgang Huß
27b74eb9e1 Implement 'GroupMember' resolver, a first step 2022-08-17 12:11:52 +02:00
Wolfgang Huß
0f8abe770a Move GQL mutation 'loginMutation' in 'user_management.spec.js' into a separate file 2022-08-15 15:02:04 +02:00
Moriz Wahl
beacad4a17 set CONFIG in specs 2022-08-15 11:07:45 +02:00
Moriz Wahl
dd876c52fa increas max-old-space-size for jest, handle some asyncs, test validation for caregories only if categories are active 2022-08-15 10:52:31 +02:00
Wolfgang Huß
b0d28f8649 Rename 'descriptionAddition100' to 'descriptionAdditional100' 2022-08-10 13:19:42 +02:00
Wolfgang Huß
5e741ead8d Overtake Moriz suggestions 2022-08-10 13:15:43 +02:00
Wolfgang Huß
f150ea3d7c
Update backend/src/schema/resolvers/groups.js
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2022-08-10 12:52:31 +02:00
Wolfgang Huß
82401b1488
Update backend/src/schema/resolvers/groups.js
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2022-08-10 12:52:20 +02:00
Wolfgang Huß
3d1b403656 Add relation 'CREATED' between owner and group 2022-08-09 16:55:43 +02:00
Wolfgang Huß
0149af12d4 Cleanup 2022-08-09 16:50:28 +02:00
Wolfgang Huß
117bd5e4e6 Implement error for to short 'description' and test it 2022-08-09 16:34:50 +02:00
Wolfgang Huß
b5678f7c61 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5131-implement-group-gql-model-and-crud
# Conflicts:
#	backend/src/schema/types/type/User.gql
2022-08-09 14:50:11 +02:00
Wolfgang Huß
f6bfc8aa7f
Merge pull request #5143 from Ocelot-Social-Community/5142-rename-UserGroup-to-UserRole
refactor: 🍰 Rename `UserGroup` To `UserRole`
2022-08-09 09:02:27 +02:00
Wolfgang Huß
61344fc96b Implement errors for to less or to many categories and test it 2022-08-09 08:50:25 +02:00