289 Commits

Author SHA1 Message Date
LinkinStars d32694a8bc Merge branch 'main' into apache
# Conflicts:
#	script/plugin_list
2026-05-20 12:11:29 +08:00
hgaol 2836d0ea81 chore: add Apache License header to multiple files 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 7d0714dd1a fix lint 2026-05-08 19:57:19 +08:00
hgaol 8dd55af6cd fix lint 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 dc71f4a292 fix lint issue 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 90022ce039 fix: integrate API key authentication into existing services and routes 2026-01-29 16:50:25 +08:00
LinkinStars ce5aadf30d feat: add AI configuration support with related controllers and services 2026-01-23 17:25:42 +08:00
kumfo d65e257f92 feat(docs): add Apache License 2.0 header to wire_gen.go 2026-01-22 12:21:02 +08:00
kumfo 29ec29bde7 feat(menu): update admin menu settings to include questions, tags, and advanced options 2026-01-20 14:54:52 +08:00
maishivamhoo123 1fbb802e8f feat: load optional .env file and add .env.example 2026-01-14 11:26:00 +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
LinkinStars 5e705a124b refactor(lint): improve error handling and code consistency across multiple files 2025-12-01 12:27:25 +08:00
ferhat elmas bc629db132 chore(deps): bump mockgen to 0.6.0 for go1.25 support
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-11-28 17:00:25 +08:00
LinkinStars eb1b20ab96 chore(ci): Add ASF header 2025-10-28 15:27:11 +08:00
Sonui 93e183be62 feat: Add resetPassword cli tool 2025-10-28 14:52:53 +08:00
shuai 52e1b8bd86 fix: merge dev 2025-10-21 18:13:37 +08:00
shuai 78df776449 fix: Details page editing time value adjustment 2025-09-30 15:34:37 +08:00
Luffy bec3e355a9 feat: Add user comment moderation 2025-09-23 14:57:07 +08:00
kumfo a6d95ae8f9 feat: add sidebar plugin 2025-08-13 14:44:25 +08:00
LinkinStars 6d02706d4d feat(user): add user suspension functionality 2025-06-26 14:42:08 +08:00
LinkinStars 03ec0ddfbb chore(deps): update Go version to 1.23 in configuration files 2025-06-24 11:16:29 +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
Shaobiao Lin 4182d9f506 docs(command): unify style of usage statements
close #1330
2025-05-10 10:59:00 +08:00
Shaobiao Lin 757e89467a docs(command): remove redundant comments
The codes are self-documenting enough.
2025-05-10 10:59:00 +08:00
LinkinStars 02c1304b99 feat(docs): Add Apache License header 2025-04-29 15:00:40 +08:00
shuai 9f420e67d2 Merge branch 'dev' into test 2025-04-27 11:59:34 +08:00
Luffy 30bac18a85 fix: add signal exit on build failure 2025-04-25 17:09:44 +08:00
shuai bebf5931a1 style: admin ui style changed 2025-04-07 15:31:31 +08:00
shuai 105cd37dfe fix: update seo template for footer template 2025-04-07 11:44:34 +08:00
hgaol 3b07b39d89 remove unused service in question service 2025-03-26 18:44:14 +08:00
hgaol 989b2b3650 feat: support using search plugin to search similar question in ask question page 2025-03-26 18:44:14 +08:00
LinkinStars 4a8ab2ef23 Merge branch 'main' into apache
# Conflicts:
#	script/plugin_list
2025-01-21 10:24:18 +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
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 79454f3480 fix: typo 2024-12-30 16:10:28 +08:00
Luffy a475295784 feat: Add delete external user login info by user ID 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
LinkinStars 1fe3b7d8fc refactor(gomock): update gomock dependence and docs 2024-12-09 11:52:18 +08:00
LinkinStars 23cc755aa8 feat(question): add question linking feature for closing question 2024-10-18 15:55:31 +08:00
sy-records a8e008de07 feat: Support related and hot questions template 2024-10-17 11:08:06 +08:00
LinkinStars 8602065490 refactor(provider): add importer provider 2024-10-16 17:03:29 +08:00
Anan 73c7a22900 Fix importer 2024-10-16 11:28:26 +08:00
Anan 5aad9e95b5 Add importer service 2024-10-16 11:28:26 +08:00
LinkinStars 0d6ea89ad3 refactor(gomod): upgrade golang and dependence version 2024-09-23 15:00:34 +08:00