Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search Box to search for courses, streams and subtitles #1380

Open
wants to merge 118 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
62dc680
adds global search box for searching course slugs and names
karjo24 Jul 15, 2024
19217fd
adds missing file for search box
karjo24 Jul 15, 2024
61519d4
basic structure for searching in courses or semester(s)
karjo24 Aug 13, 2024
1dd1188
adds missing search request functions
karjo24 Aug 15, 2024
65115df
fixed user == nil case
karjo24 Aug 16, 2024
537d67c
course admins can search for their courses; meili only retrieves rele…
karjo24 Aug 16, 2024
2e4edb5
converted function slicetostring to type course
karjo24 Aug 16, 2024
7217610
limited fields retrieved by meilisearch and names to be uniform with …
karjo24 Aug 19, 2024
d50b957
restructured file
karjo24 Aug 19, 2024
d77f5ab
moved dao.Semester to package model
karjo24 Aug 19, 2024
38c4a1f
added option for multiple single semesters instead of semester range …
karjo24 Aug 19, 2024
0876199
reformatting
karjo24 Aug 20, 2024
18e5bd0
restructuring, more readable code
karjo24 Aug 20, 2024
92c444f
refactoring and added course-wide search
karjo24 Aug 20, 2024
5d2f3fb
supports url param semester
karjo24 Aug 20, 2024
ddff5c0
added check of the response after searching
karjo24 Aug 20, 2024
a3c0b97
own file for model.semester and corresponding methods
karjo24 Aug 20, 2024
cdcfe1d
refactoring
karjo24 Aug 21, 2024
c9ebfcc
deleted duplicated code
karjo24 Aug 21, 2024
0db480b
Added search page and moved some files
SebiWrn Aug 21, 2024
2d4d1e7
Adapted search path and parameters and fixed search page
SebiWrn Aug 21, 2024
57701b4
Some more changes to the website
SebiWrn Aug 21, 2024
d75699c
Fixed css issue
SebiWrn Aug 21, 2024
45a7247
Removed sidebar from search page
SebiWrn Aug 21, 2024
7a6e674
refactored old search courses route
karjo24 Aug 21, 2024
e64ebe7
response is now map[indexuid]hits
karjo24 Aug 21, 2024
fb728ab
Added search url and edited search page
SebiWrn Aug 21, 2024
86ae60b
Changed search page
SebiWrn Aug 21, 2024
745c0c4
Removed unnecessary css
SebiWrn Aug 21, 2024
4e18195
Fixed search bar in home view
SebiWrn Aug 23, 2024
85de5eb
Updated search bar
SebiWrn Aug 23, 2024
04b0588
Added in course search to the search bar functionality
SebiWrn Aug 23, 2024
a84d62a
Refactored code, empty result not displayed
SebiWrn Aug 23, 2024
85e31c6
Minor changes
SebiWrn Aug 24, 2024
2b97b86
Some more fixes
SebiWrn Aug 24, 2024
4771f12
Removed debug empty answer still not displaying anything
SebiWrn Aug 24, 2024
fb913ed
Added filters to search page and changed course view of results
SebiWrn Aug 24, 2024
8023301
Added more functionality and fixed some errors
SebiWrn Aug 25, 2024
57fef4e
fixed checkResponse
karjo24 Aug 21, 2024
5da4106
Fixed errors on search page
SebiWrn Aug 26, 2024
33fa26e
Refactored code
SebiWrn Aug 26, 2024
ce055a5
refactoring and fixed ssubtitle filter
karjo24 Aug 22, 2024
5069fca
added information about course to subtitle response
karjo24 Aug 22, 2024
5cd4bcf
refactoring
karjo24 Aug 22, 2024
2832766
removed dead code
karjo24 Aug 26, 2024
f43bbef
Fixed bug with the parameters
SebiWrn Aug 26, 2024
ef165e4
fixed empty responses
karjo24 Aug 26, 2024
5b0070a
Fixed query parameters
SebiWrn Aug 26, 2024
a47f1c1
Fixed course filter
SebiWrn Aug 26, 2024
1f430b6
Fixed url redirect
SebiWrn Aug 26, 2024
e9381b6
fixed faulty semester and course url param parsing
karjo24 Aug 26, 2024
b564646
renamed fields of subtitle response
karjo24 Aug 26, 2024
a5e64e3
Fixed timestamp
SebiWrn Aug 26, 2024
4d26dc8
refactored checkAndFIllReponse
karjo24 Aug 26, 2024
2f0625e
refactored checkAndFillResponse
karjo24 Aug 26, 2024
2c7228d
fixed subtitles not containing additional course information; minor r…
karjo24 Aug 31, 2024
59ca75f
fixed non-filterable attribute bug, fixed empty response bug
karjo24 Aug 31, 2024
8b8ad9d
fixed other non-filterable attribute bug
karjo24 Aug 31, 2024
101b23c
Added switch to search page on Enter
SebiWrn Sep 2, 2024
abba486
Added NumpadEnter
SebiWrn Sep 2, 2024
a1fc744
Added arrow navigation to search page
SebiWrn Sep 3, 2024
36c4f52
Fixed arrow keys in normal search
SebiWrn Sep 6, 2024
886d3c4
Added scrollbar to search results
SebiWrn Sep 6, 2024
543191a
fixed non-filterable attribute bug, fixed empty response bug
karjo24 Aug 31, 2024
29f0d5a
fixed course visibility not being present in meili
karjo24 Sep 2, 2024
65cde17
fixed streamFilter filtering out wrong semesters
karjo24 Sep 2, 2024
4530ac0
fixed after-search filter; enrolled students were able to search for …
karjo24 Sep 2, 2024
765a5e9
fixed filter not conforming to meili filter format
karjo24 Sep 2, 2024
df46008
fixed meiliSubtitleFilter regarding hidden visibility
karjo24 Sep 2, 2024
3b6f679
Added course filter but not finished yet
SebiWrn Sep 11, 2024
a557911
Fixed search bug, course filter broken when semester change
SebiWrn Sep 11, 2024
01a6532
Added Year and Term to course selection
SebiWrn Sep 11, 2024
c6e2cc1
Added course search to filter and removed console logs
SebiWrn Sep 11, 2024
f818319
Beauty changes
SebiWrn Sep 11, 2024
003c07a
Some minor changes
SebiWrn Sep 11, 2024
29d3a70
changes in preparation of tests
karjo24 Sep 11, 2024
e71f2f0
added subtitle tests, not passing yet
karjo24 Sep 19, 2024
a0c7c8d
fixed faulty response checking
karjo24 Sep 19, 2024
4e55c8e
fixed user.isEligibleToWatchCourse by adding missing if cases to func…
karjo24 Sep 19, 2024
171e2f2
added more tests
karjo24 Sep 19, 2024
093bc7b
added more information to subtitle response
karjo24 Sep 19, 2024
26855f5
fixed non-filterable attribute bug, fixed empty response bug
karjo24 Aug 31, 2024
6ca81d0
Some minor layout changes to search-page
SebiWrn Sep 20, 2024
3f87aed
Added timestamp to subtitle results
SebiWrn Sep 20, 2024
22ede29
Fixed double course bug in course filter
SebiWrn Sep 20, 2024
1ed2da3
Removed unnecessary console log
SebiWrn Sep 20, 2024
2a84e4c
Added explanations to no course / subtitle found
SebiWrn Sep 20, 2024
6b37b1d
Automatic course filtering when pressing enter on course page
SebiWrn Sep 20, 2024
81ef5fd
Some more layout changes
SebiWrn Sep 20, 2024
37cf60b
Fixed prettier errors
SebiWrn Sep 20, 2024
39e282f
fixed unchecked uint to int conversion
karjo24 Sep 20, 2024
4abede8
fixed more unchecked uint to int conversions
karjo24 Sep 20, 2024
1c10aa5
Gofumpted
SebiWrn Sep 21, 2024
6d1c9b7
Removed unnecessary lines
SebiWrn Sep 21, 2024
b3f6c5e
Fixed linter errors
SebiWrn Sep 21, 2024
3c7babb
Deleted empty file
SebiWrn Sep 21, 2024
15a07b5
removed commented code
karjo24 Sep 30, 2024
ca80508
commented exported functions/methods; ensured urlParams (firstSemeste…
karjo24 Sep 30, 2024
94dae04
moved functions within file for better differentiation between purpos…
karjo24 Sep 30, 2024
8295e42
fixed non-critical meiliStreamFilter bug, not filtering out private s…
karjo24 Sep 30, 2024
aae4370
fixed tests by changing return values for mock.EXPECT
karjo24 Sep 30, 2024
0fd0698
fixed lint issue
karjo24 Sep 30, 2024
6e3e312
added pointer receiver nil checks
karjo24 Oct 7, 2024
d89b5f1
Fixed setTimeout not used correctly
SebiWrn Oct 8, 2024
cae868b
Edited comment on method
SebiWrn Oct 8, 2024
af18af5
removed unnecessary variable assignments
karjo24 Oct 10, 2024
1ad8a16
removed dead code
karjo24 Oct 10, 2024
1bc9f8e
removed unnecessary batching
karjo24 Oct 10, 2024
4bc4657
Fixes usage of AddDocumentsInBatches
karjo24 Oct 10, 2024
2fdb45a
fixed pagination and not-deleting-old-data mistake when exporting to …
karjo24 Oct 16, 2024
240f0f2
updated mock_dao
karjo24 Oct 16, 2024
460173a
added logging
karjo24 Oct 16, 2024
346ce71
pagination fix
karjo24 Oct 16, 2024
fc14c03
removed unnecessary nil checks
karjo24 Oct 16, 2024
05d1738
Merge branch 'dev' into enh/search-box-ui
SebiWrn Oct 21, 2024
d089fd4
cleared up possibly confusing behaviour for some exported methods
karjo24 Oct 24, 2024
fc315ac
fixed wrong method call
karjo24 Oct 24, 2024
e98b001
fixed meili settings
karjo24 Oct 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func ConfigGinRouter(router *gin.Engine) {
configWorkerRouter(router, daoWrapper)
configNotificationsRouter(router, daoWrapper)
configInfoPageRouter(router, daoWrapper)
configGinSearchRouter(router, daoWrapper)
configGinSearchRouter(router, daoWrapper, tools.NewMeiliSearchFunctions())
configAuditRouter(router, daoWrapper)
configGinBookmarksRouter(router, daoWrapper)
configMaintenanceRouter(router, daoWrapper)
Expand Down
Loading
Loading