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
81ceabbd
Commit
81ceabbd
authored
Aug 04, 2016
by
Keval Bhatt
Committed by
Keval Bhatt
Aug 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1080 : Regression - UI - hive_storagedesc is shown as undefined in UI (kbhatt)
parent
a2801f0e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
33 deletions
+66
-33
SearchResultLayoutView.js
dashboardv2/public/js/views/search/SearchResultLayoutView.js
+65
-33
release-log.txt
release-log.txt
+1
-0
No files found.
dashboardv2/public/js/views/search/SearchResultLayoutView.js
View file @
81ceabbd
...
...
@@ -263,33 +263,10 @@ define(['require',
var
that
=
this
,
count
=
5
;
require
([
'utils/TableLayout'
],
function
(
TableLayout
)
{
var
columnCollection
=
Backgrid
.
Columns
.
extend
({
sortKey
:
"position"
,
comparator
:
function
(
item
)
{
return
item
.
get
(
this
.
sortKey
)
||
999
;
},
setPositions
:
function
()
{
_
.
each
(
this
.
models
,
function
(
model
,
index
)
{
if
(
model
.
get
(
'name'
)
==
"name"
)
{
model
.
set
(
"position"
,
2
,
{
silent
:
true
});
model
.
set
(
"label"
,
"Name"
);
}
else
if
(
model
.
get
(
'name'
)
==
"description"
)
{
model
.
set
(
"position"
,
3
,
{
silent
:
true
});
model
.
set
(
"label"
,
"Description"
);
}
else
if
(
model
.
get
(
'name'
)
==
"owner"
)
{
model
.
set
(
"position"
,
4
,
{
silent
:
true
});
model
.
set
(
"label"
,
"Owner"
);
}
});
return
this
;
}
});
var
columns
=
new
columnCollection
(
that
.
getEntityTableColumns
());
columns
.
setPositions
().
sort
();
var
columns
=
new
Backgrid
.
Columns
(
that
.
getEntityTableColumns
());
that
.
REntityTableLayoutView
.
show
(
new
TableLayout
(
_
.
extend
({},
that
.
commonTableOptions
,
{
globalVent
:
that
.
globalVent
,
columns
:
columns
,
includeOrderAbleColumns
:
true
columns
:
columns
})));
that
.
$
(
'.searchResult'
).
find
(
".inputAssignTag.multiSelect"
).
hide
();
that
.
renderBreadcrumb
();
...
...
@@ -392,16 +369,41 @@ define(['require',
},
getFixedDslColumn
:
function
()
{
var
that
=
this
,
nameCheck
=
0
,
col
=
{};
this
.
searchCollection
.
each
(
function
(
model
)
{
if
(
model
.
get
(
'name'
)
||
model
.
get
(
'qualifiedName'
))
{
++
nameCheck
}
});
if
(
Globals
.
taxonomy
)
{
col
[
'Check'
]
=
{
name
:
"selected"
,
label
:
""
,
cell
:
"select-row"
,
headerCell
:
"select-all"
};
}
if
(
nameCheck
>
0
)
{
col
[
'name'
]
=
{
label
:
"Name"
,
cell
:
"html"
,
editable
:
false
,
sortable
:
false
,
className
:
"searchTableName"
,
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
var
nameHtml
=
""
;
if
(
model
.
get
(
'$id$'
))
{
if
(
rawValue
===
undefined
)
{
if
(
model
.
get
(
'qualifiedName'
))
{
rawValue
=
model
.
get
(
'qualifiedName'
);
}
else
if
(
model
.
get
(
'$id$'
)
&&
model
.
get
(
'$id$'
).
qualifiedName
)
{
rawValue
=
model
.
get
(
'$id$'
).
qualifiedName
}
else
{
return
""
;
}
}
if
(
model
.
get
(
'$id$'
)
&&
model
.
get
(
'$id$'
).
id
)
{
nameHtml
=
'<a href="#!/detailPage/'
+
model
.
get
(
'$id$'
).
id
+
'">'
+
rawValue
+
'</a>'
;
}
else
{
nameHtml
=
'<a>'
+
rawValue
+
'</a>'
;
...
...
@@ -415,6 +417,43 @@ define(['require',
}
})
}
}
if
(
nameCheck
===
0
)
{
col
[
'typeName'
]
=
{
label
:
"Type Name"
,
cell
:
"html"
,
editable
:
false
,
sortable
:
false
,
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
var
nameHtml
=
""
;
if
(
rawValue
===
undefined
)
{
if
(
model
.
get
(
'$id$'
)
&&
model
.
get
(
'$id$'
)[
'$typeName$'
])
{
rawValue
=
model
.
get
(
'$id$'
)[
'$typeName$'
]
}
else
if
(
model
.
get
(
'$typeName$'
))
{
rawValue
=
model
.
get
(
'$typeName$'
);
}
else
if
(
model
.
get
(
'typeName'
))
{
rawValue
=
model
.
get
(
'typeName'
)
}
else
{
return
""
;
}
}
if
(
model
.
get
(
'$id$'
)
&&
model
.
get
(
'$id$'
).
id
)
{
nameHtml
=
'<a href="#!/detailPage/'
+
model
.
get
(
'$id$'
).
id
+
'">'
+
rawValue
+
'</a>'
;
}
else
{
nameHtml
=
'<a>'
+
rawValue
+
'</a>'
;
}
if
(
model
.
get
(
'$id$'
)
&&
model
.
get
(
'$id$'
).
state
&&
Globals
.
entityStateReadOnly
[
model
.
get
(
'$id$'
).
state
])
{
nameHtml
+=
'<button title="Deleted" class="btn btn-atlasAction btn-atlas deleteBtn"><i class="fa fa-trash"></i></button>'
;
return
'<div class="readOnly readOnlyLink">'
+
nameHtml
+
'</div>'
;
}
else
{
return
nameHtml
;
}
}
})
}
}
col
[
'description'
]
=
{
label
:
"Description"
,
cell
:
"String"
,
...
...
@@ -446,13 +485,6 @@ define(['require',
})
};
if
(
Globals
.
taxonomy
)
{
col
[
'Check'
]
=
{
name
:
"selected"
,
label
:
""
,
cell
:
"select-row"
,
headerCell
:
"select-all"
,
position
:
1
};
col
[
'terms'
]
=
{
label
:
"Terms"
,
cell
:
"Html"
,
...
...
release-log.txt
View file @
81ceabbd
...
...
@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL CHANGES:
ATLAS-1080 Regression - UI - hive_storagedesc is shown as "undefined" in UI.(kevalbhatt)
ATLAS-1089 Storm hook should handle cyclic references in topology object (mneethiraj via sumasai)
ATLAS-1086 Build failure in hive-bridge after security fixes in ATLAS-762 (sumasai)
ATLAS-1088 Fix /search api to default to fulltext on dsl failure (sumasai)
...
...
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