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

humingcheng pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git


The following commit(s) were added to refs/heads/dev by this push:
     new ff843857 Feature: support update framework (#1498)
ff843857 is described below

commit ff843857e5ddd73429565b2d4f633caa0f005d5b
Author: holden-cpu <[email protected]>
AuthorDate: Thu Feb 6 19:28:05 2025 +0800

    Feature: support update framework (#1498)
    
    Co-authored-by: sunhaidong <[email protected]>
---
 datasource/etcd/ms.go | 7 ++++++-
 go.mod                | 2 +-
 go.sum                | 4 ++--
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/datasource/etcd/ms.go b/datasource/etcd/ms.go
index 09eb15f9..274769c1 100644
--- a/datasource/etcd/ms.go
+++ b/datasource/etcd/ms.go
@@ -342,7 +342,12 @@ func (ds *MetadataManager) PutServiceProperties(ctx 
context.Context, request *pb
        }
 
        copyServiceRef := *microservice
-       copyServiceRef.Properties = request.Properties
+       if request.Properties != nil {
+               copyServiceRef.Properties = request.Properties
+       }
+       if request.Framework != nil {
+               copyServiceRef.Framework = request.Framework
+       }
        copyServiceRef.ModTimestamp = strconv.FormatInt(time.Now().Unix(), 10)
 
        data, err := json.Marshal(copyServiceRef)
diff --git a/go.mod b/go.mod
index 70fa79da..23af35b1 100644
--- a/go.mod
+++ b/go.mod
@@ -21,7 +21,7 @@ require (
        github.com/cloudflare/gokey v0.1.2
        github.com/deckarep/golang-set v1.8.0
        github.com/elithrar/simple-scrypt v1.3.0
-       github.com/go-chassis/cari v0.9.1-0.20240620034337-b6769eaccc12
+       github.com/go-chassis/cari v0.9.1-0.20250206085436-b02623c62de2
        github.com/go-chassis/etcdadpt v0.5.3-0.20240328092602-984e34b756fe
        github.com/go-chassis/foundation v0.4.0
        github.com/go-chassis/go-archaius v1.5.6
diff --git a/go.sum b/go.sum
index 01243bb3..807c82d2 100644
--- a/go.sum
+++ b/go.sum
@@ -235,8 +235,8 @@ github.com/go-chassis/cari v0.4.0/go.mod 
h1:av/19fqwEP4eOC8unL/z67AAbFDwXUCko6SK
 github.com/go-chassis/cari v0.5.0/go.mod 
h1:av/19fqwEP4eOC8unL/z67AAbFDwXUCko6SKa4Avrd8=
 github.com/go-chassis/cari v0.5.1-0.20210823023004-74041d1363c4/go.mod 
h1:av/19fqwEP4eOC8unL/z67AAbFDwXUCko6SKa4Avrd8=
 github.com/go-chassis/cari v0.6.0/go.mod 
h1:mSDRCOQXGmlD69A6NG0hsv0UP1xbVPtL6HCGI6X1tqs=
-github.com/go-chassis/cari v0.9.1-0.20240620034337-b6769eaccc12 
h1:aIES1QkxyVrCUvR6UD/U8qN9cXHLf3scp2I4+8NbQR4=
-github.com/go-chassis/cari v0.9.1-0.20240620034337-b6769eaccc12/go.mod 
h1:ibqLyh+Q+1n9PlldW3glD9G+2s/yeSyVMCCkQWKRwuE=
+github.com/go-chassis/cari v0.9.1-0.20250206085436-b02623c62de2 
h1:XCav5UOU6Vu9G45EIaaAuhqb4zWAGFP3B/fzxo9TBwQ=
+github.com/go-chassis/cari v0.9.1-0.20250206085436-b02623c62de2/go.mod 
h1:ibqLyh+Q+1n9PlldW3glD9G+2s/yeSyVMCCkQWKRwuE=
 github.com/go-chassis/etcdadpt v0.5.3-0.20240328092602-984e34b756fe 
h1:peLHEt3wzab6nKVcmcu0qkj1+ZXK6D1ymtiyyMBv/XA=
 github.com/go-chassis/etcdadpt v0.5.3-0.20240328092602-984e34b756fe/go.mod 
h1:HV8OZ1Npu+lttD+pJA5nUxWZR3/SBFetTh7w8nYFkUA=
 github.com/go-chassis/foundation v0.2.2-0.20201210043510-9f6d3de40234/go.mod 
h1:2PjwqpVwYEVaAldl5A58a08viH8p27pNeYaiE3ZxOBA=

Reply via email to