mattwr18
60c473bb94
Create UpdateComment resolver, update UpdateUser
...
- UpdateUser should update updatedAt at point of insertion in the
database as well
2019-09-13 20:14:47 +02:00
mattwr18
ca6ae3bd1b
Remove dateTimeMiddleware
...
- favor adding createdAt, updatedAt attributes at point of insertion to
the database
2019-09-13 20:14:47 +02:00
mattwr18
16d7e6c91a
Update notifications
...
- create only one relationship by using merge, but do not update
createdAt attribute/update test
- order by updatedAt_desc
2019-09-13 20:14:47 +02:00
mattwr18
67d68db231
Update post resolver to fix embarrasing bugs
...
- when a user updates a post, we should not override every property in
our database with the new params, since we have read-only properties
like createdAt that we don't want to go deleting aimlessly.
2019-09-13 20:14:47 +02:00
mattwr18
ce487f1e0f
Set notifications.createdAt only at creation
...
- we should not be setting it every time a notification is created
2019-09-13 20:14:47 +02:00
roschaefer
2a3e6ad76f
Alternative solution for #1494
2019-09-13 20:14:47 +02:00
roschaefer
86f9824c2e
Fix lint
2019-09-12 23:13:20 +02:00
roschaefer
9233049ff3
Show a helpful message only if test fails
...
Inspired by the `ON FAIL` markup from the previous commit
0f2398295bcced3af3772bb4add1f42472c97893
2019-09-12 17:16:10 +02:00
Wolfgang Huß
0f2398295b
Helper message for backend tests failed by missing constraints in database
2019-09-12 11:14:42 +02:00
Robert Schäfer
a01c73536f
Merge pull request #1542 from Human-Connection/1538_test-filter-by-followed-by
...
Test filter by followed by
2019-09-11 13:29:00 +02:00
Robert Schäfer
5586a2b5ea
Merge pull request #1512 from Human-Connection/refactor_email_middleware
...
Refactor email middleware
2019-09-11 01:58:37 +02:00
aonomike
785b59f96e
Test filter by followed by
2019-09-10 23:32:55 +03:00
roschaefer
99fe0b001f
Fix German signup mail, follow @mattwr18's review
...
https://github.com/Human-Connection/Human-Connection/pull/1512#pullrequestreview-285968139
2019-09-10 16:24:43 +02:00
mattwr18
77eb8274f3
Improve English grammar in test descriptions
...
- Fix typo
- use gender neutral pronoun
- fix third-person conjugation
2019-09-10 15:39:34 +02:00
roschaefer
0cd7ac3d32
Refactor slugifyMiddleware
...
* eliminate GraphQL from spec
* much better error handling
* add EmailAdress factory
2019-09-10 15:39:34 +02:00
mattwr18
2b1590aae1
Add German translation to email template, _ for unused variables
2019-09-10 10:30:17 +02:00
mattwr18
d3952e2ada
Use debug npm package over console.log
...
- @roschaefer `PR` review
- better because we can leave in the code base and show only when/if we
want to
2019-09-09 14:32:01 +02:00
mattwr18
2aef2add3d
Add temporarily console.log statements to debug failed API call
...
- in production environment, the user locationName is updated, but it is
failing the `createOrUpdateLocations` function in backend/src/middleware/nodes/locations.js
For some reason, it seems like the API call is coming back with
something other than what we are looking for.
Need help debugging... we can remove this code after we figure out
what's wrong
2019-09-09 12:53:47 +02:00
roschaefer
06f07c1a75
Fix missing from in templates
2019-09-06 23:31:28 +02:00
roschaefer
e751571981
Refactored email resolvers
...
* If the email middleware does not send mails, it will give a warning
similar to sentry middleware
* Eliminated GrapphQLClient in one more test
* Rename code => nonce
2019-09-06 19:31:03 +02:00
roschaefer
160552734d
Move softDeleteMiddleware into its own folder
2019-09-06 13:12:30 +02:00
roschaefer
66ed78e19b
Remove a lot of unused code, reduce graphql schema
2019-09-05 03:20:32 +02:00
mattwr18
2bf8247ddd
Merge branch 'master' of github.com:Human-Connection/Human-Connection into C-1187-terms-and-conditions-confirmed-function
2019-09-04 18:24:02 +02:00
Wolfgang Huß
0a86cb6c4d
Merge branch '1395-hashtags-imported-with-not-allowed-chars' of https://github.com/Human-Connection/Human-Connection into 1395-hashtags-imported-with-not-allowed-chars
2019-09-04 14:01:28 +02:00
Wolfgang Huß
bf511940ad
Merge branch '1395-hashtags-imported-with-not-allowed-chars' of https://github.com/Human-Connection/Human-Connection into 1395-hashtags-imported-with-not-allowed-chars
2019-09-04 13:59:04 +02:00
Wolfgang Huß
0037fc90de
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1395-hashtags-imported-with-not-allowed-chars
2019-09-04 13:52:47 +02:00
Wolfgang Huß
fd457e3c3c
Refactor backend test to test some unicode letters are excepted
2019-09-04 13:51:23 +02:00
mattwr18
b3964a1439
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1395-hashtags-imported-with-not-allowed-chars
2019-09-04 10:46:44 +02:00
mattwr18
fdee7efa03
Fix lint
2019-09-04 08:12:11 +02:00
Alexander Friedland
e618ff005d
Merge branch 'master' into C-1187-terms-and-conditions-confirmed-function
2019-09-04 06:42:40 +02:00
roschaefer
2a544376a3
Delete post.image
...
In contrast to the other errors, it's better to send `null` for an
image. That way, the browser won't even try to load that url.
2019-09-03 23:19:55 +02:00
mattwr18
9bb0884f89
Follow @alina-beck's PR suggestions
...
- save regex to descriptive variables
2019-09-03 22:10:02 +02:00
roschaefer
00454c874c
Remove read-only attributes from posts mutations
...
For the comments, the fix is not that easy: They are still using
`neo4j-graphql-js` in the resolvers. And that library needs the input
params for the query builder.
See: https://github.com/Human-Connection/Human-Connection/issues/1454
2019-09-03 21:28:29 +02:00
roschaefer
3eea20f7c4
Follow @alinabeck's suggestions
2019-09-03 21:28:29 +02:00
roschaefer
0b3bbb1f14
Delete post.title and obfuscate slug
2019-09-03 21:28:29 +02:00
roschaefer
c4ba2c4aeb
SoftDeleteMiddleware obfuscates deleted resources
2019-09-03 21:28:29 +02:00
roschaefer
1b5d91bfd2
Refactor post spec, implement soft delete, fix bug
...
I think the validation for categories was too complex and the graphql
query 'PostEmotionsByCurrentUser' was erroneously allowed for
unauthenticated users.
2019-09-03 21:28:29 +02:00
roschaefer
36ba4cc208
Refactor filterBubble spec
2019-09-03 21:28:29 +02:00
roschaefer
2d67c5f172
Refactored entire softDeleteMiddleware spec
2019-09-03 21:28:29 +02:00
roschaefer
0f64bbb71f
Soft delete for comments implemented
2019-09-03 21:28:29 +02:00
Alexander Friedland
41767cc27e
Merge branch 'master' into C-1187-terms-and-conditions-confirmed-function
2019-09-03 09:51:12 +02:00
Matt Rider
d1309d2b8f
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1395-hashtags-imported-with-not-allowed-chars
2019-09-02 12:51:11 +02:00
roschaefer
98194ef54a
Follow @mattwr18's suggestions
2019-08-30 16:00:32 +02:00
roschaefer
cbcba8f08d
Follow @Tirokk 's suggestion
2019-08-30 16:00:32 +02:00
roschaefer
c29ee5e3d3
Update notifications in place
2019-08-30 16:00:32 +02:00
roschaefer
994ab43950
Change the behaviour how notifications get created
...
I think it makes more sense to update an existing notification in place.
Ie. if there was already a notification, just mark it as unread so it
ends up in the recipient's notification list again.
2019-08-30 16:00:32 +02:00
roschaefer
733c2d5ce1
All backend tests pass
2019-08-30 16:00:32 +02:00
roschaefer
2846a6a8d3
Spec for notifications passing
2019-08-30 16:00:32 +02:00
roschaefer
cf8ead10f3
Start to refactor backend tests
2019-08-30 16:00:32 +02:00
roschaefer
4b96454b90
Notifications resolver capable of orderBy + filter
2019-08-30 16:00:32 +02:00