1228 Commits

Author SHA1 Message Date
Wolfgang Huß
ab14087a47 Fix lint 2020-07-08 08:59:22 +02:00
ATOMktn
0cd7b6cf7f
fix: issue #3504 umlaut encoding
updated slugify middleware to handle umlauts to specification
2020-06-25 18:33:05 -04:00
Wolfgang Huß
9aacb22a58
Merge pull request #3293 from Human-Connection/1741-follow-lists
feat: FollowerList [1741]
2020-04-20 13:01:29 +02:00
mattwr18
58944a0c65 refactor(tests): return errors 2020-04-01 13:32:47 +02:00
mattwr18
52b5a4b0f8 fix(migration): Set maxSockets to avoid rate limit 2020-03-30 14:14:06 +02:00
mattwr18
ff348fdd5c chore: remove image nodes that point to nothing
- remove their relationships to posts/users as well
2020-03-26 19:01:09 +01:00
roschaefer
cedd0ac9e8 Code creep: Avoid migration errors
..because of existing indices. I think this is unnecessary, e.g. in
development.
2020-03-26 16:41:32 +01:00
roschaefer
2e1d5b6bb8 chore(migration): Remove dangling urls 2020-03-26 16:39:03 +01:00
mattwr18
bde6bfc5fa fix(migration): fix errors after dry run
- avoid content-type is not a string, by checking if there is a mimeType
  or giving it a default 'image/jpeg'
- check if the file exists before trying to upload it (maybe this is
  only an issue locally, but about half the files didn't exist in the
file system.
2020-03-26 14:03:21 +01:00
Raphael Beer
ebebb56a36
Chore: apply prettier update to backend change 2020-03-26 04:18:00 +01:00
Raphael Beer
481c96ee04
Change: seed db with all random users being followers/followed by user@example.com 2020-03-25 12:45:55 +01:00
roschaefer
8a90bf1642 Fix backend tests 2020-03-25 11:09:06 +01:00
roschaefer
79808fe692 fix(s3): Avoid invalid URL error on delete 2020-03-25 11:09:06 +01:00
roschaefer
e9bd969f0a Fix cypress tests 2020-03-25 11:09:06 +01:00
roschaefer
32da8b2982 refactor: Remove redundant credentials
aws-sdk reads them from environment variables.
2020-03-25 11:09:06 +01:00
roschaefer
eb838257d4 Ensure overwritten images are deleted on S3 2020-03-25 11:09:06 +01:00
mattwr18
2447e2b39b feat: Support/favor s3Uploads for new uploads 2020-03-25 11:08:57 +01:00
mattwr18
c33217c526 Find mimeType/update image.url 2020-03-25 11:07:57 +01:00
roschaefer
179d9d000a Start migration to bulk upload images to S3 2020-03-25 11:07:57 +01:00
roschaefer
276ea79e8f Update prettier to v2 2020-03-24 21:11:11 +01:00
mattwr18
6e0459ca2d fix(build): make locations spec more resilient 2020-03-23 20:45:17 +01:00
mattwr18
698c85b262 fix(backend): Obfuscate avatar/image fix test
- Then Image.url can be non-nullable because we return null if the
  resource is deleted.
2020-03-23 19:16:10 +01:00
mattwr18
e0e026a8b8 fix(migration): return null for Image.url 2020-03-23 18:46:28 +01:00
roschaefer
ed7b739d98 fix(migration): Avoid unique constraint violation 2020-03-20 20:25:37 +01:00
Moriz Wahl
7d29400ef9 tag fulltext index added to store 2020-03-19 15:44:30 +01:00
Moriz Wahl
4e3705f607 specs for Search for Hashtags 2020-03-19 15:10:52 +01:00
Moriz Wahl
1c43d5fe6f Search for Hashtags works due watching route in pages/index.vue 2020-03-19 14:19:13 +01:00
Moriz Wahl
014be6e7f8 partially working, index page does not update when route is changed 2020-03-19 12:59:15 +01:00
Moriz Wahl
e236838523 migration added for index for fulltext tag search 2020-03-19 12:55:59 +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
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
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
roschaefer
da165906e2 DRY user.spec.js 2020-03-10 18:28:41 +01:00
ogerly
07ded7419f test: deleting a user is tested with a foreign user, a moderator, an admin 2020-03-10 18:21:45 +01:00
ogerly
b23328a211 docs(setup): changes undone and set in own branch 2020-03-10 18:21:45 +01:00