You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/12/27 16:38:15 UTC

[apisix-dashboard] branch master updated: feat: support EWMA (#1131)

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

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 14da383  feat: support EWMA (#1131)
14da383 is described below

commit 14da383518a5942b8a027e8bbb306988aa5dcacc
Author: guoqqqi <72...@users.noreply.github.com>
AuthorDate: Mon Dec 28 00:38:07 2020 +0800

    feat: support EWMA (#1131)
    
    Co-authored-by: 琚致远 <ju...@apache.org>
---
 web/src/components/Upstream/UpstreamForm.tsx | 1 +
 web/src/pages/Route/typing.d.ts              | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/web/src/components/Upstream/UpstreamForm.tsx b/web/src/components/Upstream/UpstreamForm.tsx
index 2c26b47..cf88245 100644
--- a/web/src/components/Upstream/UpstreamForm.tsx
+++ b/web/src/components/Upstream/UpstreamForm.tsx
@@ -26,6 +26,7 @@ import type { FormInstance } from 'antd/es/form';
 enum Type {
   roundrobin = 'roundrobin',
   chash = 'chash',
+  ewma = 'ewma',
 }
 
 enum HashOn {
diff --git a/web/src/pages/Route/typing.d.ts b/web/src/pages/Route/typing.d.ts
index 335e9dc..f104b19 100644
--- a/web/src/pages/Route/typing.d.ts
+++ b/web/src/pages/Route/typing.d.ts
@@ -176,7 +176,7 @@ declare namespace RouteModule {
   };
 
   type Form2Data = {
-    type: 'roundrobin' | 'chash';
+    type: 'roundrobin' | 'chash' | 'ewma';
     hash_on?: string;
     key?: string;
     upstreamPath?: string;