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
2264db1c
Unverified
Commit
2264db1c
authored
Jul 21, 2024
by
gaoyan
Committed by
GitHub
Jul 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug] Fix fonted NPE on Upgrade (#3661)
Co-authored-by:
gaoyan1998
<
gaoyan1998@users.noreply.github.com
>
parent
b833ef04
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
19 deletions
+18
-19
routes.ts
dinky-web/config/routes.ts
+0
-7
index.tsx
dinky-web/src/pages/Dashboard/DashboardLayout/index.tsx
+3
-3
JobConfigInfo.tsx
...ecHistory/components/JobDetailInfoModel/JobConfigInfo.tsx
+1
-1
index.tsx
dinky-web/src/pages/DataStudio/HeaderContainer/index.tsx
+1
-1
index.tsx
.../pages/DataStudio/LeftContainer/Project/JobTree/index.tsx
+2
-2
index.tsx
...s/DataStudio/LeftContainer/Project/ProjectTitle/index.tsx
+1
-1
index.tsx
...-web/src/pages/DataStudio/LeftContainer/Project/index.tsx
+1
-1
index.tsx
dinky-web/src/pages/DataStudio/index.tsx
+1
-1
index.tsx
dinky-web/src/pages/DevOps/JobList/index.tsx
+8
-2
No files found.
dinky-web/config/routes.ts
View file @
2264db1c
...
@@ -283,13 +283,6 @@ export default [
...
@@ -283,13 +283,6 @@ export default [
}
}
]
]
},
},
{
path
:
'/metrics'
,
name
:
'metrics'
,
icon
:
'DashboardOutlined'
,
footerRender
:
false
,
component
:
'./Metrics'
},
{
{
path
:
'/dashboard'
,
path
:
'/dashboard'
,
...
...
dinky-web/src/pages/Dashboard/DashboardLayout/index.tsx
View file @
2264db1c
...
@@ -257,7 +257,7 @@ export default (props: DashboardProps) => {
...
@@ -257,7 +257,7 @@ export default (props: DashboardProps) => {
actions=
{
[
actions=
{
[
<
Flex
align=
{
'center'
}
justify=
{
'center'
}
>
<
Flex
align=
{
'center'
}
justify=
{
'center'
}
>
<
Segmented
<
Segmented
defaultValue=
{
chartDatum
[
0
].
type
}
defaultValue=
{
chartDatum
[
0
]
?
.
type
}
onChange=
{
(
value
)
=>
{
onChange=
{
(
value
)
=>
{
setChartData
((
v
)
=>
{
setChartData
((
v
)
=>
{
v
[
l
.
i
].
chartData
.
forEach
((
x
)
=>
{
v
[
l
.
i
].
chartData
.
forEach
((
x
)
=>
{
...
@@ -275,7 +275,7 @@ export default (props: DashboardProps) => {
...
@@ -275,7 +275,7 @@ export default (props: DashboardProps) => {
<
ChartShow
<
ChartShow
chartTheme=
{
chartTheme
}
chartTheme=
{
chartTheme
}
chartOptions=
{
chartOptions
}
chartOptions=
{
chartOptions
}
value=
{
chartDatum
[
0
].
data
?.
slice
(
-
1
)[
0
]?.
value
}
value=
{
chartDatum
[
0
]
?
.
data
?.
slice
(
-
1
)[
0
]?.
value
}
type=
{
chartDatum
[
0
]?.
type
}
type=
{
chartDatum
[
0
]?.
type
}
fontSize=
{
(
l
.
h
*
config
.
rowHeight
)
/
4
}
fontSize=
{
(
l
.
h
*
config
.
rowHeight
)
/
4
}
/>
/>
...
@@ -288,7 +288,7 @@ export default (props: DashboardProps) => {
...
@@ -288,7 +288,7 @@ export default (props: DashboardProps) => {
chartTheme=
{
chartTheme
}
chartTheme=
{
chartTheme
}
chartOptions=
{
chartOptions
}
chartOptions=
{
chartOptions
}
title=
{
title
}
title=
{
title
}
value=
{
chartDatum
[
0
].
data
?.
slice
(
-
1
)[
0
]?.
value
}
value=
{
chartDatum
[
0
]
?
.
data
?.
slice
(
-
1
)[
0
]?.
value
}
type=
{
chartDatum
[
0
]?.
type
}
type=
{
chartDatum
[
0
]?.
type
}
fontSize=
{
(
l
.
h
*
config
.
rowHeight
)
/
4
}
fontSize=
{
(
l
.
h
*
config
.
rowHeight
)
/
4
}
/>
/>
...
...
dinky-web/src/pages/DataStudio/BottomContainer/JobExecHistory/components/JobDetailInfoModel/JobConfigInfo.tsx
View file @
2264db1c
...
@@ -72,7 +72,7 @@ export const JobConfigInfo: React.FC<JobDetailInfoModelProps> = (props) => {
...
@@ -72,7 +72,7 @@ export const JobConfigInfo: React.FC<JobDetailInfoModelProps> = (props) => {
:
l
(
'pages.datastudio.label.history.clusterConfigurationId'
)
:
l
(
'pages.datastudio.label.history.clusterConfigurationId'
)
}
}
>
>
{
row
?.
clusterId
?
row
?.
clusterId
:
row
?.
clusterConfigurationId
??
'None'
}
{
row
?.
clusterId
?
row
?.
clusterId
:
(
row
?.
clusterConfigurationId
??
'None'
)
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
{
l
(
'pages.datastudio.label.history.clusterName'
)
}
>
<
ProDescriptions
.
Item
label=
{
l
(
'pages.datastudio.label.history.clusterName'
)
}
>
...
...
dinky-web/src/pages/DataStudio/HeaderContainer/index.tsx
View file @
2264db1c
...
@@ -106,7 +106,7 @@ const HeaderContainer = (props: connect) => {
...
@@ -106,7 +106,7 @@ const HeaderContainer = (props: connect) => {
queryDsConfig
,
queryDsConfig
,
queryTaskData
,
queryTaskData
,
enabledDs
,
enabledDs
,
selectCatalogueSortTypeData
:
{
data
:
selectCatalogueSortTypeData
}
,
selectCatalogueSortTypeData
,
taskOwnerLockingStrategy
taskOwnerLockingStrategy
}
=
props
;
}
=
props
;
...
...
dinky-web/src/pages/DataStudio/LeftContainer/Project/JobTree/index.tsx
View file @
2264db1c
...
@@ -66,7 +66,7 @@ const JobTree: React.FC<TreeProps & connect> = (props) => {
...
@@ -66,7 +66,7 @@ const JobTree: React.FC<TreeProps & connect> = (props) => {
const
{
const
{
project
:
{
data
:
projectData
,
expandKeys
,
selectKey
},
project
:
{
data
:
projectData
,
expandKeys
,
selectKey
},
catalogueSortType
:
{
data
:
catalogueSortTypeData
},
catalogueSortType
:
{
data
:
catalogueSortTypeData
},
selectCatalogueSortTypeData
:
{
data
:
selectCatalogueSortTypeData
}
,
selectCatalogueSortTypeData
,
onNodeClick
,
onNodeClick
,
style
,
style
,
height
,
height
,
...
@@ -146,7 +146,7 @@ const JobTree: React.FC<TreeProps & connect> = (props) => {
...
@@ -146,7 +146,7 @@ const JobTree: React.FC<TreeProps & connect> = (props) => {
// when sorted, change the icon display
// when sorted, change the icon display
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
selectCatalogueSortTypeData
.
sortValue
&&
selectCatalogueSortTypeData
.
sortType
)
{
if
(
selectCatalogueSortTypeData
?.
sortValue
&&
selectCatalogueSortTypeData
?
.
sortType
)
{
setSortState
((
prevState
)
=>
({
setSortState
((
prevState
)
=>
({
...
prevState
,
...
prevState
,
sortIconType
:
'link'
sortIconType
:
'link'
...
...
dinky-web/src/pages/DataStudio/LeftContainer/Project/ProjectTitle/index.tsx
View file @
2264db1c
...
@@ -33,7 +33,7 @@ import React, { useState } from 'react';
...
@@ -33,7 +33,7 @@ import React, { useState } from 'react';
const
ProjectTitle
:
React
.
FC
<
StateType
&
connect
>
=
(
props
)
=>
{
const
ProjectTitle
:
React
.
FC
<
StateType
&
connect
>
=
(
props
)
=>
{
const
{
const
{
leftContainer
:
{
selectKey
},
leftContainer
:
{
selectKey
},
selectCatalogueSortTypeData
:
{
data
:
selectCatalogueSortTypeData
}
,
selectCatalogueSortTypeData
,
dispatch
dispatch
}
=
props
;
}
=
props
;
...
...
dinky-web/src/pages/DataStudio/LeftContainer/Project/index.tsx
View file @
2264db1c
...
@@ -62,7 +62,7 @@ const Project: React.FC = (props: connect) => {
...
@@ -62,7 +62,7 @@ const Project: React.FC = (props: connect) => {
dispatch
,
dispatch
,
project
:
{
expandKeys
,
selectKey
},
project
:
{
expandKeys
,
selectKey
},
tabs
:
{
panes
,
activeKey
},
tabs
:
{
panes
,
activeKey
},
selectCatalogueSortTypeData
:
{
data
:
selectCatalogueSortTypeData
}
,
selectCatalogueSortTypeData
,
tabs
,
tabs
,
users
users
}
=
props
;
}
=
props
;
...
...
dinky-web/src/pages/DataStudio/index.tsx
View file @
2264db1c
...
@@ -70,7 +70,7 @@ const DataStudio: React.FC<connect> = (props: any) => {
...
@@ -70,7 +70,7 @@ const DataStudio: React.FC<connect> = (props: any) => {
activeBreadcrumbTitle
,
activeBreadcrumbTitle
,
updateSelectBottomSubKey
,
updateSelectBottomSubKey
,
tabs
:
{
panes
,
activeKey
},
tabs
:
{
panes
,
activeKey
},
selectCatalogueSortTypeData
:
{
data
:
selectCatalogueSortTypeData
}
,
selectCatalogueSortTypeData
,
queryUserData
,
queryUserData
,
queryTaskOwnerLockingStrategy
queryTaskOwnerLockingStrategy
}
=
props
;
}
=
props
;
...
...
dinky-web/src/pages/DevOps/JobList/index.tsx
View file @
2264db1c
...
@@ -61,6 +61,7 @@ import { Button, Empty, Radio, Table, Tree } from 'antd';
...
@@ -61,6 +61,7 @@ import { Button, Empty, Radio, Table, Tree } from 'antd';
import
Search
from
'antd/es/input/Search'
;
import
Search
from
'antd/es/input/Search'
;
import
{
Key
,
useContext
,
useEffect
,
useRef
,
useState
}
from
'react'
;
import
{
Key
,
useContext
,
useEffect
,
useRef
,
useState
}
from
'react'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
EllipsisMiddle
from
'@/components/Typography/EllipsisMiddle'
;
const
{
DirectoryTree
}
=
Tree
;
const
{
DirectoryTree
}
=
Tree
;
...
@@ -133,14 +134,19 @@ const JobList = (props: connect) => {
...
@@ -133,14 +134,19 @@ const JobList = (props: connect) => {
},
},
{
{
title
:
l
(
'global.table.firstLevelOwner'
),
title
:
l
(
'global.table.firstLevelOwner'
),
width
:
'5%'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
render
:
(
_
:
any
,
row
:
Jobs
.
JobInstance
)
=>
showFirstLevelOwner
(
row
?.
firstLevelOwner
,
users
)
render
:
(
_
:
any
,
row
:
Jobs
.
JobInstance
)
=>
showFirstLevelOwner
(
row
?.
firstLevelOwner
,
users
)
},
},
{
{
width
:
'8%'
,
title
:
l
(
'global.table.secondLevelOwners'
),
title
:
l
(
'global.table.secondLevelOwners'
),
hideInSearch
:
true
,
hideInSearch
:
true
,
render
:
(
_
:
any
,
row
:
Jobs
.
JobInstance
)
=>
render
:
(
_
:
any
,
row
:
Jobs
.
JobInstance
)
=>
(
showSecondLevelOwners
(
row
?.
secondLevelOwners
,
users
)
<
EllipsisMiddle
maxCount=
{
15
}
copyable=
{
false
}
>
{
showSecondLevelOwners
(
row
?.
secondLevelOwners
,
users
)
}
</
EllipsisMiddle
>
)
},
},
{
{
title
:
l
(
'global.table.createTime'
),
title
:
l
(
'global.table.createTime'
),
...
...
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