2184 Commits

Author SHA1 Message Date
Moriz Wahl
631f34a2e5 improved code and tests as suggested by @tirokk, thanks for the great review! 2022-10-10 21:21:45 +02:00
Moriz Wahl
4556276351 fix: leaving public group keeps the posts in public group visible. Test leaving public group and visibility of posts in public group 2022-10-10 20:57:42 +02:00
Moriz Wahl
4fdaa0da4e
Update backend/src/schema/resolvers/helpers/filterInvisiblePosts.js
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2022-10-06 13:13:23 +02:00
Moriz Wahl
a4cd7a8698 test search posts with groups 2022-10-05 21:54:52 +02:00
Moriz Wahl
74505a11c5 filter posts for group visibility on search posts 2022-10-05 17:57:01 +02:00
Moriz Wahl
a924357a13 fix cypher when posts do not exist 2022-10-05 13:10:18 +02:00
Moriz Wahl
76bfe48476 implement and test post visibilty when leaving or changing the role in a group 2022-10-05 11:20:27 +02:00
Moriz Wahl
aa870b5020 searches need authorization as they are not working without user id in context 2022-10-05 08:57:13 +02:00
Moriz Wahl
ab5d308caa test profile page posts 2022-10-05 08:38:05 +02:00
Moriz Wahl
570d6c099d test filter posts 2022-10-05 08:27:35 +02:00
Moriz Wahl
67cba104b8 remove findPosts and findUsers as they are never used. 2022-10-05 08:09:21 +02:00
Moriz Wahl
03434071b4 fix cypher to have signup verification to block posts of groups for new users 2022-10-04 05:44:11 +02:00
Moriz Wahl
275d196cb6 further testting for post visibility 2022-10-04 05:04:42 +02:00
Moriz Wahl
068d622c44 createPostMutation as function 2022-10-04 05:03:39 +02:00
Moriz Wahl
77125e404f createPostMutation as function 2022-10-04 05:03:02 +02:00
Moriz Wahl
4331c73414 test post invisibility for unauthenticated users 2022-10-04 02:28:42 +02:00
Moriz Wahl
32d3c5e904 insure that user context is present as posts can be queried without authentication 2022-10-04 02:27:45 +02:00
Moriz Wahl
16a24bfddf remove not working filters from schema 2022-10-04 02:02:59 +02:00
Moriz Wahl
833bd5ff77 use invisible post filter 2022-10-04 02:01:59 +02:00
Moriz Wahl
069eefde17 add helper function to filter invisible posts 2022-10-04 01:59:32 +02:00
Moriz Wahl
4a12cdf9e2 remove unused memberIds statement 2022-10-03 22:43:46 +02:00
Moriz Wahl
4a63e1449e calls to query and mutate are functions 2022-10-03 22:42:08 +02:00
Moriz Wahl
abcfe259a0 query and mutations are functions 2022-10-03 22:41:25 +02:00
Moriz Wahl
5f4d7c2bf3 add notVisibleFor statement 2022-10-03 22:40:54 +02:00
Moriz Wahl
1870efc3d0 add CANNOT_SEE relation to posts in groups 2022-10-03 22:36:46 +02:00
Moriz Wahl
b259295094 Merge branch '5059-epic-groups' into post-in-group 2022-10-03 13:16:20 +02:00
Wolfgang Huß
5392da0983 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-epic-groups 2022-09-24 18:18:20 +02:00
ogerly
858739eaa0 fix review 2022-09-22 18:42:58 +02:00
Moriz Wahl
a9cd661e63 add tets for posts in groups 2022-09-22 08:17:09 +02:00
Moriz Wahl
e748fcc623 add is member of group check to permission of create post 2022-09-22 08:16:44 +02:00
Moriz Wahl
4d480d3130 add post query 2022-09-22 08:16:06 +02:00
Moriz Wahl
5e30bfe2ed add direction of Post in Group 2022-09-20 20:30:00 +02:00
Moriz Wahl
0c32fd8023 add post access filter for all post queries 2022-09-20 20:20:55 +02:00
Moriz Wahl
f331813572 create post in group 2022-09-20 19:08:54 +02:00
Moriz Wahl
90e1696f86 add group to post in schema 2022-09-20 18:53:00 +02:00
Wolfgang Huß
25c26ce158 test group profile page, a start 2022-09-20 13:03:00 +02:00
Wolfgang Huß
98b9e3d092 Rename 'isAllowedSeeingMembersOfGroup' to 'isAllowedSeeingGroupMembers' in 'permissionsMiddleware.js' 2022-09-18 20:42:17 +02:00
Wolfgang Huß
bba4ca0fc6 Test 'descriptionExcerpt' in all relevant group resolvers 2022-09-18 19:18:44 +02:00
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ß
58bdb33e95 Exclude 'Group' resolver from 'makeAugmentedSchema' 2022-09-17 00:47:26 +02:00
Wolfgang Huß
57f7a43d09 Test locations in group resolvers 2022-09-16 21:09:45 +02:00
Wolfgang Huß
a52c3b488e Add location to group seeding 2022-09-16 21:08:27 +02:00