bench-forgejo/modules/setting
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
..
cache.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
cors.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
cron.go Better logging (#6038) (#6095) 2019-04-02 08:48:31 +01:00
database.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
database_sqlite.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
database_test.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
git.go Support git.PATH entry in app.ini (#6772) 2019-07-07 03:26:56 -04:00
indexer.go Issue indexer queue redis support (#6218) 2019-04-08 12:05:15 +03:00
log.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00
mailer.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
markup.go split setting.go to multiple files (#6154) 2019-03-16 11:12:44 +08:00
repository.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
service.go Add support for DEFAULT_ORG_MEMBER_VISIBLE (#7669) 2019-08-24 15:28:59 +03:00
session.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
setting.go Include description in repository search. (#7942) 2019-08-25 20:06:36 +03:00
webhook.go Add support for MS Teams webhooks (#6632) 2019-04-19 10:18:06 -04:00