93 Commits

Author SHA1 Message Date
kumfo f05f1eb80d feat(menu): update admin menu settings to include questions, tags, and advanced options 2026-01-22 12:25:32 +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
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
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
Dinesht04 9154b9ba5b feat(ui,internal): add optional question body 2025-10-22 18:43:54 +08:00
LinkinStars b56c1d2650 Merge remote-tracking branch 'origin/dev' into test 2025-03-17 15:51:56 +08:00
Dāvis 4679589655 Use DeShortID on questionID for UpdateQuestionLink() (#1288)
When using shortIds we need to `DeShort` them.

Fixes #1277
2025-03-17 15:28:43 +08:00
LinkinStars 849ad8dfc5 Merge remote-tracking branch 'origin/dev' into test 2025-03-14 14:17:00 +08:00
unical1988 d24027f359 Support PostgreSQL connection with SSL #1243 (#1244)
Support PostgreSQL connection with SSL

---------

Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2025-03-14 14:14:06 +08:00
Luffy 4b9fd397db refactor: simplify operation type assignment logic in question handling 2025-03-07 10:37:59 +08:00
LinkinStars 607f1d762b feat(question): add avatar field to question operator 2025-02-19 16:35:50 +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 8183291381 fix: Apply code from review 2024-12-25 15:53:04 +08:00
Luffy d91e3c20d2 fix: get user info error 2024-12-25 15:53:04 +08:00
Luffy 4a74eed4a7 feat: Add permanently delete 2024-12-25 15:53:04 +08:00
LinkinStars 655a7e48e0 feat(question): add linked count feature to question 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 23cc755aa8 feat(question): add question linking feature for closing question 2024-10-18 15:55:31 +08:00
Sonui 74368ec9d4 perf: optimize question link processing 2024-10-12 10:17:18 +08:00
Sonui 3eb9822c09 feat(question): support linking question 2024-10-12 10:17:18 +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
Sonui 4a07fdb4a8 fix: set last answer ID to zero if no answers 2024-08-02 11:28:12 +08:00
hgaol d9cca1bad1 refactor meta_service and meta_common_service and fix other issues 2024-05-27 16:01:12 +08:00
LinkinStars abe0680641 Release/1.3.0 (#876)
Co-authored-by: shuai <lishuailing@sifou.com>
Co-authored-by: Han Gao <dhangao@hotmail.com>
Co-authored-by: wzy <770954908@qq.com>
Co-authored-by: zahash <zahash.z@gmail.com>
Co-authored-by: Hosein Beigi <hbsciw@gmail.com>
Co-authored-by: kumfo <kumfo@sifou.com>
Co-authored-by: sy-records <52o@qq52o.cn>
Co-authored-by: 而立 <cuihengqing@cai-inc.com>
Co-authored-by: foxzero-007 <chq2549603631@gmail.com>
Co-authored-by: easy <58644520+foxzero-007@users.noreply.github.com>
Co-authored-by: robin <robin@rnode.me>
Co-authored-by: Akhil <surapuramakhil@gmail.com>
Co-authored-by: Shaobiao Lin <whalevocal@gmail.com>
2024-03-22 17:25:46 +08:00
LinkinStars 937de43978 Release/1.2.5 (#759)
Signed-off-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: shuai <lishuailing@sifou.com>
Co-authored-by: kelvinkuo <kelvinkuo224@gmail.com>
Co-authored-by: hgaol <dhangao@hotmail.com>
Co-authored-by: sy-records <52o@qq52o.cn>
Co-authored-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: kumfo <kumfo@sifou.com>
Co-authored-by: Yang Wong <yang wang>
Co-authored-by: hbsciw <hbsciw@gmail.com>
2024-01-29 17:19:41 +08:00
LinkinStars 82fdfc7763 Release/1.2.1 (#678)
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
Co-authored-by: shuai <lishuailing@sifou.com>
Co-authored-by: kelvinkuo <kelvinkuo224@gmail.com>
Co-authored-by: hgaol <dhangao@hotmail.com>
Co-authored-by: sy-records <52o@qq52o.cn>
2023-12-14 15:07:58 +08:00
lufei 7aa16f245b optimize code 2023-11-29 16:44:08 +08:00
sy-records 9dc0d566cc fix by code review 2023-11-29 16:44:08 +08:00
sy-records 3e76a0368f fix: permalink error on some pages 2023-11-29 16:44:08 +08:00
LinkinStars a458f3409c rename all old answerdev/answer link to apache/incubator-answer (#603)
Co-authored-by: shuai <lishuailing@sifou.com>
2023-11-01 14:48:35 +08:00
tison 3d2187d849 chore: add license headers
Signed-off-by: tison <wander4096@gmail.com>
2023-10-26 11:11:23 +08:00
LinkinStars fd0b62c1f1 feat(answer): support recover answer, question and tag 2023-09-26 16:16:27 +08:00
LinkinStars 71633588c5 fix(answer): delete question won't modify edit time 2023-09-21 11:43:58 +08:00
LinkinStars 6fa3bf0be0 feat(user): group by user info in timeline 2023-09-14 15:21:12 +08:00
LinkinStars b38f2e4345 feat(user): remove all the content when delete user 2023-09-12 18:56:52 +08:00
LinkinStars 3d032a7f48 fix(answer): fix incorrect id for answer list 2023-08-29 11:01:04 +08:00
LinkinStars 9337f69154 fix(question): remove delete question on similar questions 2023-08-28 15:27:17 +08:00
LinkinStars b01d965f80 refactor(user): refactor search user by name 2023-07-04 11:20:55 +08:00
LinkinStars ac91dc5259 fix(sitemap): set question id by default 2023-06-28 11:43:40 +08:00
LinkinStars a23080df0a refactor(sitemap): save sitemap in cache 2023-06-28 10:52:36 +08:00
LinkinStars a48c53d6c6 refactor(dashboard): rename dashboard cache key 2023-06-21 15:48:04 +08:00
LinkinStars 92c5bb6616 refactor(answer): refactor admin question answer page list 2023-06-20 16:55:43 +08:00
LinkinStars c49fa00570 Merge branch 'github-main' into feat/1.2.0/state
# Conflicts:
#	cmd/wire_gen.go
#	internal/service/question_common/question.go
#	internal/service/siteinfo/siteinfo_service.go
2023-06-13 16:44:36 +08:00
aichy126 3092954e68 fix post-title 2023-06-08 10:30:26 +08:00
LinkinStars 420667cd3e Merge branch 'github-main' into feat/1.1.0/context 2023-06-06 17:09:35 +08:00
aichy126 57153f8e7d update answer count 2023-06-06 15:43:32 +08:00
LinkinStars c6ea2fc5da refactor(activity): make activity queue as a service 2023-06-05 14:10:04 +08:00
LinkinStars 879c781e35 refactor(config): remove all config global variables and cache all config related data 2023-05-25 20:13:18 +08:00
LinkinStars f16207e30f Merge branch 'feat/1.1.0/report' into feat/1.1.0/context
# Conflicts:
#	internal/repo/rank/user_rank_repo.go
#	internal/repo/tag/tag_rel_repo.go
#	internal/service/report_admin/report_backyard.go
2023-05-25 11:25:38 +08:00