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.
gitea/routers/web
Giteabot a014d071e4
Rework suggestion backend (#33538) (#33546)
Backport #33538 by @lunny

Fix #33522 

The suggestion backend logic now is

- If the keyword is empty, returned the latest 5 issues/prs with index
desc order
- If the keyword is digital, find all issues/prs which `index` has a
prefix with that, with index asc order
- If the keyword is non-digital or if the queried records less than 5,
searching issues/prs title with a `like`, with index desc order

## Empty keyword
<img width="310" alt="image"
src="https://github.com/user-attachments/assets/1912c634-0d98-4eeb-8542-d54240901f77"
/>

## Digital
<img width="479" alt="image"
src="https://github.com/user-attachments/assets/0356a936-7110-4a24-b21e-7400201bf9b8"
/>

## Digital and title contains the digital
<img width="363" alt="image"
src="https://github.com/user-attachments/assets/6e12f908-28fe-48de-8ccc-09cbeab024d4"
/>

## non-Digital
<img width="435" alt="image"
src="https://github.com/user-attachments/assets/2722bb53-baa2-4d67-a224-522a65f73856"
/>
<img width="477" alt="image"
src="https://github.com/user-attachments/assets/06708dd9-80d1-4a88-b32b-d29072dd1ba6"
/>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 weeks ago
..
admin Refactor some frontend problems (#32646) 3 months ago
auth Fix Account linking page (#33325) (#33327) 1 month ago
devtest Make RepoActionView.vue support `##[group]` (#32770) 2 months ago
events Move context from modules to services (#29440) 1 year ago
explore Fix bleve fuzziness search (#33078) (#33087) 2 months ago
feed Add pubdate for repository rss and add some tests (#33411) (#33416) 4 weeks ago
healthcheck Always enable caches (#28527) 1 year ago
misc Refactor render system (#32492) 3 months ago
org Use project's redirect url instead of composing url (#33058) (#33064) 2 months ago
repo Rework suggestion backend (#33538) (#33546) 2 weeks ago
shared Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) (#32964) 2 months ago
user Fix user avatar (#33439) 3 weeks ago
base.go Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 4 months ago
githttp.go Fix LFS route mock, realm, middleware names (#32488) 3 months ago
goget.go Refactor RepoRefByType (#32413) 4 months ago
home.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 12 months ago
metrics.go Implement FSFE REUSE for golang files (#21840) 2 years ago
nodeinfo.go Move context from modules to services (#29440) 1 year ago
passkey.go Move context from modules to services (#29440) 1 year ago
swagger_json.go Move context from modules to services (#29440) 1 year ago
web.go Fix user avatar (#33439) 3 weeks ago
webfinger.go Move context from modules to services (#29440) 1 year ago