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
bb789550
Commit
bb789550
authored
8 years ago
by
Keval Bhatt
Committed by
Suma Shivaprasad
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1071 : Regression - UI - Details Button under Audits Tab is not working.
parent
6078c9ae
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
19 deletions
+26
-19
package.json
dashboardv2/package.json
+1
-1
Modal.js
dashboardv2/public/js/modules/Modal.js
+3
-1
createTagLayoutView_tmpl.html
...dv2/public/js/templates/tag/createTagLayoutView_tmpl.html
+1
-1
AuditTableLayoutView.js
dashboardv2/public/js/views/audit/AuditTableLayoutView.js
+3
-2
CreateAuditTableLayoutView.js
...ardv2/public/js/views/audit/CreateAuditTableLayoutView.js
+4
-4
CreateTagLayoutView.js
dashboardv2/public/js/views/tag/CreateTagLayoutView.js
+6
-10
TagLayoutView.js
dashboardv2/public/js/views/tag/TagLayoutView.js
+7
-0
release-log.txt
release-log.txt
+1
-0
No files found.
dashboardv2/package.json
View file @
bb789550
...
...
@@ -39,7 +39,7 @@
"noty"
:
"^2.3.8"
,
"requirejs"
:
"^2.1.16"
,
"requirejs-text"
:
"^2.0.12"
,
"select2"
:
"^4.0.
2
"
,
"select2"
:
"^4.0.
3
"
,
"underscore"
:
"^1.8.3"
},
"devDependencies"
:
{
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/modules/Modal.js
View file @
bb789550
...
...
@@ -198,7 +198,9 @@ define(function(require) {
if
(
cb
)
{
self
.
on
(
'ok'
,
cb
);
}
$el
.
one
(
'shown.bs.modal'
,
function
()
{
self
.
trigger
(
'shownModal'
);
});
return
this
;
},
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/templates/tag/createTagLayoutView_tmpl.html
View file @
bb789550
...
...
@@ -29,7 +29,7 @@
{{#if create}}
<span
class=
"row-margin-bottom"
>
Select tags to inherit attributes(optional)
</span>
<p
class=
"attributeText"
>
Attributes define additional properties for the tag
</p>
<select
class=
"form-control
tagList"
data-id=
"parentTag
"
multiple=
"multiple"
></select>
<select
class=
"form-control
"
data-id=
"parentTagList
"
multiple=
"multiple"
></select>
{{/if}}
</div>
</form>
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/audit/AuditTableLayoutView.js
View file @
bb789550
...
...
@@ -223,9 +223,10 @@ define(['require',
'modules/Modal'
,
'views/audit/CreateAuditTableLayoutView'
,
],
function
(
Modal
,
CreateAuditTableLayoutView
)
{
var
collectionModel
=
that
.
entityCollection
.
findWhere
({
'eventKey'
:
$
(
e
.
currentTarget
).
data
(
'modalid'
)
});
var
eventModel
=
that
.
entityCollection
.
findWhere
({
'eventKey'
:
$
(
e
.
currentTarget
).
data
(
'modalid'
)
}).
toJSON
(),
collectionModel
=
new
that
.
entityCollection
.
model
(
eventModel
),
view
=
new
CreateAuditTableLayoutView
({
guid
:
that
.
guid
,
entityModel
:
collectionModel
,
action
:
that
.
action
});
that
.
action
=
$
(
e
.
target
).
data
(
"action"
);
var
view
=
new
CreateAuditTableLayoutView
({
guid
:
that
.
guid
,
model
:
collectionModel
,
action
:
that
.
action
});
var
modal
=
new
Modal
({
title
:
that
.
action
,
content
:
view
,
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js
View file @
bb789550
...
...
@@ -53,7 +53,7 @@ define(['require',
* @constructs
*/
initialize
:
function
(
options
)
{
_
.
extend
(
this
,
_
.
pick
(
options
,
'globalVent'
,
'guid'
,
'
m
odel'
,
'action'
));
_
.
extend
(
this
,
_
.
pick
(
options
,
'globalVent'
,
'guid'
,
'
entityM
odel'
,
'action'
));
},
bindEvents
:
function
()
{},
onRender
:
function
()
{
...
...
@@ -62,8 +62,8 @@ define(['require',
auditTableGenerate
:
function
()
{
var
that
=
this
,
table
=
""
;
if
(
this
.
m
odel
.
get
(
'details'
).
search
(
'{'
)
>=
0
)
{
var
appendedString
=
"{"
+
this
.
m
odel
.
get
(
'details'
)
+
"}"
;
if
(
this
.
entityM
odel
.
get
(
'details'
).
search
(
'{'
)
>=
0
)
{
var
appendedString
=
"{"
+
this
.
entityM
odel
.
get
(
'details'
)
+
"}"
;
var
auditData
=
appendedString
.
split
(
'"'
)[
0
].
split
(
':'
)[
0
].
split
(
"{"
)[
1
];
var
detailsObject
=
JSON
.
parse
(
appendedString
.
replace
(
"{"
+
auditData
+
":"
,
'{"'
+
auditData
+
'":'
))[
auditData
];
//Append string for JSON parse
...
...
@@ -84,7 +84,7 @@ define(['require',
}
}
}
else
if
(
this
.
action
==
Globals
.
auditAction
.
TAG_DELETE
)
{
var
appendedString
=
this
.
m
odel
.
get
(
'details'
).
split
(
':'
);
var
appendedString
=
this
.
entityM
odel
.
get
(
'details'
).
split
(
':'
);
this
.
ui
.
auditHeaderValue
.
html
(
'<th>Tag</th>'
);
this
.
ui
.
auditValue
.
html
(
"<tr><td>"
+
appendedString
[
1
]
+
"</td></tr>"
);
}
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/tag/CreateTagLayoutView.js
View file @
bb789550
...
...
@@ -42,7 +42,7 @@ define(['require',
/** ui selector cache */
ui
:
{
tagName
:
"[data-id='tagName']"
,
parentTag
:
"[data-id='parentTag']"
,
parentTag
:
"[data-id='parentTag
List
']"
,
description
:
"[data-id='description']"
,
title
:
"[data-id='title']"
},
...
...
@@ -74,17 +74,13 @@ define(['require',
}
},
tagCollectionList
:
function
()
{
var
str
=
''
,
that
=
this
;
this
.
ui
.
parentTag
.
empty
();
var
str
=
''
;
for
(
var
i
=
0
;
i
<
this
.
tagCollection
.
fullCollection
.
models
.
length
;
i
++
)
{
var
tags
=
this
.
tagCollection
.
fullCollection
.
models
[
i
].
get
(
"tags"
);
str
+=
'<option>'
+
tags
+
'</option>'
;
this
.
ui
.
parentTag
.
html
(
str
);
}
this
.
ui
.
parentTag
.
select2
({
placeholder
:
"Search Tags"
,
allowClear
:
true
this
.
tagCollection
.
each
(
function
(
val
)
{
str
+=
'<option>'
+
val
.
get
(
"tags"
)
+
'</option>'
;
});
that
.
ui
.
parentTag
.
html
(
str
);
}
});
return
CreateTagLayoutView
;
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/tag/TagLayoutView.js
View file @
bb789550
...
...
@@ -202,6 +202,13 @@ define(['require',
modal
.
$el
.
find
(
'button.ok'
).
attr
(
"disabled"
,
"true"
);
}
});
modal
.
on
(
'shownModal'
,
function
()
{
view
.
ui
.
parentTag
.
select2
({
multiple
:
true
,
placeholder
:
"Search Tags"
,
allowClear
:
true
});
})
modal
.
on
(
'ok'
,
function
()
{
that
.
onCreateButton
(
view
);
});
...
...
This diff is collapsed.
Click to expand it.
release-log.txt
View file @
bb789550
...
...
@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL CHANGES:
ATLAS-1071 Regression - UI - Details Button under Audits Tab is not working.(kevalbhatt18 via sumasai)
ATLAS-965 Old lineage still exists after dropping tables and re-creating tables with same name. (shwethags via sumasai)
ATLAS-1048 TestMetadata.py test in distro project fails on Windows (jnhagelb via shwethags)
ATLAS-1026 StoreBackedTypeCache issues (dkantor via shwethags)
...
...
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