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
1099f1ba
Commit
1099f1ba
authored
7 years ago
by
Abhishek Kadam
Committed by
Sarath Subramanian
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2819: UI: Re-evaluate classification propagation during entity delete
Signed-off-by:
Sarath Subramanian
<
ssubramanian@hortonworks.com
>
parent
4c901bd0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
VTag.js
dashboardv2/public/js/models/VTag.js
+2
-2
CommonViewFunction.js
dashboardv2/public/js/utils/CommonViewFunction.js
+1
-1
UrlLinks.js
dashboardv2/public/js/utils/UrlLinks.js
+4
-4
TagDetailTableLayoutView.js
dashboardv2/public/js/views/tag/TagDetailTableLayoutView.js
+7
-5
No files found.
dashboardv2/public/js/models/VTag.js
View file @
1099f1ba
...
@@ -40,8 +40,8 @@ define(['require',
...
@@ -40,8 +40,8 @@ define(['require',
/*************************
/*************************
* Non - CRUD operations
* Non - CRUD operations
*************************/
*************************/
deleteAssociation
:
function
(
guid
,
name
,
options
)
{
deleteAssociation
:
function
(
guid
,
name
,
associatedGuid
,
options
)
{
var
url
=
UrlLinks
.
entitiesApiUrl
({
guid
:
guid
,
name
:
name
});
var
url
=
UrlLinks
.
entitiesApiUrl
({
guid
:
guid
,
name
:
name
,
associatedGuid
:
associatedGuid
});
options
=
_
.
extend
({
options
=
_
.
extend
({
contentType
:
'application/json'
,
contentType
:
'application/json'
,
dataType
:
'json'
dataType
:
'json'
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/utils/CommonViewFunction.js
View file @
1099f1ba
...
@@ -33,7 +33,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
...
@@ -33,7 +33,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
if
(
options
.
showLoader
)
{
if
(
options
.
showLoader
)
{
options
.
showLoader
();
options
.
showLoader
();
}
}
tagModel
.
deleteAssociation
(
options
.
guid
,
options
.
tagName
,
{
tagModel
.
deleteAssociation
(
options
.
guid
,
options
.
tagName
,
options
.
associatedGuid
,
{
skipDefaultError
:
true
,
skipDefaultError
:
true
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
Utils
.
notifySuccess
({
Utils
.
notifySuccess
({
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/utils/UrlLinks.js
View file @
1099f1ba
...
@@ -52,9 +52,12 @@ define(['require', 'utils/Enums', 'utils/Utils', 'underscore'], function(require
...
@@ -52,9 +52,12 @@ define(['require', 'utils/Enums', 'utils/Utils', 'underscore'], function(require
var
entitiesUrl
=
this
.
baseUrlV2
+
'/entity'
;
var
entitiesUrl
=
this
.
baseUrlV2
+
'/entity'
;
if
(
options
)
{
if
(
options
)
{
var
guid
=
options
.
guid
,
var
guid
=
options
.
guid
,
associatedGuid
=
options
.
associatedGuid
,
name
=
options
.
name
,
name
=
options
.
name
,
minExtInfo
=
options
.
minExtInfo
;
minExtInfo
=
options
.
minExtInfo
;
if
(
guid
&&
name
)
{
if
(
guid
&&
name
&&
associatedGuid
)
{
return
entitiesUrl
+
'/guid/'
+
guid
+
'/classification/'
+
name
+
'?associatedEntityGuid='
+
associatedGuid
;
}
else
if
(
guid
&&
name
)
{
entitiesUrl
+=
'/guid/'
+
guid
+
'/classification/'
+
name
;
entitiesUrl
+=
'/guid/'
+
guid
+
'/classification/'
+
name
;
}
else
if
(
guid
&&
!
name
)
{
}
else
if
(
guid
&&
!
name
)
{
entitiesUrl
+=
'/guid/'
+
guid
;
entitiesUrl
+=
'/guid/'
+
guid
;
...
@@ -81,9 +84,6 @@ define(['require', 'utils/Enums', 'utils/Utils', 'underscore'], function(require
...
@@ -81,9 +84,6 @@ define(['require', 'utils/Enums', 'utils/Utils', 'underscore'], function(require
entityCollectionaudit
:
function
(
guid
)
{
entityCollectionaudit
:
function
(
guid
)
{
return
this
.
baseUrlV2
+
'/entity/'
+
guid
+
'/audit'
;
return
this
.
baseUrlV2
+
'/entity/'
+
guid
+
'/audit'
;
},
},
replicationCollectionaudit
:
function
(
name
)
{
return
this
.
baseUrl
+
'/admin/cluster/audit/'
+
name
;
},
classicationApiUrl
:
function
(
name
,
guid
)
{
classicationApiUrl
:
function
(
name
,
guid
)
{
var
typeUrl
=
this
.
typedefsUrl
();
var
typeUrl
=
this
.
typedefsUrl
();
if
(
name
)
{
if
(
name
)
{
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/tag/TagDetailTableLayoutView.js
View file @
1099f1ba
...
@@ -156,7 +156,7 @@ define(['require',
...
@@ -156,7 +156,7 @@ define(['require',
if
(
sortedObj
.
typeName
===
"date"
)
{
if
(
sortedObj
.
typeName
===
"date"
)
{
val
=
new
Date
(
val
)
val
=
new
Date
(
val
)
}
}
stringValue
+=
"<tr><td class='html-cell string-cell renderable'>"
+
_
.
escape
(
key
)
+
"</td><td class='html-cell string-cell renderable' data-type='"
+
sortedObj
.
typeName
+
"'>"
+
_
.
escape
(
val
)
+
"</td>"
;
stringValue
+=
"<tr><td class='html-cell string-cell renderable'>"
+
_
.
escape
(
key
)
+
"</td><td class='html-cell string-cell renderable' data-type='"
+
sortedObj
.
typeName
+
"'>"
+
_
.
escape
(
val
)
+
"</td>"
;
});
});
tagValue
=
"<div class='mainAttrTable'><table class='attriTable'><tr><th class='html-cell string-cell renderable'>Name</th><th class='html-cell string-cell renderable'>Value</th>"
+
stringValue
+
"</table></div>"
;
tagValue
=
"<div class='mainAttrTable'><table class='attriTable'><tr><th class='html-cell string-cell renderable'>Name</th><th class='html-cell string-cell renderable'>Value</th>"
+
stringValue
+
"</table></div>"
;
}
}
...
@@ -171,13 +171,13 @@ define(['require',
...
@@ -171,13 +171,13 @@ define(['require',
sortable
:
false
,
sortable
:
false
,
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
fromRaw
:
function
(
rawValue
,
model
)
{
var
deleteData
=
'<button title="Delete" class="btn btn-action btn-sm" data-id="delete" data-name="'
+
model
.
get
(
'typeName'
)
+
'"><i class="fa fa-trash"></i></button>'
,
var
deleteData
=
'<button title="Delete" class="btn btn-action btn-sm" data-id="delete" data-
entityguid="'
+
model
.
get
(
'entityGuid'
)
+
'" data-
name="'
+
model
.
get
(
'typeName'
)
+
'"><i class="fa fa-trash"></i></button>'
,
editData
=
'<button title="Edit" class="btn btn-action btn-sm" data-id="edit" data-name="'
+
model
.
get
(
'typeName'
)
+
'"><i class="fa fa-pencil"></i></button>'
,
editData
=
'<button title="Edit" class="btn btn-action btn-sm" data-id="edit" data-name="'
+
model
.
get
(
'typeName'
)
+
'"><i class="fa fa-pencil"></i></button>'
,
btnObj
=
null
;
btnObj
=
null
;
if
(
that
.
guid
===
model
.
get
(
'entityGuid'
))
{
if
(
that
.
guid
===
model
.
get
(
'entityGuid'
))
{
return
'<div class="btn-inline">'
+
deleteData
+
editData
+
'</div>'
return
'<div class="btn-inline">'
+
deleteData
+
editData
+
'</div>'
}
else
{
}
else
if
(
that
.
guid
!==
model
.
get
(
'entityGuid'
)
&&
model
.
get
(
'entityStatus'
)
===
"DELETED"
)
{
return
;
return
'<div class="btn-inline">'
+
deleteData
+
'</div>'
;
}
}
}
}
})
})
...
@@ -198,10 +198,12 @@ define(['require',
...
@@ -198,10 +198,12 @@ define(['require',
},
},
onClickTagCross
:
function
(
e
)
{
onClickTagCross
:
function
(
e
)
{
var
that
=
this
,
var
that
=
this
,
tagName
=
$
(
e
.
currentTarget
).
data
(
"name"
);
tagName
=
$
(
e
.
currentTarget
).
data
(
"name"
),
entityGuid
=
$
(
e
.
currentTarget
).
data
(
"entityguid"
);
CommonViewFunction
.
deleteTag
({
CommonViewFunction
.
deleteTag
({
tagName
:
tagName
,
tagName
:
tagName
,
guid
:
that
.
guid
,
guid
:
that
.
guid
,
associatedGuid
:
that
.
guid
!=
entityGuid
?
entityGuid
:
null
,
msg
:
"<div class='ellipsis'>Remove: "
+
"<b>"
+
_
.
escape
(
tagName
)
+
"</b> assignment from"
+
" "
+
"<b>"
+
this
.
entityName
+
"?</b></div>"
,
msg
:
"<div class='ellipsis'>Remove: "
+
"<b>"
+
_
.
escape
(
tagName
)
+
"</b> assignment from"
+
" "
+
"<b>"
+
this
.
entityName
+
"?</b></div>"
,
titleMessage
:
Messages
.
removeTag
,
titleMessage
:
Messages
.
removeTag
,
okText
:
"Remove"
,
okText
:
"Remove"
,
...
...
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