636 Commits

Author SHA1 Message Date
ebddfa7df4
all files as .ts 2023-06-12 13:25:21 +02:00
Moriz Wahl
1d903798cd ensure that __typename of Post is a known value. labels(resource)[0] may return Article or Event in the case of Post 2023-06-08 16:01:27 +02:00
Moriz Wahl
5f38c74d82 fix flaky test 2023-03-16 16:08:33 +01:00
Moriz Wahl
6adfac1c7b notify user when removed from group 2023-03-16 16:01:46 +01:00
Moriz Wahl
35f3da9984 notify user when role in group changed 2023-03-16 15:31:09 +01:00
Moriz Wahl
a25e6eb326 notify leave group 2023-03-16 15:09:19 +01:00
Moriz Wahl
997dff4dec add related user to notified model 2023-03-15 17:34:16 +01:00
Moriz Wahl
28952567b0 feat(backend): notifications for groups 2023-03-15 15:27:22 +01:00
Moriz Wahl
5bd831752d
Merge branch 'master' into feature/mark-all-notification-as-read 2023-03-09 13:23:09 +01:00
Moriz Wahl
bdc1cb33da Merge branch 'master' into feature/mark-all-notification-as-read 2023-03-08 16:50:02 +01:00
Moriz Wahl
bd11c33f91
Merge branch 'master' into remove-user-from-group 2023-03-08 16:00:19 +01:00
Moriz Wahl
db8ad8897e same cypher for removeUserFromGroup and leaveGroup, adjust tests, admin cannot remove users fro group 2023-03-06 14:11:55 +01:00
Moriz Wahl
cd3e2ee8ad test remove user from group mutation 2023-03-03 17:29:48 +01:00
Moriz Wahl
de7dded197 add permisson for removeUserFromGroup 2023-03-03 16:42:49 +01:00
elweyn
10a22487ef Withdrew helper/jest.js and replace it with graphql-tag 2023-02-23 09:06:41 +01:00
Moriz Wahl
7b3d530023 close neo4j driver at the end of each test suite 2023-02-13 15:31:58 +01:00
Moriz Wahl
88de09b1ba test that existing emails do not throw anymore 2023-01-27 16:03:27 +01:00
Moriz Wahl
78b8d18c4e fix(backend): do not throw when email exists on registration 2023-01-27 15:41:49 +01:00
Moriz Wahl
3e6566bff5 do not sanitize description of embed 2022-11-24 18:24:53 +01:00
Moriz Wahl
cff0d1601f fix(backend): sanitize group description 2022-11-24 17:52:12 +01:00
Wolfgang Huß
b398eabf47 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into feature/mark-all-notification-as-read
# Conflicts:
#	webapp/locales/it.json
2022-11-16 11:45:19 +01:00
Wolfgang Huß
e2f0e83c6f Move db/graphql folder content to graphql – backend 2022-11-09 09:08:17 +01:00
Moriz Wahl
cb57e09d30 change variable names for better understanding 2022-11-07 17:49:36 +01:00
Moriz Wahl
a1fcc40432 fix: Member of Group Cannot Be Added as New Member 2022-11-07 16:57:16 +01:00
Moriz Wahl
5efb530d42
Merge pull request #5599 from Ocelot-Social-Community/comments-on-posts-in-groups
feat: Restrict Comments on Posts in Groups
2022-10-27 20:43:55 +02:00
Moriz Wahl
831cb20952
Merge pull request #5583 from Ocelot-Social-Community/update-group-avatar-on-upload
fix: 🍰 Update Group Avatar After Upload
2022-10-27 14:51:33 +02:00
Moriz Wahl
5f4bf58dc6 feat: Restrict Comments on Posts in Groups 2022-10-27 14:06:42 +02:00
Moriz Wahl
f8c4b74be1 when avatar is uploaded, the description is not present. Therefore no descriptionExcerpt should be created in middleware 2022-10-27 13:02:05 +02:00
Wolfgang Huß
c42c1b2ef6 Fix group slug tests 2022-10-27 12:28:37 +02:00
Wolfgang Huß
932572049b Fix not correct working change of slug in group settings 2022-10-27 12:27:51 +02:00
Moriz Wahl
5b66edb387 add group count query 2022-10-26 13:49:25 +02:00
Moriz Wahl
57bbe4c6e8 allow search groups in permission middleware, add user id to search groups query 2022-10-21 18:34:48 +02:00
Moriz Wahl
a4cd7a8698 test search posts with groups 2022-10-05 21:54:52 +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
67cba104b8 remove findPosts and findUsers as they are never used. 2022-10-05 08:09:21 +02:00
Moriz Wahl
068d622c44 createPostMutation as function 2022-10-04 05:03:39 +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
b259295094 Merge branch '5059-epic-groups' into post-in-group 2022-10-03 13:16:20 +02:00
Moriz Wahl
e748fcc623 add is member of group check to permission of create post 2022-09-22 08:16:44 +02:00
Wolfgang Huß
98b9e3d092 Rename 'isAllowedSeeingMembersOfGroup' to 'isAllowedSeeingGroupMembers' in 'permissionsMiddleware.js' 2022-09-18 20:42:17 +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ß
6a9c040722 Implement 'LeaveGroup' resolver 2022-09-13 20:23:34 +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ß
9b83b37ea3 Upload group avatar on group profile page 2022-09-06 09:14:28 +02:00
Moriz Wahl
b8ac4cc3ca add saveCategoruSettings mutation to schema 2022-09-05 17:41:21 +02:00
Wolfgang Huß
92e6cc3f1b Cleanup 2022-09-05 09:13:47 +02:00
Wolfgang Huß
999bbd85c1 Add more slugification tests for 'CreateGroup' and 'UpdateGroup' 2022-09-02 08:11:40 +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