6102ce2fff
more lint fix
2023-04-25 04:05:43 +02:00
5c23815a36
lint fixes
2023-04-25 03:50:06 +02:00
ca24cf4405
simplyfy logic, use language ahortcuts
2023-04-25 02:19:15 +02:00
Moriz Wahl
fc605a6d66
remove blank line
2022-10-23 01:17:33 +02:00
Moriz Wahl
6f4bde93f6
Update backend/src/schema/resolvers/searches.js
...
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2022-10-23 00:52:48 +02:00
Moriz Wahl
57bbe4c6e8
allow search groups in permission middleware, add user id to search groups query
2022-10-21 18:34:48 +02:00
Moriz Wahl
61c2250c03
respect & symbol in searches
2022-10-21 17:54:25 +02:00
Moriz Wahl
8a410cf6f5
add search groups to resolvers
2022-10-17 19:21:03 +02:00
Moriz Wahl
a4cd7a8698
test search posts with groups
2022-10-05 21:54:52 +02:00
Moriz Wahl
74505a11c5
filter posts for group visibility on search posts
2022-10-05 17:57:01 +02:00
Moriz Wahl
2afd0706cc
fix missing comma after resolvinf conflicts
2021-03-01 15:59:03 +01:00
Moriz Wahl
1c3f628fb2
count views of post teaser
2021-03-01 15:33:20 +01:00
Moriz Wahl
b16e4a926c
fixed searches for clickedCount
2021-02-22 22:24:27 +01:00
Moriz Wahl
de2193e75a
changes requested by reviewers
2020-06-02 14:12:14 +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
roschaefer
276ea79e8f
Update prettier to v2
2020-03-24 21:11:11 +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
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
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
b2ea4df294
refactored queryString, specs for queryString
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
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
mattwr18
bbb4dd56cd
Follow review suggestions/add button to unblock
...
- @roschaefer gave several suggestions
- we have a button to unblock/unmute users on profile page
2020-01-23 19:18:12 +01:00
mattwr18
0ab19dde2a
Insert missing closing parantheses breaking search
2020-01-22 13:55:57 +01:00
mattwr18
1de99511db
Include BLOCKED users in search results
2020-01-22 10:43:30 +01:00
mattwr18
3354174a53
Fix muted user can still see my posts
2020-01-22 10:34:10 +01:00
mattwr18
e639358557
Test drive to get the functionality how we'd like
2020-01-21 21:16:42 +01:00
Moriz Wahl
3f37b007d7
improved specs
2020-01-07 15:35:04 +01:00
Moriz Wahl
57ab9128ea
removed Hashtag search
2020-01-07 09:16:34 +01:00
Moriz Wahl
07b2b7ca3b
Please pass the tests now
2020-01-06 18:36:59 +01:00
Moriz Wahl
de6053dfa3
try again, cypress blackbox
2020-01-06 18:02:11 +01:00
Moriz Wahl
71c9d92aea
query string for searches changed and basics for Hashtag search added
2020-01-06 16:46:43 +01:00
Moriz Wahl
b4d120dff3
Merge branch '1463-search-for-users' of https://github.com/Human-Connection/Human-Connection into 1463-search-for-users
2019-12-23 01:53:08 +01:00