1505 Commits

Author SHA1 Message Date
Wolfgang Huß
49bea62fa7 Clarified comments in 'decide' resolver 2019-11-08 10:01:49 +01:00
Wolfgang Huß
3020a38de2 Rename variable 2019-11-08 09:56:18 +01:00
Wolfgang Huß
353687766e Change 'DECIDED' property 'updatedAt' to always be set 2019-11-08 09:41:28 +01:00
Wolfgang Huß
f4a62b03dc Clarify 'decide' resolver, rename to 'latest' property 2019-11-08 09:12:49 +01:00
Wolfgang Huß
526e4c642b Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1710-list-and-protocol-moderation 2019-11-08 08:28:47 +01:00
Wolfgang Huß
2a23bbf101 Refactor frontend and 'reports' query again 2019-11-07 15:54:26 +01:00
mattwr18
28c9bb17c6
Merge pull request #2151 from Human-Connection/2150_remove-graphql-request
Remove graphql-requests
2019-11-07 10:16:04 +01:00
mattwr18
cb2b8ddad7
Merge pull request #2148 from Human-Connection/2128-close-all-sessions
close all open sessions
2019-11-07 10:05:59 +01:00
roschaefer
874b34211c Fix lint 2019-11-07 00:55:21 +01:00
aonomike
c1938bacbf Remove graphql-requests
- Remove package-lock.json because we are using yarn
- Remove every instance of graphql-requests as the backend doesnt use it anymore
- Remove graphql-request dependancy from the backend
- Update scripts for running tests in package.json and remove the unused scripts
- Update travis.yml to run the new test scripts
2019-11-06 21:42:34 +03:00
Youri Seichter
d262ed678c close all open sessions 2019-11-06 18:32:25 +01:00
Wolfgang Huß
465314eda9 Extended decide mutation to close reports on close decision, first step
- Give REPORTED a 'closed' and 'decisionUuid' property.
- Give DECIDED a 'uuid' property.
2019-11-06 17:15:47 +01:00
Wolfgang Huß
35b802bf82 Remove definition of mutation disable 2019-11-06 15:18:24 +01:00
Wolfgang Huß
7d217148d3 Remove definition of mutation enable 2019-11-06 14:38:09 +01:00
Wolfgang Huß
a4521b4621 Use of mutation disable removed
- The mutation definition still has to be removed.
2019-11-06 09:13:08 +01:00
Ewald Arnold
4285932319 Merge branch 'russian-locales' of https://github.com/Human-Connection/Human-Connection into russian-locales 2019-11-06 09:09:48 +01:00
Wolfgang Huß
4a6f8c423e Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1710-list-and-protocol-moderation 2019-11-06 07:49:20 +01:00
roschaefer
807ac00a12 Fix backend tests 2019-11-05 18:06:10 +01:00
roschaefer
61a8914989 Always normalize email in backend 2019-11-05 00:06:15 +01:00
roschaefer
bcf06dff25 Implement backend lookup with normalizeEmail 2019-11-05 00:06:15 +01:00
roschaefer
a704709ba3 fix: resolver returned undefined for nameRU
This registers the language Russian in the backend. Unfortunately, the
locations seem to be implemented with a hard coded attribute for each
language. 😞

We should refactor this.
2019-11-04 20:39:28 +01:00
Wolfgang Huß
96bc855518 Get the backend tests with decide mutation to work #2 2019-11-04 19:13:15 +01:00
Wolfgang Huß
f826039777 Get the backend tests with decide mutation to work #1 2019-11-04 18:33:55 +01:00
mattwr18
d3922a8149
Merge pull request #2059 from Human-Connection/2045-filter-posts-by-language
🍰 First Implementation Of Filtering Posts By Language
2019-11-04 10:20:13 +01:00
Joseph Ngugi
044155a298 add allowShouts mutation 2019-10-31 21:22:44 +03:00
Joseph Ngugi
9668351279 add allowShouts type 2019-10-31 21:22:10 +03:00
Joseph Ngugi
c8ce53d598 add allowShouts field 2019-10-31 21:21:31 +03:00
Robert Schäfer
600adfddc6
Merge pull request #2093 from Human-Connection/ogerly-patch-1
deleted posts no longer displayed in user profile
2019-10-31 18:04:14 +01:00
roschaefer
cbc547a86b refactor: small refactoring for readability
@KapilJ your solution is right now the best solution, I think. Probably
the ideal solution would be if we could implement the `CreateComment`
resolver in such a way that it is doing eager loading of the
`comment->post->author` relationship and resolving a commment object
which has the required objects all set. Then you wouldn't have to
refetch all the stuff.

But I think this is OK for now 👍
2019-10-31 16:11:05 +01:00
Alexander Friedland
3fc61618bd
deleted posts no longer displayed in user profile
deleted posts are no longer displayed in the user profile
2019-10-31 11:05:29 +01:00
Kapil Jain
b4a9e3e551 add software tests for two notifications bug 2019-10-31 05:08:15 -04:00
Kapil Jain
c21ad2244f add software tests for two notifications bug 2019-10-30 22:03:52 -04:00
Kapil Jain
063ff17d8b add software tests for two notifications bug 2019-10-30 20:39:50 -04:00
Wolfgang Huß
21e82d2ea5 Get decide mutation to work
- Tests are not fully working yet!
2019-10-30 19:07:51 +01:00
Wolfgang Huß
54be7782ba First refactoring tests to new database structure 2019-10-30 16:59:24 +01:00
Wolfgang Huß
47d5cc89dd Implement last property on DECIDED relation 2019-10-30 15:48:46 +01:00
Wolfgang Huß
7b3224327e Prepare backend for next implementation step 2019-10-30 13:51:00 +01:00
roschaefer
9b67036b43 Add random languages to seeds 2019-10-29 22:03:44 +01:00
Kapil Jain
aecc21890e fixed removing original post's user 2019-10-29 14:20:51 -04:00
Kapil Jain
06514eb535 Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1953-TwoNotifications 2019-10-29 10:52:21 -04:00
Kapil Jain
529a8a6365 send only one notification for mention and comment 2019-10-28 15:40:29 -04:00
Moriz Wahl
a66aa0591c Typo fixed. Password -> Passwort 2019-10-28 14:44:20 +01:00
Wolfgang Huß
8db667c1eb Refactor disable and enable mutations to decide 2019-10-28 14:07:44 +01:00
Wolfgang Huß
6593c6ec5c Refactor the database structure from DISABLED to DECIDED relation
- First Step.
- Apply properties to the relation.
2019-10-25 16:51:47 +02:00
Wolfgang Huß
15d28aa8ef Finish redesign of moderators report list
- It is not perfect, but will do it for now.
2019-10-23 15:59:34 +02:00
Wolfgang Huß
11341b82e6 Structure reports in moderators list by content, just a beginning 2019-10-23 12:11:51 +02:00
roschaefer
2a9e182649 fix: performance issue with ordering
@mattwr18 @aonomike
You must never `ORDER BY` a property with a `@cypher` directive. Reason:
The order by performance will be terribly poor.

See my issue:
https://github.com/neo4j-graphql/neo4j-graphql-js/issues/239
And my PR:
https://github.com/neo4j-graphql/neo4j-graphql-js/pull/247
2019-10-22 20:00:12 +02:00
mattwr18
46fd534a28
Merge pull request #1840 from Human-Connection/1205-pinned-post-for-admins
Allow admins to pin a post
2019-10-21 14:37:14 +02:00
mattwr18
9d37099984
Merge pull request #1957 from Human-Connection/1955_refactor-reports-resolver-spec
Refactor reports resolver spec
2019-10-21 13:22:17 +02:00
aonomike
86907f2800 Fix code review issues 2019-10-21 13:25:56 +03:00