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
b57420cd
Commit
b57420cd
authored
7 years ago
by
Abhishek Kadam
Committed by
Madhan Neethiraj
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2731: UI : attributes on table's detailsPage buffers forever due no access on that entity
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
e73a8099
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
CommonViewFunction.js
dashboardv2/public/js/utils/CommonViewFunction.js
+19
-8
CreateAuditTableLayoutView.js
...ardv2/public/js/views/audit/CreateAuditTableLayoutView.js
+1
-1
EntityDetailTableLayoutView.js
...dv2/public/js/views/entity/EntityDetailTableLayoutView.js
+1
-1
No files found.
dashboardv2/public/js/utils/CommonViewFunction.js
View file @
b57420cd
...
@@ -75,6 +75,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
...
@@ -75,6 +75,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
var
scope
=
options
.
scope
,
var
scope
=
options
.
scope
,
valueObject
=
options
.
valueObject
,
valueObject
=
options
.
valueObject
,
extractJSON
=
options
.
extractJSON
,
extractJSON
=
options
.
extractJSON
,
relationshipAttributes
=
options
.
relationshipAttributes
,
isTable
=
_
.
isUndefined
(
options
.
isTable
)
?
true
:
options
.
isTable
,
isTable
=
_
.
isUndefined
(
options
.
isTable
)
?
true
:
options
.
isTable
,
attributeDefs
=
options
.
attributeDefs
;
attributeDefs
=
options
.
attributeDefs
;
...
@@ -104,11 +105,16 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
...
@@ -104,11 +105,16 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
scope
.
$
(
'td div[data-id="'
+
id
+
'"]'
).
append
(
deleteButton
);
scope
.
$
(
'td div[data-id="'
+
id
+
'"]'
).
append
(
deleteButton
);
}
}
},
},
cust_error
:
function
()
{
scope
.
$
(
'td div[data-id="'
+
id
+
'"]'
).
html
(
'<div><span class="text-danger"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Not Authorized</span></div>'
);
},
complete
:
function
()
{}
complete
:
function
()
{}
});
});
},
},
extractObject
=
function
(
keyValue
)
{
extractObject
=
function
(
opt
)
{
var
valueOfArray
=
[];
var
valueOfArray
=
[],
keyValue
=
opt
.
keyValue
,
key
=
opt
.
key
;
if
(
!
_
.
isArray
(
keyValue
)
&&
_
.
isObject
(
keyValue
))
{
if
(
!
_
.
isArray
(
keyValue
)
&&
_
.
isObject
(
keyValue
))
{
keyValue
=
[
keyValue
];
keyValue
=
[
keyValue
];
}
}
...
@@ -163,10 +169,15 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
...
@@ -163,10 +169,15 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
if
(
id
&&
inputOutputField
)
{
if
(
id
&&
inputOutputField
)
{
var
name
=
Utils
.
getName
(
inputOutputField
);
var
name
=
Utils
.
getName
(
inputOutputField
);
if
((
name
===
"-"
||
name
===
id
)
&&
!
inputOutputField
.
attributes
)
{
if
((
name
===
"-"
||
name
===
id
)
&&
!
inputOutputField
.
attributes
)
{
var
fetch
=
true
;
var
rAttrValue
=
relationshipAttributes
&&
relationshipAttributes
[
key
];
var
fetchId
=
(
_
.
isObject
(
id
)
?
id
.
id
:
id
);
if
(
!
rAttrValue
)
{
fetchInputOutputValue
(
fetchId
);
var
fetch
=
true
;
tempLink
+=
'<div data-id="'
+
fetchId
+
'"><div class="value-loader"></div></div>'
;
var
fetchId
=
(
_
.
isObject
(
id
)
?
id
.
id
:
id
);
fetchInputOutputValue
(
fetchId
);
tempLink
+=
'<div data-id="'
+
fetchId
+
'"><div class="value-loader"></div></div>'
;
}
else
{
tempLink
+=
'<div data-id="'
+
rAttrValue
.
guid
+
'"><a href="#!/detailPage/'
+
rAttrValue
.
guid
+
'">'
+
Utils
.
getName
(
rAttrValue
)
+
'</a></div>'
;
}
}
else
{
}
else
{
tempLink
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
name
+
'</a>'
tempLink
+=
'<a href="#!/detailPage/'
+
id
+
'">'
+
name
+
'</a>'
}
}
...
@@ -205,11 +216,11 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
...
@@ -205,11 +216,11 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
if
(
defEntityType
===
'date'
)
{
if
(
defEntityType
===
'date'
)
{
keyValue
=
new
Date
(
keyValue
);
keyValue
=
new
Date
(
keyValue
);
}
else
if
(
_
.
isObject
(
keyValue
))
{
}
else
if
(
_
.
isObject
(
keyValue
))
{
keyValue
=
extractObject
(
keyValue
);
keyValue
=
extractObject
(
{
"keyValue"
:
keyValue
,
"key"
:
key
}
);
}
}
}
else
{
}
else
{
if
(
_
.
isObject
(
keyValue
))
{
if
(
_
.
isObject
(
keyValue
))
{
keyValue
=
extractObject
(
keyValue
)
keyValue
=
extractObject
(
{
"keyValue"
:
keyValue
,
"key"
:
key
}
)
}
}
}
}
var
val
=
""
;
var
val
=
""
;
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js
View file @
b57420cd
...
@@ -87,7 +87,7 @@ define(['require',
...
@@ -87,7 +87,7 @@ define(['require',
this
.
ui
.
name
.
text
(
name
);
this
.
ui
.
name
.
text
(
name
);
if
(
parseDetailsObject
)
{
if
(
parseDetailsObject
)
{
this
.
ui
.
auditHeaderValue
.
html
(
'<th>Key</th><th>New Value</th>'
);
this
.
ui
.
auditHeaderValue
.
html
(
'<th>Key</th><th>New Value</th>'
);
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
parseDetailsObject
,
attributeDefs
:
this
.
attributeDefs
});
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
parseDetailsObject
,
relationshipAttributes
:
parseDetailsObject
.
relationshipAttributes
,
attributeDefs
:
this
.
attributeDefs
});
if
(
table
.
length
)
{
if
(
table
.
length
)
{
this
.
ui
.
noData
.
hide
();
this
.
ui
.
noData
.
hide
();
this
.
ui
.
tableAudit
.
show
();
this
.
ui
.
tableAudit
.
show
();
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/entity/EntityDetailTableLayoutView.js
View file @
b57420cd
...
@@ -56,7 +56,7 @@ define(['require',
...
@@ -56,7 +56,7 @@ define(['require',
this
.
entityTableGenerate
();
this
.
entityTableGenerate
();
},
},
entityTableGenerate
:
function
()
{
entityTableGenerate
:
function
()
{
var
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
this
.
entity
.
attributes
,
attributeDefs
:
this
.
attributeDefs
});
var
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
this
.
entity
.
attributes
,
relationshipAttributes
:
this
.
entity
.
relationshipAttributes
,
attributeDefs
:
this
.
attributeDefs
});
this
.
ui
.
detailValue
.
append
(
table
);
this
.
ui
.
detailValue
.
append
(
table
);
}
}
});
});
...
...
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