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
4 years ago
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',
...
@@ -29,7 +29,7 @@ define(['require',
'use strict'
;
'use strict'
;
var
ReplicationAuditTableLayoutView
=
Backbone
.
Marionette
.
LayoutView
.
extend
(
var
ReplicationAuditTableLayoutView
=
Backbone
.
Marionette
.
LayoutView
.
extend
(
/** @lends
TagDetail
TableLayoutView */
/** @lends
ReplicationAudit
TableLayoutView */
{
{
_viewName
:
'ReplicationAuditTableLayoutView'
,
_viewName
:
'ReplicationAuditTableLayoutView'
,
...
@@ -48,7 +48,7 @@ define(['require',
...
@@ -48,7 +48,7 @@ define(['require',
return
events
;
return
events
;
},
},
/**
/**
* intialize a new
TagDetail
TableLayoutView Layout
* intialize a new
ReplicationAudit
TableLayoutView Layout
* @constructs
* @constructs
*/
*/
initialize
:
function
(
options
)
{
initialize
:
function
(
options
)
{
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/glossary/GlossaryDetailLayoutView.js
View file @
38d7b91e
...
@@ -232,7 +232,36 @@ define(['require',
...
@@ -232,7 +232,36 @@ define(['require',
if
(
that
.
isDestroyed
)
{
if
(
that
.
isDestroyed
)
{
return
;
return
;
}
}
that
.
data
=
data
;
if
(
that
.
isTermView
)
{
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
=
{
var
obj
=
{
"guid"
:
that
.
guid
,
"guid"
:
that
.
guid
,
"entityDefCollection"
:
that
.
entityDefCollection
,
"entityDefCollection"
:
that
.
entityDefCollection
,
...
@@ -242,6 +271,7 @@ define(['require',
...
@@ -242,6 +271,7 @@ define(['require',
"classificationDefCollection"
:
that
.
classificationDefCollection
,
"classificationDefCollection"
:
that
.
classificationDefCollection
,
"glossaryCollection"
:
that
.
glossaryCollection
,
"glossaryCollection"
:
that
.
glossaryCollection
,
"searchVent"
:
that
.
searchVent
,
"searchVent"
:
that
.
searchVent
,
"tags"
:
tags
,
"getSelectedTermAttribute"
:
function
()
{
"getSelectedTermAttribute"
:
function
()
{
return
that
.
selectedTermAttribute
;
return
that
.
selectedTermAttribute
;
},
},
...
@@ -253,7 +283,6 @@ define(['require',
...
@@ -253,7 +283,6 @@ define(['require',
that
.
renderTagTableLayoutView
(
obj
);
that
.
renderTagTableLayoutView
(
obj
);
that
.
renderRelationLayoutView
(
obj
);
that
.
renderRelationLayoutView
(
obj
);
}
}
that
.
data
=
data
;
that
.
glossaryCollection
.
trigger
(
"data:updated"
,
$
.
extend
(
true
,
{},
data
));
that
.
glossaryCollection
.
trigger
(
"data:updated"
,
$
.
extend
(
true
,
{},
data
));
that
.
glossary
.
selectedItem
.
model
=
data
;
that
.
glossary
.
selectedItem
.
model
=
data
;
that
.
glossary
.
selectedItem
.
guid
=
data
.
guid
;
that
.
glossary
.
selectedItem
.
guid
=
data
.
guid
;
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/audit/ReplicationAuditTableLayoutView.js
View file @
38d7b91e
...
@@ -29,7 +29,7 @@ define(['require',
...
@@ -29,7 +29,7 @@ define(['require',
'use strict'
;
'use strict'
;
var
ReplicationAuditTableLayoutView
=
Backbone
.
Marionette
.
LayoutView
.
extend
(
var
ReplicationAuditTableLayoutView
=
Backbone
.
Marionette
.
LayoutView
.
extend
(
/** @lends
TagDetail
TableLayoutView */
/** @lends
ReplicationAudit
TableLayoutView */
{
{
_viewName
:
'ReplicationAuditTableLayoutView'
,
_viewName
:
'ReplicationAuditTableLayoutView'
,
...
@@ -48,7 +48,7 @@ define(['require',
...
@@ -48,7 +48,7 @@ define(['require',
return
events
;
return
events
;
},
},
/**
/**
* intialize a new
TagDetail
TableLayoutView Layout
* intialize a new
ReplicationAudit
TableLayoutView Layout
* @constructs
* @constructs
*/
*/
initialize
:
function
(
options
)
{
initialize
:
function
(
options
)
{
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/glossary/GlossaryDetailLayoutView.js
View file @
38d7b91e
...
@@ -247,7 +247,36 @@ define(['require',
...
@@ -247,7 +247,36 @@ define(['require',
if
(
that
.
isDestroyed
)
{
if
(
that
.
isDestroyed
)
{
return
;
return
;
}
}
that
.
data
=
data
;
if
(
that
.
isTermView
)
{
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
=
{
var
obj
=
{
"guid"
:
that
.
guid
,
"guid"
:
that
.
guid
,
"entityDefCollection"
:
that
.
entityDefCollection
,
"entityDefCollection"
:
that
.
entityDefCollection
,
...
@@ -257,6 +286,7 @@ define(['require',
...
@@ -257,6 +286,7 @@ define(['require',
"classificationDefCollection"
:
that
.
classificationDefCollection
,
"classificationDefCollection"
:
that
.
classificationDefCollection
,
"glossaryCollection"
:
that
.
glossaryCollection
,
"glossaryCollection"
:
that
.
glossaryCollection
,
"searchVent"
:
that
.
searchVent
,
"searchVent"
:
that
.
searchVent
,
"tags"
:
tags
,
"getSelectedTermAttribute"
:
function
()
{
"getSelectedTermAttribute"
:
function
()
{
return
that
.
selectedTermAttribute
;
return
that
.
selectedTermAttribute
;
},
},
...
@@ -268,7 +298,6 @@ define(['require',
...
@@ -268,7 +298,6 @@ define(['require',
that
.
renderTagTableLayoutView
(
obj
);
that
.
renderTagTableLayoutView
(
obj
);
that
.
renderRelationLayoutView
(
obj
);
that
.
renderRelationLayoutView
(
obj
);
}
}
that
.
data
=
data
;
that
.
glossaryCollection
.
trigger
(
"data:updated"
,
$
.
extend
(
true
,
{},
data
));
that
.
glossaryCollection
.
trigger
(
"data:updated"
,
$
.
extend
(
true
,
{},
data
));
that
.
glossary
.
selectedItem
.
model
=
data
;
that
.
glossary
.
selectedItem
.
model
=
data
;
that
.
glossary
.
selectedItem
.
guid
=
data
.
guid
;
that
.
glossary
.
selectedItem
.
guid
=
data
.
guid
;
...
...
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