9095 Commits

Author SHA1 Message Date
mattwr18
cd3e02abcf
Merge pull request #3199 from Human-Connection/spec-for-searches
feat: Specs For Searches
2020-03-18 21:40:09 +01:00
mattwr18
800e33e1be chore: fix lint 2020-03-18 20:38:18 +01:00
Moriz Wahl
9c08db22dc Changes requested by @mattwr18 2020-03-18 20:38:18 +01:00
Moriz Wahl
48564565a5 matchBeginningOfWords more compact 2020-03-18 20:38:18 +01:00
Moriz Wahl
0a15d785a3 test that a post written by muted user is not included in the search results 2020-03-18 20:38:18 +01:00
Moriz Wahl
d47274fb8e linting 2020-03-18 20:38:18 +01:00
Moriz Wahl
b2ea4df294 refactored queryString, specs for queryString 2020-03-18 20:38:18 +01:00
Moriz Wahl
46fca229ec search specs refactored 2020-03-18 20:38:18 +01:00
roschaefer
3d25ec5b4e Start to refactor specs and implementation
@mogge this is just a rough guideline how to improve the quality of your tests.
Of course it needs to be continued.
2020-03-18 20:38:18 +01:00
Moriz Wahl
a9c6356ffa clean db after test 2020-03-18 20:38:18 +01:00
Moriz Wahl
4f8d605b88 ensure that every post has an author 2020-03-18 20:38:18 +01:00
Moriz Wahl
5b5fc09053 fix typo 2020-03-18 20:38:18 +01:00
Moriz Wahl
4a2d250854 cypress test data adjusted to new search mechanism 2020-03-18 20:38:18 +01:00
Moriz Wahl
8f1b3b9f6b cypress test data adjusted to new search mechanism 2020-03-18 20:38:18 +01:00
Moriz Wahl
57101b80bf cypress tests will really pass 2020-03-18 20:38:18 +01:00
Moriz Wahl
1060a2f6d0 cypress tests will pass 2020-03-18 20:38:18 +01:00
Moriz Wahl
9cb489dce1 Specs are running and regex in searches.js is cleaned up
Matching the whole text entered exactly is boosted by 8.
Matching all the words entered exactly is boosted by 4.
Matching some words ebtered exactly is boosted by 2.
Glob matching is applied for words with more than three characters is not boosted.
To Do: Deal with @ and # symbols.
To Do: Find a way to match unicode, e.g. kyrillic letters.
2020-03-18 20:38:18 +01:00
Moriz Wahl
a6a2ac4fbe search spec starts doing what it should 2020-03-18 20:38:18 +01:00
Moriz Wahl
f9b6fb95ab spec for searches added 2020-03-18 20:38:18 +01:00
mattwr18
9ecf5ac33e
Merge pull request #3292 from Human-Connection/fix_travis_caching
chore(ci): Follow cypress docs to cache libraries
2020-03-18 16:00:08 +01:00
roschaefer
871aaed06d chore(ci): Disable yarn cache 2020-03-18 14:57:01 +01:00
mattwr18
35f6f33bc3
Merge pull request #3287 from Human-Connection/dependabot/npm_and_yarn/cypress-4.2.0
build(deps-dev): bump cypress from 4.1.0 to 4.2.0
2020-03-17 10:26:12 +01:00
dependabot-preview[bot]
b065272b3d
build(deps-dev): bump cypress from 4.1.0 to 4.2.0
Bumps [cypress](https://github.com/cypress-io/cypress) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Commits](https://github.com/cypress-io/cypress/compare/v4.1.0...v4.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-17 04:16:52 +00:00
Robert Schäfer
e31a46e496
Merge pull request #3268 from Human-Connection/dependabot/npm_and_yarn/webapp/acorn-5.7.4
build(deps): [security] bump acorn from 5.7.3 to 5.7.4 in /webapp
2020-03-16 19:59:33 +01:00
Robert Schäfer
512ef672bf
feat: Introduce graphql image type (#3043)
* refactor(graphql): Introduce image type

* Undo changes to .travis.yml

* chore: Upgrade travis to node LTS

- URL is available since v10

* chore: use lts

Co-authored-by: mattwr18 <mattwr18@gmail.com>
2020-03-16 15:32:19 +01:00
mattwr18
23afe9be74
Merge pull request #3284 from Human-Connection/dependabot/npm_and_yarn/webapp/storybook/addon-actions-5.3.17
build(deps-dev): bump @storybook/addon-actions from 5.3.14 to 5.3.17 in /webapp
2020-03-16 13:11:28 +01:00
dependabot-preview[bot]
40b8e25753
build(deps): [security] bump acorn from 5.7.3 to 5.7.4 in /webapp
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. **This update includes a security fix.**
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 11:57:18 +00:00
Robert Schäfer
ac71c1da9d
Merge pull request #3281 from Human-Connection/dependabot/npm_and_yarn/webapp/date-fns-2.11.0
build(deps): bump date-fns from 2.10.0 to 2.11.0 in /webapp
2020-03-16 12:54:20 +01:00
Robert Schäfer
2d540bcaba
Merge pull request #3267 from Human-Connection/3266-update-node-version-to-match-dockerfile-travis
chore: Dockerfile/Travis node versions match
2020-03-16 12:54:05 +01:00
Robert Schäfer
5988eac410
Merge pull request #3278 from Human-Connection/dependabot/npm_and_yarn/backend/date-fns-2.11.0
build(deps): bump date-fns from 2.10.0 to 2.11.0 in /backend
2020-03-16 12:53:21 +01:00
Robert Schäfer
82e57f7182
Merge pull request #3277 from Human-Connection/dependabot/npm_and_yarn/backend/hapi/joi-17.1.1
build(deps): bump @hapi/joi from 17.1.0 to 17.1.1 in /backend
2020-03-16 12:53:12 +01:00
Robert Schäfer
c6cd6e4e59
Merge pull request #3276 from Human-Connection/dependabot/npm_and_yarn/backend/neo4j-driver-4.0.2
build(deps): bump neo4j-driver from 4.0.1 to 4.0.2 in /backend
2020-03-16 12:53:04 +01:00
Robert Schäfer
145c409485
Merge pull request #3275 from Human-Connection/dependabot/npm_and_yarn/neo4j-driver-4.0.2
build(deps-dev): bump neo4j-driver from 4.0.1 to 4.0.2
2020-03-16 12:52:53 +01:00
mattwr18
43c437facc
Merge pull request #3258 from Human-Connection/2117-refactor-deprecated-slot-syntax
refactor: deprecated slot syntax [2117]
2020-03-16 10:30:10 +01:00
dependabot-preview[bot]
843fe8cfa7
build(deps-dev): bump @storybook/addon-actions in /webapp
Bumps [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/addons/actions) from 5.3.14 to 5.3.17.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v5.3.17/addons/actions)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 09:07:51 +00:00
dependabot-preview[bot]
e9d0051f97
build(deps): bump date-fns from 2.10.0 to 2.11.0 in /webapp
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.10.0 to 2.11.0.
- [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.10.0...v2.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 09:07:11 +00:00
dependabot-preview[bot]
22fbb8075c
build(deps-dev): bump neo4j-driver from 4.0.1 to 4.0.2
Bumps [neo4j-driver](https://github.com/neo4j/neo4j-javascript-driver) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/neo4j/neo4j-javascript-driver/releases)
- [Commits](https://github.com/neo4j/neo4j-javascript-driver/compare/4.0.1...4.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 09:03:47 +00:00
dependabot-preview[bot]
0c03b0a286
build(deps): bump neo4j-driver from 4.0.1 to 4.0.2 in /backend
Bumps [neo4j-driver](https://github.com/neo4j/neo4j-javascript-driver) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/neo4j/neo4j-javascript-driver/releases)
- [Commits](https://github.com/neo4j/neo4j-javascript-driver/compare/4.0.1...4.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 09:03:43 +00:00
dependabot-preview[bot]
419d187106
build(deps): bump date-fns from 2.10.0 to 2.11.0 in /backend
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.10.0 to 2.11.0.
- [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.10.0...v2.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 09:03:24 +00:00
dependabot-preview[bot]
6356c0e5b7
build(deps): bump @hapi/joi from 17.1.0 to 17.1.1 in /backend
Bumps [@hapi/joi](https://github.com/hapijs/joi) from 17.1.0 to 17.1.1.
- [Release notes](https://github.com/hapijs/joi/releases)
- [Commits](https://github.com/hapijs/joi/compare/v17.1.0...v17.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 09:03:23 +00:00
mattwr18
f5dfef49a8
Merge pull request #3282 from Human-Connection/dependabot/npm_and_yarn/webapp/storybook/addon-notes-5.3.17
build(deps-dev): bump @storybook/addon-notes from 5.3.14 to 5.3.17 in /webapp
2020-03-16 10:02:25 +01:00
mattwr18
8f3b112d1e
Merge pull request #3280 from Human-Connection/dependabot/npm_and_yarn/backend/mustache-4.0.1
build(deps): bump mustache from 4.0.0 to 4.0.1 in /backend
2020-03-16 10:01:56 +01:00
mattwr18
3cd4abb2d4
Merge pull request #3274 from Human-Connection/dependabot/npm_and_yarn/backend/sentry/node-5.14.2
build(deps): bump @sentry/node from 5.14.1 to 5.14.2 in /backend
2020-03-16 10:01:38 +01:00
mattwr18
8ff0076b92
Merge pull request #3273 from Human-Connection/dependabot/npm_and_yarn/date-fns-2.11.0
build(deps-dev): bump date-fns from 2.10.0 to 2.11.0
2020-03-16 10:01:11 +01:00
dependabot-preview[bot]
ae21e3860d
build(deps-dev): bump @storybook/addon-notes in /webapp
Bumps [@storybook/addon-notes](https://github.com/storybookjs/storybook/tree/HEAD/addons/notes) from 5.3.14 to 5.3.17.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/v5.3.17/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v5.3.17/addons/notes)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 04:20:50 +00:00
dependabot-preview[bot]
355143030b
build(deps): bump mustache from 4.0.0 to 4.0.1 in /backend
Bumps [mustache](https://github.com/janl/mustache.js) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/janl/mustache.js/releases)
- [Changelog](https://github.com/janl/mustache.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/janl/mustache.js/compare/v4.0.0...v4.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 04:18:19 +00:00
dependabot-preview[bot]
87a455db89
build(deps): bump @sentry/node from 5.14.1 to 5.14.2 in /backend
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 5.14.1 to 5.14.2.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/5.14.1...5.14.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 04:15:39 +00:00
dependabot-preview[bot]
3ceccb5422
build(deps-dev): bump date-fns from 2.10.0 to 2.11.0
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.10.0 to 2.11.0.
- [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.10.0...v2.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 04:15:22 +00:00
Robert Schäfer
552513fc44
Merge pull request #3270 from Human-Connection/dependabot/npm_and_yarn/backend/acorn-6.4.1
build(deps): [security] bump acorn from 6.3.0 to 6.4.1 in /backend
2020-03-16 00:21:08 +01:00
dependabot-preview[bot]
18a260ec91
build(deps): [security] bump acorn from 6.3.0 to 6.4.1 in /backend
Bumps [acorn](https://github.com/acornjs/acorn) from 6.3.0 to 6.4.1. **This update includes a security fix.**
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.3.0...6.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-15 14:02:50 +00:00