gitea/services
Lunny Xiao 72518a8dab
Rework suggestion backend ()
Fix  

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: wxiaoguang <wxiaoguang@gmail.com>
2025-02-10 16:24:05 +00:00
..
actions Revert "Feature: Support workflow event dispatch via API ()" () 2025-02-10 17:44:42 +08:00
agit User facing messages for AGit errors () 2025-01-27 02:33:39 +00:00
asymkey Move delete deploy keys into service layer () 2024-12-18 04:10:38 +00:00
attachment Include file extension checks in attachment API () 2024-11-06 21:34:32 +00:00
auth Add basic auth support to rss/atom feeds () 2025-01-27 02:07:39 +00:00
automerge Automerge supports deleting branch automatically after merging () 2025-01-10 03:51:03 +08:00
context Refactor web route handler () 2025-02-05 02:14:03 +08:00
contexttest Refactor request context () 2024-12-24 11:43:57 +08:00
convert Make tracked time representation display as hours () 2025-01-19 09:30:44 +08:00
cron Enable tenv and testifylint rules () 2024-12-15 10:41:29 +00:00
doctor Refactor older tests to use testify () 2025-01-09 09:21:47 +08:00
externalaccount allow synchronizing user status from OAuth2 login providers () 2024-07-16 20:33:16 +02:00
feed Refactor RefName () 2025-01-13 14:01:53 +08:00
forms Fix commit status events () 2025-02-04 03:25:59 +00:00
gitdiff Add go wrapper around git diff-tree --raw -r -M () 2025-02-07 00:58:28 +00:00
indexer Update issue indexer after merging a PR () 2024-05-08 14:45:15 +00:00
issue Rework suggestion backend () 2025-02-10 16:24:05 +00:00
lfs Fix SSH LFS memory usage () 2025-01-31 19:05:48 +08:00
mailer chore: fix some trivial problems and TODOs () 2025-02-02 18:16:56 +00:00
markup Refactor request context () 2024-12-24 11:43:57 +08:00
migrations refactor: decouple context from migration structs () 2025-02-07 05:37:32 +00:00
mirror Fix mirror bug () 2025-01-12 18:46:37 +08:00
notify Refactor repository transfer () 2025-01-30 05:40:44 +00:00
oauth2_provider Introduce OrgList and add LoadTeams, optimaze Load teams for orgs () 2024-11-26 21:55:06 +00:00
org Refactor tests () 2024-12-29 01:05:56 +00:00
packages Support choose email when creating a commit via web UI () 2025-01-30 01:24:57 +00:00
projects Fix unnecessary comment when moving issue on the same project column () 2025-02-05 11:51:10 +08:00
pull Automerge supports deleting branch automatically after merging () 2025-01-10 03:51:03 +08:00
release Refactor "string truncate" () 2024-12-26 11:56:03 +08:00
repository Move gitgraph from modules to services layer () 2025-02-07 03:05:25 +00:00
secrets Refactor deletion () 2023-12-25 21:25:29 +01:00
task Fix "force private" logic () 2024-05-20 00:56:45 +00:00
uinotification Penultimate round of `db.DefaultContext` refactor () 2023-10-11 04:24:07 +00:00
user Refactor repository transfer () 2025-01-30 05:40:44 +00:00
webhook Fix commit status events () 2025-02-04 03:25:59 +00:00
webtheme Initial support for colorblindness-friendly themes () 2024-04-24 00:18:41 +08:00
wiki Refactor older tests to use testify () 2025-01-09 09:21:47 +08:00