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
9b8a5ddc
Commit
9b8a5ddc
authored
Feb 15, 2017
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1477, ATLAS-1556 : Edit entity button not working from search table of tag detail page.
parent
58bbee4c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
13 deletions
+34
-13
Router.js
dashboardv2/public/js/router/Router.js
+1
-0
CreateEntityLayoutView.js
dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
+30
-12
TagDetailLayoutView.js
dashboardv2/public/js/views/tag/TagDetailLayoutView.js
+2
-1
release-log.txt
release-log.txt
+1
-0
No files found.
dashboardv2/public/js/router/Router.js
View file @
9b8a5ddc
...
...
@@ -174,6 +174,7 @@ define([
if
(
tagName
)
{
App
.
rNContent
.
show
(
new
TagDetailLayoutView
({
'tag'
:
tagName
,
'entityDefCollection'
:
that
.
entityDefCollection
,
'collection'
:
that
.
tagCollection
}));
}
...
...
dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
View file @
9b8a5ddc
...
...
@@ -112,9 +112,7 @@ define(['require',
}
}
}).
open
();
this
.
modal
.
$el
.
find
(
'button.ok'
).
attr
(
"disabled"
,
true
);
this
.
ui
.
entityList
.
val
(
""
);
this
.
modal
.
on
(
'ok'
,
function
(
e
)
{
that
.
okButton
();
});
...
...
@@ -154,23 +152,37 @@ define(['require',
if
(
value
&&
value
.
length
)
{
JSON
.
parse
(
value
);
$
(
this
).
removeClass
(
'errorClass'
);
that
.
modal
.
$el
.
find
(
'button.ok'
).
prop
(
"disabled"
,
false
);
}
}
catch
(
err
)
{
$
(
this
).
addClass
(
'errorClass'
);
that
.
modal
.
$el
.
find
(
'button.ok'
).
prop
(
"disabled"
,
true
);
}
});
if
(
this
.
guid
)
{
this
.
bindNonRequiredField
();
}
this
.
ui
.
entityInputData
.
on
(
'keyup change dp.change'
,
'input.true,select.true'
,
function
(
e
)
{
if
(
this
.
value
!==
""
)
{
if
(
$
(
this
).
data
(
'select2'
))
{
$
(
this
).
data
(
'select2'
).
$container
.
find
(
'.select2-selection'
).
removeClass
(
"errorClass"
)
$
(
this
).
data
(
'select2'
).
$container
.
find
(
'.select2-selection'
).
removeClass
(
"errorClass"
);
if
(
that
.
ui
.
entityInputData
.
find
(
'.errorClass'
).
length
===
0
)
{
that
.
modal
.
$el
.
find
(
'button.ok'
).
prop
(
"disabled"
,
false
);
}
}
else
{
$
(
this
).
removeClass
(
'errorClass'
);
if
(
that
.
ui
.
entityInputData
.
find
(
'.errorClass'
).
length
===
0
)
{
that
.
modal
.
$el
.
find
(
'button.ok'
).
prop
(
"disabled"
,
false
);
}
}
}
else
{
if
(
$
(
this
).
data
(
'select2'
))
{
$
(
this
).
data
(
'select2'
).
$container
.
find
(
'.select2-selection'
).
addClass
(
"errorClass"
)
$
(
this
).
data
(
'select2'
).
$container
.
find
(
'.select2-selection'
).
addClass
(
"errorClass"
);
that
.
modal
.
$el
.
find
(
'button.ok'
).
prop
(
"disabled"
,
true
);
}
else
{
$
(
this
).
addClass
(
'errorClass'
);
that
.
modal
.
$el
.
find
(
'button.ok'
).
prop
(
"disabled"
,
true
);
}
}
});
...
...
@@ -179,6 +191,14 @@ define(['require',
this
.
bindEvents
();
this
.
fetchCollections
();
},
bindNonRequiredField
:
function
()
{
var
that
=
this
;
this
.
ui
.
entityInputData
.
off
(
'keyup change dp.change'
,
'input.false,select.false'
).
on
(
'keyup change dp.change'
,
'input.false,select.false'
,
function
(
e
)
{
if
(
that
.
modal
.
$el
.
find
(
'button.ok'
).
prop
(
'disabled'
)
&&
that
.
ui
.
entityInputData
.
find
(
'.errorClass'
).
length
===
0
)
{
that
.
modal
.
$el
.
find
(
'button.ok'
).
prop
(
"disabled"
,
false
);
}
});
},
decrementCounter
:
function
(
counter
)
{
if
(
this
[
counter
]
>
0
)
{
--
this
[
counter
];
...
...
@@ -205,7 +225,7 @@ define(['require',
this
.
ui
.
assetName
.
html
(
name
);
this
.
onEntityChange
(
null
,
this
.
entityData
);
}
else
{
var
str
=
'<option
selected="selected" disabled="disabled"
>--Select entity-type--</option>'
;
var
str
=
'<option
disabled="disabled" selected
>--Select entity-type--</option>'
;
this
.
entityDefCollection
.
fullCollection
.
comparator
=
function
(
model
)
{
return
model
.
get
(
'name'
);
}
...
...
@@ -245,7 +265,6 @@ define(['require',
},
onEntityChange
:
function
(
e
,
value
)
{
this
.
modal
.
$el
.
find
(
'button.ok'
).
prop
(
"disabled"
,
false
);
var
that
=
this
,
typeName
=
value
&&
value
.
get
(
'entity'
)
?
value
.
get
(
'entity'
).
typeName
:
null
;
this
.
showLoader
();
...
...
@@ -325,6 +344,9 @@ define(['require',
if
(
this
.
ui
.
entityInputData
.
find
(
'fieldset'
).
length
>
0
&&
this
.
ui
.
entityInputData
.
find
(
'select.true,input.true'
).
length
===
0
)
{
this
.
requiredAllToggle
(
this
.
ui
.
entityInputData
.
find
(
'select.true,input.true'
).
length
===
0
);
if
(
!
this
.
guid
)
{
this
.
bindNonRequiredField
();
}
this
.
ui
.
toggleRequired
.
prop
(
'checked'
,
true
);
}
else
{
this
.
ui
.
entityInputData
.
find
(
'fieldset'
).
each
(
function
()
{
...
...
@@ -579,8 +601,8 @@ define(['require',
if
(
that
.
guid
&&
that
.
callback
)
{
that
.
callback
();
}
else
{
if
(
model
.
entitiesMutated
&&
(
model
.
entitiesMutated
.
CREATE
||
model
.
entitiesMutated
.
UPDATE
)
)
{
that
.
setUrl
(
'#!/detailPage/'
+
(
model
.
entitiesMutated
.
CREATE
?
model
.
entitiesMutated
.
CREATE
[
0
].
guid
:
model
.
entitiesMutated
.
UPDATE
[
0
].
guid
),
true
);
if
(
model
.
createdEntities
&&
_
.
isArray
(
model
.
createdEntities
)
&&
model
.
createdEntities
[
0
]
&&
model
.
createdEntities
[
0
].
guid
)
{
that
.
setUrl
(
'#!/detailPage/'
+
(
model
.
createdEntities
[
0
].
guid
),
true
);
}
}
},
...
...
@@ -619,7 +641,6 @@ define(['require',
var
that
=
this
,
queryText
,
str
=
''
;
// Add oprions in select
if
(
this
.
selectStoreCollection
.
length
)
{
var
appendOption
=
function
(
optionValue
)
{
...
...
@@ -654,9 +675,6 @@ define(['require',
if
(
that
.
guid
)
{
var
dataValue
=
that
.
entityData
.
get
(
"entity"
).
attributes
[
keyData
];
var
selectedValue
=
[];
// if (that.selectStoreCollection.length) {
// var selectedValue = [];
// }
var
setValue
=
function
(
selectValue
)
{
var
obj
=
selectValue
.
toJSON
();
if
(
dataValue
!==
null
&&
_
.
isArray
(
dataValue
))
{
...
...
dashboardv2/public/js/views/tag/TagDetailLayoutView.js
View file @
9b8a5ddc
...
...
@@ -44,7 +44,7 @@ define(['require',
* @constructs
*/
initialize
:
function
(
options
)
{
_
.
extend
(
this
,
_
.
pick
(
options
,
'tag'
,
'collection'
));
_
.
extend
(
this
,
_
.
pick
(
options
,
'tag'
,
'collection'
,
'entityDefCollection'
));
},
bindEvents
:
function
()
{},
onRender
:
function
()
{
...
...
@@ -60,6 +60,7 @@ define(['require',
};
that
.
RSearchResultLayoutView
.
show
(
new
SearchResultLayoutView
({
value
:
value
,
entityDefCollection
:
that
.
entityDefCollection
,
tag
:
that
.
tag
}));
});
...
...
release-log.txt
View file @
9b8a5ddc
...
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ATLAS-1556 Edit entity button not working from search table of tag detail page. (kevalbhatt)
ATLAS-1559 Regression - If a new tag is created then the earlier tags doesn't render properly (kevalbhatt)
ATLAS-1508 Make AtlasADAuthenticationProvider like Ranger ADLdap Methods (gss2002 via mneethiraj)
ATLAS-1547 Add tests for DeleteHandlerV1 (sumasai via mneethiraj)
...
...
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