hgaol
278fdfd8c3
refactor: rename UpdateSearch to updateSearch for consistency
2026-05-08 19:57:19 +08:00
hgaol
5d923f8ca3
feat: add vector sync service and integrate with answer and question services
2026-05-08 19:57:19 +08:00
hgaol
22c2a5c276
feat: implement vector search plugin and syncer for question/answer embeddings
...
- Added a new vector search syncer to aggregate questions and answers with comments for vector embedding.
- Introduced a new VectorSearch interface and related structures for managing vector storage and similarity search.
- Refactored embedding service to delegate semantic search to the new vector search plugin.
- Removed embedding-related fields from SiteAIProvider and UI forms as part of the transition to the new vector search architecture.
- Updated plugin registration to include vector search capabilities.
- Cleaned up embedding service methods and removed unused dependencies.
2026-05-08 19:57:19 +08:00
hgaol
dea18f997c
feat: support semantic search in AI chat and embedding ability
2026-05-08 19:57:19 +08:00
LinkinStars
52d057ef18
fix: add ID validation and normalization functions for comment handling
2026-02-09 20:27:37 +08:00
LinkinStars
b522a168e3
feat: add GetConfigByKeyFromDB method to retrieve config directly
2026-01-29 11:15:38 +08:00
LinkinStars
4fd96675f3
fix: improve Brotli compression handling and validate user input in vote status
2026-01-28 12:11:28 +08:00
LinkinStars
ce5aadf30d
feat: add AI configuration support with related controllers and services
2026-01-23 17:25:42 +08:00
ferhat elmas
26d868b123
refactor(queue): improve queues
...
* fix race condition for registering handler
* add close method
* use generics to reduce duplication
* rename packages to drop underscore for go convention
* rename interface to drop stutter with package name
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2026-01-14 11:22:53 +08:00
Douglas Cortez
42f8947e7c
fix(notification): use SSO provider for external_id lookup in notifications
2025-12-29 10:27:00 +08:00
ferhat elmas
670aa32325
refactor(lint): add new linters and fix their issues
...
* gocritic
* misspell
* modernize (aside, bumping go would be nice)
* testifylint
* unconvert
* unparam
* whitespace
related to #1432
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-12-05 10:45:55 +08:00
LinkinStars
5e705a124b
refactor(lint): improve error handling and code consistency across multiple files
2025-12-01 12:27:25 +08:00
LinkinStars
9540ef6005
refactor(goimports): add goimports to golangci-lint configuration #1432
2025-12-01 11:32:12 +08:00
ferhat elmas
f723d120d9
feat: add golangci-lint into lint target
...
* replace empty interface with any
* run fmt via golangci-lint
related to #1432
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-12-01 11:14:38 +08:00
Sonui
b33e9fc93e
fix: Add time parameter when updating user status
2025-10-28 14:52:53 +08:00
Luffy
bec3e355a9
feat: Add user comment moderation
2025-09-23 14:57:07 +08:00
LinkinStars
6d02706d4d
feat(user): add user suspension functionality
2025-06-26 14:42:08 +08:00
DanielAuerX
def0559a55
Fix file record and delete files (branding and avatar) ( #1335 )
...
- [x] create file_record table
- [x] avatar and branding files are added to file_record
- [x] branding files are being deleted
- [x] avatar files are being deleted
- [x] reload latest avatar (frontend) after backend state is being
updated
problems addressed in the pr:
- clean up job fails, because it cannot access file_record table
- avatar and branding files are not added to the file_record table
- avatar and branding files are never deleted
- after an avatar is being updated/deleted, the old file is still being
requested due to browser caching. This is causing error logs ("no such
file or directory") in the backend.
cf. conversation in [pr
1326](https://github.com/apache/answer/pull/1326 )
---------
Co-authored-by: broccoli <lekker.broccoli@gmail.com >
Co-authored-by: LinkinStars <linkinstar@foxmail.com >
2025-05-23 15:07:14 +08:00
hgaol
537b721044
feat: refactor tag migration logic to streamline object relations and remove unused code
2025-04-25 18:34:14 +08:00
hgaol
ab04d85d7e
feat: implement migration of followers and tag objects during tag merge
2025-04-25 18:34:14 +08:00
hgaol
6abf8222d7
feat: add MergeTag functionality to merge tags and update followers
2025-04-25 18:34:14 +08:00
hgaol
d8ab25d565
fix: dedup questions in GetQuestionPage
2025-04-16 17:38:17 +08:00
LinkinStars
849ad8dfc5
Merge remote-tracking branch 'origin/dev' into test
2025-03-14 14:17:00 +08:00
Luffy
ba9f2336ec
fix: Adjust question status filtering based on order condition
2025-03-05 10:19:47 +08:00
sy-records
0f7deb6c79
fix: Limit unanswered question query to available questions
2025-03-05 10:19:47 +08:00
LinkinStars
8a33548396
Merge branch 'dev' into test
2025-01-13 16:39:11 +08:00
Nikita Sivukhin
6d84720404
pass pointer instead of slice to Find(...) method
2025-01-13 16:29:55 +08:00
LinkinStars
5cffab8649
feat(service): implement file cleanup and deletion functionality
2025-01-10 10:43:35 +08:00
LinkinStars
47c666200e
Merge remote-tracking branch 'origin/main' into dev
...
# Conflicts:
# internal/base/middleware/accept_language.go
# internal/schema/answer_schema.go
# internal/schema/comment_schema.go
# internal/service/user_admin/user_backyard.go
2025-01-07 12:48:13 +08:00
LinkinStars
0618947350
refactor(name): rename incubator-answer
2025-01-07 10:39:23 +08:00
lihui
61fef3b82b
fix: add log var as format and adjust sum to sum int
2025-01-06 14:51:25 +08:00
Luffy
d328ea4175
fix: rename DeleteUserBadge to DeleteUserBadgeAward
2025-01-02 16:49:07 +08:00
Luffy
0f69467340
feat: remove user config
2025-01-02 16:49:07 +08:00
Luffy
8183291381
fix: Apply code from review
2024-12-25 15:53:04 +08:00
Luffy
15cbfa870f
fix: Optimize user delete
2024-12-25 15:53:04 +08:00
Luffy
4a74eed4a7
feat: Add permanently delete
2024-12-25 15:53:04 +08:00
Luffy
a475295784
feat: Add delete external user login info by user ID
2024-12-09 11:52:18 +08:00
LinkinStars
b9fb758910
feat(question): sort questions by update time for frequent tab
2024-12-09 11:52:18 +08:00
LinkinStars
655a7e48e0
feat(question): add linked count feature to question
2024-12-09 11:52:18 +08:00
LinkinStars
5060e08771
fix(search): fix the wrong offset when searching
2024-12-09 11:52:18 +08:00
sy-records
98eceff549
feat: Add key metrics to the dashboard
2024-12-09 11:52:18 +08:00
LinkinStars
e7ee4ea91d
fix(review): reject the review when delete question
2024-12-09 11:52:18 +08:00
Sonui
5546bb55ea
fix: wrong status when enable tag rel
2024-12-09 11:52:18 +08:00
Sonui
ad6387126a
fix: add status filter when update tag rel
2024-12-09 11:52:18 +08:00
LinkinStars
bc8c6993b7
feat(question): add closed question linking
2024-10-18 19:01:23 +08:00
Sonui
3eb9822c09
feat(question): support linking question
2024-10-12 10:17:18 +08:00
LinkinStars
d5d9f38cb1
feat(badge): add trigger object id for all badge award event
2024-09-04 12:00:36 +08:00
LinkinStars
2ca5e8bb4a
Merge branch 'dev' into test
...
# Conflicts:
# cmd/wire_gen.go
# internal/service/content/question_service.go
2024-09-04 10:29:05 +08:00
ferrischi201
cf7b2f0c1a
fix(recommend): fix for all database backend
2024-09-04 10:24:53 +08:00
ferrischi201
eacb79e512
feat(recommend): add tag-based recommendations in question page
...
Filter out deleted or hidden questions and support multi databases and filter out deleted or hidden questions.
For issue:1003.
2024-09-04 10:24:53 +08:00