bench-forgejo/routers
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
..
admin Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
api/v1 Include description in repository search. (#7942) 2019-08-25 20:06:36 +03:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
org Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
private Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
repo Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
routes Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
user Include description in repository search. (#7942) 2019-08-25 20:06:36 +03:00
utils Slack webhook channel name cannot be empty or just contain an hashtag (#4786) 2018-09-10 10:31:08 -04:00
home.go Include description in repository search. (#7942) 2019-08-25 20:06:36 +03:00
init.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
install.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Swagger.v1.json template (#3572) 2018-07-28 03:19:01 +03:00