This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a change to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git
from d7d692bb fix: Fixed-layout navigation aligns with the width of the
main content.
add 26d868b1 refactor(queue): improve queues
add 5ff6106d fix: address comments and add a test
add 1fbb802e feat: load optional .env file and add .env.example
add d773b869 fix: remove unrelated generated files
add f6d30a5b chore: revert documentation changes in README
add 3d546533 fix: added the init fuction in install_main.go
add 5be6ec9e docs(lic): add MIT license file and clean up init function in
install_main.go
new 6b834c74 Merge remote-tracking branch 'origin/dev' 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:
.env.example | 36 +++
.gitignore | 3 +
cmd/main.go | 6 +
cmd/wire_gen.go | 54 ++---
...178-js-sha256.txt => LICENSE-joho-godotenv.txt} | 2 +-
go.mod | 1 +
go.sum | 2 +
internal/base/queue/queue.go | 130 +++++++++++
internal/base/queue/queue_test.go | 253 +++++++++++++++++++++
internal/controller/template_controller.go | 6 +-
internal/install/install_main.go | 8 +-
internal/repo/activity/answer_repo.go | 6 +-
internal/repo/activity/vote_repo.go | 6 +-
internal/service/activity_common/activity.go | 6 +-
internal/service/activity_queue/activity_queue.go | 69 ------
.../reason.go => activityqueue/activity_queue.go} | 11 +-
internal/service/badge/badge_award_service.go | 6 +-
internal/service/badge/badge_event_handler.go | 6 +-
internal/service/comment/comment_service.go | 22 +-
internal/service/content/answer_service.go | 22 +-
internal/service/content/question_service.go | 22 +-
internal/service/content/revision_service.go | 12 +-
internal/service/content/user_service.go | 6 +-
internal/service/content/vote_service.go | 6 +-
internal/service/event_queue/event_queue.go | 69 ------
.../reason.go => eventqueue/event_queue.go} | 11 +-
internal/service/meta/meta_service.go | 6 +-
.../notice_queue/external_notification_queue.go | 69 ------
internal/service/notice_queue/notice_queue.go | 69 ------
.../noticequeue/notice_queue.go} | 17 +-
.../service/notification/external_notification.go | 6 +-
.../service/notification_common/notification.go | 6 +-
internal/service/provider.go | 14 +-
internal/service/question_common/question.go | 6 +-
internal/service/report/report_service.go | 6 +-
internal/service/review/review_service.go | 10 +-
internal/service/tag/tag_service.go | 6 +-
internal/service/tag_common/tag_common.go | 6 +-
38 files changed, 584 insertions(+), 418 deletions(-)
create mode 100644 .env.example
copy docs/release/licenses/{LICENSE-emn178-js-sha256.txt =>
LICENSE-joho-godotenv.txt} (96%)
create mode 100644 internal/base/queue/queue.go
create mode 100644 internal/base/queue/queue_test.go
delete mode 100644 internal/service/activity_queue/activity_queue.go
copy internal/service/{reason_common/reason.go =>
activityqueue/activity_queue.go} (81%)
delete mode 100644 internal/service/event_queue/event_queue.go
copy internal/service/{reason_common/reason.go => eventqueue/event_queue.go}
(82%)
delete mode 100644 internal/service/notice_queue/external_notification_queue.go
delete mode 100644 internal/service/notice_queue/notice_queue.go
copy internal/{controller/template_render/answer.go =>
service/noticequeue/notice_queue.go} (68%)