Lala Sabathil
803bd237bd
Merge branch 'master' into get_rid_of_resource_type
2019-03-08 12:36:09 +01:00
Lala Sabathil
f54227ffbf
Merge pull request #215 from Human-Connection/dependabot/npm_and_yarn/jest-24.3.1
...
Bump jest from 24.1.0 to 24.3.1
2019-03-08 12:31:41 +01:00
dependabot[bot]
c8ba2f6558
Bump jest from 24.1.0 to 24.3.1
...
Bumps [jest](https://github.com/facebook/jest ) from 24.1.0 to 24.3.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/compare/v24.1.0...v24.3.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-08 10:59:31 +00:00
Grzegorz Leoniec
dfc28acfe5
Do nodemon restart on .js and .graphql files
2019-03-08 11:56:15 +01:00
Lala Sabathil
76197657bf
Merge branch 'master' into get_rid_of_resource_type
2019-03-08 11:49:38 +01:00
Lala Sabathil
477972f2ba
Merge pull request #216 from Human-Connection/dependabot/npm_and_yarn/babel-jest-24.3.1
...
Bump babel-jest from 24.1.0 to 24.3.1
2019-03-08 11:44:23 +01:00
dependabot[bot]
13d7f677e8
Bump babel-jest from 24.1.0 to 24.3.1
...
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest ) from 24.1.0 to 24.3.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v24.3.1/packages/babel-jest )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-08 04:23:50 +00:00
Robert Schäfer
f68e289016
Fix lint
2019-03-07 22:44:43 +01:00
Robert Schäfer
0529e2b2b0
Refactor report mutation, return a proper Report
2019-03-07 22:42:32 +01:00
Matt Rider
61a45d39ea
Respond with reporter, resource
2019-03-07 17:43:00 -03:00
Matt Rider
d00e4fad39
Merge branch 'master' of github.com:Human-Connection/Nitro-Backend into get_rid_of_resource_type
2019-03-07 16:16:25 -03:00
Robert Schäfer
95e9c14cc6
Refactor report mutation/type to reduce redundancy
...
We don't need to save the type of the reported resource. We can derive
it.
2019-03-07 20:13:39 +01:00
Robert Schäfer
4596041186
Refactor mutations without Resource type
2019-03-07 20:13:25 +01:00
Robert Schäfer
2d24fc9945
Merge pull request #207 from Human-Connection/27_disable_posts
...
Disable posts
2019-03-07 19:14:33 +01:00
Robert Schäfer
1377455cda
Disable/enable should return the Resource
2019-03-07 18:31:54 +01:00
Lala Sabathil
ccb7241bf7
Merge branch 'master' into 27_disable_posts
2019-03-07 16:46:34 +01:00
Lala Sabathil
ae88db1dbe
Merge pull request #208 from Human-Connection/dependabot/npm_and_yarn/apollo-link-http-1.5.12
...
Bump apollo-link-http from 1.5.11 to 1.5.12
2019-03-07 16:44:39 +01:00
Lala Sabathil
b6cc03cbe8
Merge branch 'master' into dependabot/npm_and_yarn/apollo-link-http-1.5.12
2019-03-07 16:23:39 +01:00
Robert Schäfer
389f447186
Merge branch 'master' into 27_disable_posts
2019-03-06 17:21:56 +01:00
Robert Schäfer
8072939458
Tiny performance improvement
2019-03-06 17:21:49 +01:00
Robert Schäfer
f40a67b7a8
Implement disabling of comments+users+posts
2019-03-06 17:13:36 +01:00
Robert Schäfer
1c34f10f96
Test refactoring: Check comments + posts
2019-03-06 17:13:36 +01:00
Grzegorz Leoniec
2813de4f8b
Fixed organization seeder
2019-03-06 13:20:33 +01:00
dependabot[bot]
09ec8c3602
Bump apollo-link-http from 1.5.11 to 1.5.12
...
Bumps [apollo-link-http](https://github.com/apollographql/apollo-link ) from 1.5.11 to 1.5.12.
- [Release notes](https://github.com/apollographql/apollo-link/releases )
- [Changelog](https://github.com/apollographql/apollo-link/blob/master/CHANGELOG.md )
- [Commits](https://github.com/apollographql/apollo-link/compare/apollo-link-http@1.5.11...apollo-link-http@1.5.12 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-06 04:31:31 +00:00
Robert Schäfer
5cff508bd6
Disable/enable fullfills tests
2019-03-06 01:07:04 +01:00
Robert Schäfer
0a73ddd46d
Refactor: custom resolvers for moderation
2019-03-05 23:59:54 +01:00
Robert Schäfer
2b7576521c
Fix lint
...
+ return more attributes in post factory for convenience
2019-03-05 18:17:02 +01:00
Robert Schäfer
592f25b978
Implement update of .disabled field
2019-03-05 18:14:25 +01:00
Robert Schäfer
99cebc8d64
Implementation ready except disabled attr.
2019-03-05 17:45:10 +01:00
Robert Schäfer
f2e7e515a4
Check from: User! matches the authenticated user
2019-03-05 16:46:39 +01:00
Robert Schäfer
85d9d7043e
Setup isModerator permission for disable relation
2019-03-05 16:25:01 +01:00
Robert Schäfer
420ea8a4d6
Scaffold some tests for disabledBy relation
2019-03-05 16:15:31 +01:00
Robert Schäfer
f644507e4f
Intermediate commit
2019-03-05 15:47:03 +01:00
Robert Schäfer
979c7d4a18
Merge pull request #206 from Human-Connection/dependabot/npm_and_yarn/eslint-5.15.1
...
Bump eslint from 5.15.0 to 5.15.1
2019-03-05 13:03:27 +01:00
dependabot[bot]
0db91530fe
Bump eslint from 5.15.0 to 5.15.1
...
Bumps [eslint](https://github.com/eslint/eslint ) from 5.15.0 to 5.15.1.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v5.15.0...v5.15.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-05 04:18:26 +00:00
Grzegorz Leoniec
303e1f399f
Merge pull request #203 from Human-Connection/27_fix_disabled_deleted_on_mutation
...
Fix current build
2019-03-04 21:55:15 +01:00
Robert Schäfer
180491c08c
Put isAuthor in permissions middleware
...
I find it dirty to access the database in a middleware, ie. I would like
to put all access on the database as close to the resolver as possible.
However, in this case that would mean to put the authorization check in
the resolver, where nobody expects it to be.
CC @appinteractive
2019-03-04 19:43:24 +01:00
Robert Schäfer
b64ea75011
Add a deleted post and a disabled post to seeds
2019-03-04 18:41:05 +01:00
Robert Schäfer
c869724d29
Let all tests pass 💚
2019-03-04 18:41:05 +01:00
Robert Schäfer
b2520258a3
Improve specification of posts resolver
...
* only authors are alllowed to update/delete their own posts
* set disabled+deleted to false if not provided
2019-03-04 18:41:05 +01:00
Grzegorz Leoniec
4d0af7688d
Merge pull request #192 from Human-Connection/27_disable_posts
...
Show disabled or deleted posts for moderators
2019-03-04 15:55:38 +01:00
Robert Schäfer
82bbdd12c4
Merge branch 'master' into 27_disable_posts
2019-03-04 15:35:46 +01:00
Robert Schäfer
f496b3f329
Merge pull request #202 from Human-Connection/dependabot/npm_and_yarn/eslint-5.15.0
...
Bump eslint from 5.14.1 to 5.15.0
2019-03-04 15:35:24 +01:00
dependabot[bot]
b23380d593
Bump eslint from 5.14.1 to 5.15.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 5.14.1 to 5.15.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v5.14.1...v5.15.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-04 04:21:10 +00:00
dependabot[bot]
802736e562
Merge pull request #183 from Human-Connection/dependabot/npm_and_yarn/@babel/core-7.3.4
2019-03-03 14:40:23 +00:00
Robert Schäfer
4a64755df7
Merge branch 'master' into 27_disable_posts
2019-03-03 15:27:27 +01:00
Robert Schäfer
cb78a30195
Merge remote-tracking branch 'origin/master' into dependabot/npm_and_yarn/@babel/core-7.3.4
2019-03-03 15:27:02 +01:00
Robert Schäfer
db30f4d2d4
Merge pull request #195 from Human-Connection/194-create-unit-test-for-badges
...
[WIP] Write API test badge creation
2019-03-03 15:22:21 +01:00
Robert Schäfer
c4b9d9011b
Merge branch 'master' into 194-create-unit-test-for-badges
2019-03-03 14:34:53 +01:00
Robert Schäfer
8d1eb6026a
Let all tests pass 💚
2019-03-03 14:35:08 +01:00