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
eaad45bd
Commit
eaad45bd
authored
Oct 30, 2017
by
pratik pandey
Committed by
kevalbhatt
Oct 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2208 : Include historical entities in Schema tab checked by default for DELETED tables
Signed-off-by:
kevalbhatt
<
kbhatt@apache.org
>
parent
81296b5e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
20 deletions
+34
-20
panel.scss
dashboardv2/public/css/scss/panel.scss
+7
-1
search.scss
dashboardv2/public/css/scss/search.scss
+0
-4
theme.scss
dashboardv2/public/css/scss/theme.scss
+6
-0
SchemaTableLayoutView_tmpl.html
...ublic/js/templates/schema/SchemaTableLayoutView_tmpl.html
+8
-6
Overrides.js
dashboardv2/public/js/utils/Overrides.js
+2
-0
SchemaLayoutView.js
dashboardv2/public/js/views/schema/SchemaLayoutView.js
+11
-9
No files found.
dashboardv2/public/css/scss/panel.scss
View file @
eaad45bd
...
...
@@ -68,9 +68,14 @@
.with-nav-tabs
{
.tab-content
{
>
.tab-pane.active
{
>
.tab-pane
{
&
>
div
{
position
:
relative
;
}
&
.active
{
padding
:
20px
10px
0px
10px
;
min-height
:
50px
;
}
}
}
}
\ No newline at end of file
dashboardv2/public/css/scss/search.scss
View file @
eaad45bd
...
...
@@ -69,10 +69,6 @@ $color_celeste_approx: #1D1F2B;
line-height
:
40px
;
}
.btnAssign
{
margin-bottom
:
15px
;
}
.srchType
{
margin
:
5px
0px
;
.srchTitle
{
...
...
dashboardv2/public/css/scss/theme.scss
View file @
eaad45bd
...
...
@@ -372,3 +372,8 @@ fieldset.fieldset-child-pd>div {
border-color
:
$color_apple_blossom_approx
;
}
}
.table-action-btn
{
position
:
absolute
;
right
:
0px
;
}
\ No newline at end of file
dashboardv2/public/js/templates/schema/SchemaTableLayoutView_tmpl.html
View file @
eaad45bd
...
...
@@ -16,13 +16,15 @@
-->
<div>
<div
class=
"tableOverlay"
></div>
<div
style=
"margin-left: 20px"
data-id=
"checkDeletedEntity"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
class=
"input"
name=
"queryType"
value=
"text"
name=
"check"
value=
"1"
/>
Include historical entities
</label>
<div
class=
"inline-content-fr table-action-btn"
>
<div
class=
"inline"
data-id=
"checkDeletedEntity"
>
<label
class=
"checkbox-inline btn"
>
<input
type=
"checkbox"
class=
"input"
name=
"queryType"
value=
"text"
name=
"check"
value=
"1"
/>
Show historical entities
</label>
</div>
<div
class=
"clearfix inline"
>
<a
href=
"javascript:void(0)"
class=
"inputAssignTag multiSelectTerm btn btn-action btn-sm"
style=
"display:none"
data-id=
"addTerm"
><i
class=
"fa fa-plus"
></i>
Assign Term
</a>
<a
href=
"javascript:void(0)"
class=
"inputAssignTag multiSelectTag assignTag btn btn-action btn-sm"
style=
"display:none"
data-id=
"addAssignTag"
><i
class=
"fa fa-plus"
></i>
Assign Tag
</a>
</div>
<div
class=
"clearfix"
>
<a
href=
"javascript:void(0)"
class=
"inputAssignTag multiSelectTerm btnAssign"
style=
"display:none"
data-id=
"addTerm"
><i
class=
"fa fa-plus"
></i></a>
<a
href=
"javascript:void(0)"
class=
"inputAssignTag multiSelectTag assignTag btnAssign"
style=
"display:none"
data-id=
"addAssignTag"
><i
class=
"fa fa-plus"
></i>
Assign Tag
</a>
</div>
<div
id=
"r_schemaTableLayoutView"
>
</div>
...
...
dashboardv2/public/js/utils/Overrides.js
View file @
eaad45bd
...
...
@@ -73,6 +73,8 @@ define(['require', 'utils/Utils', 'marionette', 'backgrid', 'asBreadcrumbs', 'jq
var
isPopOverEl
=
getPopoverEl
(
e
)
if
(
!
isPopOverEl
)
{
$
(
'.popover'
).
popover
(
'hide'
);
}
else
if
(
isPopOverEl
.
$tip
)
{
$
(
'.popover'
).
not
(
isPopOverEl
.
$tip
).
popover
(
'hide'
);
}
}
});
...
...
dashboardv2/public/js/views/schema/SchemaLayoutView.js
View file @
eaad45bd
...
...
@@ -106,14 +106,14 @@ define(['require',
this
.
bradCrumbList
=
[];
},
bindEvents
:
function
()
{
var
that
=
this
;
this
.
listenTo
(
this
.
schemaCollection
,
'backgrid:selected'
,
function
(
model
,
checked
)
{
this
.
arr
=
[];
if
(
checked
===
true
)
{
model
.
set
(
"isEnable"
,
true
);
}
else
{
model
.
set
(
"isEnable"
,
false
);
}
this
.
arr
=
[];
var
that
=
this
;
this
.
schemaCollection
.
find
(
function
(
item
)
{
var
obj
=
item
.
toJSON
();
if
(
item
.
get
(
'isEnable'
))
{
...
...
@@ -167,7 +167,7 @@ define(['require',
});
if
(
this
.
schemaCollection
.
length
===
0
&&
this
.
deleteObj
.
length
)
{
this
.
ui
.
checkDeletedEntity
.
find
(
"input"
).
prop
(
'checked'
,
true
);
this
.
schemaCollection
.
fullCollection
.
reset
(
this
.
deleteObj
,
{
silent
:
true
}
);
this
.
schemaCollection
.
fullCollection
.
reset
(
this
.
deleteObj
);
}
if
(
this
.
activeObj
.
length
===
0
&&
this
.
deleteObj
.
length
===
0
)
{
this
.
ui
.
checkDeletedEntity
.
hide
();
...
...
@@ -240,7 +240,7 @@ define(['require',
if
(
key
===
"name"
&&
model
.
get
(
'guid'
))
{
var
nameHtml
=
'<a href="#!/detailPage/'
+
model
.
get
(
'guid'
)
+
'">'
+
value
+
'</a>'
;
if
(
model
.
get
(
'status'
)
&&
Enums
.
entityStateReadOnly
[
model
.
get
(
'status'
)])
{
nameHtml
+=
'<button type="button" title="Deleted" class="btn btn-a
tlasAction btn-atlas
deleteBtn"><i class="fa fa-trash"></i></button>'
;
nameHtml
+=
'<button type="button" title="Deleted" class="btn btn-a
ction btn-md
deleteBtn"><i class="fa fa-trash"></i></button>'
;
return
'<div class="readOnly readOnlyLink">'
+
nameHtml
+
'</div>'
;
}
else
{
return
nameHtml
;
...
...
@@ -304,17 +304,19 @@ define(['require',
e
.
stopPropagation
();
}
var
guid
=
""
,
that
=
this
;
var
multiSelectTag
=
$
(
e
.
currentTarget
).
hasClass
(
'assignTag'
);
if
(
multiSelectTag
)
{
if
(
this
.
arr
&&
this
.
arr
.
length
&&
multiSelectTag
)
{
that
=
this
,
isTagMultiSelect
=
$
(
e
.
currentTarget
).
hasClass
(
'multiSelectTag'
),
isTermMultiSelect
=
$
(
e
.
currentTarget
).
hasClass
(
'multiSelectTerm'
),
isTagButton
=
$
(
e
.
currentTarget
).
hasClass
(
'assignTag'
);
if
(
isTagButton
)
{
if
(
isTagMultiSelect
&&
this
.
arr
&&
this
.
arr
.
length
)
{
that
.
addTagModalView
(
guid
,
this
.
arr
);
}
else
{
guid
=
that
.
$
(
e
.
currentTarget
).
data
(
"guid"
);
that
.
addTagModalView
(
guid
);
}
}
else
{
if
(
this
.
arr
&&
this
.
arr
.
length
)
{
if
(
isTermMultiSelect
&&
this
.
arr
&&
this
.
arr
.
length
)
{
that
.
addTermModalView
(
guid
,
this
.
arr
);
}
else
{
guid
=
that
.
$
(
e
.
currentTarget
).
data
(
"guid"
);
...
...
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