140 Commits

Author SHA1 Message Date
Wolfgang Huß
4f7ce5a6c1 Fix slugification tests of 'UpdateGroup' 2022-09-01 15:04:49 +02:00
Wolfgang Huß
2814f81ed5 Merge branch '5059-epic-groups' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5131-implement-update-group-resolver
# Conflicts:
#	backend/src/db/graphql/groups.js
#	backend/src/middleware/permissionsMiddleware.js
2022-08-31 09:21:08 +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
Moriz Wahl
c61e983102 remove double console log 2022-08-30 10:21:15 +02:00
Moriz Wahl
0d1da0d83d
Update backend/src/db/migrate/store.js
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2022-08-30 10:14:39 +02:00
Moriz Wahl
3e6cabaa1c
Update backend/src/db/migrate/store.js
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2022-08-30 10:13:56 +02:00
Wolfgang Huß
d969141fc6 Implement 'UpdateGroup' resolver, first step 2022-08-30 06:58:39 +02:00
Wolfgang Huß
f2aba3e12e Put exclamation mark behind console log text of successfully created default admin user for consistency 2022-08-25 18:03:21 +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ß
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
Moriz Wahl
5b7bdc0291 seed Yunite categories 2022-08-22 19:56:35 +02:00
Moriz Wahl
6425e5d172 seed categories on db:migrate init 2022-08-22 19:44:20 +02:00
Wolfgang Huß
f9c8c9b4be Add different group member roles to seeding 2022-08-22 11:27:18 +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ß
613f91b037 Add seedings for group memberships 2022-08-18 11:47:27 +02:00
Wolfgang Huß
25ed30dba1 Implement 'EnterGroup' resolver 2022-08-18 10:12:11 +02:00
Wolfgang Huß
e2c987f300 Refine categories of seeded groups 2022-08-15 16:14:19 +02:00
Wolfgang Huß
bbda8e6dd0 Seed some groups 2022-08-15 15:22:49 +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
Wolfgang Huß
916dfbb46e Move or use GQL mutations in seeding to or from separate files 2022-08-15 14:00:36 +02:00
Wolfgang Huß
0149af12d4 Cleanup 2022-08-09 16:50:28 +02:00
Wolfgang Huß
7847d6912c Return 'categories' in the 'Group' GQL query 2022-08-09 08:21:26 +02:00
Wolfgang Huß
fcca0f378d Implement 'Group' query, next step 2022-08-04 09:24:04 +02:00
Wolfgang Huß
867b78dfa3 Implement 'Group' query, second step 2022-08-03 15:16:23 +02:00
Wolfgang Huß
cc44ee8ebc Refactor relations ':OWNS' and ':ADMINISTERS' to ':MEMBER_OF' with properties 2022-08-03 13:12:50 +02:00
Wolfgang Huß
520598c897 Implement 'description', 'groupType', and 'actionRadius' in 'CreateGroup' 2022-08-03 11:50:56 +02:00
Wolfgang Huß
fc20143a65 Test groups creation in slugifyMiddleware 2022-08-03 07:51:29 +02:00
Wolfgang Huß
da2c7dc684 Add migration with fulltext indeces and unique keys for groups 2022-08-03 07:29:51 +02:00
Wolfgang Huß
f565e5fb6a Implement 'CreateGroup' with tests 2022-08-02 16:20:11 +02:00
Wolfgang Huß
bf9dd205ca Implement GQL for groups 2022-08-02 08:26:14 +02:00
Wolfgang Huß
2afd0828eb Fix undefined 'CONFIG' in 'seed.js' 2022-07-20 08:58:23 +02:00
Wolfgang Huß
089c4ee1bb Refine 'publish.yml' 2022-07-20 08:13:22 +02:00
Wolfgang Huß
16812e0966 Disallow database seeding in non-staging and real production environments 2022-07-20 07:58:18 +02:00
Wolfgang Huß
7c78474cee Implement backend constant 'PRODUCTION_DB_CLEAN_ALLOW' to enable cleaning of database for staging, a start 2022-07-19 18:51:50 +02:00
Wolfgang Huß
bdbd2c361a Change dummy invite code from 'AAAAAA' to 'ABCDEF' to see the length 2022-06-23 18:12:37 +02:00
Wolfgang Huß
50bdfb80e2 Change from require to import which now works again 2022-05-04 09:15:47 +02:00
Wolfgang Huß
634249b407 Fix the rest of the faker imports
- Some seems to work even the old way?!
2022-05-03 14:22:10 +02:00
Wolfgang Huß
7bb1b0bbad Fix faker import and change version, because of unsplash does not exist 2022-05-03 12:08:01 +02:00
Wolfgang Huß
bbb88cb1d9 Remove console.log 2022-05-02 16:53:07 +02:00
Wolfgang Huß
c0a61600e4 Revert change of faker import 2022-05-02 16:51:51 +02:00
Wolfgang Huß
47b88ffb46 Fix faker import 2022-05-02 16:28:45 +02:00
Wolfgang Huß
1a0819741f Fix 'add-donations-node' migration 2021-12-02 11:24:18 +01:00
Wolfgang Huß
49e4111def Fix to set 'sendNotificationEmails' on admin of db init
- Set other missing properties on admin of db init.
- Additionally set default donations `progress` value to `7000` to have a better looking design on the news feed for devs and testers.
- Fix test in `pages/admin/donations.spec.js`.
2021-09-29 10:32:51 +02:00
Wolfgang Huß
d5468e5123 Add db mutation for adding sendNotificationEmails property to each user 2021-09-23 15:03:11 +02:00
Wolfgang Huß
7ae5593f82 Implement user notifications settings 2021-09-22 14:05:10 +02:00
Wolfgang Huß
8295ec5827 Change donations db migration from CREATE to MERGE to work in all circumstances 2021-09-20 11:05:41 +02:00