Robert Schäfer
5856e74b39
Fix yarn run db:reset
2019-02-22 14:13:03 +01:00
dependabot[bot]
55395a2ffc
Bump slug from 0.9.3 to 1.0.0
...
Bumps [slug](https://github.com/Trott/node-slug ) from 0.9.3 to 1.0.0.
- [Release notes](https://github.com/Trott/node-slug/releases )
- [Commits](https://github.com/Trott/node-slug/compare/v0.9.3...v1.0.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-22 04:17:49 +00:00
Matt Rider
4a43583c6b
Create abusive-user to report, PR review suggestions
2019-02-21 22:43:51 -03:00
Matt Rider
40c210a0ce
Start unit testing report feature
2019-02-21 21:13:30 -03:00
Grzegorz Leoniec
3bee47c748
Merge branch 'master' into 37-full-text-search-top-bar
2019-02-21 22:32:44 +01:00
Grzegorz Leoniec
a1e5e866d1
Merge branch 'master' into editor
2019-02-21 22:32:31 +01:00
dependabot[bot]
a473e8e059
Merge pull request #167 from Human-Connection/dependabot/npm_and_yarn/neo4j-graphql-js-2.4.0
2019-02-21 21:32:04 +00:00
dependabot[bot]
d8af7cb2e5
Bump neo4j-graphql-js from 2.3.1 to 2.4.0
...
Bumps [neo4j-graphql-js](https://github.com/neo4j-graphql/neo4j-graphql-js ) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/neo4j-graphql/neo4j-graphql-js/releases )
- [Changelog](https://github.com/neo4j-graphql/neo4j-graphql-js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/neo4j-graphql/neo4j-graphql-js/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-21 21:25:16 +00:00
dependabot[bot]
f283948035
Merge pull request #168 from Human-Connection/dependabot/npm_and_yarn/jsonwebtoken-8.5.0
2019-02-21 21:22:48 +00:00
Grzegorz Leoniec
ba71994425
Merge branch 'master' into editor
2019-02-21 22:20:43 +01:00
Robert Schäfer
fb517450ff
Merge pull request #164 from Human-Connection/without_neode
...
Refactor seeds and tests
2019-02-21 20:51:57 +01:00
Robert Schäfer
eda2ea34fc
Incorporate @appinteractive's feedback
...
@appinteractive can we merge this soon?
2019-02-21 20:03:22 +01:00
Robert Schäfer
132dba04dd
Refactor tests with the new factory API
2019-02-21 16:06:13 +01:00
Robert Schäfer
aa07a2a616
Refactor Id Middleware
...
I found a way to cleanly request additional attributes in our
middleware. We can use this pattern if we e.g. require the author of
posts and comments to check if the user is the author and therefore
authorized to update or delete the post.
CC @mattwr18 @appinteractive @tirokk
2019-02-21 10:50:41 +01:00
Robert Schäfer
98983bb575
Fix lint
2019-02-21 10:32:07 +01:00
dependabot[bot]
e5be51257a
Bump jsonwebtoken from 8.4.0 to 8.5.0
...
Bumps [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken ) from 8.4.0 to 8.5.0.
- [Release notes](https://github.com/auth0/node-jsonwebtoken/releases )
- [Changelog](https://github.com/auth0/node-jsonwebtoken/blob/master/CHANGELOG.md )
- [Commits](https://github.com/auth0/node-jsonwebtoken/compare/v8.4.0...v8.5.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-21 04:17:07 +00:00
Robert Schäfer
91a13593dc
Provide a better interface for factories
...
You can now run graphql mutations *from the point of view* of a user.
@mattwr18 @Tirokk Do you have a better idea how to name the factory
builder?
2019-02-21 02:17:07 +01:00
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
dependabot[bot]
caea576ae7
Merge pull request #159 from Human-Connection/dependabot/npm_and_yarn/@babel/core-7.3.3
2019-02-19 15:28:58 +00:00
dependabot[bot]
7d0463ac97
Bump @babel/core from 7.2.2 to 7.3.3
...
Bumps [@babel/core](https://github.com/babel/babel ) from 7.2.2 to 7.3.3.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.2.2...v7.3.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 15:14:52 +00:00
dependabot[bot]
d5ccd7d19b
Merge pull request #158 from Human-Connection/dependabot/npm_and_yarn/apollo-server-testing-2.4.2
2019-02-19 15:08:23 +00:00
dependabot[bot]
f55d9aa0bb
Bump apollo-server-testing from 2.4.0 to 2.4.2
...
Bumps [apollo-server-testing](https://github.com/apollographql/apollo-server ) from 2.4.0 to 2.4.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/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 14:55:44 +00:00
dependabot[bot]
d7d4a9f543
Merge pull request #157 from Human-Connection/dependabot/npm_and_yarn/eslint-plugin-jest-22.3.0
2019-02-19 14:52:39 +00:00
dependabot[bot]
cb666117fc
Bump eslint-plugin-jest from 22.2.2 to 22.3.0
...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest ) from 22.2.2 to 22.3.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases )
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v22.2.2...v22.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 14:25:00 +00:00
dependabot[bot]
9c9d33aa88
Merge pull request #160 from Human-Connection/dependabot/npm_and_yarn/apollo-server-2.4.2
2019-02-19 14:21:03 +00:00
dependabot[bot]
a7149dffc9
Bump apollo-server from 2.4.0 to 2.4.2
...
Bumps [apollo-server](https://github.com/apollographql/apollo-server ) from 2.4.0 to 2.4.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/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 14:14:33 +00:00
dependabot[bot]
86f233b020
Merge pull request #166 from Human-Connection/dependabot/npm_and_yarn/graphql-shield-5.3.0
2019-02-19 14:12:18 +00:00
Robert Schäfer
f703164f1d
Expose cannot read property id of null error
...
CC @appinteractive
2019-02-19 13:36:02 +01:00
dependabot[bot]
4de6265baa
Bump graphql-shield from 5.1.3 to 5.3.0
...
Bumps [graphql-shield](https://github.com/maticzav/graphql-shield ) from 5.1.3 to 5.3.0.
- [Release notes](https://github.com/maticzav/graphql-shield/releases )
- [Commits](https://github.com/maticzav/graphql-shield/compare/v5.1.3...v5.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 04:17:52 +00: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