You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
5 years ago
..
auth Abort syncrhonization from LDAP source if there is some error. (#7960) 5 years ago
avatar Improve handling of non-square avatars (#7025) 5 years ago
base Use gitea forked macaron (#7933) 5 years ago
cache Use gitea forked macaron (#7933) 5 years ago
charset Convert files to utf-8 for indexing (#7814) 5 years ago
context Use gitea forked macaron (#7933) 5 years ago
cron Move status table to cron package (#7370) 5 years ago
generate Integrate OAuth2 Provider (#5378) 5 years ago
git Use gitea forked macaron (#7933) 5 years ago
gzip Use gitea forked macaron (#7933) 5 years ago
highlight Add a lot of extension to language mappings for syntax highlights (#7741) 5 years ago
httplib Add golangci (#6418) 5 years ago
indexer Use gitea forked macaron (#7933) 5 years ago
lfs Use gitea forked macaron (#7933) 5 years ago
log Removed unnecessary conversions (#7557) 5 years ago
mailer Add golangci (#6418) 5 years ago
markup Use gitea forked macaron (#7933) 5 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations fix bug when migrating a private repository (#7917) 5 years ago
minwinsvc Fix Git hooks not being executed on Windows when running as a service (#1149) 7 years ago
notification Add golangci (#6418) 5 years ago
options Use gitea forked macaron (#7933) 5 years ago
pprof Add golangci (#6418) 5 years ago
private Attempt to fix hook problem (#7854) 5 years ago
process Fix run command race (#1470) 7 years ago
public Use gitea forked macaron (#7933) 5 years ago
pull Display ui time with customize time location (#7792) 5 years ago
recaptcha Allow Recaptcha service url to be configured (#6820) 5 years ago
repofiles Use gitea forked macaron (#7933) 5 years ago
search Global code search support (#3664) 6 years ago
secret Integrate OAuth2 Provider (#5378) 5 years ago
session Use gitea forked macaron (#7933) 5 years ago
setting Include description in repository search. (#7942) 5 years ago
ssh Use gitea forked macaron (#7933) 5 years ago
structs Be more strict with git arguments (#7715) 5 years ago
sync Use gitea forked macaron (#7933) 5 years ago
templates Use gitea forked macaron (#7933) 5 years ago
test Use gitea forked macaron (#7933) 5 years ago
timeutil Use gitea forked macaron (#7933) 5 years ago
upload Fix upload file type check (#7890) 5 years ago
user Add golangci (#6418) 5 years ago
util Display ui time with customize time location (#7792) 5 years ago
validation Use gitea forked macaron (#7933) 5 years ago