2551 Commits

Author SHA1 Message Date
elweyn
ecc42b49fa Add isModerator to the createContributionMessage calls. 2022-09-06 11:23:57 +02:00
elweyn
aa9d60c78c Add test that admin can not call adminCreateContributionMessage on own contribution 2022-09-06 11:07:23 +02:00
elweyn
ced14bd752 Change error message Admin can not answer on own contribution. 2022-09-06 10:59:32 +02:00
elweyn
04b96bac2f Throw error if moderator tries to answer his own contribution in adminCreateContributionMessage. 2022-09-06 10:39:20 +02:00
Claus-Peter Hübner
0619fb2f67 tests for Password handling 2022-09-06 00:26:44 +02:00
Claus-Peter Hübner
97dee4d67c adapt tests to work with User and UserContact 2022-09-02 02:34:45 +02:00
Moriz Wahl
eb8a245c2d fix resolver args 2022-09-01 16:26:57 +02:00
Moriz Wahl
de2bd1113e refactor: Improve Statistics Query 2022-09-01 15:38:05 +02:00
elweyn
2177c501c3 Remove cleanDB in most afterAll so we don't need to seed contribution and contribution messages again in later tests. 2022-09-01 10:24:42 +02:00
Claus-Peter Hübner
a0fe5f7951 adapt UserResolverTest to work with Users and UserContacts 2022-09-01 01:07:25 +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
elweyn
d402b871e4 Test that adminCreateContributionMessage, createContributionMessage & listContributionMessages gives the right values back. 2022-08-31 12:26:29 +02:00
Claus-Peter Hübner
852c4e6499 change seeding now with UserContacts entry 2022-08-31 01:12:12 +02:00
Claus-Peter Hübner
7269b4b67b solve problems reading user with emailcontact 2022-08-30 00:57:57 +02:00
elweyn
4ce8ec5bed Change error message from createContributionMessage, remove describe block without tests. 2022-08-29 13:25:42 +02:00
elweyn
ac4f7dc04a Add test with non existing contributionId. 2022-08-29 13:16:44 +02:00
elweyn
8b62696c91 Add test that listContributionMessages throws error for non authenticated user. 2022-08-29 13:07:24 +02:00
elweyn
7156f1afd5 Setup Test file for ContributionMessageResolver. 2022-08-29 12:58:01 +02:00
elweyn
423989777b Remove leftJoin on user, changed ContributionMessage array to count of ContributionMessage. 2022-08-29 12:19:25 +02:00
Claus-Peter Hübner
1d1de2011a failed try to load OneToOne relation of user to userConmtact as
emailConact-attribut...  grrrrrr...
2022-08-26 20:00:29 +02:00
Claus-Peter Hübner
1184666fe2 try to solve problem of dbUser-entity with emailContact in context 2022-08-26 14:42:37 +02:00
elweyn
894140b418 Remove unused imports. 2022-08-26 08:50:08 +02:00
Claus-Peter Hübner
0f90f960ce remove unused code 2022-08-26 02:40:44 +02:00
Claus-Peter Hübner
228451574d adapt backend on database migration of UserContacts 2022-08-26 02:28:04 +02:00
elweyn
e510c2ddbf Change import for enum. 2022-08-25 15:27:12 +02:00
elweyn
ead31344f5 Remove leftJoin on user and remove messages from UnconfirmedContribution model added messageCount instead to the model. 2022-08-25 15:16:44 +02:00
elweyn
84ee364051 Revert "Fix imports."
This reverts commit f3f0c27063053bed076e76442f98cfc10973a18d.
2022-08-25 15:00:21 +02:00
elweyn
c27d64245b Add moderatorId to the object. 2022-08-25 13:51:38 +02:00
elweyn
cdb306dc85 Change the query to get the messages and the user of a message. 2022-08-25 09:52:33 +02:00
elweyn
0163eac52f Add contribution state and contribution messages to the model 2022-08-25 09:51:58 +02:00
elweyn
f3f0c27063 Fix imports. 2022-08-25 09:12:49 +02:00
elweyn
4b9bdb0f15 Add userId to the ContributionMessage model. 2022-08-25 09:11:24 +02:00
elweyn
3fbf8b6444 Query ContributionMessages for a specific contributionId. 2022-08-25 09:10:13 +02:00
elweyn
d2790588ba Add new model ContributionMessageListResult. 2022-08-25 09:09:13 +02:00
Claus-Peter Hübner
fde236aa43 add migration of users, user_contacts and email_opt_in 2022-08-25 01:06:25 +02:00
Claus-Peter Hübner
ab1dd4a2c8 Merge remote-tracking branch 'origin/master' into
1798-feature-gradidoid-1-adapt-and-migrate-database-schema
2022-08-25 00:20:20 +02:00
elweyn
4dbcabf96d Add where clause. 2022-08-24 16:52:42 +02:00
elweyn
057816e4c0 Change innerJoin to leftJoin, so that every contribution is shown not only the one with messages. 2022-08-24 16:43:32 +02:00
elweyn
a9c3dd25ed Add RIGHTS.LIST_ALL_CONTRIBUTION_MESSAGES to the ROLES of Users. 2022-08-24 16:32:58 +02:00
elweyn
e0fcdb2cee Add new RIGHT for LIST_ALL_CONTRIBUTION_MESSAGES. 2022-08-24 16:31:36 +02:00
elweyn
59df924e1d Add User to Contribution link, query the messages user in the listContributions query. 2022-08-24 16:27:28 +02:00
Wolfgang Huß
a252da2c13 Upgrade Node in backend to v18.7.0 2022-08-24 11:23:23 +02:00
Wolfgang Huß
d0881744b5 Upgrade Node in backend from v12.19.0 to v14.20.0 2022-08-24 11:05:25 +02:00
elweyn
bda04f87d2 Add messages and state to the contribution model. 2022-08-24 10:57:03 +02:00
elweyn
0271a42741 Use user entity instead of user model. 2022-08-24 10:56:19 +02:00
elweyn
41fb0d2a9f Change export name of ContributionMessageResolver class. 2022-08-23 13:46:55 +02:00
elweyn
e3e4b61c57 Rename export of ContributionArgs to ContributionMessageArgs. 2022-08-23 11:59:24 +02:00
elweyn
2c459a8fae Changed the Contribution.find so that we can throw a specific error, added an GraphQL Model as return value instead of DbEntity. 2022-08-23 11:55:34 +02:00
elweyn
1c433e2d57 Add graphql object that will be returned instead of dbEntity. 2022-08-23 11:53:19 +02:00