539 Commits

Author SHA1 Message Date
Grzegorz Leoniec
360acdb141 Fix search 2019-02-27 19:02:26 -03:00
Robert Schäfer
e7c01d8877 Disable authentication on Travis 2019-02-27 19:02:26 -03:00
Robert Schäfer
8453d95f68 Do we need to wait until the web client is up? 2019-02-27 19:02:26 -03:00
Robert Schäfer
a41063a60a On Travis we have to expose the port
...to be able to wait for it.
2019-02-27 19:02:26 -03:00
Robert Schäfer
14c61b3bf8 Create indices before testing 2019-02-27 19:02:26 -03:00
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
151bb28429 Provide README 2019-02-27 18:56:23 -03:00
Robert Schäfer
34ecd07b1b Modify migrate for development environment 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
Grzegorz Leoniec
bc6089dbf5
Fixed readme 2019-02-24 17:05:59 +01:00
Grzegorz Leoniec
5a255db018
Fixed FOSSA status 2019-02-24 15:08:00 +01:00
Grzegorz Leoniec
56610d0d3d
Fixed FOSSA status 2019-02-24 15:07:41 +01:00
Grzegorz Leoniec
fd0ac65f6a
Fixed FOSSA status 2019-02-24 15:04:16 +01:00
Grzegorz Leoniec
95dbba3369
Added more badges to readme 2019-02-24 15:02:05 +01:00
Robert Schäfer
6b66b33d8b Revert "Bump neo4j-graphql-js from 2.3.1 to 2.4.0"
This reverts commit d8af7cb2e57b4623baa719c181899f4d72f7b185.

@appinteractive this broke the index page on the frontend side. If you
log in, you don't see posts and instead you see this error on the developer
console:

```
GraphQL error: Invalid input '}': expected whitespace, comment or a property key name (line 4, column 39 (offset: 464))
"RETURN COUNT(r)", {this: post_author, }, false),shoutedCount: apoc.cypher.runFirstColumn("MATCH (this)-[:SHOUTED]->(r:Post) WHERE NOT r.deleted = true AND NOT r.disabled = true RETURN COUNT(r)", {this: post_author, }, false),commentsCount: apoc.cypher.runFirstColumn("MATCH (this)-[:WROTE]->(r:Comment) WHERE NOT r.deleted = true RETURN COUNT(r)", {this: post_author, }, false),followedByCount: apoc.cypher.runFirstColumn("MATCH (this)<-[:FOLLOWS]-(r:User) RETURN COUNT(r)", {this: post_author, }, false),location: head([ post_author_location IN apoc.cypher.runFirstColumn("MATCH (this)-[:IS_IN]->(l:Location) RETURN l", {this: post_author, }, true) | post_author_location { .nameEN }]) ,badges: [(`post_author`)<-[:`REWARDED`]-(`post_author_badges`:`Badge`) | post_author_badges { .id , .key , .icon }] }]) ,commentsCount: apoc.cypher.runFirstColumn("MATCH (this)<-[:COMMENTS]-(r:Comment) RETURN COUNT(r)", {this: post, }, false),categories: [(`post`)-[:`CATEGORIZED`]->(`post_categories`:`Category`) | post_categories { .id , .name , .icon }] ,shoutedCount: apoc.cypher.runFirstColumn("MATCH (this)<-[:SHOUTED]-(r:User) WHERE NOT r.deleted = true AND NOT r.disabled = true RETURN COUNT(r)", {this: post, }, false)} AS `post` SKIP $offset LIMIT $first"
```
2019-02-22 21:21:58 +01:00
Robert Schäfer
ed5e206dc6
Merge pull request #171 from Human-Connection/123-unit-test-for-report-mutation
[WIP] Start unit testing report feature
2019-02-22 17:58:44 +01:00
Robert Schäfer
c58d2ce403
Merge branch 'master' into 123-unit-test-for-report-mutation 2019-02-22 17:36:24 +01:00
dependabot[bot]
d4916323b0
Merge pull request #174 from Human-Connection/dependabot/npm_and_yarn/slug-1.0.0 2019-02-22 16:17:41 +00:00
Robert Schäfer
5856e74b39 Fix yarn run db:reset 2019-02-22 14:13:03 +01:00
dependabot[bot]
55395a2ffc
Bump slug from 0.9.3 to 1.0.0
Bumps [slug](https://github.com/Trott/node-slug) from 0.9.3 to 1.0.0.
- [Release notes](https://github.com/Trott/node-slug/releases)
- [Commits](https://github.com/Trott/node-slug/compare/v0.9.3...v1.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-22 04:17:49 +00: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
dependabot[bot]
a473e8e059
Merge pull request #167 from Human-Connection/dependabot/npm_and_yarn/neo4j-graphql-js-2.4.0 2019-02-21 21:32:04 +00:00
dependabot[bot]
d8af7cb2e5
Bump neo4j-graphql-js from 2.3.1 to 2.4.0
Bumps [neo4j-graphql-js](https://github.com/neo4j-graphql/neo4j-graphql-js) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/neo4j-graphql/neo4j-graphql-js/releases)
- [Changelog](https://github.com/neo4j-graphql/neo4j-graphql-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/neo4j-graphql/neo4j-graphql-js/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-21 21:25:16 +00:00
dependabot[bot]
f283948035
Merge pull request #168 from Human-Connection/dependabot/npm_and_yarn/jsonwebtoken-8.5.0 2019-02-21 21:22:48 +00:00
dependabot[bot]
e5be51257a
Bump jsonwebtoken from 8.4.0 to 8.5.0
Bumps [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) from 8.4.0 to 8.5.0.
- [Release notes](https://github.com/auth0/node-jsonwebtoken/releases)
- [Changelog](https://github.com/auth0/node-jsonwebtoken/blob/master/CHANGELOG.md)
- [Commits](https://github.com/auth0/node-jsonwebtoken/compare/v8.4.0...v8.5.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-21 04:17:07 +00:00
dependabot[bot]
caea576ae7
Merge pull request #159 from Human-Connection/dependabot/npm_and_yarn/@babel/core-7.3.3 2019-02-19 15:28:58 +00:00
dependabot[bot]
7d0463ac97
Bump @babel/core from 7.2.2 to 7.3.3
Bumps [@babel/core](https://github.com/babel/babel) from 7.2.2 to 7.3.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.2.2...v7.3.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 15:14:52 +00:00
dependabot[bot]
d5ccd7d19b
Merge pull request #158 from Human-Connection/dependabot/npm_and_yarn/apollo-server-testing-2.4.2 2019-02-19 15:08:23 +00:00
dependabot[bot]
f55d9aa0bb
Bump apollo-server-testing from 2.4.0 to 2.4.2
Bumps [apollo-server-testing](https://github.com/apollographql/apollo-server) from 2.4.0 to 2.4.2.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 14:55:44 +00:00
dependabot[bot]
d7d4a9f543
Merge pull request #157 from Human-Connection/dependabot/npm_and_yarn/eslint-plugin-jest-22.3.0 2019-02-19 14:52:39 +00:00
dependabot[bot]
cb666117fc
Bump eslint-plugin-jest from 22.2.2 to 22.3.0
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 22.2.2 to 22.3.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v22.2.2...v22.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 14:25:00 +00:00
dependabot[bot]
9c9d33aa88
Merge pull request #160 from Human-Connection/dependabot/npm_and_yarn/apollo-server-2.4.2 2019-02-19 14:21:03 +00:00
dependabot[bot]
a7149dffc9
Bump apollo-server from 2.4.0 to 2.4.2
Bumps [apollo-server](https://github.com/apollographql/apollo-server) from 2.4.0 to 2.4.2.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 14:14:33 +00:00
dependabot[bot]
86f233b020
Merge pull request #166 from Human-Connection/dependabot/npm_and_yarn/graphql-shield-5.3.0 2019-02-19 14:12:18 +00:00
dependabot[bot]
4de6265baa
Bump graphql-shield from 5.1.3 to 5.3.0
Bumps [graphql-shield](https://github.com/maticzav/graphql-shield) from 5.1.3 to 5.3.0.
- [Release notes](https://github.com/maticzav/graphql-shield/releases)
- [Commits](https://github.com/maticzav/graphql-shield/compare/v5.1.3...v5.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 04:17:52 +00:00
dependabot[bot]
c5c62d2839
Merge pull request #155 from Human-Connection/dependabot/npm_and_yarn/apollo-client-2.4.13 2019-02-15 17:33:50 +00:00
dependabot[bot]
357ac42411
Bump apollo-client from 2.4.12 to 2.4.13
Bumps [apollo-client](https://github.com/apollographql/apollo-client) from 2.4.12 to 2.4.13.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-15 16:48:40 +00:00
dependabot[bot]
227e41334e
Merge pull request #154 from Human-Connection/dependabot/npm_and_yarn/apollo-cache-inmemory-1.4.3 2019-02-15 16:45:58 +00:00
dependabot[bot]
99c2f9e272
Bump apollo-cache-inmemory from 1.4.2 to 1.4.3
Bumps [apollo-cache-inmemory](https://github.com/apollographql/apollo-client) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-15 16:34:32 +00:00
dependabot[bot]
49f91508b1
Merge pull request #156 from Human-Connection/dependabot/npm_and_yarn/nyc-13.3.0 2019-02-15 16:31:59 +00:00
dependabot[bot]
a8dd16f35b
Bump nyc from 13.2.0 to 13.3.0
Bumps [nyc](https://github.com/istanbuljs/nyc) from 13.2.0 to 13.3.0.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/nyc/compare/v13.2.0...v13.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-15 04:21:08 +00:00
dependabot[bot]
a2590fe7b8
Merge pull request #151 from Human-Connection/dependabot/npm_and_yarn/graphql-shield-5.1.3 2019-02-12 18:07:48 +00:00
dependabot[bot]
6d86769af6
Bump graphql-shield from 5.1.2 to 5.1.3
Bumps [graphql-shield](https://github.com/maticzav/graphql-shield) from 5.1.2 to 5.1.3.
- [Release notes](https://github.com/maticzav/graphql-shield/releases)
- [Commits](https://github.com/maticzav/graphql-shield/compare/v5.1.2...v5.1.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-12 17:58:12 +00:00
dependabot[bot]
45ae883ab4
Merge pull request #150 from Human-Connection/dependabot/npm_and_yarn/nodemon-1.18.10 2019-02-12 17:55:05 +00:00
dependabot[bot]
c390856027
Bump nodemon from 1.18.9 to 1.18.10
Bumps [nodemon](https://github.com/remy/nodemon) from 1.18.9 to 1.18.10.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v1.18.9...v1.18.10)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-11 04:29:23 +00:00
Robert Schäfer
3cc65f0db5
Merge pull request #149 from Human-Connection/upgrade-dependencies
Upgrade dependencies
2019-02-08 14:42:32 +01:00