528 Commits

Author SHA1 Message Date
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
Robert Schäfer
0705ab1bf5 Fix missing contribution author
Bug: Only if a tag and a category was present, the author was assigned.
2019-02-05 14:48:13 +01:00
Robert Schäfer
6610266a5b Mount /migration for quick development 2019-02-05 14:47:51 +01:00
Robert Schäfer
82c679aaf1 Check the environment variables early on
I was missing NEO4J_URI and was told very late - let's check env vars at
the very beginning.
2019-02-04 21:42:44 +01:00
Robert Schäfer
5b674cd95f Hopefully fix migrate on Digital Ocean
It kept crashing, maybe because we're piping too much stuff to STDOUT.
Let's see.
2019-02-04 21:33:48 +01:00
Robert Schäfer
2bc1e88920 Make CodeFactor happy 2019-02-04 19:55:59 +01:00
Robert Schäfer
693e7da95b
Merge branch 'master' into refactoring_db_migration_worker 2019-02-04 19:51:18 +01:00
Robert Schäfer
084f610ec8 Turnaround: *use* volumes for sharing data
... but use it in the same pod. It seems to be possible to have shared
volumes in the same pod:
https://kubernetes.io/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/
2019-02-04 19:44:39 +01:00
Robert Schäfer
955383f169 Separate docker-compose.yml to test db migration
I think it's not that relevant to our new contributors to install the
db-migration-worker.
2019-02-04 19:19:31 +01:00
Robert Schäfer
01a145be29 Container db-migration-worker need no volumes
You can simply run `docker-compose exec db-migration-worker migrate` and
that's it. Of course you have to provide all the environment variables.
2019-02-04 17:49:48 +01:00