1068 Commits

Author SHA1 Message Date
elweyn
b41f34a3dd Merge master into this branch. 2022-08-15 11:03:58 +02:00
Hannes Heine
24ce920ecc
Merge branch 'master' into 2105-add-emailChecked-to-opt-in-check 2022-08-11 14:56:36 +02:00
Hannes Heine
186eaf238a
Merge branch 'master' into 2117-list-contribution-links-for-all-users 2022-08-11 11:17:29 +02:00
elweyn
c46f2f241e Create resolver method to query admin and moderator users. 2022-08-10 11:28:21 +02:00
elweyn
9a7073415c Add TODO for listContributionLinks test of user without admin rights. 2022-08-08 11:14:11 +02:00
elweyn
5fb491572d Change test for listCOntributionLinks to get empty object as user without admin rights. 2022-08-08 11:04:24 +02:00
elweyn
7201fb6fc3 A User has now the right to get listContributionLinks. 2022-08-08 10:57:56 +02:00
ogerly
56bd17a265 fix test for backend 2022-08-07 23:08:44 +02:00
ogerly
dec15c24ca refactor UserResolver.ts 2022-08-07 22:41:57 +02:00
elweyn
f42ba05572 Change call of checkOptInCode since signature changed. 2022-08-04 11:35:34 +02:00
elweyn
3a183918c5 Change checkOptInCode to check if emailChecked before changing optInState. 2022-08-04 11:34:46 +02:00
Moriz Wahl
6f081c4cc9 fix: Use Inner Join for Contribution and User 2022-07-28 11:12:17 +02:00
elweyn
8aa6bc540e Change CONTRIBUTIONLINK_MEMO_..._CHARS to MEMO_..._CHARS and using it on ContributionResolver, TransactionResolver and AdminResolver. 2022-07-25 12:41:11 +02:00
elweyn
6f5945f991 createContribution & updateContribution checks if memo length is correct. 2022-07-25 11:24:05 +02:00
elweyn
bcb0882a06 Add test to updateContribution check if error is thrown when memo length is smaller than 5 or greater than 255 characters. 2022-07-25 11:23:28 +02:00
elweyn
180e4ef27d Add test to createContribution that error is thrown when memo length smaller than 5 and greater than 255 2022-07-25 11:17:10 +02:00
elweyn
ccc16b4083 Test that an already confirmed contribution can not be deleted. 2022-07-19 13:09:44 +02:00
elweyn
b4a4a9e126 Throw error if confirmedAt is present. 2022-07-19 13:09:03 +02:00
Hannes Heine
d5a2c24d7e
Merge branch 'master' into 2000-contribution-delete 2022-07-19 12:25:12 +02:00
Hannes Heine
ab6db2e0a6
Merge branch 'master' into add_count_to_list_contributions 2022-07-19 01:50:39 +02:00
clauspeterhuebner
5a77247c79
Merge branch 'master' into 1794-feature-event-protocol-1-implement-the-basics-of-the-business-event-protocol 2022-07-18 19:31:47 +02:00
elweyn
e84061c412 Added tests for deleteContribution 2022-07-18 13:08:27 +02:00
elweyn
da3574edb8 Fix merge conflict and reviewed name changes. 2022-07-18 12:35:42 +02:00
elweyn
7a337f027d Fix merge conflict. 2022-07-18 12:32:24 +02:00
elweyn
ae04024dd3 Remove unused import. 2022-07-18 11:39:17 +02:00
elweyn
42b8d625da Change query fields to new names. 2022-07-18 11:38:58 +02:00
elweyn
93c2d6814a Change the listContribution query to give back ContributionListResult object with linkCount. 2022-07-18 11:27:44 +02:00
clauspeterhuebner
77813317f5
Merge branch 'master' into 1794-feature-event-protocol-1-implement-the-basics-of-the-business-event-protocol 2022-07-15 15:34:24 +02:00
elweyn
843993e340 Fix linting. 2022-07-15 14:34:47 +02:00
elweyn
382211f3ca Adapt test so that we check findAllContributions. 2022-07-15 14:14:55 +02:00
elweyn
5f5c19e6ba Change find to much more efficient code. 2022-07-15 14:14:15 +02:00
elweyn
ed75dce369 Merge branch 'master' into 2051-list-all-confirmed-contribution 2022-07-15 13:46:46 +02:00
Alexander Friedland
8f742ce1d1
Merge branch 'master' into 2051-list-contribution-add-deleted 2022-07-15 07:37:37 +02:00
elweyn
b86ddbf8b0 Fix linting. 2022-07-14 18:08:51 +02:00
elweyn
c242f97733 Change the test for listAllContributions to have every seed user and create all creations, add Test suite that checks if every seeded data arrives as well. 2022-07-14 17:52:31 +02:00
elweyn
34de4bb901 Merge conflict on contribution resolver test file 2022-07-14 17:42:49 +02:00
elweyn
22602c45b9 Merge master into this branch. 2022-07-14 17:40:58 +02:00
elweyn
3733bf5114 Change con.close to resetToken method. 2022-07-14 17:30:21 +02:00
elweyn
246edadc13 Test that authenticated user gets allContributions. 2022-07-14 17:22:22 +02:00
elweyn
ba90911aec Test that unauthenticated user can not query listAllContributions. 2022-07-14 16:57:57 +02:00
elweyn
cbbe0ffad2 Change the method name from listAllConfirmedContributions to listAllContributions. 2022-07-14 16:45:19 +02:00
elweyn
8c6ec08e88 Gives a list of allCreations and calls the User one time in the creation. 2022-07-14 16:42:55 +02:00
clauspeterhuebner
c805f85f75
Merge branch 'master' into 1794-feature-event-protocol-1-implement-the-basics-of-the-business-event-protocol 2022-07-13 18:37:58 +02:00
Hannes Heine
8d727f5e5c
Merge branch 'master' into 2000-contribution-update 2022-07-13 14:42:02 +02:00
elweyn
99c4e83670 Add deleted contribution to the list of contribution. 2022-07-13 11:26:18 +02:00
elweyn
e1d50cacb5 Fix linting. 2022-07-13 09:55:21 +02:00
elweyn
801e223cfd Implement that adminUpdateContribution is not allowed when moderator is null. 2022-07-13 08:27:05 +02:00
elweyn
c6bab99a2c Add Test that adminUpdateContribution is not allowed on creation made by createContribution mutation. 2022-07-13 08:26:30 +02:00
Claus-Peter Hübner
63d84199b0 linting 2022-07-13 02:06:36 +02:00
Claus-Peter Hübner
1a2bb1a29a add eventSendConfirmEmail during createUser() 2022-07-13 01:59:37 +02:00