537 Commits

Author SHA1 Message Date
Robert Schäfer
b3e476e039 Create a yarn script to the backend for testing 2019-02-21 00:30:46 +01:00
Robert Schäfer
d4a999ee91 Configure factories#cleanDatabase easier 2019-02-21 00:27:26 +01:00
Robert Schäfer
4a1e06402a Fix lint 2019-02-20 15:26:49 +01:00
Robert Schäfer
7abc1583dc Implement + test unique slugs for user
I put the relevant line on categories and organizations too, but I
didn't test it separately. I could have tested it but found it
unnecessary repeating
2019-02-20 14:03:36 +01:00
Robert Schäfer
bfc5603fa8 All tests are passing! 2019-02-20 12:56:57 +01:00
Robert Schäfer
c30548d1e8 Fix bugs in migration script for neo4j
Only change the password, if we are the default user. Everything else
should be executed.
2019-02-20 12:53:56 +01:00
Robert Schäfer
a61362b269 Fix slugify unit test with async mock functions 2019-02-20 11:48:06 +01:00
Robert Schäfer
ba26c0e188 Seed reported comments, posts and users 2019-02-20 11:36:50 +01:00
Robert Schäfer
3532b473ee Choose another slug is green 2019-02-20 01:30:32 +01:00
Robert Schäfer
7a70b9ece4 Implement authorization on Post mutations 2019-02-20 01:01:41 +01:00
Robert Schäfer
f1dd52f579 Expose yet another bug in the authorization
Cannot read property id of null

CC @appinteractive
2019-02-20 01:01:41 +01:00
Robert Schäfer
9c4e599ff1 Separate middleware for ids 2019-02-19 23:39:39 +01:00
Robert Schäfer
30bb54c6fa Fix slugify test 2019-02-19 23:00:59 +01:00
Robert Schäfer
e6a996e0dd Harden permissions spec
If we expect an error to be thrown, the test should fail if no error was
raised.
2019-02-19 22:55:23 +01:00
Robert Schäfer
f703164f1d Expose cannot read property id of null error
CC @appinteractive
2019-02-19 13:36:02 +01:00
Robert Schäfer
8a7435ebb7 Clean up seed-db.js 2019-02-19 01:51:04 +01:00
Robert Schäfer
f7831dbbb7 Simplify package.json
We don't have to wait for a seedServer if we access the database
directly.
2019-02-19 01:44:30 +01:00
Robert Schäfer
4488cc9864 Seed comments 2019-02-19 01:43:11 +01:00
Robert Schäfer
1afcb4b0c9 Seed organizations 2019-02-19 01:17:38 +01:00
Robert Schäfer
a981181e94 Seed user shouts 2019-02-19 01:04:05 +01:00
Robert Schäfer
62d450ef68 Remove boilerplate code with method relate() 2019-02-19 00:54:21 +01:00
Robert Schäfer
eb22555797 Change API: create/relate
Separating the relations from mere properties removes boilerplate code.
2019-02-19 00:17:06 +01:00
Robert Schäfer
e51817c849 Seed follow relations between users 2019-02-18 23:49:54 +01:00
Robert Schäfer
f9083c8d4b Remove obsolete legacy seeds 2019-02-18 23:39:06 +01:00
Robert Schäfer
df9b4b9b8b Seed blacklisted relationships between users 2019-02-18 23:37:44 +01:00
Robert Schäfer
dd8fe73e6d Create more posts, connect users with badges 2019-02-18 23:26:46 +01:00
Robert Schäfer
aa2ce1f639 Remove redundancy in database cleaner 2019-02-18 23:02:52 +01:00
Robert Schäfer
924a57a7ca Seed badges and tags 2019-02-18 22:48:22 +01:00
Robert Schäfer
437e8589f8 Categories posts in seeding 2019-02-18 18:08:45 +01:00
Robert Schäfer
9dba02cf09 Create posts by multiple authors 2019-02-18 17:23:12 +01:00
Robert Schäfer
1734554a88 Fix seeds without the use of neode
@appinteractive ping
2019-02-18 15:35:45 +01:00
Robert Schäfer
f024bd3821 Remove redundancy 2019-02-18 13:25:11 +01:00
Robert Schäfer
f17242b824 Transfer relevant changes from branch neode 2019-02-18 12:57:07 +01:00
Grzegorz Leoniec
b515da66f9
Merge branch 'master' into editor 2019-02-13 12:55:08 +01:00
dependabot[bot]
a2590fe7b8
Merge pull request #151 from Human-Connection/dependabot/npm_and_yarn/graphql-shield-5.1.3 2019-02-12 18:07:48 +00:00
dependabot[bot]
6d86769af6
Bump graphql-shield from 5.1.2 to 5.1.3
Bumps [graphql-shield](https://github.com/maticzav/graphql-shield) from 5.1.2 to 5.1.3.
- [Release notes](https://github.com/maticzav/graphql-shield/releases)
- [Commits](https://github.com/maticzav/graphql-shield/compare/v5.1.2...v5.1.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-12 17:58:12 +00:00
dependabot[bot]
45ae883ab4
Merge pull request #150 from Human-Connection/dependabot/npm_and_yarn/nodemon-1.18.10 2019-02-12 17:55:05 +00:00
dependabot[bot]
c390856027
Bump nodemon from 1.18.9 to 1.18.10
Bumps [nodemon](https://github.com/remy/nodemon) from 1.18.9 to 1.18.10.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v1.18.9...v1.18.10)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-11 04:29:23 +00:00
Robert Schäfer
3cc65f0db5
Merge pull request #149 from Human-Connection/upgrade-dependencies
Upgrade dependencies
2019-02-08 14:42:32 +01:00
Grzegorz Leoniec
871d8318ce
Pinned dependencies and upgraded neo4j-graphql-js to 2.3.1 2019-02-08 09:50:28 +01:00
Grzegorz Leoniec
b70eea8919
Fixed eslint 2019-02-08 09:49:22 +01:00
Grzegorz Leoniec
ad51372228
Upgraded neo4j-graphql-js 2019-02-07 15:57:41 +01:00
Grzegorz Leoniec
788566a7e4
Upgraded remaining dependencies 2019-02-07 15:56:15 +01:00
Grzegorz Leoniec
9dba9b5cf4
Upgraded graphql-shield and graphql-middleware 2019-02-07 15:54:07 +01:00
Grzegorz Leoniec
d84def310b
Upgraded apollo-server and graphql-yoga 2019-02-07 15:52:07 +01:00
Grzegorz Leoniec
ae9ebcc3ab
Upgraded graphql from 0.13.0 to 14.1.1 2019-02-07 15:36:07 +01:00
Grzegorz Leoniec
2f2bc5e507
Improved link cleaning 2019-02-07 08:46:34 +01:00
Grzegorz Leoniec
ad2bba586e
Fixed link target 2019-02-06 17:20:38 +01:00
Grzegorz Leoniec
13c67437d8
Merge pull request #145 from Human-Connection/refactoring_db_migration_worker
Refactoring db migration worker
2019-02-05 21:43:35 +01:00
Robert Schäfer
9656bd4eb7 Fix comments import
@appinteractive
2019-02-05 20:02:59 +01:00