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
346d051e
Unverified
Commit
346d051e
authored
Jan 14, 2024
by
gaoyan
Committed by
GitHub
Jan 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix-2793] Fix Catalog NPE (#3004)
Co-authored-by:
gaoyan1998
<
gaoyan1998@users.noreply.github.com
>
parent
cf37b0bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
15 deletions
+12
-15
AbstractStatementDTO.java
...rc/main/java/org/dinky/data/dto/AbstractStatementDTO.java
+3
-2
index.tsx
dinky-web/src/pages/DataStudio/HeaderContainer/index.tsx
+1
-2
index.tsx
...-web/src/pages/DataStudio/LeftContainer/Catalog/index.tsx
+0
-0
index.tsx
...b/src/pages/DataStudio/LeftContainer/DataSource/index.tsx
+2
-2
index.tsx
...rceDetail/RightTagsRouter/SchemaDesc/ColumnInfo/index.tsx
+1
-1
index.tsx
...nts/DataSourceDetail/RightTagsRouter/SchemaDesc/index.tsx
+5
-8
No files found.
dinky-admin/src/main/java/org/dinky/data/dto/AbstractStatementDTO.java
View file @
346d051e
...
...
@@ -19,6 +19,7 @@
package
org
.
dinky
.
data
.
dto
;
import
java.util.HashMap
;
import
java.util.Map
;
import
io.swagger.annotations.ApiModel
;
...
...
@@ -41,12 +42,12 @@ public class AbstractStatementDTO {
private
Integer
envId
;
@ApiModelProperty
(
value
=
"Fragment Flag"
,
dataType
=
"boolean"
,
example
=
"false"
,
notes
=
"是否为片段"
)
private
Boolean
fragment
;
private
Boolean
fragment
=
false
;
@ApiModelProperty
(
value
=
"Variables"
,
dataType
=
"Map<String, String>"
,
example
=
"{\"key\": \"value\"}"
,
notes
=
"变量集合"
)
private
Map
<
String
,
String
>
variables
;
private
Map
<
String
,
String
>
variables
=
new
HashMap
<>()
;
}
dinky-web/src/pages/DataStudio/HeaderContainer/index.tsx
View file @
346d051e
...
...
@@ -366,8 +366,7 @@ const HeaderContainer = (props: connect) => {
// 发布按钮
icon
:
isOnline
(
currentData
)
?
<
MergeCellsOutlined
/>
:
<
FundOutlined
/>,
title
:
isOnline
(
currentData
)
?
l
(
'button.offline'
)
:
l
(
'button.publish'
),
isShow
:
(
currentTab
?.
type
==
TabsPageType
.
project
),
isShow
:
currentTab
?.
type
==
TabsPageType
.
project
,
click
:
()
=>
handleChangeJobLife
()
},
{
...
...
dinky-web/src/pages/DataStudio/LeftContainer/Catalog/index.tsx
View file @
346d051e
This diff is collapsed.
Click to expand it.
dinky-web/src/pages/DataStudio/LeftContainer/DataSource/index.tsx
View file @
346d051e
...
...
@@ -29,7 +29,7 @@ import { Key, ProForm, ProFormSelect } from '@ant-design/pro-components';
import
{
connect
}
from
'@umijs/max'
;
import
{
Spin
,
Tag
}
from
'antd'
;
import
{
useEffect
,
useState
}
from
'react'
;
import
{
StateType
,
STUDIO_MODEL
}
from
'../../model'
;
import
{
StateType
,
STUDIO_MODEL
,
TabsPageType
}
from
'../../model'
;
import
{
clearDataSourceTable
,
getDataSourceList
,
showDataSourceTable
}
from
'./service'
;
const
DataSource
=
(
props
:
any
)
=>
{
...
...
@@ -161,7 +161,7 @@ const DataSource = (props: any) => {
breadcrumbLabel
:
[
selectDb
.
type
,
selectDb
.
name
].
join
(
'/'
),
label
:
schemaName
+
'.'
+
tableName
,
params
:
{
queryParams
:
queryParams
,
tableInfo
:
fullInfo
},
type
:
'metadata'
type
:
TabsPageType
.
metadata
}
});
};
...
...
dinky-web/src/pages/RegCenter/DataSource/components/DataSourceDetail/RightTagsRouter/SchemaDesc/ColumnInfo/index.tsx
View file @
346d051e
...
...
@@ -84,7 +84,7 @@ const ColumnInfo: React.FC<ColumnInfoProps> = (props) => {
{
title
:
l
(
'rc.ds.length'
),
dataIndex
:
'length'
,
width
:
'
4
%'
width
:
'
6
%'
},
{
title
:
l
(
'rc.ds.precision'
),
...
...
dinky-web/src/pages/RegCenter/DataSource/components/DataSourceDetail/RightTagsRouter/SchemaDesc/index.tsx
View file @
346d051e
...
...
@@ -25,8 +25,8 @@ import { Empty } from 'antd';
import
React
from
'react'
;
type
SchemaDescProps
=
{
tableInfo
:
Partial
<
DataSources
.
Table
>
;
tableColumns
:
Partial
<
DataSources
.
Column
[]
>
;
tableInfo
?
:
Partial
<
DataSources
.
Table
>
;
tableColumns
?
:
Partial
<
DataSources
.
Column
[]
>
;
};
const
SchemaDesc
:
React
.
FC
<
SchemaDescProps
>
=
(
props
)
=>
{
...
...
@@ -34,12 +34,9 @@ const SchemaDesc: React.FC<SchemaDescProps> = (props) => {
return
(
<>
{
!
(
Object
.
keys
(
tableInfo
).
length
===
0
&&
tableColumns
.
length
===
0
)
?
(
<>
<
TableInfo
tableInfo=
{
tableInfo
}
/>
<
ColumnInfo
columnInfo=
{
tableColumns
}
/>
</>
)
:
(
{
tableInfo
&&
<
TableInfo
tableInfo=
{
tableInfo
}
/>
}
{
tableColumns
&&
<
ColumnInfo
columnInfo=
{
tableColumns
}
/>
}
{
!
tableInfo
&&
!
tableColumns
&&
(
<
Empty
className=
{
'code-content-empty'
}
description=
{
l
(
'rc.ds.detail.tips'
)
}
/>
)
}
</>
...
...
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