1232 Commits

Author SHA1 Message Date
aonomike
3e7e240392 Refactor it updates disabled test for Comment 2019-09-17 18:59:21 +03:00
aonomike
5c06ba39e2 Refactor moderate Comment tests 2019-09-17 18:46:45 +03:00
aonomike
a6f4362a3f Refactor Moderator spec tp use apollo-server-testing
- Refactor unauthentiacted path for logged in and un logged in user
2019-09-17 15:51:49 +03:00
Robert Schäfer
793a4b7882
Merge pull request #1582 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-image-5.7.4
Bump metascraper-image from 5.6.6 to 5.7.4 in /backend
2019-09-17 02:17:16 +02:00
dependabot-preview[bot]
e480c389ee
Bump metascraper-image from 5.6.6 to 5.7.4 in /backend
Bumps [metascraper-image](https://github.com/microlinkhq/metascraper) from 5.6.6 to 5.7.4.
- [Release notes](https://github.com/microlinkhq/metascraper/releases)
- [Changelog](https://github.com/microlinkhq/metascraper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microlinkhq/metascraper/compare/v5.6.6...v5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 21:21:47 +00:00
Robert Schäfer
3c775b0bb5
Merge pull request #1578 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-soundcloud-5.7.4
Bump metascraper-soundcloud from 5.6.7 to 5.7.4 in /backend
2019-09-16 23:20:52 +02:00
Robert Schäfer
36adef2e8b
Merge pull request #1580 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-video-5.7.4
Bump metascraper-video from 5.6.6 to 5.7.4 in /backend
2019-09-16 23:20:38 +02:00
Robert Schäfer
2a0e5f7e2f
Merge pull request #1584 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-date-5.7.4
Bump metascraper-date from 5.7.0 to 5.7.4 in /backend
2019-09-16 23:20:06 +02:00
Robert Schäfer
4f6725c588
Merge pull request #1585 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-lang-5.7.4
Bump metascraper-lang from 5.6.6 to 5.7.4 in /backend
2019-09-16 23:19:49 +02:00
Robert Schäfer
cb574dd850
Merge pull request #1595 from Human-Connection/1454-security-issue-comment-mutations
Remove deleted/disabled/createdAt from Comment mutations
2019-09-16 18:20:35 +02:00
mattwr18
de0837bbd3
Merge pull request #1572 from Human-Connection/set_created_at_in_cypher
Fix bug where Post.createdAt is sometimes null
2019-09-16 14:38:13 +02:00
mattwr18
f66d234e85 Fix lint 2019-09-16 13:41:10 +02:00
mattwr18
70c72e8f95 Remove deleted/disabled/createdAt from Comment mutations 2019-09-16 12:35:14 +02:00
mattwr18
14d1932a18
Merge pull request #1591 from Human-Connection/dependabot/npm_and_yarn/backend/hapi/joi-16.0.1
Bump @hapi/joi from 15.1.1 to 16.0.1 in /backend
2019-09-16 09:05:56 +02:00
dependabot-preview[bot]
293b597f44
Bump metascraper-date from 5.7.0 to 5.7.4 in /backend
Bumps [metascraper-date](https://github.com/microlinkhq/metascraper) from 5.7.0 to 5.7.4.
- [Release notes](https://github.com/microlinkhq/metascraper/releases)
- [Changelog](https://github.com/microlinkhq/metascraper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microlinkhq/metascraper/compare/v5.7.0...v5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 07:05:28 +00:00
dependabot-preview[bot]
210166e10f
Bump metascraper-lang from 5.6.6 to 5.7.4 in /backend
Bumps [metascraper-lang](https://github.com/microlinkhq/metascraper) from 5.6.6 to 5.7.4.
- [Release notes](https://github.com/microlinkhq/metascraper/releases)
- [Changelog](https://github.com/microlinkhq/metascraper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microlinkhq/metascraper/compare/v5.6.6...v5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 07:04:59 +00:00
dependabot-preview[bot]
dc9c27448a
Bump metascraper-soundcloud from 5.6.7 to 5.7.4 in /backend
Bumps [metascraper-soundcloud](https://github.com/microlinkhq/metascraper-soundcloud) from 5.6.7 to 5.7.4.
- [Release notes](https://github.com/microlinkhq/metascraper-soundcloud/releases)
- [Commits](https://github.com/microlinkhq/metascraper-soundcloud/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 07:04:08 +00:00
dependabot-preview[bot]
54a6c34148
Bump metascraper-video from 5.6.6 to 5.7.4 in /backend
Bumps [metascraper-video](https://github.com/microlinkhq/metascraper) from 5.6.6 to 5.7.4.
- [Release notes](https://github.com/microlinkhq/metascraper/releases)
- [Changelog](https://github.com/microlinkhq/metascraper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microlinkhq/metascraper/compare/v5.6.6...v5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 07:04:06 +00:00
mattwr18
7c1af36b9a
Merge pull request #1581 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-description-5.7.4
Bump metascraper-description from 5.6.6 to 5.7.4 in /backend
2019-09-16 09:03:21 +02:00
mattwr18
2d73308131
Merge pull request #1579 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-logo-5.7.4
Bump metascraper-logo from 5.6.6 to 5.7.4 in /backend
2019-09-16 09:02:49 +02:00
mattwr18
e186502d55
Merge pull request #1577 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-youtube-5.7.4
Bump metascraper-youtube from 5.6.7 to 5.7.4 in /backend
2019-09-16 09:02:21 +02:00
mattwr18
5c7fd072b9
Merge pull request #1576 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-url-5.7.4
Bump metascraper-url from 5.6.6 to 5.7.4 in /backend
2019-09-16 09:01:54 +02:00
dependabot-preview[bot]
2c4c63f268
Bump @hapi/joi from 15.1.1 to 16.0.1 in /backend
Bumps [@hapi/joi](https://github.com/hapijs/joi) from 15.1.1 to 16.0.1.
- [Release notes](https://github.com/hapijs/joi/releases)
- [Changelog](https://github.com/hapijs/joi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hapijs/joi/compare/v15.1.1...v16.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 04:25:30 +00:00
dependabot-preview[bot]
8afd3f199e
Bump metascraper-description from 5.6.6 to 5.7.4 in /backend
Bumps [metascraper-description](https://github.com/microlinkhq/metascraper) from 5.6.6 to 5.7.4.
- [Release notes](https://github.com/microlinkhq/metascraper/releases)
- [Changelog](https://github.com/microlinkhq/metascraper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microlinkhq/metascraper/compare/v5.6.6...v5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-13 21:50:31 +00:00
dependabot-preview[bot]
06dd347a08
Bump metascraper-logo from 5.6.6 to 5.7.4 in /backend
Bumps [metascraper-logo](https://github.com/microlinkhq/metascraper) from 5.6.6 to 5.7.4.
- [Release notes](https://github.com/microlinkhq/metascraper/releases)
- [Changelog](https://github.com/microlinkhq/metascraper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microlinkhq/metascraper/compare/v5.6.6...v5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-13 21:50:05 +00:00
dependabot-preview[bot]
da6029dc9b
Bump metascraper-youtube from 5.6.7 to 5.7.4 in /backend
Bumps [metascraper-youtube](https://github.com/microlinkhq/metascraper-youtube) from 5.6.7 to 5.7.4.
- [Release notes](https://github.com/microlinkhq/metascraper-youtube/releases)
- [Commits](https://github.com/microlinkhq/metascraper-youtube/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-13 21:50:02 +00:00
dependabot-preview[bot]
e4029b4a0a
Bump metascraper-url from 5.6.6 to 5.7.4 in /backend
Bumps [metascraper-url](https://github.com/microlinkhq/metascraper) from 5.6.6 to 5.7.4.
- [Release notes](https://github.com/microlinkhq/metascraper/releases)
- [Changelog](https://github.com/microlinkhq/metascraper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microlinkhq/metascraper/compare/v5.6.6...v5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-13 21:50:01 +00:00
mattwr18
99b48429b8
Merge pull request #1562 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-date-5.7.0
Bump metascraper-date from 5.6.6 to 5.7.0 in /backend
2019-09-13 23:48:28 +02:00
mattwr18
a4a4722bd5
Merge pull request #1561 from Human-Connection/dependabot/npm_and_yarn/backend/metascraper-title-5.7.0
Bump metascraper-title from 5.6.6 to 5.7.0 in /backend
2019-09-13 23:47:52 +02:00
mattwr18
bec629e8ef Fix intermittent failing test
- not concerned about the order of the notification in this test
2019-09-13 20:51:15 +02:00
mattwr18
d1ecac4580 Write tests to ensure createdAt is not deleted on update
- we had a silly serious bug by overwriting all attributes at the time
of UpdatePost
- tests in place to ensure we don't accidentally delete our createdAt
attribute
2019-09-13 20:14:47 +02:00
mattwr18
60c473bb94 Create UpdateComment resolver, update UpdateUser
- UpdateUser should update updatedAt at point of insertion in the
database as well
2019-09-13 20:14:47 +02:00
mattwr18
ca6ae3bd1b Remove dateTimeMiddleware
- favor adding createdAt, updatedAt attributes at point of insertion to
the database
2019-09-13 20:14:47 +02:00
mattwr18
16d7e6c91a Update notifications
- create only one relationship by using merge, but do not update
createdAt attribute/update test
- order by updatedAt_desc
2019-09-13 20:14:47 +02:00
mattwr18
67d68db231 Update post resolver to fix embarrasing bugs
- when a user updates a post, we should not override every property in
our database with the new params, since we have read-only properties
like createdAt that we don't want to go deleting aimlessly.
2019-09-13 20:14:47 +02:00
mattwr18
ce487f1e0f Set notifications.createdAt only at creation
- we should not be setting it every time a notification is created
2019-09-13 20:14:47 +02:00
roschaefer
2a3e6ad76f Alternative solution for #1494 2019-09-13 20:14:47 +02:00
Alexander Friedland
193ac8e6b2
Merge pull request #1556 from Human-Connection/1503_datum_agb
II Add Date to Terms and Conditions #1535
2019-09-13 07:21:19 +02:00
dependabot-preview[bot]
0f4efb3400
Bump metascraper-date from 5.6.6 to 5.7.0 in /backend
Bumps [metascraper-date](https://github.com/microlinkhq/metascraper) from 5.6.6 to 5.7.0.
- [Release notes](https://github.com/microlinkhq/metascraper/releases)
- [Changelog](https://github.com/microlinkhq/metascraper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microlinkhq/metascraper/compare/v5.6.6...v5.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-13 04:21:45 +00:00
dependabot-preview[bot]
20976b08ca
Bump metascraper-title from 5.6.6 to 5.7.0 in /backend
Bumps [metascraper-title](https://github.com/microlinkhq/metascraper) from 5.6.6 to 5.7.0.
- [Release notes](https://github.com/microlinkhq/metascraper/releases)
- [Changelog](https://github.com/microlinkhq/metascraper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microlinkhq/metascraper/compare/v5.6.6...v5.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-13 04:21:19 +00:00
roschaefer
f3c31aed28 Don't expose termsAndConditionsAgreedAt
1. Don't expose `termsAndConditionsAgreedAt` as input param, because of ..why?
2. Make the `termsAndConditionsAgreedVersion` a *required* input param
   for `SignupVerification`. If new users register, they have to confirm
   the terms and conditions. I added another test to check what happens if
   the user sends `null`.
3. Sorry @ogerly for confusing you with my review here:
   https://github.com/Human-Connection/Human-Connection/pull/1556#pullrequestreview-287516516
   What I meant is that we want to simulate a user with no
   `termsAndConditionsAgreedVersion`. But of course the `variables` must
   have it set when you run the mutations. Now we have the
   exclamation mark in the input param, see point 1 ☝️
2019-09-13 01:11:46 +02:00
Robert Schäfer
8fa794f282
Merge pull request #1553 from Human-Connection/helper-for-backend-tests-failed-by-missing-constraints
🍰 [Helper] Message for backend tests failed by missing constraints
2019-09-12 23:51:15 +02:00
roschaefer
86f9824c2e Fix lint 2019-09-12 23:13:20 +02:00
Alexander Friedland
8fa42ea6ea
update 2019-09-12 18:51:41 +02:00
Alexander Friedland
0bef3a729c
Update backend/src/schema/resolvers/registration.spec.js
Co-Authored-By: Robert Schäfer <git@roschaefer.de>
2019-09-12 18:00:14 +02:00
Alexander Friedland
aa234edc0a
Update backend/src/schema/resolvers/registration.spec.js
Co-Authored-By: Robert Schäfer <git@roschaefer.de>
2019-09-12 18:00:02 +02:00
roschaefer
9233049ff3 Show a helpful message only if test fails
Inspired by the `ON FAIL` markup from the previous commit
0f2398295bcced3af3772bb4add1f42472c97893
2019-09-12 17:16:10 +02:00
ogerly
4b97131225 old stand 2019-09-12 16:37:30 +02:00
roschaefer
bc153ee42e Synchronize dockerfiles, fix cypress
.. make tippy.js a production dependency (was throwing errors on my
machine).
2019-09-12 12:16:20 +02:00
Wolfgang Huß
0f2398295b Helper message for backend tests failed by missing constraints in database 2019-09-12 11:14:42 +02:00