Moriz Wahl
f3847e5c97
setup middleware for language detection
2021-01-21 13:25:46 +01:00
roschaefer
276ea79e8f
Update prettier to v2
2020-03-24 21:11:11 +01:00
mattwr18
303558d173
Merge branch 'master' of github.com:Human-Connection/Human-Connection into update_neo4j_driver
2020-01-07 11:38:01 +01:00
mattwr18
885fa8f1fc
Parse xss before extracting mentions/hashtags
2020-01-06 15:39:26 +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
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
ca6ae3bd1b
Remove dateTimeMiddleware
...
- favor adding createdAt, updatedAt attributes at point of insertion to
the database
2019-09-13 20:14:47 +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
Wolfgang Huß
af968461b6
Split handleNotificationsMiddleware in notificationsMiddleware and hashtagsMiddleware
2019-08-26 16:24:43 +02:00
Wolfgang Huß
df4f0627b5
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1062-notification-about-comment-on-post
...
# Conflicts:
# backend/src/middleware/index.js
2019-08-23 15:31:48 +02:00
Matt Rider
79e6b56396
Use ES6 syntax to avoid repetition
2019-08-23 12:35:53 +02:00
Wolfgang Huß
d98ebdd713
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1062-notification-about-comment-on-post
2019-08-21 08:37:43 +02:00
Wolfgang Huß
83a538d345
Write backend tests
...
Rename files.
Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2019-08-19 22:13:42 +02:00
roschaefer
58795ad990
Implement error reporting for the backend
2019-08-19 20:14:43 +02:00
Wolfgang Huß
8acccc99d0
Implemented a reason in the Notification
...
Used this for displaying in the mentions menu in frontend.
Rewrite backend test.
2019-08-15 19:29:06 +02:00
Wolfgang Huß
a6eaea70dc
Add UpdateComment support for Mentions in Comment
2019-08-15 15:47:13 +02:00
Robert Schäfer
c5789cbf90
Fix get-video-id expects a string bug
2019-07-22 00:20:43 +02:00
Robert Schäfer
657a5ac1f5
Fix resolve function returns undefind
...
I'm also trying to make sense of the attribute `sources` - probably it's
indicating where the data is coming from.
2019-07-21 23:31:44 +02:00
Robert Schäfer
f64a21bd01
Remove graphql-yoga
2019-07-13 19:26:56 +02:00
Wolfgang Huß
ac17f3fe1c
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 779-tags-of-contribution-in-text
...
# Conflicts:
# backend/src/middleware/index.js
# backend/src/schema/resolvers/passwordReset.js
2019-07-04 20:56:14 +02:00
Robert Schäfer
10ae4abaae
Use neode to bring User mutations under control
...
This commit takes all backend changes for signup and invite feature. I
was working on these features and removed the generated mutations for
type user along the way.
2019-07-03 15:58:42 +02:00
Wolfgang Huß
c81b495186
Lint fix
2019-06-28 17:12:14 +02:00
Wolfgang Huß
1d1959561b
First approach to extract the Hashtags in the middleware and change the database
2019-06-28 08:14:37 +02:00
65471efb0d
removed fixImageUrls reference
2019-06-19 13:08:51 +02:00
794bb08f14
removed reference for fixImageUrls middleware
2019-06-14 14:04:15 +02:00
Robert Schäfer
c4316a81de
Refactor backend to use filterParams directly
...
Revert this commit to implement a later performance improvement
2019-06-06 15:43:43 +02:00
Robert Schäfer
ed0c9b775b
Implement+test filterBubble middleware
...
@Tirokk @ulfgebhardt @ogerly @mattwr18
This is interesting because I found out that `neo4j-graphql-js` allows
to customize graphql queries. If you define it, then it will merge the
other inputs and stuff on top of it. Fair enough!
2019-06-05 17:28:31 +02:00
Robert Schäfer
0289412ba7
DISABLED_MIDDLEWARES only set outside production
...
That way, we don't see verbose logging output on Travis. Setting DEBUG
will have the effect that all calls of `neo4jgraphql` will produce log
output.
2019-06-04 17:33:30 +02:00
6948666cfe
Merge branch 'master' into 2019/kw22/refactor_backend_structure
...
# Conflicts:
# backend/src/middleware/index.js
# backend/src/schema/resolvers/comments.spec.js
# backend/src/schema/resolvers/socialMedia.spec.js
2019-06-03 19:48:47 +02:00
Robert Schäfer
5866804fd3
Don't remove middlewares in production
...
@ulfgebhardt thank you for pointing out! That was a terrible bug.
2019-06-03 14:14:57 +02:00
4fd2885b26
reference global config
2019-06-03 13:19:08 +02:00
cfd0975b24
backend linting
2019-05-23 19:23:03 +02:00
Robert Schäfer
47d7c615a5
Refactoring: Put all data validations in one place
...
@ulfgebhardt @mattwr18 @tirokk
Here's how I imagined the data validation middleware. If we roll our own
input validations I would suggest to put them all in one place.
@ulfgebhardt this commit is a great example of how tests can speed you
up: Since I can rely on existing tests, I don't have to check the validations
manually. With tests you can refactor with confidence! 👍
2019-05-10 17:13:54 +02:00
Robert Schäfer
aa3762a095
Implement right order of notifications middleware
2019-04-16 17:48:42 +02:00
Robert Schäfer
23a461d16e
Follow component directory strucutre in backend
2019-04-16 11:13:40 +02:00
Robert Schäfer
102a03f552
Merge remote-tracking branch 'origin/master' into 236-list-social-media-accounts
2019-04-10 15:17:18 +02:00
Robert Schäfer
bab748e506
Create notifications on CreatePost
2019-04-10 01:58:18 +02:00
Matt Rider
24d4259510
Add validURLMiddleware, remove unused package, extract tests
2019-04-05 09:15:22 -03:00
Robert Schäfer
c9dfd0d294
Merge remote-tracking branch 'origin/master' into another-fix-of-activity-pub-implementation
2019-03-26 01:37:15 +01:00
Robert Schäfer
46c0d0659a
Fix routing/proxying of AP, works locally
...
RSA keys get seeded but not for tests
2019-03-26 01:24:52 +01:00
Robert Schäfer
1cbab2a5c4
Implement #238
2019-03-24 19:58:17 +01:00
Robert Schäfer
7a72185c9e
Merging backend to master
2019-03-20 21:00:59 +01:00