Wolfgang Huß
d4e5de5eff
Approach the first time to get the new notifications in the frontend
2020-01-16 15:52:07 +01:00
Wolfgang Huß
c033260587
Implement tests in notifications.spec.js for notifing filing reporter
2020-01-16 13:46:03 +01:00
Wolfgang Huß
43ed0597e0
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1709-send-feedbacks-in-report-processes
2020-01-13 09:45:33 +01:00
Wolfgang Huß
dac262c456
First try to test new notifications
2020-01-10 16:17:28 +01:00
Wolfgang Huß
65f911d49f
Implement new notification query resolver
2020-01-10 14:52:25 +01:00
mattwr18
1f06a862e7
Merge pull request #2262 from Human-Connection/1463-search-for-users
...
🍰 Search For Users
2020-01-10 13:59:44 +01:00
Moriz Wahl
8c7079cf81
changes requested by reviews
2020-01-10 09:23:56 +01:00
Wolfgang Huß
4d307f09f7
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1709-send-feedbacks-in-report-processes
2020-01-10 08:38:15 +01:00
Moriz Wahl
3f37b007d7
improved specs
2020-01-07 15:35:04 +01:00
Moriz Wahl
57ab9128ea
removed Hashtag search
2020-01-07 09:16:34 +01:00
Moriz Wahl
07b2b7ca3b
Please pass the tests now
2020-01-06 18:36:59 +01:00
Moriz Wahl
de6053dfa3
try again, cypress blackbox
2020-01-06 18:02:11 +01:00
Moriz Wahl
71c9d92aea
query string for searches changed and basics for Hashtag search added
2020-01-06 16:46:43 +01:00
Moriz Wahl
b4d120dff3
Merge branch '1463-search-for-users' of https://github.com/Human-Connection/Human-Connection into 1463-search-for-users
2019-12-23 01:53:08 +01:00
roschaefer
f1b581aa86
Improve performance with pattern comprehensions
...
@Mogge @mattwr18 this is how you can eagerly fetch resources
2019-12-20 20:13:02 +01:00
roschaefer
b3521d8ce5
Improve performance, log database statements
...
@Mogge first of all, you can wait for multiple promises in parallel
by using Promise.all([...]). Second if you run:
```sh
DEBUG='human-connection:neo4j:cypher' yarn run dev
```
in order to log out all database statements. I added log statements to
the new search resolver.
2019-12-20 19:30:22 +01:00
roschaefer
34a3f81dd3
Refactor transformReturnType
...
@Mogge I personally find `RETURN resource {.*, foo: "bar"}` extremely
useful.
2019-12-20 17:47:12 +01:00
Moriz Wahl
19b6fe9b94
Trying to find users located close to user
2019-12-20 01:14:24 +01:00
mattwr18
3ef04f8391
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1463-search-for-users
2019-12-19 17:16:48 +01:00
mattwr18
f7de76eea5
Tidy up a bit
...
- Remove unused function
- Add wildcard to end of query to remove quirky behavior
- Favor more verbose variable naming
2019-12-19 17:15:25 +01:00
mattwr18
3712f86b7b
Merge branch 'master' of github.com:Human-Connection/Human-Connection into update_neo4j_driver
2019-12-19 12:16:14 +01:00
Wolfgang Huß
377f2eecd2
Merge pull request #2351 from Human-Connection/1746-Blur_explicit_Image_Content
...
Blur Images
2019-12-19 11:46:38 +01:00
mattwr18
cce28e6c7a
Fix cypress tests
2019-12-19 00:01:42 +01:00
mattwr18
46c4602db1
Filter for blockedUsers/content, fix cypress
2019-12-18 20:42:06 +01:00
Wolfgang Huß
e5718fe0ea
Test driven approach to implement notification of report filing user 3
2019-12-18 15:28:25 +01:00
Wolfgang Huß
4da67d3bc8
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1709-send-feedbacks-in-report-processes
2019-12-18 11:22:50 +01:00
roschaefer
d7193ab3b6
Update neo4j-driver
...
Fix API changes. Also close the session in resolver only and refactor
userMiddleware to become a part of the resolver.
2019-12-17 20:20:16 +01:00
roschaefer
deaf071550
Update neode
...
This fixes some API changes with the update of neode.
2019-12-17 11:38:02 +01:00
Moriz Wahl
9e1182d3b6
refactored with transactions
2019-12-17 11:28:57 +01:00
Alexander Friedland
ed617f8c83
Merge branch 'master' into 1746-Blur_explicit_Image_Content
2019-12-17 07:39:26 +01:00
Wolfgang Huß
9f44b8a65d
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1709-send-feedbacks-in-report-processes
...
# Conflicts:
# backend/src/middleware/notifications/notificationsMiddleware.js
2019-12-16 10:26:54 +01:00
Wolfgang Huß
f3728af97b
First test driven approach to implement notification of report filing user
2019-12-16 10:22:07 +01:00
mattwr18
f876021ec6
Fix: User.name is not non-nullable
2019-12-13 17:48:19 +01:00
mattwr18
4cd43b68a4
Refactor further search
...
- in the end, the error was due to not asking for the id of the author
back of the Post.. grrr.... why couldn't we get better error messages!!
- Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2019-12-13 15:56:18 +01:00
mattwr18
1f2216cd4f
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1463-search-for-users
2019-12-13 12:31:14 +01:00
mattwr18
ebc5cf392d
Fix search by adding result id
...
- Apollo cache requires an id to commit to their store
- add id to each query result
- refactor out the store
- still can use a lot of refactoring
2019-12-13 12:30:00 +01:00
mattwr18
d375ebe7d9
Write test/refactor tests/resolvers/middleware
...
- write tests for userMiddleware
- checks the functionality of nodes/locations middleware
- refactor to not allow users to update to remove their name
debatable whether we want that or not, but we do not allow users to
create accounts with no name, so we should be consistent, before we were
using neode to validate this, but we have are removing neode from
production code, so we must validate ourselves
- collate UpdateUser mutations to one
2019-12-12 18:14:47 +01:00
mattwr18
3e15ecdfa2
Refactor tests, extract validation to middleware
2019-12-12 14:25:28 +01:00
mattwr18
8a93e402b9
Remove neode update from production code
...
- Favor transaction functions we have more control over
2019-12-12 14:24:43 +01:00
ogerly
a6cbbbeaf1
DB rename blurImage to imageBlurred
2019-12-12 10:42:52 +01:00
mattwr18
53791c83e8
Favor transaction functions in login mutation
2019-12-11 19:31:50 +01:00
mattwr18
d38131e24a
Refactor to use transaction functions/logging
2019-12-11 19:27:37 +01:00
mattwr18
6ef9ca3343
Refactor to use readTransaction
2019-12-11 19:09:38 +01:00
mattwr18
1e85cbb6a2
Refactor shout/unshout mutations
...
- Remove unrecommended auto-commit transactions from code base
- Favor transaction functions
2019-12-11 19:01:29 +01:00
mattwr18
18ab7186f5
Favor transaction functions over auto-commit
2019-12-11 18:53:08 +01:00
mattwr18
b1c5c4dbf9
Avoid testing third-party code
...
- This test, though I understand why it was added, is not necessary in
my opinion. It's more difficult to get this test to pass since we don't
call session.run, we call session.writeTransaction which has a callback
that calls transaction.run...
- I think we don't need to test that our third party library does what
it was added to do... they have their own tests, which can be found here
@roschaefer , which I think are sufficient https://github.com/validatorjs/validator.js/blob/master/test/sanitizers.js
- We can always add another type of test, if you feel necessary, maybe
an e2e?
2019-12-11 18:44:01 +01:00
mattwr18
3c6932e21a
Update passwordReset resolver/spec
2019-12-11 18:43:36 +01:00
mattwr18
d39e702e70
Update exisitingEmailAddress
2019-12-11 18:19:40 +01:00
mattwr18
b583b02fb4
Update createPasswordReset helper function
...
- the test is broken, can you have a look @roschaefer??
- I tried to get it to work, but it's complicated with multiple
promises... I'm ok if we remove this test as well as it's only testing
that normalizeEmail works as it's supposed to... but that hopefully is
tested on the side of the validator library
2019-12-11 17:57:25 +01:00
Moriz Wahl
80e076fc86
Posts of blocked users cannot be found. Blocked users cannot be found.
2019-12-11 15:52:45 +01:00