Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
7fd4ab89
Unverified
Commit
7fd4ab89
authored
Dec 27, 2023
by
Zzm0809
Committed by
GitHub
Dec 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix] fix-query-checkpoint-function (#2817)
* fix-query-checkpoint-function * Spotless Apply --------- Co-authored-by:
Zzm0809
<
Zzm0809@users.noreply.github.com
>
parent
118d3361
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
index.tsx
dinky-web/src/components/Flink/FlinkDag/index.tsx
+23
-5
requestErrorConfig.ts
dinky-web/src/requestErrorConfig.ts
+2
-1
No files found.
dinky-web/src/components/Flink/FlinkDag/index.tsx
View file @
7fd4ab89
...
...
@@ -27,7 +27,8 @@ import {
zoomOptions
}
from
'@/components/Flink/FlinkDag/config'
;
import
{
buildDag
,
regConnect
,
updateDag
}
from
'@/components/Flink/FlinkDag/functions'
;
import
{
getData
}
from
'@/services/api'
;
import
EllipsisMiddle
from
'@/components/Typography/EllipsisMiddle'
;
import
{
getDataByParamsReturnResult
}
from
'@/services/BusinessCrud'
;
import
{
API_CONSTANTS
}
from
'@/services/endpoints'
;
import
{
Jobs
}
from
'@/types/DevOps/data'
;
import
{
DagreLayout
}
from
'@antv/layout'
;
...
...
@@ -35,7 +36,7 @@ import { Edge, Graph } from '@antv/x6';
import
{
Rectangle
}
from
'@antv/x6-geometry'
;
import
{
Selection
}
from
'@antv/x6-plugin-selection'
;
import
{
register
}
from
'@antv/x6-react-shape'
;
import
{
Drawer
,
Select
,
Slider
,
Table
,
Tabs
,
TabsProps
,
Typography
}
from
'antd'
;
import
{
Drawer
,
Select
,
Slider
,
Table
,
Tabs
,
TabsProps
,
T
ag
,
T
ypography
}
from
'antd'
;
import
{
useEffect
,
useRef
,
useState
}
from
'react'
;
import
'./index.css'
;
...
...
@@ -66,7 +67,13 @@ const RenderCheckpoint = (id: string, checkPoints: any) => {
return
;
}
getData
(
API_CONSTANTS
.
READ_CHECKPOINT
,
{
path
:
selectPath
,
operatorId
:
id
}).
then
((
res
)
=>
{
getDataByParamsReturnResult
(
API_CONSTANTS
.
READ_CHECKPOINT
,
{
path
:
selectPath
,
operatorId
:
id
}).
then
((
res
)
=>
{
if
(
!
res
||
res
.
code
!==
0
)
{
return
;
}
const
genData
=
Object
.
keys
(
res
.
data
).
map
((
x
)
=>
{
const
datum
=
res
.
data
[
x
];
return
{
...
...
@@ -112,10 +119,21 @@ const RenderCheckpoint = (id: string, checkPoints: any) => {
<
Select
defaultValue=
{
selectPath
}
style=
{
{
width
:
'100%'
}
}
placeholder=
'Select a
person
'
placeholder=
'Select a
Checkpoint
'
optionFilterProp=
'children'
options=
{
checkpointArray
.
map
((
x
)
=>
{
return
{
label
:
x
.
id
,
value
:
x
.
path
};
return
{
label
:
(
<>
<
Tag
color=
'success'
>
CheckPoint Id:
{
x
.
id
}
</
Tag
>
<
Tag
color=
'processing'
>
CheckPoint Path:
<
EllipsisMiddle
maxCount=
{
40
}
>
{
x
.
path
}
</
EllipsisMiddle
>
</
Tag
>
<
Tag
color=
'processing'
>
Type:
{
x
.
checkpointType
}
</
Tag
>
</>
),
value
:
x
.
path
};
})
}
onChange=
{
(
path
)
=>
{
setSelectPath
(
path
);
...
...
dinky-web/src/requestErrorConfig.ts
View file @
7fd4ab89
...
...
@@ -54,7 +54,8 @@ const handleBizError = (result: ResponseStructure) => {
WarningNotification
(
msg
,
l
(
'app.response.error'
));
break
;
case
ErrorCode
.
EXCEPTION
:
if
(
Boolean
(
getValueFromLocalStorage
(
ENABLE_MODEL_TIP
)))
{
const
valueFromLocalStorage
=
getValueFromLocalStorage
(
ENABLE_MODEL_TIP
);
if
(
valueFromLocalStorage
===
'true'
)
{
ErrorNotification
(
data
,
l
(
'app.response.exception'
));
}
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment