1236 Commits

Author SHA1 Message Date
Moriz Wahl
e090ac6998 specs for searches by type 2020-04-15 14:32:13 +02:00
Moriz Wahl
e03d209c45 In the search field, if the first charater is '!', '@' or '#' it only shows results for posts, users or hastags with a limit of 15 in the dropdown 2020-04-15 09:58:23 +02:00
Moriz Wahl
7562af227e pages are counted correctly 2020-04-14 21:41:45 +02:00
Moriz Wahl
b2a5d51106 refactoring 2020-04-14 18:53:40 +02:00
Moriz Wahl
c060ad0c4a refactoring 2020-04-14 16:45:29 +02:00
Moriz Wahl
499f9859e8 skip and offset removes from cypher as it has no effect. Added function to apply limits 2020-04-13 23:38:40 +02:00
Moriz Wahl
ee1569d5d9 refactoring of search by types 2020-04-13 16:34:47 +02:00
Moriz Wahl
269c2d78dd searchHashtags added 2020-04-08 17:59:49 +02:00
Moriz Wahl
80776d012d added userCounts and postCounts to specific searchResults 2020-04-08 17:39:09 +02:00
mattwr18
db20af2d39 Merge branch 'master' of github.com:Human-Connection/Human-Connection into 2144-Add_Search_Results_Page 2020-04-02 08:19:43 +02:00
mattwr18
e8492b59f4 feat: add pagination for search page
- it wasn't really making sense to have one query for all users/posts,
  future hashtags, because we change the first/offset when the user
paginates, which would unneccesarily refetch all other resources.
- the solution was to separate them into their own queries and only
  refetch when the user wants to paginate the resources.
2020-04-02 00:36:26 +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
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
mattwr18
906f1bc0ca Merge branch 'master' of github.com:Human-Connection/Human-Connection into 2144-Add_Search_Results_Page 2020-03-19 16:02:54 +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