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
53ae712a
Commit
53ae712a
authored
4 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3743: Date type value is shown as timestamp instead of date, in BM…
ATLAS-3743: Date type value is shown as timestamp instead of date, in BM audit/technical properties.
parent
7c68048f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
CreateAuditTableLayoutView.js
...ardv2/public/js/views/audit/CreateAuditTableLayoutView.js
+16
-2
CreateAuditTableLayoutView.js
...ardv3/public/js/views/audit/CreateAuditTableLayoutView.js
+16
-2
No files found.
dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js
View file @
53ae712a
...
@@ -124,11 +124,25 @@ define(['require',
...
@@ -124,11 +124,25 @@ define(['require',
var
name
=
((
name
?
name
:
this
.
entityName
));
var
name
=
((
name
?
name
:
this
.
entityName
));
that
.
updateName
(
name
);
that
.
updateName
(
name
);
if
(
parseDetailsObject
)
{
if
(
parseDetailsObject
)
{
var
attributesDetails
=
parseDetailsObject
.
attributes
,
var
attributesDetails
=
$
.
extend
(
true
,
{},
parseDetailsObject
.
attributes
)
,
customAttr
=
parseDetailsObject
.
customAttributes
,
customAttr
=
parseDetailsObject
.
customAttributes
,
labelsDetails
=
parseDetailsObject
.
labels
,
labelsDetails
=
parseDetailsObject
.
labels
,
relationshipAttributes
=
parseDetailsObject
.
relationshipAttributes
;
relationshipAttributes
=
parseDetailsObject
.
relationshipAttributes
,
bmAttributesDeails
=
that
.
entity
.
businessAttributes
?
that
.
entity
.
businessAttributes
[
parseDetailsObject
.
typeName
]
:
null
;
if
(
attributesDetails
)
{
if
(
attributesDetails
)
{
if
(
bmAttributesDeails
)
{
_
.
each
(
Object
.
keys
(
attributesDetails
),
function
(
key
)
{
if
(
bmAttributesDeails
[
key
].
typeName
.
toLowerCase
().
indexOf
(
"date"
)
>
-
1
)
{
if
(
attributesDetails
[
key
].
length
)
{
// multiple date values
attributesDetails
[
key
]
=
_
.
map
(
attributesDetails
[
key
],
function
(
dateValue
)
{
return
Utils
.
formatDate
({
date
:
dateValue
})
});
}
else
{
attributesDetails
[
key
]
=
Utils
.
formatDate
({
date
:
attributesDetails
[
key
]
});
}
}
})
}
that
.
ui
.
attributeDetails
.
removeClass
(
'hide'
);
that
.
ui
.
attributeDetails
.
removeClass
(
'hide'
);
that
.
action
.
indexOf
(
"Classification"
)
===
-
1
?
that
.
ui
.
panelAttrHeading
.
html
(
"Technical properties "
)
:
that
.
ui
.
panelAttrHeading
.
html
(
"Properties "
);
that
.
action
.
indexOf
(
"Classification"
)
===
-
1
?
that
.
ui
.
panelAttrHeading
.
html
(
"Technical properties "
)
:
that
.
ui
.
panelAttrHeading
.
html
(
"Properties "
);
var
attrTable
=
that
.
createTableWithValues
(
attributesDetails
);
var
attrTable
=
that
.
createTableWithValues
(
attributesDetails
);
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/audit/CreateAuditTableLayoutView.js
View file @
53ae712a
...
@@ -124,11 +124,25 @@ define(['require',
...
@@ -124,11 +124,25 @@ define(['require',
var
name
=
((
name
?
name
:
this
.
entityName
));
var
name
=
((
name
?
name
:
this
.
entityName
));
that
.
updateName
(
name
);
that
.
updateName
(
name
);
if
(
parseDetailsObject
)
{
if
(
parseDetailsObject
)
{
var
attributesDetails
=
parseDetailsObject
.
attributes
,
var
attributesDetails
=
$
.
extend
(
true
,
{},
parseDetailsObject
.
attributes
)
,
customAttr
=
parseDetailsObject
.
customAttributes
,
customAttr
=
parseDetailsObject
.
customAttributes
,
labelsDetails
=
parseDetailsObject
.
labels
,
labelsDetails
=
parseDetailsObject
.
labels
,
relationshipAttributes
=
parseDetailsObject
.
relationshipAttributes
;
relationshipAttributes
=
parseDetailsObject
.
relationshipAttributes
,
bmAttributesDeails
=
that
.
entity
.
businessAttributes
?
that
.
entity
.
businessAttributes
[
parseDetailsObject
.
typeName
]
:
null
;
if
(
attributesDetails
)
{
if
(
attributesDetails
)
{
if
(
bmAttributesDeails
)
{
_
.
each
(
Object
.
keys
(
attributesDetails
),
function
(
key
)
{
if
(
bmAttributesDeails
[
key
].
typeName
.
toLowerCase
().
indexOf
(
"date"
)
>
-
1
)
{
if
(
attributesDetails
[
key
].
length
)
{
// multiple date values
attributesDetails
[
key
]
=
_
.
map
(
attributesDetails
[
key
],
function
(
dateValue
)
{
return
Utils
.
formatDate
({
date
:
dateValue
})
});
}
else
{
attributesDetails
[
key
]
=
Utils
.
formatDate
({
date
:
attributesDetails
[
key
]
});
}
}
})
}
that
.
ui
.
attributeDetails
.
removeClass
(
'hide'
);
that
.
ui
.
attributeDetails
.
removeClass
(
'hide'
);
that
.
action
.
indexOf
(
"Classification"
)
===
-
1
?
that
.
ui
.
panelAttrHeading
.
html
(
"Technical properties "
)
:
that
.
ui
.
panelAttrHeading
.
html
(
"Properties "
);
that
.
action
.
indexOf
(
"Classification"
)
===
-
1
?
that
.
ui
.
panelAttrHeading
.
html
(
"Technical properties "
)
:
that
.
ui
.
panelAttrHeading
.
html
(
"Properties "
);
var
attrTable
=
that
.
createTableWithValues
(
attributesDetails
);
var
attrTable
=
that
.
createTableWithValues
(
attributesDetails
);
...
...
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