40 Commits

Author SHA1 Message Date
3391b3a9ee
merge 2023-03-09 14:37:17 +01:00
elweyn
bcf63ec334 Deconstruct test for listContributions. 2023-02-09 15:02:53 +01:00
Moriz Wahl
06b5fa4295 refactor(backend): seed contributions as user 2022-12-12 14:05:15 +01:00
Wolfgang Huß
6d06c0f2d8 Merge branch 'master' of github.com:gradido/gradido into 2218-refactor-logout-to-mutation
# Conflicts:
#	backend/src/graphql/resolver/UserResolver.test.ts
#	backend/src/seeds/factory/contributionLink.ts
#	backend/src/seeds/factory/creation.ts
2022-10-12 16:23:04 +02:00
elweyn
4461ff92a5 Correct tests after changing login and logout from queries to mutations. 2022-09-22 12:22:56 +02:00
Claus-Peter Hübner
bb8fc6a16e change using findUserByEmail() instead of raw queries 2022-09-15 17:48:22 +02:00
Claus-Peter Hübner
411e03c843 rework PR comments 2022-09-15 02:40:59 +02:00
Claus-Peter Hübner
7cd5ecb463 linting 2022-09-12 19:02:12 +02:00
Claus-Peter Hübner
97dee4d67c adapt tests to work with User and UserContact 2022-09-02 02:34:45 +02:00
Claus-Peter Hübner
eedaf9e6e3 unit tests of AdminResolver now with Users and UserContacts 2022-08-31 23:04:55 +02:00
Claus-Peter Hübner
faa0500f10 adapt seeding using User and UserContact 2022-08-31 15:44:41 +02:00
Claus-Peter Hübner
852c4e6499 change seeding now with UserContacts entry 2022-08-31 01:12:12 +02:00
Moriz Wahl
af9d874fea fix: Update contribution_date when Moved by Seed 2022-07-25 13:29:45 +02:00
Moriz Wahl
409e44f679 store contribution link id on user when regsitered with contribution link code 2022-06-16 10:44:17 +02:00
Moriz Wahl
2b87cbcd18 rename confirmPendingCreation 2022-06-15 19:33:40 +02:00
Moriz Wahl
6623849337 Merge branch 'master' into contributions-table 2022-06-15 16:50:50 +02:00
Moriz Wahl
e60f06bb9b rename mutations to create admin contributions 2022-06-15 08:32:30 +02:00
Moriz Wahl
7640680c42 seed two ContributionLinks 2022-06-14 18:04:20 +02:00
Moriz Wahl
5d8bf7f27c add logger to admin resolver, log some tracing, fix seeds 2022-05-30 14:50:58 +02:00
Moriz Wahl
6f0c3c11a5 improve matching of created pending creation, see TODO 2022-04-27 17:51:26 +02:00
Moriz Wahl
61f3da38fa creation factory returns unconfirmed creation object 2022-04-27 12:13:57 +02:00
Moriz Wahl
e9eaa756b0 remove moderator from create pending creation mutation args 2022-04-27 11:10:21 +02:00
Moriz Wahl
5713b9ad3d user factory returns created user entity, add delete user mutation 2022-04-27 09:57:11 +02:00
Moriz Wahl
fa6fbe38c8 User.isAdmin as nullable Date 2022-04-21 11:05:51 +02:00
Moriz Wahl
c9701574f3 seed with isAdmin, test user resolver with isAdmin 2022-04-20 11:44:34 +02:00
Moriz Wahl
06dcb2380e seed creations months ago from now 2022-03-31 13:48:15 +02:00
Moriz Wahl
689d6c3fb8 get transaction link id by mutation call 2022-03-17 08:58:07 +01:00
Moriz Wahl
8a350e7cab get user id by login query in seeds 2022-03-17 08:48:49 +01:00
Moriz Wahl
1182b94075 createUser returns User object, adopt mutations, reduce db calls in seed 2022-03-17 08:40:02 +01:00
Moriz Wahl
d1fe360157 Merge branch 'master' into seed-transaction-links 2022-03-16 22:10:16 +01:00
Moriz Wahl
3c04cf0621 move db call to get admin id before mutation 2022-03-16 21:18:01 +01:00
Moriz Wahl
691d734c50
Update backend/src/seeds/factory/creation.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-16 21:12:08 +01:00
Moriz Wahl
5b9463ca2a seed deleted and outdated transaction links 2022-03-15 21:24:44 +01:00
Moriz Wahl
12f3a7ab4a set up seed for transaction links 2022-03-15 21:03:55 +01:00
Moriz Wahl
a234266493 seed simple confired creations 2022-03-15 19:28:46 +01:00
Moriz Wahl
7e645e08fa pass ApolloServerTestClient as first argument of factories 2022-03-15 17:40:37 +01:00
Moriz Wahl
764f1ee572 optional data set correctly 2022-03-15 16:32:32 +01:00
Moriz Wahl
d55caacf6b seed peter lustig as admin 2022-03-15 14:57:27 +01:00
Moriz Wahl
00c70311a1 use factory to create user in test, use bibi bloxberg as seeded user (no admin) 2022-03-15 11:19:19 +01:00
Moriz Wahl
004627ddcf create factory folder, move user creation in factory 2022-03-15 10:23:24 +01:00