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
757a298b
Unverified
Commit
757a298b
authored
Jan 10, 2024
by
gaoyan
Committed by
GitHub
Jan 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix-2939]Fix some Web UI NPE (#2978)
parent
d82da13c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
index.tsx
dinky-web/src/components/Flink/FlinkDag/index.tsx
+1
-1
EllipsisMiddle.tsx
dinky-web/src/components/Typography/EllipsisMiddle.tsx
+1
-1
CkDesc.tsx
...ges/DevOps/JobDetail/CheckPointsTab/components/CkDesc.tsx
+3
-1
JobDesc.tsx
...pages/DevOps/JobDetail/JobOverview/components/JobDesc.tsx
+2
-6
No files found.
dinky-web/src/components/Flink/FlinkDag/index.tsx
View file @
757a298b
...
...
@@ -52,7 +52,7 @@ const RenderCheckpoint = (id: string, checkPoints: any) => {
const
key
=
id
+
selectPath
;
const
[
itemChildren
,
setItemChildren
]
=
useState
({
[
key
]:
[]
as
TabsProps
[
'items'
]
});
const
checkpointArray
=
((
checkPoints
.
history
??
[])
as
any
[])
const
checkpointArray
=
((
checkPoints
?
.
history
??
[])
as
any
[])
.
filter
((
x
)
=>
x
.
status
===
'COMPLETED'
)
.
map
((
x
)
=>
{
return
{
checkpointType
:
x
.
checkpoint_type
,
path
:
x
.
external_path
,
id
:
x
.
id
};
...
...
dinky-web/src/components/Typography/EllipsisMiddle.tsx
View file @
757a298b
...
...
@@ -42,7 +42,7 @@ const EllipsisMiddle: React.FC<EllipsisMiddleProps> = (props) => {
}
return
(
<
Tooltip
title=
{
tip
}
>
<
Text
copyable=
{
copyable
}
>
<
Text
copyable=
{
copyable
?
{
text
:
children
}
:
false
}
>
{
start
}
{
end
?
`......${end}`
:
''
}
</
Text
>
...
...
dinky-web/src/pages/DevOps/JobDetail/CheckPointsTab/components/CkDesc.tsx
View file @
757a298b
...
...
@@ -32,8 +32,10 @@ import { Descriptions, Space, Tag } from 'antd';
const
CkDesc
=
(
props
:
JobProps
)
=>
{
const
{
jobDetail
}
=
props
;
const
{
counts
,
latest
}
=
jobDetail
?.
jobDataDto
?.
checkpoints
;
const
counts
=
jobDetail
?.
jobDataDto
?.
checkpoints
?.
counts
;
const
latest
=
jobDetail
?.
jobDataDto
?.
checkpoints
?.
latest
;
const
checkpointsConfigInfo
=
jobDetail
?.
jobDataDto
?.
checkpointsConfig
;
return
(
<>
<
Descriptions
bordered
size=
'small'
column=
{
4
}
>
...
...
dinky-web/src/pages/DevOps/JobDetail/JobOverview/components/JobDesc.tsx
View file @
757a298b
...
...
@@ -97,15 +97,11 @@ const JobDesc = (props: JobProps) => {
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
l
(
'devops.jobinfo.config.JobId'
)
}
>
<
Text
copyable
>
<
a
>
{
jobDetail
?.
instance
?.
jid
}
</
a
>
</
Text
>
<
Text
copyable
>
{
jobDetail
?.
instance
?.
jid
}
</
Text
>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
l
(
'devops.jobinfo.config.taskId'
)
}
>
<
Text
copyable
>
<
a
>
{
jobDetail
?.
instance
?.
taskId
}
</
a
>
</
Text
>
<
Text
copyable
>
{
jobDetail
?.
instance
?.
taskId
}
</
Text
>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
l
(
'devops.jobinfo.config.useSqlFragment'
)
}
>
...
...
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