1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-03 17:32:54 +02:00
gitea/modules
David Svantesson c9546d4cdd Include description in repository search. (#7942)
* Add description in repository search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Refactor SearchRepositoryByName with a general function SearchRepository

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Allow to specify if description shall be included in API repo search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Add new app.ini setting for whether to search within repo description.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Search keyword in description (if setting enabled) on:
 - Explore page
 - Organization profile page
 - User profile page
 - Admin repo page

Do not search keyword in description on:
 - Any non-keyword search (not relevant)
 - Incremental search (uses API)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Put parameters related to keyword directly after it

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Add test cases for including (and not including) repository description in search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Rename test function from TestSearchRepositoryByName to TestSearchRepository.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Make setting SEARCH_REPO_DESCRIPTION default to true

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
2019-08-25 20:06:36 +03:00
..
auth Abort syncrhonization from LDAP source if there is some error. (#7960) 2019-08-24 21:53:37 +03:00
avatar
base Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
cache Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
charset
context Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
cron
generate
git Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
gzip Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
highlight
httplib
indexer Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
lfs Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
log
mailer
markup Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
metrics
migrations
minwinsvc
notification
options Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
pprof
private
process
public Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
pull
recaptcha
repofiles Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
search
secret
session Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
setting Include description in repository search. (#7942) 2019-08-25 20:06:36 +03:00
ssh Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
structs
sync Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
templates Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
test Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
timeutil Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
upload
user
util
validation Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00