This is an automated email from the ASF dual-hosted git repository.
kumfo pushed a change to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
from f660b636 fix(dev): delete test file
add 46fba3e2 docs(docs): remove the images about installation
add 4692420e fix(update): fix update to v1.3.6
add fe35d6c5 Merge remote-tracking branch 'origin/main' into dev
add 96959258 feat(badge): init entity
add b7022949 feat(badge): update entity
add 95f20c98 feat(badge): update entity
add dc56fce1 feat(badge): init version update
add 37981c13 feat(badge): init badge update data
add ecbfd61b feat(badge): init badge update data
add d055507c feat: Add badges to admin
add ea43edc8 feat(badge): define func and add badge's list
add 23b6b11f feat(badge): badge init add icon
add 797ea9b9 feat(badge): badge info && badge award list
add 49ba98c6 feat(badge): change badge_award entity
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
add b2d36e0a Merge branch 'feat/1.4.0/badges' into feat/1.4.0/badge
add 9b0de85e feat(badge): add badge event handler
add 8a40e959 Merge remote-tracking branch 'origin/feat/1.4.0/badge' into
feat/1.4.0/badge
add 122ac657 feat(badge): change badge_award check
add 203062dd feat(badge): badge award
add c2531f9b chore(badge): change project code struct
add 5293f4f3 feat(badge): user's badge award list
add 61db21e0 feat(badge): fixed user's badge award list and add recent
user badges
add 5c04bcec feat(badge): fixed badge detail
add 98d93b1f feat(badge): add badge checking rule
add 290f63f2 feat(badge): add comment for event schema
add bb40366f feat(badge): badge manage and user center's badge list
add cf327f59 feat(badge): badge manage add badge search
add b0c76757 feat(badge): badge search with page
add bede0adb feat(badge): award badge for user
add 46ab8a20 chore(badge): remove unused comment
add f0c433cc fix(badge): fix badge init data
add 7d040f07 feat(badge): add badge notification
add ebc85857 chore(badge): delete not used func
new a590bdf3 Merge branch 'feat/1.4.0/badge' into test
The 1 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:
cmd/wire_gen.go | 35 +-
docs/docs.go | 696 +++++++++++++++++++-
docs/swagger.json | 698 ++++++++++++++++++++-
docs/swagger.yaml | 414 +++++++++++-
i18n/en_US.yaml | 282 ++++++++-
internal/base/constant/cache_key.go | 2 +
internal/base/constant/event.go | 75 +++
internal/base/constant/notification.go | 8 +
internal/base/constant/object_type.go | 20 +-
internal/base/reason/reason.go | 2 +
internal/controller/badge_controller.go | 158 +++++
internal/controller/controller.go | 1 +
internal/controller/notification_controller.go | 6 +-
internal/controller/template_controller.go | 16 +
internal/controller_admin/badge_controller.go | 86 +++
internal/controller_admin/controller.go | 1 +
internal/entity/badge_award_entity.go | 70 +++
internal/entity/badge_entity.go | 71 +++
.../{power_entity.go => badge_group_entity.go} | 20 +-
internal/migrations/init.go | 41 ++
internal/migrations/init_data.go | 159 +++++
internal/migrations/migrations.go | 1 +
internal/migrations/v22.go | 72 +++
internal/repo/badge/badge_event_rule.go | 256 ++++++++
internal/repo/badge/badge_repo.go | 142 +++++
internal/repo/badge_award/badge_award_repo.go | 172 +++++
.../badge_group_repo.go} | 36 +-
internal/repo/notification/notification_repo.go | 6 +-
internal/repo/provider.go | 7 +
internal/router/answer_api_router.go | 17 +
internal/schema/badge_schema.go | 191 ++++++
internal/schema/event_schema.go | 94 +++
internal/schema/notification_schema.go | 76 ++-
internal/service/badge/badge_award_service.go | 305 +++++++++
internal/service/badge/badge_event_handler.go | 77 +++
.../badge/badge_group_service.go} | 20 +-
internal/service/badge/badge_service.go | 297 +++++++++
internal/service/comment/comment_service.go | 19 +-
internal/service/content/answer_service.go | 15 +
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 +-
.../service/notification/notification_service.go | 100 ++-
.../service/notification_common/notification.go | 89 ++-
internal/service/object_info/object_info.go | 1 -
internal/service/provider.go | 7 +
internal/service/report/report_service.go | 30 +-
ui/src/common/constants.ts | 3 +
ui/src/common/interface.ts | 2 +
.../components/Action}/index.tsx | 57 +-
ui/src/pages/Admin/Badges/index.tsx | 122 ++++
ui/src/pages/Admin/index.tsx | 1 +
ui/src/router/routes.ts | 4 +
55 files changed, 4940 insertions(+), 245 deletions(-)
create mode 100644 internal/base/constant/event.go
create mode 100644 internal/controller/badge_controller.go
create mode 100644 internal/controller_admin/badge_controller.go
create mode 100644 internal/entity/badge_award_entity.go
create mode 100644 internal/entity/badge_entity.go
copy internal/entity/{power_entity.go => badge_group_entity.go} (61%)
create mode 100644 internal/migrations/v22.go
create mode 100644 internal/repo/badge/badge_event_rule.go
create mode 100644 internal/repo/badge/badge_repo.go
create mode 100644 internal/repo/badge_award/badge_award_repo.go
copy internal/repo/{role/power_repo.go => badge_group/badge_group_repo.go}
(57%)
create mode 100644 internal/schema/badge_schema.go
create mode 100644 internal/schema/event_schema.go
create mode 100644 internal/service/badge/badge_award_service.go
create mode 100644 internal/service/badge/badge_event_handler.go
copy internal/{migrations/v19.go => service/badge/badge_group_service.go} (69%)
create mode 100644 internal/service/badge/badge_service.go
copy internal/service/{activity_queue/activity_queue.go =>
event_queue/event_queue.go} (58%)
copy ui/src/pages/Admin/{Dashboard => Badges/components/Action}/index.tsx (54%)
create mode 100644 ui/src/pages/Admin/Badges/index.tsx