157 Commits

Author SHA1 Message Date
Robert Schäfer
63845681b7 Fix lint 2019-02-27 19:02:26 -03:00
Robert Schäfer
5a995f9f86 Implement test for search
@appinteractive could you have a look if sanitization of search queries
work? I created a test and I see "unterminated string" exceptions. This
is not what we want! All user input should be escaped.
2019-02-27 19:01:23 -03:00
Robert Schäfer
5230099e6b Sketch a test 2019-02-27 18:56:23 -03:00
Robert Schäfer
46436ca9b1 Setup a routine how to create indices initially
In order to create the indices programmatically we need to change the
default password for security concerns. To create the user we need to
start the neo4j database. So I decided to provide a bash script that
let us do it once the container are started.

In production we must change the NEO4J_PASSWORD.
2019-02-27 18:56:23 -03:00
Grzegorz Leoniec
832a778ca1 Added findPost query 2019-02-27 18:53:27 -03:00
Robert Schäfer
5856e74b39 Fix yarn run db:reset 2019-02-22 14:13:03 +01: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
b70eea8919
Fixed eslint 2019-02-08 09:49:22 +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
fa6e5b69ed
Merge branch 'master' into 100_2_download_uploads_and_more 2019-01-26 09:39:31 +01:00
Robert Schäfer
f273240fd8
Merge branch 'master' into report-content 2019-01-22 13:33:57 +01:00
Robert Schäfer
e46c8d18e5 Implement public folder 2019-01-22 12:48:06 +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
d0fa8b7e21 Run yarn run lint --fix 2019-01-19 01:04:42 +01:00
Robert Schäfer
5701185d34 Fix urls for staging-alpha 2019-01-19 00:36:55 +01:00
Robert Schäfer
4a21e5b885 Implement test for image middleware 2019-01-19 00:34:45 +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
Grzegorz Leoniec
8b20f447f3
Fixed lint issues 2019-01-18 10:51:33 +01:00
Robert Schäfer
c1395f7ec1 Fix leakage of subprocesses
@mattwr18 and I could not find any other way how to prevent leftover
processes than using a complex list of npm scripts.

Watch: http://youtu.be/byovuFwNXiw
and see how we despearately try to fix this stupid problem.
2019-01-18 02:09:19 +01:00
Robert Schäfer
5dbe5b16a4 Help @mattwr18 to debug the subprocesses 2019-01-17 23:38:55 +01:00
Robert Schäfer
47e9e52a84 Refactor test to be less confusing 2019-01-17 18:31:39 +01:00
Robert Schäfer
918bd863ed Fix typo
Replace password with Asterix and Obelix
See: http://www.topkool.com/fr/wp-content/uploads/2012/10/asterix-et-obelix-017.jpg

@appinteractive 😆
2019-01-17 18:06:53 +01:00
Robert Schäfer
6340efbfc5 Fix #106
Thank you @appinteractive ! 💝

FYI: @kachulio1 @mattwr18
2019-01-17 18:03:28 +01:00
Robert Schäfer
ad8e64d060 Properly exit if seeding fails 2019-01-17 16:01:03 +01:00
Robert Schäfer
cd3f0955f9 Properly test 106
I had the wrong test setup for the "expected-to-be-green" side tests
(for debugging).
2019-01-17 15:42:09 +01:00
Robert Schäfer
d50015af3c Replace node with babel-node
This should ensure that you don't have to reubild the server all the
time
2019-01-17 15:24:25 +01:00
Robert Schäfer
9e4edca35b Use node spawn to spin off several servers 2019-01-17 15:17:18 +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
5e77e7eaa7
Merge branch 'master' into locations 2019-01-15 13:18:31 +01:00
Robert Schäfer
b2d1685b06 WIP: Integrate permissionless app into setup hooks 2019-01-15 00:39:06 +01:00
Robert Schäfer
9d541d8f27 Clean up helper.js 2019-01-14 23:31:00 +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
Grzegorz Leoniec
8635cd162f
Merge branch 'master' into report-content 2019-01-14 17:16:19 +01:00
Grzegorz Leoniec
79749e6570
Fixed isOwner permission 2019-01-14 17:07:20 +01:00
Robert Schäfer
6bbc76911a Refactor test cases 2019-01-14 16:07:52 +01:00
Grzegorz Leoniec
3a90c84a21
Merge branch 'master' into locations 2019-01-13 15:43:37 +01:00
Grzegorz Leoniec
fb885ddcda
Merge branch 'master' into 106_authorization 2019-01-13 15:42:21 +01:00
Grzegorz Leoniec
feadc0e543
Rename _ResourceType to RecourceType in schema 2019-01-11 19:17:10 +01:00
Grzegorz Leoniec
2e8d04d881
Merged master in 2019-01-11 16:37:40 +01:00
Grzegorz Leoniec
52c32bb646
Report now works 2019-01-11 16:34:06 +01:00
Daksh
ca38892322
remove password from query. 2019-01-10 21:49:01 +05:30
Grzegorz Leoniec
887cc8fddf
Refactoring 2019-01-10 15:59:10 +01:00
Robert Schäfer
0893d3740e Try to expose bug #106
It does not work as we have PERMISSIONS=disabled also in the server
we're trying to test.
2019-01-09 18:56:57 +01:00
Grzegorz Leoniec
ced8bd78bb
Added locations to seeded users 2019-01-09 17:21:30 +01:00