Grzegorz Leoniec
2116936062
Fixed shout and follow seeding
2019-03-10 19:05:50 +01:00
Grzegorz Leoniec
e82cf9b349
Merge branch 'master' into get_rid_of_resource_type
2019-03-10 17:22:22 +01:00
Grzegorz Leoniec
9260705611
Fixed shout seeding
2019-03-08 17:03:59 +01:00
Grzegorz Leoniec
f86fc7507c
Fixed shout and follow seeding
2019-03-08 16:49:43 +01: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
389f447186
Merge branch 'master' into 27_disable_posts
2019-03-06 17:21:56 +01:00
Grzegorz Leoniec
2813de4f8b
Fixed organization seeder
2019-03-06 13:20:33 +01:00
Robert Schäfer
5cff508bd6
Disable/enable fullfills tests
2019-03-06 01:07:04 +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
f644507e4f
Intermediate commit
2019-03-05 15:47:03 +01:00
Robert Schäfer
b64ea75011
Add a deleted post and a disabled post to seeds
2019-03-04 18:41:05 +01:00
Matt Rider
5e592f666b
Write unit test badge creation
...
- for unauthenticated
- for authenticated admin
Co-authored-by: Wolfgang Huss <wolle.huss@pjannto.com>
2019-02-28 16:16:14 -03:00
Robert Schäfer
5fd44230dd
Get rid of LoggedInUser graphql type
...
This was causing a lot of headache on the frontend. Now, there a single
source of truth. If you query `currentUser` you can overwrite your local
copy of the user and update the UI.
2019-02-27 11:08:13 +01:00
Robert Schäfer
c4f15e626d
Fix lint and unblock port 4001
...
We have to specify the `yarn run test:cypress` in `.travis.yml` in the
Nitro-Web repo.
2019-02-26 00:46:14 +01:00
Robert Schäfer
ec2b1050bc
Less redundancy and more consistency in factories
...
* use the same `relate` method for now
* use a capital letter for the model `user` instead of `User`
2019-02-25 21:28:30 +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
98983bb575
Fix lint
2019-02-21 10:32:07 +01: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
d4a999ee91
Configure factories#cleanDatabase easier
2019-02-21 00:27:26 +01:00
Robert Schäfer
ba26c0e188
Seed reported comments, posts and users
2019-02-20 11:36:50 +01:00
Robert Schäfer
8a7435ebb7
Clean up seed-db.js
2019-02-19 01:51:04 +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
f273240fd8
Merge branch 'master' into report-content
2019-01-22 13:33:57 +01:00
Robert Schäfer
f5611a6316
Merge branch 'master' into 100_import_mongodb_to_neo4j
2019-01-21 22:17:32 +01:00
Robert Schäfer
55b1541829
Merge remote-tracking branch 'origin/master' into report-content
2019-01-21 15:18:40 +01:00
Grzegorz Leoniec
670292b3ec
Disabled report seeding to fix tests
2019-01-21 11:08:37 +01:00
Robert Schäfer
97e6acf46b
Import of all users in one script:
...
```sh
docker-compose exec neo4j import/import.sh
```
2019-01-18 22:45:29 +01:00
Grzegorz Leoniec
4c265bf3b8
Fixed report seeding
2019-01-18 11:22:44 +01:00
Robert Schäfer
ad8e64d060
Properly exit if seeding fails
2019-01-17 16:01:03 +01:00
Grzegorz Leoniec
a1a0d21f23
Merge remote-tracking branch 'origin/master' into report-content
2019-01-16 19:01:25 +01:00
Robert Schäfer
a07f48826b
Merge remote-tracking branch 'origin/master' into 106_authorization
2019-01-15 19:59:52 +01:00
Robert Schäfer
b2d1685b06
WIP: Integrate permissionless app into setup hooks
2019-01-15 00:39:06 +01:00
Robert Schäfer
70b20302fe
Probably exposed #106
2019-01-14 23:00:21 +01:00
Robert Schäfer
d0b975e782
Getting strange non-deterministic errors
2019-01-14 20:54:11 +01:00