861 Commits

Author SHA1 Message Date
Wolfgang Huß
6f6dc4e7fd Refactor 'groupMembersQuery' to a function that returns GQL
- Toast some Apollo GQL error messages
2022-09-18 17:51:26 +02:00
Wolfgang Huß
a85085ca74 Refactor 'changeGroupMemberRoleMutation', 'groupQuery' to a function that returns GQL 2022-09-18 17:35:08 +02:00
Wolfgang Huß
14824c8b33 Refactor 'leaveGroupMutation' to a function that returns GQL 2022-09-18 17:15:29 +02:00
Wolfgang Huß
1c040e1549 Refactor 'joinGroupMutation' to a function that returns GQL 2022-09-18 14:07:38 +02:00
Wolfgang Huß
6df10e5588 Refactor 'updateGroupMutation' to a function that returns GQL
- Add and refactor some tests for the user resolvers.
- Refactor minor in general.
2022-09-18 08:35:31 +02:00
Wolfgang Huß
7d9e42806c Refactor 'createGroupMutation' to a function that returns GQL 2022-09-18 07:07:11 +02:00
Wolfgang Huß
dcfb361793 Refine group 'UpdateGroup' resolver tests 2022-09-17 21:05:43 +02:00
Wolfgang Huß
0048486a78 Refactor to save location in db by 'UpdateUser', 'CreateGroup', and 'UpdateGroup' resolvers
- Refactor, add, and refine tests of location for 'CreateGroup' and 'UpdateGroup' resolvers.
2022-09-17 20:55:43 +02:00
Wolfgang Huß
728eac98ac Refine 'createOrUpdateLocations' call and import 2022-09-17 08:32:11 +02:00
Wolfgang Huß
57f7a43d09 Test locations in group resolvers 2022-09-16 21:09:45 +02:00
Wolfgang Huß
1195be11ac Fix, refactor, and partly implement generation of a location relation in Neo4j for users and groups 2022-09-16 21:07:43 +02:00
Wolfgang Huß
d32c137cff Implement 'locationName', 'location' in 'CreateGroup', 'UpdateGroup', and 'Group' resolvers 2022-09-16 07:40:33 +02:00
Wolfgang Huß
8469ecd792 Merge branch '5059-groups/5318-group-profile-second' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5318-group-profile-members-list-etc 2022-09-14 16:31:31 +02:00
Wolfgang Huß
73b6b24b72 Refine 'convertObjectToCypherMapLiteral' with additional parameter 2022-09-14 16:30:09 +02:00
Wolfgang Huß
6af9e0cec0 Merge branch '5059-groups/5318-group-profile-second' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5318-group-profile-members-list-etc
# Conflicts:
#	webapp/locales/de.json
#	webapp/locales/en.json
2022-09-14 16:18:37 +02:00
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ß
d42afff17e Fix mutate to query for some tests using the 'GroupMembers' resolver 2022-09-13 22:47:55 +02:00
Wolfgang Huß
6fec36470c Test 'LeaveGroup' resolver 2022-09-13 20:23:48 +02:00
Wolfgang Huß
6a9c040722 Implement 'LeaveGroup' resolver 2022-09-13 20:23:34 +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
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ß
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