mattwr18
dd627535e4
Merge pull request #795 from Human-Connection/781-language-of-contribution
...
Create Posts with a specified language, or fallback
2019-06-14 13:53:22 -03:00
Matt Rider
1c10e0863f
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 781-language-of-contribution
2019-06-14 13:31:39 -03:00
Matt Rider
664a8b327f
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 404-delete-user-account-and-data
2019-06-14 11:37:45 -03:00
Robert Schäfer
fc4e9f40b3
Whitelist queries/mutations, fix backend tests
2019-06-13 23:29:29 +02:00
Matt Rider
40aaa151dd
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 781-language-of-contribution
2019-06-12 16:42:40 -03:00
Matt Rider
70567857e8
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 404-delete-user-account-and-data
2019-06-12 15:51:38 -03:00
Matt Rider
d15857d240
Set user's posts/comments' delete attribute to true
...
- favor over actually deleting the node so that the comments will appear as anonymous and not lose the context of the conversation
- the post will not appear, but for admin it will be accessible
- follow @roschaefer `PR` review
2019-06-12 15:27:57 -03:00
Matt Rider
4407d6648a
Add component tests, translations
2019-06-11 15:47:10 -03:00
Matt Rider
5986ab2070
Create Posts with a specified language, or fallback
2019-06-10 17:12:00 -03:00
Matt Rider
7bbf870d8d
Clean up of backend tests
...
- changed variable name, remove unneeded beforeEach
2019-06-07 16:03:02 -03:00
Matt Rider
f7b2d52a7e
Refactor resolver to use Promise and map
...
- forEach cannot be used with async/await
2019-06-07 15:58:51 -03:00
Matt Rider
ef1f5ea51c
Nested beforeEach
...
- flaky test, leaky info
2019-06-07 14:47:57 -03:00
Matt Rider
687e121658
Remove unneccesary second database clean, reset variables
...
- in high level describe block, to avoid leaky info
2019-06-07 14:21:03 -03:00
Matt Rider
cc1be62bbd
Add afterEach block to DeleteUser block
...
- not able to reliably get reproduce build failure locally
2019-06-07 13:58:53 -03:00
Matt Rider
6b0c1312f1
Refactor tests to dry out, search for by comment id
2019-06-07 13:38:31 -03:00
Matt Rider
fcb5ab8f1e
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 404-delete-user-account-and-data
2019-06-07 12:14:12 -03:00
Matt Rider
ed5f14d052
Dry out resolver
2019-06-07 10:17:58 -03: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
Matt Rider
bf352dca92
Start backend implementation UserAccount Deletion
2019-06-06 17:28:52 -03: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
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
97ff6fdb78
Merge branch 'master' into 2019/kw22/refactor_backend_structure
2019-06-03 23:31:26 +02:00
164f3b6878
fixed lint
2019-06-03 22:57:46 +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
177e33c022
fixed spec include paths
2019-06-03 19:34:58 +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