402 Commits

Author SHA1 Message Date
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
02dca83358
Merge pull request #768 from Human-Connection/dependabot/npm_and_yarn/backend/apollo-client-2.6.2
Bump apollo-client from 2.6.1 to 2.6.2 in /backend
2019-06-07 14:37:21 +02:00
dependabot-preview[bot]
7d50c8f9fd
Bump apollo-client from 2.6.1 to 2.6.2 in /backend
Bumps [apollo-client](https://github.com/apollographql/apollo-client) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/apollo-client@2.6.1...apollo-client@2.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 11:20:30 +00:00
dependabot-preview[bot]
850121015f
Bump apollo-server-testing from 2.6.1 to 2.6.2 in /backend
Bumps [apollo-server-testing](https://github.com/apollographql/apollo-server) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/compare/apollo-server-testing@2.6.1...apollo-server-testing@2.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 11:20:28 +00:00
Robert Schäfer
5503df0895
Merge pull request #776 from Human-Connection/dependabot/npm_and_yarn/backend/apollo-server-2.6.2
Bump apollo-server from 2.6.1 to 2.6.2 in /backend
2019-06-07 13:18:28 +02:00
dependabot-preview[bot]
34a9799fac
Bump apollo-server from 2.6.1 to 2.6.2 in /backend
Bumps [apollo-server](https://github.com/apollographql/apollo-server) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/compare/apollo-server@2.6.1...apollo-server@2.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 05:00:10 +00:00
dependabot-preview[bot]
b5b3293af0
Bump date-fns from 2.0.0-alpha.29 to 2.0.0-alpha.31 in /backend
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.0.0-alpha.29 to 2.0.0-alpha.31.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md)
- [Commits](https://github.com/date-fns/date-fns/compare/v2.0.0-alpha.29...v2.0.0-alpha.31)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 04:59:36 +00: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
dependabot-preview[bot]
1d4b77cc59
Bump date-fns from 2.0.0-alpha.27 to 2.0.0-alpha.29 in /backend
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.0.0-alpha.27 to 2.0.0-alpha.29.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md)
- [Commits](https://github.com/date-fns/date-fns/compare/v2.0.0-alpha.27...v2.0.0-alpha.29)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-06 04:58:41 +00:00
mattwr18
2615f5dcfe
Merge pull request #741 from Human-Connection/dependabot/npm_and_yarn/backend/apollo-cache-inmemory-1.6.1
Bump apollo-cache-inmemory from 1.6.0 to 1.6.1 in /backend
2019-06-05 22:35:41 -03: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
908a89759e
Merge branch 'master' into 206_setup_neo4j_db_constraints_on_startup 2019-06-05 13:40:12 +02:00
dependabot-preview[bot]
bd71d1bf66
Bump apollo-cache-inmemory from 1.6.0 to 1.6.1 in /backend
Bumps [apollo-cache-inmemory](https://github.com/apollographql/apollo-client) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/apollo-cache-inmemory@1.6.0...apollo-cache-inmemory@1.6.1)
2019-06-05 08:44:49 +00:00
Robert Schäfer
dc84b913d4
Merge pull request #743 from Human-Connection/dependabot/npm_and_yarn/backend/graphql-shield-5.3.6
Bump graphql-shield from 5.3.5 to 5.3.6 in /backend
2019-06-05 10:43:33 +02:00
Robert Schäfer
04ab624963
Merge pull request #745 from Human-Connection/dependabot/npm_and_yarn/backend/apollo-client-2.6.1
Bump apollo-client from 2.5.1 to 2.6.1 in /backend
2019-06-05 10:42:32 +02:00
dependabot-preview[bot]
569216b8bf
Bump node from 12.3.1-alpine to 12.4-alpine in /backend
Bumps node from 12.3.1-alpine to 12.4-alpine.
2019-06-05 05:01:44 +00:00
dependabot-preview[bot]
aafcd40fb0
Bump apollo-client from 2.5.1 to 2.6.1 in /backend
Bumps [apollo-client](https://github.com/apollographql/apollo-client) from 2.5.1 to 2.6.1.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/apollo-client@2.5.1...apollo-client@2.6.1)
2019-06-05 04:58:31 +00:00
dependabot-preview[bot]
084bdbb3f4
Bump graphql-shield from 5.3.5 to 5.3.6 in /backend
Bumps [graphql-shield](https://github.com/maticzav/graphql-shield) from 5.3.5 to 5.3.6.
- [Release notes](https://github.com/maticzav/graphql-shield/releases)
- [Commits](https://github.com/maticzav/graphql-shield/compare/v5.3.5...v5.3.6)
2019-06-05 04:58:05 +00:00
Robert Schäfer
3952578ffb Merge remote-tracking branch 'origin/master' into 206_setup_neo4j_db_constraints_on_startup 2019-06-05 01:04:38 +02:00
Robert Schäfer
d2130d64f4 Write documentation for Neo4J
@Tirokk FYI
2019-06-05 00:31:54 +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
dd624ef535
fix for YOU CAN'T CLEAN THE DATABASE WITH DEBUG=false 2019-06-04 00:10:42 +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
edd71b7825
DISABLE_MIDDLEWARES now requires DEBUG=true 2019-06-03 23:00:27 +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