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
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
6a0b5a22e0
Merge remote-tracking branch 'origin/master' into 17-Admin-Remove-user-profile
2020-03-24 21:48:22 +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
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
627b47837e
Rename findResources to searchResults
2020-03-18 19:45:48 +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