Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amundsen_dev
Project
Project
Details
Activity
Releases
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
Surendar Reddy Mangannagari
amundsen_dev
Commits
83b14de1
Unverified
Commit
83b14de1
authored
Nov 20, 2019
by
Daniel
Committed by
GitHub
Nov 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added `row` and `()` to possible nested columns (#347)
* Added `row` and `()` to possible nested columns
parent
f8e129a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
index.tsx
...static/js/components/TableDetail/ColumnListItem/index.tsx
+9
-2
styles.scss
...atic/js/components/TableDetail/ColumnListItem/styles.scss
+1
-0
No files found.
amundsen_application/static/js/components/TableDetail/ColumnListItem/index.tsx
View file @
83b14de1
...
@@ -58,7 +58,7 @@ export class ColumnListItem extends React.Component<ColumnListItemProps, ColumnL
...
@@ -58,7 +58,7 @@ export class ColumnListItem extends React.Component<ColumnListItemProps, ColumnL
};
};
renderColumnType
=
(
columnIndex
:
number
,
type
:
string
)
=>
{
renderColumnType
=
(
columnIndex
:
number
,
type
:
string
)
=>
{
const
truncatedTypes
:
string
[]
=
[
'array'
,
'struct'
,
'map'
];
const
truncatedTypes
:
string
[]
=
[
'array'
,
'struct'
,
'map'
,
'row'
];
let
shouldTrucate
=
false
;
let
shouldTrucate
=
false
;
const
fullText
=
type
.
toLowerCase
();
const
fullText
=
type
.
toLowerCase
();
...
@@ -67,7 +67,14 @@ export class ColumnListItem extends React.Component<ColumnListItemProps, ColumnL
...
@@ -67,7 +67,14 @@ export class ColumnListItem extends React.Component<ColumnListItemProps, ColumnL
truncatedTypes
.
forEach
((
truncatedType
)
=>
{
truncatedTypes
.
forEach
((
truncatedType
)
=>
{
if
(
type
.
startsWith
(
truncatedType
)
&&
type
!==
truncatedType
)
{
if
(
type
.
startsWith
(
truncatedType
)
&&
type
!==
truncatedType
)
{
shouldTrucate
=
true
;
shouldTrucate
=
true
;
text
=
`
${
truncatedType
}
<...>`
;
const
lastChar
=
type
.
charAt
(
type
.
length
-
1
);
if
(
lastChar
===
'>'
){
text
=
`
${
truncatedType
}
<...>`
;
}
else
if
(
lastChar
===
')'
)
{
text
=
`
${
truncatedType
}
(...)`
;
}
else
{
text
=
`
${
truncatedType
}
...`
;
}
return
;
return
;
};
};
});
});
...
...
amundsen_application/static/js/components/TableDetail/ColumnListItem/styles.scss
View file @
83b14de1
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
.resource-type
{
.resource-type
{
flex-basis
:
100px
;
flex-basis
:
100px
;
overflow
:
hidden
;
}
}
.badges
{
.badges
{
// placeholder
// placeholder
...
...
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