Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
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
dataplatform
atlas
Commits
94d43c63
Commit
94d43c63
authored
4 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3990: UI: When user clicks to view hive-table details, shown some wrong tabs
parent
080e4843
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
34 deletions
+84
-34
DetailPageLayoutView.js
...ardv2/public/js/views/detail_page/DetailPageLayoutView.js
+42
-17
DetailPageLayoutView.js
...ardv3/public/js/views/detail_page/DetailPageLayoutView.js
+42
-17
No files found.
dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
View file @
94d43c63
...
...
@@ -326,6 +326,9 @@ define(['require',
typeName
:
collectionJSON
.
typeName
,
value
:
that
.
value
}));
}
else
{
this
.
$
(
'.profileTab'
).
hide
();
this
.
redirectToDefaultTab
(
"profile"
);
}
if
(
this
.
activeEntityDef
)
{
...
...
@@ -333,6 +336,9 @@ define(['require',
if
(
collectionJSON
&&
collectionJSON
.
typeName
===
"AtlasServer"
)
{
this
.
$
(
'.replicationTab'
).
show
();
this
.
renderReplicationAuditTableLayoutView
(
obj
);
}
else
{
this
.
$
(
'.replicationTab'
).
hide
();
this
.
redirectToDefaultTab
(
"raudits"
);
}
// To render Schema check attribute "schemaElementsAttribute"
var
schemaOptions
=
this
.
activeEntityDef
.
get
(
'options'
);
...
...
@@ -342,14 +348,9 @@ define(['require',
this
.
renderSchemaLayoutView
(
_
.
extend
({},
obj
,
{
attribute
:
collectionJSON
.
relationshipAttributes
[
schemaElementsAttribute
]
||
collectionJSON
.
attributes
[
schemaElementsAttribute
]
}));
}
else
if
(
this
.
value
&&
this
.
value
.
tabActive
==
"schema"
)
{
Utils
.
setUrl
({
url
:
Utils
.
getUrlState
.
getQueryUrl
().
queyParams
[
0
],
urlParams
:
{
tabActive
:
'properties'
},
mergeBrowserUrl
:
false
,
trigger
:
true
,
updateTabState
:
true
});
}
else
{
this
.
$
(
'.schemaTable'
).
hide
();
this
.
redirectToDefaultTab
(
"schema"
);
}
if
(
isLineageRender
)
{
...
...
@@ -358,18 +359,12 @@ define(['require',
processCheck
:
isProcess
,
fetchCollection
:
this
.
fetchCollection
.
bind
(
this
),
}));
}
else
if
(
this
.
value
&&
this
.
value
.
tabActive
==
"lineage"
)
{
Utils
.
setUrl
({
url
:
Utils
.
getUrlState
.
getQueryUrl
().
queyParams
[
0
],
urlParams
:
{
tabActive
:
'properties'
},
mergeBrowserUrl
:
false
,
trigger
:
true
,
updateTabState
:
true
});
}
else
{
this
.
$
(
'.lineageGraph'
).
hide
();
this
.
redirectToDefaultTab
(
"lineage"
);
}
}
},
this
);
this
.
listenTo
(
this
.
collection
,
'error'
,
function
(
model
,
response
)
{
this
.
$
(
'.fontLoader-relative'
).
removeClass
(
'show'
);
...
...
@@ -386,6 +381,36 @@ define(['require',
Utils
.
showTitleLoader
(
this
.
$
(
'.page-title .fontLoader'
),
this
.
$
(
'.entityDetail'
));
this
.
$
(
'.fontLoader-relative'
).
addClass
(
'show'
);
// to show tab loader
},
redirectToDefaultTab
:
function
(
tabName
)
{
var
regionRef
=
null
;
switch
(
tabName
)
{
case
"schema"
:
regionRef
=
this
.
RSchemaTableLayoutView
;
break
;
case
"lineage"
:
regionRef
=
this
.
RLineageLayoutView
;
break
;
case
"raudits"
:
regionRef
=
this
.
RReplicationAuditTableLayoutView
;
break
;
case
"profile"
:
regionRef
=
this
.
RProfileLayoutView
;
break
;
}
if
(
regionRef
)
{
regionRef
.
destroy
();
regionRef
.
$el
.
empty
();
}
if
(
this
.
value
&&
this
.
value
.
tabActive
==
tabName
||
this
.
$
(
".tab-content .tab-pane.active"
).
attr
(
"role"
)
===
tabName
)
{
Utils
.
setUrl
({
url
:
Utils
.
getUrlState
.
getQueryUrl
().
queyParams
[
0
],
urlParams
:
{
tabActive
:
'properties'
},
mergeBrowserUrl
:
false
,
trigger
:
true
,
updateTabState
:
true
});
}
},
manualRender
:
function
(
options
)
{
if
(
options
)
{
var
oldId
=
this
.
id
;
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/detail_page/DetailPageLayoutView.js
View file @
94d43c63
...
...
@@ -330,6 +330,9 @@ define(['require',
typeName
:
collectionJSON
.
typeName
,
value
:
that
.
value
}));
}
else
{
this
.
$
(
'.profileTab'
).
hide
();
this
.
redirectToDefaultTab
(
"profile"
);
}
if
(
this
.
activeEntityDef
)
{
...
...
@@ -337,6 +340,9 @@ define(['require',
if
(
collectionJSON
&&
collectionJSON
.
typeName
===
"AtlasServer"
)
{
this
.
$
(
'.replicationTab'
).
show
();
this
.
renderReplicationAuditTableLayoutView
(
obj
);
}
else
{
this
.
$
(
'.replicationTab'
).
hide
();
this
.
redirectToDefaultTab
(
"raudits"
);
}
// To render Schema check attribute "schemaElementsAttribute"
var
schemaOptions
=
this
.
activeEntityDef
.
get
(
'options'
);
...
...
@@ -346,14 +352,9 @@ define(['require',
this
.
renderSchemaLayoutView
(
_
.
extend
({},
obj
,
{
attribute
:
collectionJSON
.
relationshipAttributes
[
schemaElementsAttribute
]
||
collectionJSON
.
attributes
[
schemaElementsAttribute
]
}));
}
else
if
(
this
.
value
&&
this
.
value
.
tabActive
==
"schema"
)
{
Utils
.
setUrl
({
url
:
Utils
.
getUrlState
.
getQueryUrl
().
queyParams
[
0
],
urlParams
:
{
tabActive
:
'properties'
},
mergeBrowserUrl
:
false
,
trigger
:
true
,
updateTabState
:
true
});
}
else
{
this
.
$
(
'.schemaTable'
).
hide
();
this
.
redirectToDefaultTab
(
"schema"
);
}
if
(
isLineageRender
)
{
...
...
@@ -362,18 +363,12 @@ define(['require',
processCheck
:
isProcess
,
fetchCollection
:
this
.
fetchCollection
.
bind
(
this
),
}));
}
else
if
(
this
.
value
&&
this
.
value
.
tabActive
==
"lineage"
)
{
Utils
.
setUrl
({
url
:
Utils
.
getUrlState
.
getQueryUrl
().
queyParams
[
0
],
urlParams
:
{
tabActive
:
'properties'
},
mergeBrowserUrl
:
false
,
trigger
:
true
,
updateTabState
:
true
});
}
else
{
this
.
$
(
'.lineageGraph'
).
hide
();
this
.
redirectToDefaultTab
(
"lineage"
);
}
}
},
this
);
this
.
listenTo
(
this
.
collection
,
'error'
,
function
(
model
,
response
)
{
this
.
$
(
'.fontLoader-relative'
).
removeClass
(
'show'
);
...
...
@@ -390,6 +385,36 @@ define(['require',
Utils
.
showTitleLoader
(
this
.
$
(
'.page-title .fontLoader'
),
this
.
$
(
'.entityDetail'
));
this
.
$
(
'.fontLoader-relative'
).
addClass
(
'show'
);
// to show tab loader
},
redirectToDefaultTab
:
function
(
tabName
)
{
var
regionRef
=
null
;
switch
(
tabName
)
{
case
"schema"
:
regionRef
=
this
.
RSchemaTableLayoutView
;
break
;
case
"lineage"
:
regionRef
=
this
.
RLineageLayoutView
;
break
;
case
"raudits"
:
regionRef
=
this
.
RReplicationAuditTableLayoutView
;
break
;
case
"profile"
:
regionRef
=
this
.
RProfileLayoutView
;
break
;
}
if
(
regionRef
)
{
regionRef
.
destroy
();
regionRef
.
$el
.
empty
();
}
if
(
this
.
value
&&
this
.
value
.
tabActive
==
tabName
||
this
.
$
(
".tab-content .tab-pane.active"
).
attr
(
"role"
)
===
tabName
)
{
Utils
.
setUrl
({
url
:
Utils
.
getUrlState
.
getQueryUrl
().
queyParams
[
0
],
urlParams
:
{
tabActive
:
'properties'
},
mergeBrowserUrl
:
false
,
trigger
:
true
,
updateTabState
:
true
});
}
},
manualRender
:
function
(
options
)
{
if
(
options
)
{
var
oldId
=
this
.
id
;
...
...
This diff is collapsed.
Click to expand it.
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