Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
228020153
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
228020153
Commits
ea9aba48
Commit
ea9aba48
authored
4 years ago
by
juzhiyuan
Browse files
Options
Downloads
Patches
Plain Diff
fix: ant-design/ant-design/issues/27396
parent
5afc1392
No related branches found
Branches containing commit
Tags
v2.0-rc2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pages/Upstream/transform.ts
+5
-1
5 additions, 1 deletion
src/pages/Upstream/transform.ts
src/pages/Upstream/typing.d.ts
+2
-2
2 additions, 2 deletions
src/pages/Upstream/typing.d.ts
with
7 additions
and
3 deletions
src/pages/Upstream/transform.ts
+
5
−
1
View file @
ea9aba48
import
{
pickBy
,
identity
,
omit
}
from
'
lodash
'
;
import
{
pickBy
,
identity
,
omit
,
pick
}
from
'
lodash
'
;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -62,6 +62,10 @@ export const transformRequest = (
}
if
(
nodes
)
{
// NOTE: https://github.com/ant-design/ant-design/issues/27396
data
.
nodes
=
data
.
nodes
?.
map
((
item
)
=>
{
return
pick
(
item
,
[
'
host
'
,
'
port
'
,
'
weight
'
]);
});
return
data
;
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/Upstream/typing.d.ts
+
2
−
2
View file @
ea9aba48
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
declare
namespace
UpstreamModule
{
type
Node
=
Record
<
string
,
number
>
;
type
Node
=
Record
<
string
,
number
|
string
>
;
type
Type
=
'
roundrobin
'
|
'
chash
'
|
'
ewma
'
;
type
Timeout
=
Record
<
'
connect
'
|
'
send
'
|
'
read
'
,
number
>
;
...
...
@@ -66,7 +66,7 @@ declare namespace UpstreamModule {
id
:
string
;
upstream_id
:
string
;
type
:
Type
;
nodes
?:
Node
;
nodes
?:
Node
[]
;
k8s_deployment_info
?:
K8SDeploymentInfo
;
hash_on
?:
'
vars
'
|
'
header
'
|
'
cookie
'
|
'
consumer
'
;
key
?:
string
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment