70 Commits

Author SHA1 Message Date
Grzegorz Leoniec
31d44fe395
Improved xss cleaning 2019-01-28 10:06:30 +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
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
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
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
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
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
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
2e8d04d881
Merged master in 2019-01-11 16:37:40 +01:00
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
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
Grzegorz Leoniec
0bfa047a5a
Fixed issues for non german / english languages 2019-01-08 15:12:44 +01:00
Grzegorz Leoniec
b5649ca2e3
Internationalized Locations 2019-01-08 14:34:00 +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
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
Grzegorz Leoniec
5c88037d5c
WIP - first try to create a report mutation which attaches nodes internally 2019-01-03 15:27:26 +01:00
Robert Schäfer
eaef67fad3 Replace mocha with jest
To have a consisten test runner in both repos (Nitro-Web and
Nitro-Backend)
2018-12-20 17:55:03 +01:00
Grzegorz Leoniec
1f62e1d3f3
merged master in 2018-12-10 12:37:07 +01:00
Robert Schäfer
ad62a8ebb3 Set unimplemented mocha tests to pending 2018-12-05 00:18:47 +01:00
Robert Schäfer
1ae09b5a7f Merge remote-tracking branch 'origin/master' into mochajs 2018-12-05 00:12:42 +01:00
Robert Schäfer
43b5d8eeb0 Follow @appinteractives review
See:
https://github.com/Human-Connection/Nitro-Backend/pull/40#pullrequestreview-180898363
https://github.com/Human-Connection/Nitro-Backend/pull/40#pullrequestreview-180950115
2018-12-04 23:43:19 +01:00
Robert Schäfer
15d9178369 Install and configure eslint
Fix all violations but one - there is a mock in our authentication.
2018-12-03 18:05:28 +01:00
Grzegorz Leoniec
b3f19694f7 merged master in 2018-11-30 11:45:37 +01:00
Grzegorz Leoniec
ea18ad8e1f merged master in 2018-11-30 10:09:43 +01:00
Grzegorz Leoniec
5597e34dab Fixed Badges Seeder and URL Fix Middleware 2018-11-26 17:18:09 +01:00
Grzegorz Leoniec
329fe0ac63 merged master in 2018-11-26 15:31:13 +01:00
Robert Schäfer
68b143be7e
Update src/middleware/index.js
Co-Authored-By: appinteractive <greg@app-interactive.de>
2018-11-23 16:51:29 +01:00
Grzegorz Leoniec
3912515c25 do not allow disabling permissions in production 2018-11-22 12:22:22 +01:00
Grzegorz Leoniec
c1387f262d added permissions as first item. 2018-11-22 11:36:49 +01:00
Grzegorz Leoniec
8c72c88e59 made permissions accessible for the outside 2018-11-21 15:38:47 +01:00
Grzegorz Leoniec
46c0289881 merge conflict fixed 2018-11-21 15:29:18 +01:00