diff options
author | Giteabot <teabot@gitea.io> | 2025-02-11 01:22:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 01:22:39 +0800 |
commit | a014d071e49e95286f8a9f3748e4d76794746ff3 (patch) | |
tree | 9c9cfc07eec1882aecb0d9d2ca28717640e2f442 /models/migrations/v170.go | |
parent | 312565e3c27b13d8f5eab07d45c2f1c3d48b5d8f (diff) | |
download | gitea-release/v1.23.tar.gz gitea-release/v1.23.zip |
Rework suggestion backend (#33538) (#33546)release/v1.23
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>
Diffstat (limited to 'models/migrations/v170.go')
0 files changed, 0 insertions, 0 deletions