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
38d7b91e
Commit
38d7b91e
authored
Jul 29, 2020
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3904: Regression: Glossary term deatils page not able to render the classfication tab
parent
80efe926
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
6 deletions
+64
-6
ReplicationAuditTableLayoutView.js
.../public/js/views/audit/ReplicationAuditTableLayoutView.js
+2
-2
GlossaryDetailLayoutView.js
...rdv2/public/js/views/glossary/GlossaryDetailLayoutView.js
+30
-1
ReplicationAuditTableLayoutView.js
.../public/js/views/audit/ReplicationAuditTableLayoutView.js
+2
-2
GlossaryDetailLayoutView.js
...rdv3/public/js/views/glossary/GlossaryDetailLayoutView.js
+30
-1
No files found.
dashboardv2/public/js/views/audit/ReplicationAuditTableLayoutView.js
View file @
38d7b91e
...
...
@@ -29,7 +29,7 @@ define(['require',
'use strict'
;
var
ReplicationAuditTableLayoutView
=
Backbone
.
Marionette
.
LayoutView
.
extend
(
/** @lends
TagDetail
TableLayoutView */
/** @lends
ReplicationAudit
TableLayoutView */
{
_viewName
:
'ReplicationAuditTableLayoutView'
,
...
...
@@ -48,7 +48,7 @@ define(['require',
return
events
;
},
/**
* intialize a new
TagDetail
TableLayoutView Layout
* intialize a new
ReplicationAudit
TableLayoutView Layout
* @constructs
*/
initialize
:
function
(
options
)
{
...
...
dashboardv2/public/js/views/glossary/GlossaryDetailLayoutView.js
View file @
38d7b91e
...
...
@@ -232,7 +232,36 @@ define(['require',
if
(
that
.
isDestroyed
)
{
return
;
}
that
.
data
=
data
;
if
(
that
.
isTermView
)
{
var
tags
=
{
'self'
:
[],
'propagated'
:
[],
'propagatedMap'
:
{},
'combineMap'
:
{}
};
if
(
that
.
data
)
{
var
tagObject
=
that
.
data
.
classifications
;
_
.
each
(
tagObject
,
function
(
val
)
{
var
typeName
=
val
.
typeName
;
if
(
val
.
entityGuid
===
that
.
guid
)
{
tags
[
'self'
].
push
(
val
)
}
else
{
tags
[
'propagated'
].
push
(
val
);
if
(
tags
.
propagatedMap
[
typeName
])
{
tags
.
propagatedMap
[
typeName
][
"count"
]
+=
tags
.
propagatedMap
[
typeName
][
"count"
];
}
else
{
tags
.
propagatedMap
[
typeName
]
=
val
;
tags
.
propagatedMap
[
typeName
][
"count"
]
=
1
;
}
}
if
(
tags
.
combineMap
[
typeName
]
===
undefined
)
{
tags
.
combineMap
[
typeName
]
=
val
;
}
});
tags
.
self
=
_
.
sortBy
(
tags
.
self
,
"typeName"
);
tags
.
propagated
=
_
.
sortBy
(
tags
.
propagated
,
"typeName"
);
}
var
obj
=
{
"guid"
:
that
.
guid
,
"entityDefCollection"
:
that
.
entityDefCollection
,
...
...
@@ -242,6 +271,7 @@ define(['require',
"classificationDefCollection"
:
that
.
classificationDefCollection
,
"glossaryCollection"
:
that
.
glossaryCollection
,
"searchVent"
:
that
.
searchVent
,
"tags"
:
tags
,
"getSelectedTermAttribute"
:
function
()
{
return
that
.
selectedTermAttribute
;
},
...
...
@@ -253,7 +283,6 @@ define(['require',
that
.
renderTagTableLayoutView
(
obj
);
that
.
renderRelationLayoutView
(
obj
);
}
that
.
data
=
data
;
that
.
glossaryCollection
.
trigger
(
"data:updated"
,
$
.
extend
(
true
,
{},
data
));
that
.
glossary
.
selectedItem
.
model
=
data
;
that
.
glossary
.
selectedItem
.
guid
=
data
.
guid
;
...
...
dashboardv3/public/js/views/audit/ReplicationAuditTableLayoutView.js
View file @
38d7b91e
...
...
@@ -29,7 +29,7 @@ define(['require',
'use strict'
;
var
ReplicationAuditTableLayoutView
=
Backbone
.
Marionette
.
LayoutView
.
extend
(
/** @lends
TagDetail
TableLayoutView */
/** @lends
ReplicationAudit
TableLayoutView */
{
_viewName
:
'ReplicationAuditTableLayoutView'
,
...
...
@@ -48,7 +48,7 @@ define(['require',
return
events
;
},
/**
* intialize a new
TagDetail
TableLayoutView Layout
* intialize a new
ReplicationAudit
TableLayoutView Layout
* @constructs
*/
initialize
:
function
(
options
)
{
...
...
dashboardv3/public/js/views/glossary/GlossaryDetailLayoutView.js
View file @
38d7b91e
...
...
@@ -247,7 +247,36 @@ define(['require',
if
(
that
.
isDestroyed
)
{
return
;
}
that
.
data
=
data
;
if
(
that
.
isTermView
)
{
var
tags
=
{
'self'
:
[],
'propagated'
:
[],
'propagatedMap'
:
{},
'combineMap'
:
{}
};
if
(
that
.
data
)
{
var
tagObject
=
that
.
data
.
classifications
;
_
.
each
(
tagObject
,
function
(
val
)
{
var
typeName
=
val
.
typeName
;
if
(
val
.
entityGuid
===
that
.
guid
)
{
tags
[
'self'
].
push
(
val
)
}
else
{
tags
[
'propagated'
].
push
(
val
);
if
(
tags
.
propagatedMap
[
typeName
])
{
tags
.
propagatedMap
[
typeName
][
"count"
]
+=
tags
.
propagatedMap
[
typeName
][
"count"
];
}
else
{
tags
.
propagatedMap
[
typeName
]
=
val
;
tags
.
propagatedMap
[
typeName
][
"count"
]
=
1
;
}
}
if
(
tags
.
combineMap
[
typeName
]
===
undefined
)
{
tags
.
combineMap
[
typeName
]
=
val
;
}
});
tags
.
self
=
_
.
sortBy
(
tags
.
self
,
"typeName"
);
tags
.
propagated
=
_
.
sortBy
(
tags
.
propagated
,
"typeName"
);
}
var
obj
=
{
"guid"
:
that
.
guid
,
"entityDefCollection"
:
that
.
entityDefCollection
,
...
...
@@ -257,6 +286,7 @@ define(['require',
"classificationDefCollection"
:
that
.
classificationDefCollection
,
"glossaryCollection"
:
that
.
glossaryCollection
,
"searchVent"
:
that
.
searchVent
,
"tags"
:
tags
,
"getSelectedTermAttribute"
:
function
()
{
return
that
.
selectedTermAttribute
;
},
...
...
@@ -268,7 +298,6 @@ define(['require',
that
.
renderTagTableLayoutView
(
obj
);
that
.
renderRelationLayoutView
(
obj
);
}
that
.
data
=
data
;
that
.
glossaryCollection
.
trigger
(
"data:updated"
,
$
.
extend
(
true
,
{},
data
));
that
.
glossary
.
selectedItem
.
model
=
data
;
that
.
glossary
.
selectedItem
.
guid
=
data
.
guid
;
...
...
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