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.
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
..
blob.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 5 years ago
branch.go Use gitea forked macaron (#7933) 5 years ago
collaborators.go Use gitea forked macaron (#7933) 5 years ago
commits.go Fixes #7564 - Malformed URLs in API git/commits response (#7565) 5 years ago
file.go Fixes #7292 - API File Contents bug (#7301) 5 years ago
fork.go Use gitea forked macaron (#7933) 5 years ago
git_hook.go Move sdk structs to modules/structs (#6905) 5 years ago
git_ref.go api: fix multiple bugs with statuses endpoints (#7785) 5 years ago
hook.go fix wrong email when use gitea as OAuth2 provider (#7640) 5 years ago
hook_test.go API endpoint for testing webhook (#3550) 6 years ago
issue.go Use gitea forked macaron (#7933) 5 years ago
issue_comment.go Use gitea forked macaron (#7933) 5 years ago
issue_label.go Use gitea forked macaron (#7933) 5 years ago
issue_tracked_time.go Use gitea forked macaron (#7933) 5 years ago
key.go Use gitea forked macaron (#7933) 5 years ago
label.go Use gitea forked macaron (#7933) 5 years ago
main_test.go API endpoint for testing webhook (#3550) 6 years ago
milestone.go Display ui time with customize time location (#7792) 5 years ago
pull.go Display ui time with customize time location (#7792) 5 years ago
release.go Use gitea forked macaron (#7933) 5 years ago
release_attachment.go Use gitea forked macaron (#7933) 5 years ago
repo.go Include description in repository search. (#7942) 5 years ago
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 5 years ago
star.go Use gitea forked macaron (#7933) 5 years ago
status.go Use gitea forked macaron (#7933) 5 years ago
subscriber.go Use gitea forked macaron (#7933) 5 years ago
tag.go Use gitea forked macaron (#7933) 5 years ago
tree.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 5 years ago