939 Commits

Author SHA1 Message Date
Wolfgang Huß
7bb3a05b07 Clarify conversion to Cypher literal map for use as 'MATCH' parameter by making a resolver helper function 2022-09-14 16:10:55 +02:00
Wolfgang Huß
210aebb829 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5318-group-profile-second 2022-09-14 14:27:01 +02:00
Wolfgang Huß
5eabdf1495 Comment out unimplemented parameters in 'Group' resolver 2022-09-10 07:46:08 +02:00
Wolfgang Huß
36f6fee8be Query groups by 'Group' resolver via 'slug' and test it 2022-09-09 13:44:13 +02:00
Wolfgang Huß
b3a0d88a46 Merge branch '5059-groups/5316-in-be-hidden-groups-not-listed-for-none-or-pending-members' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5318-group-profile-second 2022-09-08 13:33:42 +02:00
Wolfgang Huß
89920f387a Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-epic-groups
# Conflicts:
#	backend/src/schema/types/type/User.gql
2022-09-08 13:29:29 +02:00
Wolfgang Huß
6879b1112c Refine tests of 'Group' resolver 2022-09-08 13:11:55 +02:00
Wolfgang Huß
00ccf5ed9a Implement and test to find no hidden groups by 'Group' resolver where user is none or 'pending' member 2022-09-08 12:55:16 +02:00
Moriz Wahl
a65e306b85 all categories saved returns empty array 2022-09-07 16:04:09 +02:00
Moriz Wahl
860949dc6a test current user query for active categories 2022-09-07 15:00:04 +02:00
Moriz Wahl
bcaeee44fa adopt active categories as array of ids 2022-09-07 14:12:53 +02:00
Moriz Wahl
18e15be24d active categories is array of string (ids of categories), current user query resolves with active categories 2022-09-07 14:09:24 +02:00
Wolfgang Huß
d11b512bfb Merge branch '5059-epic-groups' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5190-group-profile 2022-09-07 08:32:05 +02:00
Moriz Wahl
ab662db0e4 empty array as input only clears all saved categories 2022-09-06 18:46:47 +02:00
Moriz Wahl
8a688ca78b improve tests 2022-09-06 15:14:31 +02:00
Wolfgang Huß
b2f0c0677d Fix typo after Moriz suggestion
Co-Authored-By: Mogge <moriz.wahl@gmx.de>
2022-09-06 10:39:56 +02:00
Wolfgang Huß
9b83b37ea3 Upload group avatar on group profile page 2022-09-06 09:14:28 +02:00
Moriz Wahl
4e5d4cb873 basic tests for save category settings 2022-09-05 20:51:48 +02:00
Moriz Wahl
fc6d544ea7 add resolver for save active categories 2022-09-05 20:07:14 +02:00
Moriz Wahl
572377acfd add active categories to user 2022-09-05 20:06:10 +02:00
Moriz Wahl
b8ac4cc3ca add saveCategoruSettings mutation to schema 2022-09-05 17:41:21 +02:00
Wolfgang Huß
685ef85752 Test 'Group' with 'categories' as result
- Cleanup.
2022-09-05 09:30:35 +02:00
Wolfgang Huß
5f081cdb0d Refine test descriptions for groups
- Cleanup.
2022-09-05 09:19:07 +02:00
Wolfgang Huß
92e6cc3f1b Cleanup 2022-09-05 09:13:47 +02:00
Wolfgang Huß
e713f65522 Refine groups testing 2022-09-05 09:01:42 +02:00
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