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
63a0be26
Commit
63a0be26
authored
May 18, 2018
by
kevalbhatt
Committed by
Madhan Neethiraj
May 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2699: updated UI to use V2 audit API
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
9044e037
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
Enums.js
dashboardv2/public/js/utils/Enums.js
+6
-6
UrlLinks.js
dashboardv2/public/js/utils/UrlLinks.js
+1
-1
CreateAuditTableLayoutView.js
...ardv2/public/js/views/audit/CreateAuditTableLayoutView.js
+2
-3
No files found.
dashboardv2/public/js/utils/Enums.js
View file @
63a0be26
...
...
@@ -25,12 +25,12 @@ define(['require'], function(require) {
ENTITY_CREATE
:
"Entity Created"
,
ENTITY_UPDATE
:
"Entity Updated"
,
ENTITY_DELETE
:
"Entity Deleted"
,
TAG
_ADD
:
"Classification Added"
,
TAG
_DELETE
:
"Classification Deleted"
,
TAG
_UPDATE
:
"Classification Updated"
,
PROPAGATED_
TAG
_ADD
:
"Propagated Classification Added"
,
PROPAGATED_
TAG
_DELETE
:
"Propagated Classification Deleted"
,
PROPAGATED_
TAG
_UPDATE
:
"Propagated Classification Updated"
,
CLASSIFICATION
_ADD
:
"Classification Added"
,
CLASSIFICATION
_DELETE
:
"Classification Deleted"
,
CLASSIFICATION
_UPDATE
:
"Classification Updated"
,
PROPAGATED_
CLASSIFICATION
_ADD
:
"Propagated Classification Added"
,
PROPAGATED_
CLASSIFICATION
_DELETE
:
"Propagated Classification Deleted"
,
PROPAGATED_
CLASSIFICATION
_UPDATE
:
"Propagated Classification Updated"
,
ENTITY_IMPORT_CREATE
:
"Entity Created by import"
,
ENTITY_IMPORT_UPDATE
:
"Entity Updated by import"
,
ENTITY_IMPORT_DELETE
:
"Entity Deleted by import"
...
...
dashboardv2/public/js/utils/UrlLinks.js
View file @
63a0be26
...
...
@@ -67,7 +67,7 @@ define(['require', 'utils/Enums', 'utils/Utils', 'underscore'], function(require
}
},
entityCollectionaudit
:
function
(
guid
)
{
return
this
.
baseUrl
+
'/entities
/'
+
guid
+
'/audit'
;
return
this
.
baseUrl
V2
+
'/entity
/'
+
guid
+
'/audit'
;
},
classicationApiUrl
:
function
(
name
,
guid
)
{
var
typeUrl
=
this
.
typedefsUrl
();
...
...
dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js
View file @
63a0be26
...
...
@@ -79,12 +79,11 @@ define(['require',
var
name
=
_
.
escape
(
parseDetailsObject
[
0
]);
}
}
var
values
=
parseDetailsObject
.
values
;
var
name
=
((
name
?
name
:
this
.
entityName
));
this
.
ui
.
name
.
text
(
name
);
if
(
parseDetailsObject
&&
parseDetailsObject
.
values
)
{
if
(
parseDetailsObject
)
{
this
.
ui
.
auditHeaderValue
.
html
(
'<th>Key</th><th>New Value</th>'
);
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
values
,
attributeDefs
:
this
.
attributeDefs
,
extractJSON
:
{
extractKey
:
'value'
}
});
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
parseDetailsObject
,
attributeDefs
:
this
.
attributeDefs
,
extractJSON
:
{
extractKey
:
'value'
}
});
if
(
table
.
length
)
{
this
.
ui
.
noData
.
hide
();
this
.
ui
.
tableAudit
.
show
();
...
...
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