This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a change to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


    from bd0d9fda docs: regenerate docs
     new 3eb9822c feat(question): support linking question
     new f575aa9b docs: add Apache License headers to source files
     new d0d275a6 style: move questionLink function to common service
     new 6f576c29 feat: add title to question linked page
     new ab920ac0 perf: skip link addition for same question id
     new b328a2b4 style: use ReplaceAll instead of Replace
     new 62b9104a fix: support short id
     new 74368ec9 perf: optimize question link processing
     new fe60e5e5 perf: optimize question linked display processing

The 9 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:
 docs/docs.go                                       |  84 ++++++++++
 docs/swagger.json                                  |  84 ++++++++++
 docs/swagger.yaml                                  |  51 ++++++
 i18n/en_US.yaml                                    |   6 +-
 i18n/zh_CN.yaml                                    |   5 +-
 internal/controller/question_controller.go         |  22 +++
 .../{tag_rel_entity.go => question_link_entity.go} |  31 ++--
 internal/migrations/init_data.go                   |   1 +
 internal/migrations/migrations.go                  |   1 +
 internal/migrations/{v15.go => v23.go}             |   5 +-
 internal/repo/answer/answer_repo.go                |  18 ++
 internal/repo/question/question_repo.go            | 167 +++++++++++++++++++
 internal/router/answer_api_router.go               |   1 +
 internal/schema/question_schema.go                 |  14 ++
 internal/service/answer_common/answer.go           |   1 +
 internal/service/content/answer_service.go         |  36 +++-
 internal/service/content/question_service.go       |  69 +++++++-
 internal/service/question_common/question.go       | 113 +++++++++++++
 pkg/checker/question_link.go                       | 132 +++++++++++++++
 pkg/checker/question_link_test.go                  | 184 +++++++++++++++++++++
 ui/src/components/QuestionList/index.tsx           |   2 +-
 .../index.tsx                                      |  38 +++--
 ui/src/pages/Questions/Detail/components/index.tsx |   2 +
 ui/src/pages/Questions/Detail/index.tsx            |   3 +
 ui/src/pages/Questions/{ => Linked}/index.tsx      |  67 ++++----
 ui/src/router/routes.ts                            |   4 +
 ui/src/services/common.ts                          |  17 ++
 27 files changed, 1094 insertions(+), 64 deletions(-)
 copy internal/entity/{tag_rel_entity.go => question_link_entity.go} (52%)
 copy internal/migrations/{v15.go => v23.go} (87%)
 create mode 100644 pkg/checker/question_link.go
 create mode 100644 pkg/checker/question_link_test.go
 copy ui/src/pages/Questions/Detail/components/{RelatedQuestions => 
LinkedQuestions}/index.tsx (72%)
 copy ui/src/pages/Questions/{ => Linked}/index.tsx (75%)

Reply via email to