192 Commits

Author SHA1 Message Date
Robert Schäfer
d1364e4aed Merge remote-tracking branch 'origin/master' into 402-userprofil-tab-click-function 2019-06-11 17:41:17 +02:00
Robert Schäfer
314b257b45 Replace dependency ms completely
I have seen this PR here: https://github.com/Human-Connection/Human-Connection/pull/774 and I thought: Never saw that one before, where is it used and what is the purpose? I could find this line only and thought this is not a justification for having the package installed.
2019-06-07 15:49:18 +02:00
Robert Schäfer
a978591843 Fix bug introduced in 6f0447515
@ulfgebhardt For the `deleted` and `disabled` flags I would be glad if we could
take only one value, that is `true`, in case the post is considered disabled or
deleted respectively.

There might be more bugs like this now. Please keep in mind that these
counts are also used as total limits for pagination and you break the
pagination if you change the cypher statement.
2019-06-07 01:39:09 +02:00
Robert Schäfer
574b42a2a7 "commentedCount" is different from "commentsCount"
One is how many comments you wrote, one is how many **posts** are there
with at least one comment of you.

E.g. you can comment twice on the same post. You will have a
`commentedCount` increase of 1 but a `commentsCount` of 2.

FYI @ogerly @Tirokk
2019-06-07 01:39:09 +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
93107bc0f8 Fix lint 2019-06-05 18:39:11 +02:00
Robert Schäfer
16ef304d70 Follow suggestions by @mattwr18 2019-06-05 18:37:19 +02:00
Robert Schäfer
d59c43330b Rename value of enum type to following
As discussed in our daily standup with @mattwr18
2019-06-05 18:34:02 +02:00
Robert Schäfer
0d8a748094 Apparently I was wrong: types don't get merged 2019-06-05 17:28:31 +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
8e9b0318da Fix missing check if user is unauthenticated 2019-06-05 17:28:31 +02:00
Robert Schäfer
b9b103b424 Implement+test replaceParams helper method 2019-06-05 17:28:31 +02:00
Robert Schäfer
e3b4e9bf56 Cleaning the database checks for process.env 2019-06-04 17:33:30 +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
97ff6fdb78
Merge branch 'master' into 2019/kw22/refactor_backend_structure 2019-06-03 23:31:26 +02:00
0b270ee7c3
fixed default import syntax 2019-06-03 23:24:26 +02:00
1a264a2662
fixed config check for server 2019-06-03 23:19:50 +02:00
15bfabcefd
check if config variables are present only when server is started 2019-06-03 23:17:58 +02:00
a1db7fa201
corrected config include 2019-06-03 23:13:42 +02:00
edcc5adb41
corrected paths and include order 2019-06-03 23:11:48 +02:00
164f3b6878
fixed lint 2019-06-03 22:57:46 +02:00
Matt Rider
76bca90ede Merge branch 'master' of github.com:Human-Connection/Human-Connection into 553-delete-comment 2019-06-03 16:55:30 -03: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
Wolfgang Huß
cc774b03b8 Lint Fix in Backend 2019-06-03 19:48:36 +02:00
177e33c022
fixed spec include paths 2019-06-03 19:34:58 +02:00
3adb8d0f64
lint fixes 2019-06-03 19:29:14 +02:00
Robert Schäfer
7272c5002d
Merge pull request #725 from Human-Connection/fix_terrible_middleware_bug_in_production
Don't remove middlewares in production
2019-06-03 19:27:33 +02:00
Wolfgang Huß
62993cc3e9 Clean up 2019-06-03 19:05:59 +02:00
Wolfgang Huß
25999a6dfd Bug fix for User can delete Comments of others
Wrote a Jest test for this.
2019-06-03 19:04:40 +02:00
caa6a65f99
removed dotenv.config calls 2019-06-03 18:47:00 +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
f78c54a3e8
refactored backend structure 2019-05-31 19:31:39 +02:00
Wolfgang Huß
92ae6375e1 Merge remote-tracking branch 'origin/master' into 553-delete-comment 2019-05-31 17:42:19 +02:00
Wolfgang Huß
e63e4ad890 Written custom mutation and Jest tests for DeleteComment 2019-05-31 17:42:04 +02:00
b51b8423e7
fixed fileloader pattern to actually load smth 2019-05-31 16:40:35 +02:00
754decd308
also wildcard include resolvers 2019-05-31 16:04:17 +02:00
4c758a9083
fixed filename extension check 2019-05-31 15:46:37 +02:00
Wolfgang Huß
5bec0f1d72 Refined list deletion functions and started writing custom mutation for DeleteComment and their tests 2019-05-31 15:46:34 +02:00
630e895f6c
Merge remote-tracking branch 'origin/master' into 2019/kw22/alpha_data_import_status_schema_split 2019-05-29 20:44:14 +02:00
816fbdf7cd
fixed slug required - it was not in Nitro 2019-05-29 16:41:27 +02:00
6f0447515a
- fixed several errors handling import
- split graphql schema into parts
- which data is imported which is not - a list
2019-05-29 15:37:28 +02:00
Robert Schäfer
ffd584ded1 Fix prettier 2019-05-29 12:36:26 +02:00
Matt Rider
1c1d1a67ea Merge in master 2019-05-23 15:31:05 -03:00
Matt Rider
758bf215ac Merge branch 'master' of github.com:Human-Connection/Human-Connection into uploads-on-server 2019-05-23 15:26:19 -03:00
cfd0975b24
backend linting 2019-05-23 19:23:03 +02:00
Robert Schäfer
3c22a432e6 Fix lint 2019-05-21 03:08:32 +02:00
Robert Schäfer
9dd35a887a Fix test 2019-05-21 02:07:43 +02:00
Robert Schäfer
2a22aaa907 Fix edge case bug in extractIds 2019-05-21 02:01:00 +02:00
Robert Schäfer
2b03b515e2 Implement image upload for posts 2019-05-21 02:01:00 +02:00