1022 Commits

Author SHA1 Message Date
roschaefer
deb4b4f698 fix: return null for missig translations
A query such as `{ notifications }` would return `null` for Locations
with a missing translation, e.g. `nameRU`. This would not happen for
queries implemented by `neo4j-graphql-js` because they nullify all
missing attributes automatically.
2019-11-12 19:14:34 +01:00
Alina Beck
6e3bd19267 set up privacy page in settings 2019-11-12 19:13:56 +03:00
mattwr18
3b5e40efaa Merge branch 'master' of github.com:Human-Connection/Human-Connection into donation-info 2019-11-12 15:18:10 +01:00
mattwr18
a215093bc3 Make Donations reactive
Co-authored-by: @alina-beck <alina.beck@mail.com>
2019-11-12 13:26:30 +01:00
Alina Beck
6a98e5759f fix lint errors in backend 2019-11-12 13:50:45 +03:00
mattwr18
311f2fc912 Create Donations node in seeds
Co-authored-by: @alina-beck <alina.beck@mail.com>
2019-11-12 10:20:21 +01:00
mattwr18
afb443ac0d Update resolver to match one Donations node
- there should only ever be one Donations node to start off with, if
that changes in the future for some reason, then we'd need to look into
changing the match to something that makes more sense.
2019-11-11 19:14:06 +01:00
mattwr18
835a098731 Set up backend for DonationsInfo
Co-authored-by: Mike Aono <aonomike@gmail.com>
2019-11-11 18:14:33 +01:00
Wolfgang Huß
677039b786 Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1710-list-and-protocol-moderation
# Conflicts:
#	webapp/pages/moderation/index.vue
2019-11-11 17:52:58 +01:00
mattwr18
46ed623cfa
Merge pull request #2111 from Human-Connection/russian-locales
added Russian to locales
2019-11-11 14:38:00 +01:00
mattwr18
f650c5cc05 Make createdAt/updatedAt non-nullable for NOTIFIED
- Follow @Tirokk PR review suggestion
2019-11-11 08:52:51 +01:00
mattwr18
780a418254 Fix lint 2019-11-11 08:52:04 +01:00
roschaefer
8e129c6001 fix: update counter when notification is read
@mattwr18 vue-apollo rocks! Taking the time to study the docs is a
rewarding investment.

My first idea was to cache the `unreadNotificationsCount` with Vuex.
But the docs of apollo even suggest to use apollo's local state as a
complete replacement of Vuex:
https://vue-apollo.netlify.com/guide/local-state.html

Then I further investigated why the updated `NOTIFIED` objects won't
update the notification counter. Turns out: They don't have an ID and
the computed property didn't fire when the notifications array would
change. I fixed both in this commit and yes, it works as expected.

No additional code required 💪
2019-11-11 08:52:04 +01:00
mattwr18
715261238a Protect against cypher injection vulnerability
- following @roschaefer PR review suggestion
2019-11-11 08:52:04 +01:00
mattwr18
f34c8f44e0 Update resolver for paginated notifications 2019-11-11 08:50:35 +01:00
Vasily Belolapotkov
dc09240c20 sync with 'master' to cleanup PR 2019-11-10 11:48:39 +03:00
Wolfgang Huß
553a3ca2cb Implement 'decide' button and functionality 2019-11-08 17:29:09 +01:00
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