You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by ro...@apache.org on 2024/09/04 02:40:20 UTC

(incubator-answer-plugins) branch dev updated (a826cbf -> 65a7d41)

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

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


    from a826cbf  chore: Update sync-info.yml to use 'dev' branch for pull requests and pushes
     new 5dfea2a  fix(embed):Fixed #189, Closes #189. add GetEmbedConfigs to fixed type conflict. It will be resolved when Answer v1.4.0 release.
     new 2302c6e  fix(plugins): downgrade version about crypto
     new 0627a84  chore(plugins): upgrade plugins version
     new 193efe0  fix(plugins): downgrade version about crypto
     new 1ac0e88  chore: Sync Plugin Info
     new c502dc7  feat(embed): add new revision
     new a2c31a0  chore: Sync Plugin Info
     new b75662b  Add sync to Elasticsearch
     new c3c3670  fix: add lock
     new 65a7d41  chore(plugins): upgrade plugins version

The 10 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:
 captcha-basic/package.json                       |   2 +-
 captcha-google-v2/package.json                   |   2 +-
 editor-chart/package.json                        |   2 +-
 editor-formula/package.json                      |   2 +-
 embed-basic/basic.go                             |  13 ++
 embed-basic/info.yaml                            |   2 +-
 embed-basic/package.json                         |   2 +-
 notification-lark/go.mod                         |  10 +-
 notification-lark/go.sum                         |   9 +
 notification-lark/info.yaml                      |   2 +-
 plugins_desc.json                                | 260 +++++++++++------------
 search-elasticsearch/es.go                       |   6 +-
 search-elasticsearch/info.yaml                   |   2 +-
 {search-algolia => search-elasticsearch}/sync.go |  50 +++--
 user-center-wecom/go.mod                         |   6 +-
 user-center-wecom/go.sum                         |   8 +
 user-center-wecom/info.yaml                      |   2 +-
 17 files changed, 215 insertions(+), 165 deletions(-)
 copy {search-algolia => search-elasticsearch}/sync.go (60%)


(incubator-answer-plugins) 09/10: fix: add lock

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit c3c3670ba9f69093425ecc883437cfd27c6d27c0
Author: sy-records <52...@qq52o.cn>
AuthorDate: Mon Sep 2 16:57:51 2024 +0800

    fix: add lock
---
 search-elasticsearch/es.go   |  4 ++++
 search-elasticsearch/sync.go | 14 ++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/search-elasticsearch/es.go b/search-elasticsearch/es.go
index d04c732..ea2d0b3 100644
--- a/search-elasticsearch/es.go
+++ b/search-elasticsearch/es.go
@@ -26,6 +26,7 @@ import (
 	"fmt"
 	"github.com/apache/incubator-answer-plugins/util"
 	"strings"
+	"sync"
 
 	"github.com/apache/incubator-answer-plugins/search-elasticsearch/i18n"
 	"github.com/apache/incubator-answer/plugin"
@@ -40,6 +41,8 @@ type SearchEngine struct {
 	Config   *SearchEngineConfig
 	Operator *Operator
 	syncer   plugin.SearchSyncer
+	syncing  bool
+	lock     sync.Mutex
 }
 
 type SearchEngineConfig struct {
@@ -51,6 +54,7 @@ type SearchEngineConfig struct {
 func init() {
 	plugin.Register(&SearchEngine{
 		Config: &SearchEngineConfig{},
+		lock:   sync.Mutex{},
 	})
 }
 
diff --git a/search-elasticsearch/sync.go b/search-elasticsearch/sync.go
index 76a137f..13b6e33 100644
--- a/search-elasticsearch/sync.go
+++ b/search-elasticsearch/sync.go
@@ -27,7 +27,20 @@ import (
 
 func (s *SearchEngine) sync() {
 	var page, pageSize = 1, 100
+	if s.syncing {
+		log.Warnf("es: syncing is running, skip")
+		return
+	}
+
 	go func() {
+		s.lock.Lock()
+		defer s.lock.Unlock()
+		if s.syncing {
+			log.Warnf("es: syncing is running, skip")
+			return
+		}
+
+		s.syncing = true
 		log.Info("es: start sync questions...")
 		page = 1
 		for {
@@ -68,6 +81,7 @@ func (s *SearchEngine) sync() {
 
 			page += 1
 		}
+		s.syncing = false
 		log.Info("es: sync done")
 	}()
 }


(incubator-answer-plugins) 10/10: chore(plugins): upgrade plugins version

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 65a7d41ebaf81fe5515f81d5d72c8cf6ba8fa144
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Tue Sep 3 10:54:20 2024 +0800

    chore(plugins): upgrade plugins version
---
 search-elasticsearch/info.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/search-elasticsearch/info.yaml b/search-elasticsearch/info.yaml
index 3683e04..124435b 100644
--- a/search-elasticsearch/info.yaml
+++ b/search-elasticsearch/info.yaml
@@ -17,6 +17,6 @@
 
 slug_name: es_search
 type: search
-version: 1.2.7
+version: 1.2.8
 author: answerdev
 link: https://github.com/apache/incubator-answer-plugins/tree/main/search-elasticsearch


(incubator-answer-plugins) 01/10: fix(embed):Fixed #189, Closes #189. add GetEmbedConfigs to fixed type conflict. It will be resolved when Answer v1.4.0 release.

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 5dfea2a53161ef73164663ef26ee19d3ce00d200
Author: kumfo <ku...@sifou.com>
AuthorDate: Mon Aug 19 16:20:35 2024 +0800

    fix(embed):Fixed #189, Closes #189. add GetEmbedConfigs to fixed type conflict. It will be resolved when Answer v1.4.0 release.
---
 embed-basic/basic.go | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/embed-basic/basic.go b/embed-basic/basic.go
index 624be07..3d81378 100644
--- a/embed-basic/basic.go
+++ b/embed-basic/basic.go
@@ -23,6 +23,7 @@ import (
 	"embed"
 	"encoding/json"
 	"github.com/apache/incubator-answer-plugins/util"
+	"github.com/gin-gonic/gin"
 
 	"github.com/apache/incubator-answer-plugins/embed-basic/i18n"
 	"github.com/apache/incubator-answer/plugin"
@@ -163,3 +164,15 @@ func (e *Embed) ConfigReceiver(config []byte) error {
 	e.Config = c
 	return nil
 }
+
+// GetEmbedConfigs get embed configs
+func (e *Embed) GetEmbedConfigs(ctx *gin.Context) (embedConfigs []*plugin.EmbedConfig, err error) {
+	embedConfigs = make([]*plugin.EmbedConfig, 0)
+	for _, field := range e.ConfigFields() {
+		embedConfigs = append(embedConfigs, &plugin.EmbedConfig{
+			Platform: field.Name,
+			Enable:   field.Value.(bool),
+		})
+	}
+	return
+}


(incubator-answer-plugins) 04/10: fix(plugins): downgrade version about crypto

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 193efe05d42f687795ada7472a83152719507f68
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed Aug 21 18:01:38 2024 +0800

    fix(plugins): downgrade version about crypto
---
 user-center-wecom/go.mod    | 6 +++---
 user-center-wecom/go.sum    | 8 ++++++++
 user-center-wecom/info.yaml | 2 +-
 3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/user-center-wecom/go.mod b/user-center-wecom/go.mod
index f331f33..74533a9 100644
--- a/user-center-wecom/go.mod
+++ b/user-center-wecom/go.mod
@@ -6,7 +6,7 @@ require (
 	github.com/apache/incubator-answer v1.3.6
 	github.com/apache/incubator-answer-plugins/util v1.0.2
 	github.com/gin-gonic/gin v1.9.1
-	github.com/go-resty/resty/v2 v2.14.0
+	github.com/go-resty/resty/v2 v2.12.0
 	github.com/patrickmn/go-cache v2.1.0+incompatible
 	github.com/segmentfault/pacman v1.0.5-0.20230822083413-c0075a2d401f
 	github.com/silenceper/wechat/v2 v2.1.6
@@ -46,8 +46,8 @@ require (
 	github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
 	github.com/ugorji/go/codec v1.2.11 // indirect
 	golang.org/x/arch v0.3.0 // indirect
-	golang.org/x/crypto v0.25.0 // indirect
-	golang.org/x/net v0.27.0 // indirect
+	golang.org/x/crypto v0.21.0 // indirect
+	golang.org/x/net v0.23.0 // indirect
 	golang.org/x/sys v0.22.0 // indirect
 	golang.org/x/text v0.16.0 // indirect
 	google.golang.org/protobuf v1.30.0 // indirect
diff --git a/user-center-wecom/go.sum b/user-center-wecom/go.sum
index 10d746e..89f0008 100644
--- a/user-center-wecom/go.sum
+++ b/user-center-wecom/go.sum
@@ -51,6 +51,7 @@ github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg
 github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU=
 github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI=
 github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo=
+github.com/go-resty/resty/v2 v2.12.0/go.mod h1:o0yGPrkS3lOe1+eFajk6kBW8ScXzwU3hD69/gt2yB/0=
 github.com/go-resty/resty/v2 v2.14.0 h1:/rhkzsAqGQkozwfKS5aFAbb6TyKd3zyFRWcdRXLPCAU=
 github.com/go-resty/resty/v2 v2.14.0/go.mod h1:IW6mekUOsElt9C7oWr0XRt9BNSD6D5rr9mhk6NjmNHg=
 github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
@@ -171,6 +172,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
 golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
 golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
 golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
+golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
+golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
 golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
 golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
 golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
@@ -194,6 +197,8 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
 golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
 golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
 golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
+golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
+golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
 golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
 golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
 golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
@@ -229,6 +234,7 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
 golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
 golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
 golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
@@ -239,6 +245,7 @@ golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
 golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
 golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
 golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
+golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
 golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY=
 golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4=
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -253,6 +260,7 @@ golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
 golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
 golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
 golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
+golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
 golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U=
 golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
 golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
diff --git a/user-center-wecom/info.yaml b/user-center-wecom/info.yaml
index 5359f67..e0b0f19 100644
--- a/user-center-wecom/info.yaml
+++ b/user-center-wecom/info.yaml
@@ -17,6 +17,6 @@
 
 slug_name: wecom_user_center
 type: user_center
-version: 1.2.6
+version: 1.2.7
 author: answerdev
 link: https://github.com/apache/incubator-answer-plugins/tree/main/user-center-wecom


(incubator-answer-plugins) 05/10: chore: Sync Plugin Info

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 1ac0e88b61e71501fe28baa8e9b86f7d8c823377
Author: LinkinStars <Li...@users.noreply.github.com>
AuthorDate: Wed Aug 21 10:01:57 2024 +0000

    chore: Sync Plugin Info
---
 captcha-basic/package.json     |   2 +-
 captcha-google-v2/package.json |   2 +-
 editor-chart/package.json      |   2 +-
 editor-formula/package.json    |   2 +-
 embed-basic/package.json       |   2 +-
 plugins_desc.json              | 260 ++++++++++++++++++++---------------------
 6 files changed, 135 insertions(+), 135 deletions(-)

diff --git a/captcha-basic/package.json b/captcha-basic/package.json
index a52c512..87f32b2 100644
--- a/captcha-basic/package.json
+++ b/captcha-basic/package.json
@@ -3,7 +3,7 @@
   "private": true,
   "author": "Answer.dev",
   "description": "Basic for captcha",
-  "version": "1.0.2",
+  "version": "1.0.3",
   "files": [
     "dist",
     "README.md"
diff --git a/captcha-google-v2/package.json b/captcha-google-v2/package.json
index d6ed46b..008177b 100644
--- a/captcha-google-v2/package.json
+++ b/captcha-google-v2/package.json
@@ -3,7 +3,7 @@
   "private": true,
   "author": "Answer.dev",
   "description": "google reCaptcha v2",
-  "version": "1.0.2",
+  "version": "1.0.3",
   "files": [
     "dist",
     "README.md"
diff --git a/editor-chart/package.json b/editor-chart/package.json
index 2327725..5c44a9b 100644
--- a/editor-chart/package.json
+++ b/editor-chart/package.json
@@ -2,7 +2,7 @@
   "name": "editor-chart",
   "private": true,
   "author": "Answer.dev",
-  "version": "1.2.8",
+  "version": "1.2.9",
   "files": [
     "dist",
     "README.md"
diff --git a/editor-formula/package.json b/editor-formula/package.json
index d800c2f..4d64f76 100644
--- a/editor-formula/package.json
+++ b/editor-formula/package.json
@@ -2,7 +2,7 @@
   "name": "editor-formula",
   "private": true,
   "author": "Answer.dev",
-  "version": "1.2.10",
+  "version": "1.2.11",
   "files": [
     "dist",
     "README.md"
diff --git a/embed-basic/package.json b/embed-basic/package.json
index afa1997..5fa97e2 100644
--- a/embed-basic/package.json
+++ b/embed-basic/package.json
@@ -1,6 +1,6 @@
 {
   "name": "embed-basic",
-  "version": "1.0.2",
+  "version": "1.0.3",
   "description": "",
   "files": [
     "dist",
diff --git a/plugins_desc.json b/plugins_desc.json
index 1e87b8b..cd496f9 100644
--- a/plugins_desc.json
+++ b/plugins_desc.json
@@ -1,226 +1,226 @@
 {
-  "zh_CN": [
-    {
-      "name": "Google reCAPTCHA v2",
-      "desc": "Google reCAPTCHA v2 插件",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/captcha-google-v2"
-    },
+  "en_US": [
     {
-      "name": "基础验证码",
-      "desc": "默认图形验证码",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/captcha-basic"
+      "name": "Algolia Search",
+      "desc": "Use Algolia as a search engine.",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-algolia"
     },
     {
-      "name": "Amazon CloudFront",
-      "desc": "通过AWS CDN提升静态资源加速",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cdn-s3"
+      "name": "Embed",
+      "desc": "Embed content from other sites",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/embed-basic"
     },
     {
-      "name": "阿里云CDN",
-      "desc": "通过阿里云CDN提升静态资源加速",
+      "name": "Aliyun CDN",
+      "desc": "Speed up your website and enjoy greatly improved loading times around the world.",
       "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cdn-aliyun"
     },
     {
-      "name": "Akismet Anti-Spam",
-      "desc": "Akismet Anti-Spam is used to check the content of posts and comments against the Akismet web service to see if they look like spam.",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/reviewer-akismet"
+      "name": "Redis Cache",
+      "desc": "Use Redis as cache",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cache-redis"
     },
     {
-      "name": "企业微信",
-      "desc": "从企业微信获取用户信息并同步到用户中心",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/user-center-wecom"
+      "name": "Slack Notification",
+      "desc": "Send notifications to Slack",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/notification-slack"
     },
     {
-      "name": "Slack 通知",
-      "desc": "发送通知到 Slack",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/notification-slack"
+      "name": "Chart Editor",
+      "desc": "Render chart in editor",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/editor-chart"
     },
     {
-      "name": "Google 连接器",
-      "desc": "用于接入 Google 第三方登录",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-google"
+      "name": "Akismet Anti-Spam",
+      "desc": "Akismet Anti-Spam is used to check the content of posts and comments against the Akismet web service to see if they look like spam.",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/reviewer-akismet"
     },
     {
-      "name": "阿里云OSS存储",
-      "desc": "上传文件到阿里云OSS存储",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/storage-aliyunoss"
+      "name": "Dingtalk Connector",
+      "desc": "Connect to Dingtalk for third-party login",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-dingtalk"
     },
     {
-      "name": "公式编辑器",
-      "desc": "在编辑器中渲染公式",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/editor-formula"
+      "name": "OAuth2 Basic",
+      "desc": "Generic OAuth2 Plugin",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-basic"
     },
     {
-      "name": "Redis缓存",
-      "desc": "使用Redis作为缓存",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cache-redis"
+      "name": "Basic Captcha",
+      "desc": "Default graphic verification code",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/captcha-basic"
     },
     {
-      "name": "Algolia 搜索",
-      "desc": "使用 Algolia 作为搜索引擎.",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-algolia"
+      "name": "GitHub Connector",
+      "desc": "Connect to GitHub for third-party login",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-github"
     },
     {
-      "name": "钉钉连接器",
-      "desc": "用于接入钉钉第三方登录",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-dingtalk"
+      "name": "Aliyun OSS storage",
+      "desc": "Upload files to AliCloud OSS storage",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/storage-aliyunoss"
     },
     {
-      "name": "Apache 连接器",
-      "desc": "用于接入 Apache Oauth",
+      "name": "Apache Connector",
+      "desc": "Connect to Apache Oauth",
       "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-apache"
     },
     {
-      "name": "GitHub 连接器",
-      "desc": "用于接入 GitHub 第三方登录",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-github"
+      "name": "MeiliSearch",
+      "desc": "MeiliSearch is a powerful, fast, open-source, easy to use and deploy search engine.",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-meilisearch"
     },
     {
-      "name": "Elasticsearch 引擎",
-      "desc": "使用 Elasticsearch 作为搜索引擎",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-elasticsearch"
+      "name": "S3 storage",
+      "desc": "Upload files to S3 storage",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/storage-s3"
     },
     {
-      "name": "图表编辑器",
-      "desc": "在编辑器中渲染图表",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/editor-chart"
+      "name": "Elasticsearch Engine",
+      "desc": "Use Elasticsearch as search engine",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-elasticsearch"
     },
     {
-      "name": "内容嵌入",
-      "desc": "在内容中嵌入其他网站",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/embed-basic"
+      "name": "Amazon CloudFront",
+      "desc": "Speed up your website and enjoy greatly improved loading times around the world.",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cdn-s3"
     },
     {
-      "name": "基础审核插件",
-      "desc": "基础的通用审核插件",
+      "name": "Review Basic",
+      "desc": "Generic review rule plugin",
       "link": "https://github.com/apache/incubator-answer-plugins/tree/main/reviewer-basic"
     },
     {
-      "name": "S3 存储",
-      "desc": "上传文件到S3存储",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/storage-s3"
+      "name": "Formula Editor",
+      "desc": "Render formula in editor",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/editor-formula"
     },
     {
-      "name": "通用连接器",
-      "desc": "适用于各种 OAuth 登录的通用插件",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-basic"
+      "name": "WeCom",
+      "desc": "Get user info from WeCom and sync to User Center",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/user-center-wecom"
     },
     {
-      "name": "MeiliSearch",
-      "desc": "MeiliSearch 是一个强大、快速、开源、易于使用和部署的搜索引擎。",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-meilisearch"
-    }
-  ],
-  "en_US": [
+      "name": "Google Connector",
+      "desc": "Connect to Google for third-party login",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-google"
+    },
     {
       "name": "Google reCAPTCHA v2",
       "desc": "Google reCAPTCHA v2 plugin",
       "link": "https://github.com/apache/incubator-answer-plugins/tree/main/captcha-google-v2"
-    },
+    }
+  ],
+  "zh_CN": [
     {
-      "name": "Basic Captcha",
-      "desc": "Default graphic verification code",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/captcha-basic"
+      "name": "Algolia 搜索",
+      "desc": "使用 Algolia 作为搜索引擎.",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-algolia"
     },
     {
-      "name": "Amazon CloudFront",
-      "desc": "Speed up your website and enjoy greatly improved loading times around the world.",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cdn-s3"
+      "name": "内容嵌入",
+      "desc": "在内容中嵌入其他网站",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/embed-basic"
     },
     {
-      "name": "Aliyun CDN",
-      "desc": "Speed up your website and enjoy greatly improved loading times around the world.",
+      "name": "阿里云CDN",
+      "desc": "通过阿里云CDN提升静态资源加速",
       "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cdn-aliyun"
     },
     {
-      "name": "Akismet Anti-Spam",
-      "desc": "Akismet Anti-Spam is used to check the content of posts and comments against the Akismet web service to see if they look like spam.",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/reviewer-akismet"
+      "name": "Redis缓存",
+      "desc": "使用Redis作为缓存",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cache-redis"
     },
     {
-      "name": "WeCom",
-      "desc": "Get user info from WeCom and sync to User Center",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/user-center-wecom"
+      "name": "Slack 通知",
+      "desc": "发送通知到 Slack",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/notification-slack"
     },
     {
-      "name": "Slack Notification",
-      "desc": "Send notifications to Slack",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/notification-slack"
+      "name": "图表编辑器",
+      "desc": "在编辑器中渲染图表",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/editor-chart"
     },
     {
-      "name": "Google Connector",
-      "desc": "Connect to Google for third-party login",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-google"
+      "name": "Akismet Anti-Spam",
+      "desc": "Akismet Anti-Spam is used to check the content of posts and comments against the Akismet web service to see if they look like spam.",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/reviewer-akismet"
     },
     {
-      "name": "Aliyun OSS storage",
-      "desc": "Upload files to AliCloud OSS storage",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/storage-aliyunoss"
+      "name": "钉钉连接器",
+      "desc": "用于接入钉钉第三方登录",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-dingtalk"
     },
     {
-      "name": "Formula Editor",
-      "desc": "Render formula in editor",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/editor-formula"
+      "name": "通用连接器",
+      "desc": "适用于各种 OAuth 登录的通用插件",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-basic"
     },
     {
-      "name": "Redis Cache",
-      "desc": "Use Redis as cache",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cache-redis"
+      "name": "基础验证码",
+      "desc": "默认图形验证码",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/captcha-basic"
     },
     {
-      "name": "Algolia Search",
-      "desc": "Use Algolia as a search engine.",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-algolia"
+      "name": "GitHub 连接器",
+      "desc": "用于接入 GitHub 第三方登录",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-github"
     },
     {
-      "name": "Dingtalk Connector",
-      "desc": "Connect to Dingtalk for third-party login",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-dingtalk"
+      "name": "阿里云OSS存储",
+      "desc": "上传文件到阿里云OSS存储",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/storage-aliyunoss"
     },
     {
-      "name": "Apache Connector",
-      "desc": "Connect to Apache Oauth",
+      "name": "Apache 连接器",
+      "desc": "用于接入 Apache Oauth",
       "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-apache"
     },
     {
-      "name": "GitHub Connector",
-      "desc": "Connect to GitHub for third-party login",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-github"
+      "name": "MeiliSearch",
+      "desc": "MeiliSearch 是一个强大、快速、开源、易于使用和部署的搜索引擎。",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-meilisearch"
     },
     {
-      "name": "Elasticsearch Engine",
-      "desc": "Use Elasticsearch as search engine",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-elasticsearch"
+      "name": "S3 存储",
+      "desc": "上传文件到S3存储",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/storage-s3"
     },
     {
-      "name": "Chart Editor",
-      "desc": "Render chart in editor",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/editor-chart"
+      "name": "Elasticsearch 引擎",
+      "desc": "使用 Elasticsearch 作为搜索引擎",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-elasticsearch"
     },
     {
-      "name": "Embed",
-      "desc": "Embed content from other sites",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/embed-basic"
+      "name": "Amazon CloudFront",
+      "desc": "通过AWS CDN提升静态资源加速",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/cdn-s3"
     },
     {
-      "name": "Review Basic",
-      "desc": "Generic review rule plugin",
+      "name": "基础审核插件",
+      "desc": "基础的通用审核插件",
       "link": "https://github.com/apache/incubator-answer-plugins/tree/main/reviewer-basic"
     },
     {
-      "name": "S3 storage",
-      "desc": "Upload files to S3 storage",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/storage-s3"
+      "name": "公式编辑器",
+      "desc": "在编辑器中渲染公式",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/editor-formula"
     },
     {
-      "name": "OAuth2 Basic",
-      "desc": "Generic OAuth2 Plugin",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-basic"
+      "name": "企业微信",
+      "desc": "从企业微信获取用户信息并同步到用户中心",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/user-center-wecom"
     },
     {
-      "name": "MeiliSearch",
-      "desc": "MeiliSearch is a powerful, fast, open-source, easy to use and deploy search engine.",
-      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/search-meilisearch"
+      "name": "Google 连接器",
+      "desc": "用于接入 Google 第三方登录",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/connector-google"
+    },
+    {
+      "name": "Google reCAPTCHA v2",
+      "desc": "Google reCAPTCHA v2 插件",
+      "link": "https://github.com/apache/incubator-answer-plugins/tree/main/captcha-google-v2"
     }
   ]
 }


(incubator-answer-plugins) 02/10: fix(plugins): downgrade version about crypto

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 2302c6e9a05ada85e565aaae078bd0a34f8d758a
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed Aug 21 17:22:56 2024 +0800

    fix(plugins): downgrade version about crypto
---
 notification-lark/go.mod | 10 +++++-----
 notification-lark/go.sum |  9 +++++++++
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/notification-lark/go.mod b/notification-lark/go.mod
index 2d94c09..193ba51 100644
--- a/notification-lark/go.mod
+++ b/notification-lark/go.mod
@@ -16,9 +16,9 @@ require (
 	github.com/bytedance/sonic/loader v0.2.0 // indirect
 	github.com/cloudwego/base64x v0.1.4 // indirect
 	github.com/cloudwego/iasm v0.2.0 // indirect
-	github.com/gabriel-vasile/mimetype v1.4.5 // indirect
+	github.com/gabriel-vasile/mimetype v1.4.3 // indirect
 	github.com/gin-contrib/sse v0.1.0 // indirect
-	github.com/gin-gonic/gin v1.10.0 // indirect
+	github.com/gin-gonic/gin v1.9.1 // indirect
 	github.com/go-playground/locales v0.14.1 // indirect
 	github.com/go-playground/universal-translator v0.18.1 // indirect
 	github.com/go-playground/validator/v10 v10.22.0 // indirect
@@ -33,7 +33,7 @@ require (
 	github.com/kr/text v0.2.0 // indirect
 	github.com/leodido/go-urn v1.4.0 // indirect
 	github.com/mattn/go-isatty v0.0.20 // indirect
-	github.com/microcosm-cc/bluemonday v1.0.27 // indirect
+	github.com/microcosm-cc/bluemonday v1.0.26 // indirect
 	github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
 	github.com/modern-go/reflect2 v1.0.2 // indirect
 	github.com/pelletier/go-toml/v2 v2.2.2 // indirect
@@ -41,8 +41,8 @@ require (
 	github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
 	github.com/ugorji/go/codec v1.2.12 // indirect
 	golang.org/x/arch v0.9.0 // indirect
-	golang.org/x/crypto v0.26.0 // indirect
-	golang.org/x/net v0.28.0 // indirect
+	golang.org/x/crypto v0.21.0 // indirect
+	golang.org/x/net v0.23.0 // indirect
 	golang.org/x/sys v0.24.0 // indirect
 	golang.org/x/text v0.17.0 // indirect
 	google.golang.org/protobuf v1.34.2 // indirect
diff --git a/notification-lark/go.sum b/notification-lark/go.sum
index 6d151d2..0952381 100644
--- a/notification-lark/go.sum
+++ b/notification-lark/go.sum
@@ -21,10 +21,12 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
 github.com/gabriel-vasile/mimetype v1.4.5 h1:J7wGKdGu33ocBOhGy0z653k/lFKLFDPJMG8Gql0kxn4=
 github.com/gabriel-vasile/mimetype v1.4.5/go.mod h1:ibHel+/kbxn9x2407k1izTA1S81ku1z/DlgOW2QE0M4=
 github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
 github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
+github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU=
 github.com/gin-gonic/gin v1.10.0 h1:nTuyha1TYqgedzytsKYqna+DfLos46nTv2ygFy86HFU=
 github.com/gin-gonic/gin v1.10.0/go.mod h1:4PMNQiOhvDRa013RKVbsiNwoyezlm2rm0uX/T7kzp5Y=
 github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
@@ -68,6 +70,7 @@ github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
 github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
 github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
 github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
+github.com/microcosm-cc/bluemonday v1.0.26/go.mod h1:JyzOCs9gkyQyjs+6h10UEVSe02CGwkhd72Xdqh78TWs=
 github.com/microcosm-cc/bluemonday v1.0.27 h1:MpEUotklkwCSLeH+Qdx1VJgNqLlpY2KXwXFM08ygZfk=
 github.com/microcosm-cc/bluemonday v1.0.27/go.mod h1:jFi9vgW+H7c3V0lb6nR74Ib/DIB5OBs92Dimizgw2cA=
 github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
@@ -111,6 +114,10 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
 golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
 golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
 golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg=
+golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
+golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
+golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
+golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
 golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw=
 golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54=
 golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
@@ -129,6 +136,8 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
 golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
 golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
 golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY=
+golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
+golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
 golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE=
 golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg=
 golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=


(incubator-answer-plugins) 08/10: Add sync to Elasticsearch

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit b75662b74277843421eb0497ada788badaa8f264
Author: sy-records <52...@qq52o.cn>
AuthorDate: Sat Aug 31 16:44:32 2024 +0800

    Add sync to Elasticsearch
---
 search-elasticsearch/es.go   |  2 +-
 search-elasticsearch/sync.go | 84 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+), 1 deletion(-)

diff --git a/search-elasticsearch/es.go b/search-elasticsearch/es.go
index 8ea9a8a..d04c732 100644
--- a/search-elasticsearch/es.go
+++ b/search-elasticsearch/es.go
@@ -143,7 +143,7 @@ func (s *SearchEngine) DeleteContent(ctx context.Context, contentID string) erro
 
 func (s *SearchEngine) RegisterSyncer(ctx context.Context, syncer plugin.SearchSyncer) {
 	s.syncer = syncer
-	// TODO: Synchronization of already existing data through some strategy
+	s.sync()
 }
 
 func (s *SearchEngine) warpResult(resp *elastic.SearchResult) ([]plugin.SearchResult, int64, error) {
diff --git a/search-elasticsearch/sync.go b/search-elasticsearch/sync.go
new file mode 100644
index 0000000..76a137f
--- /dev/null
+++ b/search-elasticsearch/sync.go
@@ -0,0 +1,84 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package es
+
+import (
+	"context"
+	"github.com/apache/incubator-answer/plugin"
+	"github.com/segmentfault/pacman/log"
+)
+
+func (s *SearchEngine) sync() {
+	var page, pageSize = 1, 100
+	go func() {
+		log.Info("es: start sync questions...")
+		page = 1
+		for {
+			log.Infof("es: sync question page %d, page size %d", page, pageSize)
+			questionList, err := s.syncer.GetQuestionsPage(context.TODO(), page, pageSize)
+			if err != nil {
+				log.Error("es: sync questions error", err)
+				break
+			}
+			if len(questionList) == 0 {
+				break
+			}
+			err = s.batchUpdateContent(context.TODO(), questionList)
+			if err != nil {
+				log.Error("es: sync questions error", err)
+			}
+			page += 1
+		}
+
+		log.Info("es: start sync answers...")
+		page = 1
+		for {
+			log.Infof("es: sync answer page %d, page size %d", page, pageSize)
+			answerList, err := s.syncer.GetAnswersPage(context.TODO(), page, pageSize)
+			if err != nil {
+				log.Error("es: sync answers error", err)
+				break
+			}
+
+			if len(answerList) == 0 {
+				break
+			}
+
+			err = s.batchUpdateContent(context.TODO(), answerList)
+			if err != nil {
+				log.Error("es: sync answers error", err)
+			}
+
+			page += 1
+		}
+		log.Info("es: sync done")
+	}()
+}
+
+func (s *SearchEngine) batchUpdateContent(ctx context.Context, contents []*plugin.SearchContent) (err error) {
+	for _, content := range contents {
+		err = s.Operator.SaveDoc(ctx, s.getIndexName(), content.ObjectID, CreateDocFromSearchContent(content.ObjectID, content))
+		if err != nil {
+			return
+		}
+	}
+
+	return nil
+}


(incubator-answer-plugins) 03/10: chore(plugins): upgrade plugins version

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 0627a845233bb07280870fc007ddf8b60c14e591
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed Aug 21 17:24:41 2024 +0800

    chore(plugins): upgrade plugins version
---
 notification-lark/info.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notification-lark/info.yaml b/notification-lark/info.yaml
index 2f370d5..b2692f5 100644
--- a/notification-lark/info.yaml
+++ b/notification-lark/info.yaml
@@ -17,6 +17,6 @@
 
 slug_name: lark_notification
 type: notification
-version: 1.0.0
+version: 1.0.1
 author: sonui
 link: https://apache.com/apache/incubator-answer-plugins/tree/main/notification-lark


(incubator-answer-plugins) 06/10: feat(embed): add new revision

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit c502dc713841068a083172a694034c25fc6cbf89
Author: kumfo <ku...@sifou.com>
AuthorDate: Thu Aug 22 17:56:46 2024 +0800

    feat(embed): add new revision
---
 embed-basic/info.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/embed-basic/info.yaml b/embed-basic/info.yaml
index 9b6c4bf..94d433e 100644
--- a/embed-basic/info.yaml
+++ b/embed-basic/info.yaml
@@ -17,6 +17,6 @@
 
 slug_name: basic_embed
 type: editor
-version: 1.0.3
+version: 1.0.4
 author: answerdev
 link: https://github.com/apache/incubator-answer-plugins/tree/main/embed-basic


(incubator-answer-plugins) 07/10: chore: Sync Plugin Info

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a2c31a015879f4a175a4917c9aca9b9c11555430
Author: kumfo <ku...@users.noreply.github.com>
AuthorDate: Thu Aug 22 09:57:07 2024 +0000

    chore: Sync Plugin Info
---
 embed-basic/package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/embed-basic/package.json b/embed-basic/package.json
index 5fa97e2..07c307d 100644
--- a/embed-basic/package.json
+++ b/embed-basic/package.json
@@ -1,6 +1,6 @@
 {
   "name": "embed-basic",
-  "version": "1.0.3",
+  "version": "1.0.4",
   "description": "",
   "files": [
     "dist",