This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a change to branch feat/1.4.0/badge
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
from 797ea9b9 feat(badge): badge info && badge award list
add a4830a41 fix: Update Test_emailRepo_VerifyCode to handle additional
parameters
add 4a07fdb4 fix: set last answer ID to zero if no answers
add 80f139ef typo: GetCss swagger annotation content
add 5383b905 perf: optimize search for unanswered questions using
answer_count
add 027caa65 Makefile: Wraped with quotes the go location in go variable
add f0b58597 feat: Add Open Search support
add 264f9274 fix: branding favicon might be empty
add 07e4f549 feat(badge): add event for the badge
new b2d36e0a Merge branch 'feat/1.4.0/badges' into feat/1.4.0/badge
new 9b0de85e feat(badge): add badge event handler
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
Makefile | 2 +-
cmd/wire_gen.go | 22 ++-
internal/base/constant/event.go | 75 +++++++
internal/controller/template_controller.go | 24 +++
internal/controller/template_render/question.go | 22 +++
internal/controller_admin/siteinfo_controller.go | 10 +-
internal/repo/badge/badge_event_rule.go | 216 +++++++++++++++++++++
internal/repo/badge/badge_repo.go | 31 ++-
internal/repo/provider.go | 1 +
internal/repo/question/question_repo.go | 2 +-
internal/repo/repo_test/email_repo_test.go | 4 +-
internal/router/template_router.go | 2 +
internal/schema/event_schema.go | 80 ++++++++
internal/service/badge/badge_event_handler.go | 85 ++++++++
internal/service/badge/badge_service.go | 19 +-
internal/service/comment/comment_service.go | 19 +-
internal/service/content/answer_service.go | 13 ++
internal/service/content/question_service.go | 10 +
internal/service/content/user_service.go | 8 +
internal/service/content/vote_service.go | 31 +++
.../event_queue.go} | 34 ++--
internal/service/meta/meta_service.go | 22 ++-
internal/service/provider.go | 3 +
internal/service/question_common/question.go | 9 +
internal/service/report/report_service.go | 30 ++-
ui/template/header.html | 1 +
ui/template/{sitemap.xml => opensearch.xml} | 20 +-
27 files changed, 734 insertions(+), 61 deletions(-)
create mode 100644 internal/base/constant/event.go
create mode 100644 internal/repo/badge/badge_event_rule.go
create mode 100644 internal/schema/event_schema.go
create mode 100644 internal/service/badge/badge_event_handler.go
copy internal/service/{activity_queue/activity_queue.go =>
event_queue/event_queue.go} (58%)
copy ui/template/{sitemap.xml => opensearch.xml} (65%)