roschaefer
cf8ead10f3
Start to refactor backend tests
2019-08-30 16:00:32 +02:00
roschaefer
4b96454b90
Notifications resolver capable of orderBy + filter
2019-08-30 16:00:32 +02:00
roschaefer
643d175ef6
Implement notifications resolver
2019-08-30 16:00:32 +02:00
dependabot-preview[bot]
d78349879d
Bump neo4j-driver from 1.7.5 to 1.7.6 in /backend
...
Bumps [neo4j-driver](https://github.com/neo4j/neo4j-javascript-driver ) from 1.7.5 to 1.7.6.
- [Release notes](https://github.com/neo4j/neo4j-javascript-driver/releases )
- [Commits](https://github.com/neo4j/neo4j-javascript-driver/compare/1.7.5...1.7.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-30 13:49:20 +00:00
dependabot-preview[bot]
cbfaf292d7
Bump eslint-plugin-node from 9.1.0 to 9.2.0 in /backend
...
Bumps [eslint-plugin-node](https://github.com/mysticatea/eslint-plugin-node ) from 9.1.0 to 9.2.0.
- [Release notes](https://github.com/mysticatea/eslint-plugin-node/releases )
- [Commits](https://github.com/mysticatea/eslint-plugin-node/compare/v9.1.0...v9.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-30 13:48:50 +00:00
Robert Schäfer
f207d66fbe
Merge pull request #1428 from Human-Connection/dependabot/npm_and_yarn/backend/graphql-14.5.4
...
Bump graphql from 14.5.3 to 14.5.4 in /backend
2019-08-30 15:47:40 +02:00
Robert Schäfer
0a5052ba96
Merge pull request #1397 from Human-Connection/performance-improvement
...
Check there are ids in the badIds array
2019-08-30 14:08:13 +02:00
mattwr18
f275799856
Merge pull request #1351 from Human-Connection/1333-fix_checks_for_deleted_and_disabled
...
Fix database import, pagination and counters on user profile page
2019-08-30 13:51:41 +02:00
dependabot-preview[bot]
5332041e50
Bump graphql from 14.5.3 to 14.5.4 in /backend
...
Bumps [graphql](https://github.com/graphql/graphql-js ) from 14.5.3 to 14.5.4.
- [Release notes](https://github.com/graphql/graphql-js/releases )
- [Commits](https://github.com/graphql/graphql-js/compare/v14.5.3...v14.5.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-30 11:39:02 +00:00
Matt Rider
cf60397477
Fix failing cypress test, add steps
...
- Added step to expose the search feature was completely broken after my latest commit.
- when a user blocks another user, the search functionality just stopped working.
- reverted changes to @roschaefer hacky fix of the search functionality
2019-08-30 07:47:57 +02:00
Matt Rider
42018f0bf4
Merge branch 'master' of github.com:Human-Connection/Human-Connection into performance-improvement
2019-08-30 07:17:19 +02:00
ogerly
f28ff69f3a
Adaptation of Cypress tests, first attempt
2019-08-30 06:54:25 +02:00
dependabot-preview[bot]
3a2df2e8fc
Bump eslint-plugin-jest from 22.15.2 to 22.16.0 in /backend
...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest ) from 22.15.2 to 22.16.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.15.2...v22.16.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-30 04:21:20 +00:00
Wolfgang Huß
c9c6605b3e
Merge branch '1395-hashtags-imported-with-not-allowed-chars' of https://github.com/Human-Connection/Human-Connection into 1395-hashtags-imported-with-not-allowed-chars
2019-08-29 19:10:25 +02:00
Wolfgang Huß
dfcce21061
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1395-hashtags-imported-with-not-allowed-chars
2019-08-29 19:06:53 +02:00
Wolfgang Huß
327105da7a
Refactor the extraction of hashtag out of a posts content
...
Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2019-08-29 19:02:44 +02:00
Wolfgang Huß
0bc4c558ae
Refactore the import and hashtags to all unicode characters
...
Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2019-08-29 17:02:02 +02:00
ogerly
c09e9a0149
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into C-1187-terms-and-conditions-confirmed-function
2019-08-29 13:45:12 +02:00
Robert Schäfer
c69f05da61
Merge pull request #1424 from Human-Connection/dependabot/npm_and_yarn/backend/apollo-server-2.9.1
...
Bump apollo-server from 2.9.0 to 2.9.1 in /backend
2019-08-29 12:19:32 +02:00
Robert Schäfer
29f4f1e662
Merge pull request #1416 from Human-Connection/dependabot/npm_and_yarn/backend/helmet-3.20.1
...
Bump helmet from 3.20.0 to 3.20.1 in /backend
2019-08-29 10:47:32 +02:00
dependabot-preview[bot]
14efc0ac8f
Bump apollo-server from 2.9.0 to 2.9.1 in /backend
...
Bumps [apollo-server](https://github.com/apollographql/apollo-server ) from 2.9.0 to 2.9.1.
- [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/compare/apollo-server@2.9.0...apollo-server@2.9.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-29 08:46:29 +00:00
Robert Schäfer
3b9b28ecf2
Merge pull request #1420 from Human-Connection/dependabot/npm_and_yarn/backend/eslint-config-standard-14.1.0
...
Bump eslint-config-standard from 14.0.1 to 14.1.0 in /backend
2019-08-29 10:45:08 +02:00
Robert Schäfer
9a680f34e0
Merge pull request #1419 from Human-Connection/dependabot/npm_and_yarn/backend/neo4j-graphql-js-2.7.2
...
Bump neo4j-graphql-js from 2.7.1 to 2.7.2 in /backend
2019-08-29 10:44:51 +02:00
dependabot-preview[bot]
215c160b7c
Bump eslint-config-standard from 14.0.1 to 14.1.0 in /backend
...
Bumps [eslint-config-standard](https://github.com/standard/eslint-config-standard ) from 14.0.1 to 14.1.0.
- [Release notes](https://github.com/standard/eslint-config-standard/releases )
- [Changelog](https://github.com/standard/eslint-config-standard/blob/master/CHANGELOG.md )
- [Commits](https://github.com/standard/eslint-config-standard/compare/v14.0.1...v14.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-29 04:24:20 +00:00
dependabot-preview[bot]
b6dd2d3807
Bump neo4j-graphql-js from 2.7.1 to 2.7.2 in /backend
...
Bumps [neo4j-graphql-js](https://github.com/neo4j-graphql/neo4j-graphql-js ) from 2.7.1 to 2.7.2.
- [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-preview[bot] <support@dependabot.com>
2019-08-29 04:23:41 +00:00
dependabot-preview[bot]
ba698ba4c4
Bump apollo-server-testing from 2.9.0 to 2.9.1 in /backend
...
Bumps [apollo-server-testing](https://github.com/apollographql/apollo-server ) from 2.9.0 to 2.9.1.
- [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/compare/apollo-server-testing@2.9.0...apollo-server-testing@2.9.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-29 04:23:11 +00:00
dependabot-preview[bot]
260f13e4a3
Bump helmet from 3.20.0 to 3.20.1 in /backend
...
Bumps [helmet](https://github.com/helmetjs/helmet ) from 3.20.0 to 3.20.1.
- [Release notes](https://github.com/helmetjs/helmet/releases )
- [Changelog](https://github.com/helmetjs/helmet/blob/master/CHANGELOG.md )
- [Commits](https://github.com/helmetjs/helmet/compare/v3.20.0...v3.20.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-29 04:22:40 +00:00
Robert Schäfer
1f1c474baf
Merge pull request #1388 from Human-Connection/dependabot/npm_and_yarn/backend/eslint-6.2.2
...
Bump eslint from 6.2.1 to 6.2.2 in /backend
2019-08-28 19:38:28 +02:00
ogerly
ee03f0e902
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into C-1187-terms-and-conditions-confirmed-function
2019-08-28 14:21:46 +02:00
roschaefer
e4d57f80aa
Fix #1333
...
Ok, so here are multiple issues:
1. In cypher, `NOT NULL` will return `NULL` not `FALSE`. If we want
`FALSE` to be set in the database import, we should use `COAELESCE`
to find the first not-null value.
See:
https://neo4j.com/docs/cypher-manual/current/syntax/working-with-null/
https://markhneedham.com/blog/2017/02/22/neo4j-null-values-even-work/
2. I removed the `disabled` and `deleted` checks on the commented
counter. With `neo4j-graphql-js` it is not possible to filter on the
join models (at least not without a lot of complexity) for disabled or
deleted items. Let's live with the fact that the list of commented posts
will include those posts, where the user has deleted his comment or where
the user's comment was disabled. It's being displayed as "not available"
so I think this is OK for now.
3. De-couple the pagination counters from the "commented", "shouted"
etc. counters. It might be that the list of posts is different for
different users. E.g. if the user has blocked you, the "posts" list
will be empty. The "shouted" or "commented" list will not have the
posts of the author. If you are a moderator, the list will include
disabled posts. So the counters are not in sync with the actual list
coming from the backend. Therefore I implemented "fetch and check if
resultSet < pageSize" instead of a global counter.
2019-08-28 12:57:32 +02:00
Robert Schäfer
8a729122c3
Merge pull request #1270 from Human-Connection/1062-notification-about-comment-on-post
...
🍰 1062 notification about comment on post
2019-08-27 15:59:46 +02:00
mattwr18
4c7d371d29
Merge pull request #1385 from Human-Connection/dependabot/npm_and_yarn/backend/graphql-14.5.3
...
Bump graphql from 14.5.0 to 14.5.3 in /backend
2019-08-27 15:21:03 +02:00
dependabot-preview[bot]
c9924fed2b
Bump graphql from 14.5.0 to 14.5.3 in /backend
...
Bumps [graphql](https://github.com/graphql/graphql-js ) from 14.5.0 to 14.5.3.
- [Release notes](https://github.com/graphql/graphql-js/releases )
- [Commits](https://github.com/graphql/graphql-js/compare/v14.5.0...v14.5.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-27 07:10:05 +00:00
mattwr18
f509cea423
Merge pull request #1403 from Human-Connection/dependabot/npm_and_yarn/backend/graphql-shield-6.0.6
...
Bump graphql-shield from 6.0.5 to 6.0.6 in /backend
2019-08-27 09:10:01 +02:00
dependabot-preview[bot]
42049ffaf0
Bump eslint from 6.2.1 to 6.2.2 in /backend
...
Bumps [eslint](https://github.com/eslint/eslint ) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v6.2.1...v6.2.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-27 07:09:36 +00:00
mattwr18
e673ea73b8
Merge pull request #1389 from Human-Connection/dependabot/npm_and_yarn/backend/babel-eslint-10.0.3
...
Bump babel-eslint from 10.0.2 to 10.0.3 in /backend
2019-08-27 09:08:06 +02:00
mattwr18
2699cdd920
Merge pull request #1384 from Human-Connection/dependabot/npm_and_yarn/backend/apollo-server-2.9.0
...
Bump apollo-server from 2.8.2 to 2.9.0 in /backend
2019-08-27 09:06:16 +02:00
mattwr18
8ec6b3a92f
Merge pull request #1382 from Human-Connection/dependabot/npm_and_yarn/backend/date-fns-2.0.1
...
Bump date-fns from 2.0.0 to 2.0.1 in /backend
2019-08-27 09:05:37 +02:00
dependabot-preview[bot]
91aa518c58
Bump graphql-shield from 6.0.5 to 6.0.6 in /backend
...
Bumps [graphql-shield](https://github.com/maticzav/graphql-shield ) from 6.0.5 to 6.0.6.
- [Release notes](https://github.com/maticzav/graphql-shield/releases )
- [Commits](https://github.com/maticzav/graphql-shield/compare/v6.0.5...v6.0.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-27 04:22:02 +00:00
Matt Rider
6de602fd58
Revert @roschaefer 's hacky fix to Search.feature
...
- now that we are checking to see if there are any badIds, it was breaking the search functionality
2019-08-26 21:37:36 +02:00
Matt Rider
b990a1055b
Fix search functionality
...
- remove unused line that allows for an empty array of author_not.id_in
2019-08-26 17:51:44 +02:00
roschaefer
9f6757f409
Use guard clauses if possible
2019-08-26 16:53:22 +02:00
Wolfgang Huß
af968461b6
Split handleNotificationsMiddleware in notificationsMiddleware and hashtagsMiddleware
2019-08-26 16:24:43 +02:00
Matt Rider
75d984073d
Check there are ids in the badIds array
...
- if there are no ids, we shouldn't add an empty array since it adds unneccessarily to our auto-generated post query and affects greatly performance. see issue #1390
2019-08-26 16:19:42 +02:00
Wolfgang Huß
7498d88a44
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1062-notification-about-comment-on-post
2019-08-26 15:44:32 +02:00
dependabot-preview[bot]
90a9f672e9
Bump apollo-server from 2.8.2 to 2.9.0 in /backend
...
Bumps [apollo-server](https://github.com/apollographql/apollo-server ) from 2.8.2 to 2.9.0.
- [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/compare/apollo-server@2.8.2...apollo-server@2.9.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 11:46:58 +00:00
dependabot-preview[bot]
37ec1a5a4f
Bump babel-eslint from 10.0.2 to 10.0.3 in /backend
...
Bumps [babel-eslint](https://github.com/babel/babel-eslint ) from 10.0.2 to 10.0.3.
- [Release notes](https://github.com/babel/babel-eslint/releases )
- [Commits](https://github.com/babel/babel-eslint/compare/v10.0.2...v10.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 11:45:41 +00:00
mattwr18
f11091c4ce
Merge pull request #1387 from Human-Connection/dependabot/npm_and_yarn/backend/apollo-server-testing-2.9.0
...
Bump apollo-server-testing from 2.8.2 to 2.9.0 in /backend
2019-08-26 13:44:50 +02:00
dependabot-preview[bot]
c3c07333a6
Bump date-fns from 2.0.0 to 2.0.1 in /backend
...
Bumps [date-fns](https://github.com/date-fns/date-fns ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/date-fns/date-fns/releases )
- [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md )
- [Commits](https://github.com/date-fns/date-fns/compare/v2.0.0...v2.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 11:38:38 +00:00
dependabot-preview[bot]
c8f7391d05
Bump apollo-server-testing from 2.8.2 to 2.9.0 in /backend
...
Bumps [apollo-server-testing](https://github.com/apollographql/apollo-server ) from 2.8.2 to 2.9.0.
- [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/compare/apollo-server-testing@2.8.2...apollo-server-testing@2.9.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 04:27:11 +00:00