134 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Grzegorz Leoniec
9629ca649a
Fixed user middleware 2019-01-09 17:20:25 +01:00
Robert Schäfer
9262fbb44f Start a test server only once.
This keeps our tests small. It is quite a headache though, because of an
issue with jest and with transpiling. For reasons that I don't understand
running `yarn run test:jest` sometimes complains about open handles.
I would love to hear how to make our build more reliable.
2019-01-09 14:49:35 +01:00
Daksh
fbdbabc382
Merge branch 'master' into master 2019-01-09 19:08:37 +05:30
Grzegorz Leoniec
3765f5d046
Merge branch 'master' into locations 2019-01-09 13:37:04 +01:00
Grzegorz Leoniec
86c7b93386
Removed unneeded log 2019-01-09 13:14:18 +01:00
Grzegorz Leoniec
2571d82447
Disabled cypther logs and added DEBUG env var 2019-01-09 13:12:37 +01:00
Grzegorz Leoniec
0bfa047a5a
Fixed issues for non german / english languages 2019-01-08 15:12:44 +01:00
Robert Schäfer
ae39c18980 Run all backend tests
I accidently left `describe.only` in the test suite. That usually runs
only one block of tests instead of all tests. My fault, sorry
2019-01-08 14:57:33 +01:00
Grzegorz Leoniec
b5649ca2e3
Internationalized Locations 2019-01-08 14:34:00 +01:00
Robert Schäfer
2156b08e8f Run yarn run lint --fix
@DakshMiglani check the build server for any errors:
https://travis-ci.com/Human-Connection/Nitro-Backend/builds/96505757#L658

Here you can see the build was fine, only eslint complained. Eslint is a
quick fix 😉
2019-01-08 14:20:05 +01:00
Grzegorz Leoniec
a313f941c5
Fixed eslint issue 2019-01-07 20:25:05 +01:00
Grzegorz Leoniec
cffce564ea
Fixed short_code 2019-01-07 17:58:27 +01:00
Grzegorz Leoniec
9fab4a8fe7
Fixed injection issues 2019-01-07 17:34:18 +01:00
Grzegorz Leoniec
77e77229b9
Fixed login and schema 2019-01-07 17:30:54 +01:00
Daksh
016119e768
fix variableName from id to userId 2019-01-07 13:00:19 +05:30
Daksh Miglani
5fd5795f39
fix jwt strategy 2019-01-07 12:48:47 +05:30
Grzegorz Leoniec
30d4318d17
Throw an error if requried env vars are missing 2019-01-04 15:15:07 +01:00
Grzegorz Leoniec
e9bc848a33
Improved locale handling and moved MAPBOX_TOKEN to env 2019-01-04 15:14:51 +01:00
Grzegorz Leoniec
1f818116e4
Merge branch 'master' into locations 2019-01-04 09:30:20 +01:00
Robert Schäfer
fd206c2b1f Merge remote-tracking branch 'origin/master' into 500_error_on_login 2019-01-04 00:25:22 +01:00
Robert Schäfer
96d9bb49bc Revert "add afterAll to make CI pass"
This reverts commit 3a9cb31e1f6039aecd428b2fc250b4b88a18ccfa.

See https://github.com/Human-Connection/Nitro-Backend/pull/88#discussion_r245157595
2019-01-03 23:55:05 +01:00