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
e159f767
Commit
e159f767
authored
Feb 20, 2020
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3623 : Beta UI: Basic search improvement to search for namespace…
ATLAS-3623 : Beta UI: Basic search improvement to search for namespace attribute: Bug fix for column selection
parent
b0c85dd9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
+9
-15
SearchDefaultLayoutView.js
...boardv3/public/js/views/search/SearchDefaultLayoutView.js
+8
-14
SearchResultLayoutView.js
dashboardv3/public/js/views/search/SearchResultLayoutView.js
+1
-1
No files found.
dashboardv3/public/js/views/search/SearchDefaultLayoutView.js
View file @
e159f767
...
...
@@ -352,7 +352,7 @@ define(["require", "backbone", "utils/Globals", "hbs!tmpl/search/SearchDefaultLa
},
getIdFromRuleObj
:
function
(
rule
)
{
var
that
=
this
,
col
=
[]
;
col
=
new
Set
()
;
_
.
map
(
rule
.
rules
,
function
(
obj
,
key
)
{
if
(
obj
.
id
===
"__state"
)
{
that
.
options
.
value
.
includeDE
=
(
obj
.
value
===
"ACTIVE"
&&
obj
.
operator
===
"="
)
||
(
obj
.
value
===
"DELETED"
&&
obj
.
operator
===
"!="
)
?
false
:
true
;
...
...
@@ -360,10 +360,14 @@ define(["require", "backbone", "utils/Globals", "hbs!tmpl/search/SearchDefaultLa
if
(
_
.
has
(
obj
,
"condition"
))
{
return
that
.
getIdFromRuleObj
(
obj
);
}
else
{
return
col
.
push
(
obj
.
id
);
if
(
obj
&&
obj
.
data
&&
obj
.
data
.
entityType
===
"namespace"
)
{
return
col
.
add
(
"namespace"
);
}
else
{
return
col
.
add
(
obj
.
id
);
}
}
});
return
col
;
return
Array
.
from
(
col
)
;
},
updateFilterOptions
:
function
(
rule
,
filtertype
,
isTag
)
{
var
that
=
this
,
...
...
@@ -371,19 +375,9 @@ define(["require", "backbone", "utils/Globals", "hbs!tmpl/search/SearchDefaultLa
this
.
options
.
searchTableFilters
[
filtertype
][
isTag
?
this
.
options
.
value
.
tag
:
this
.
options
.
value
.
type
]
=
ruleUrl
;
if
(
!
isTag
&&
this
.
options
.
value
&&
this
.
options
.
value
.
type
&&
this
.
options
.
searchTableColumns
)
{
if
(
!
this
.
options
.
searchTableColumns
[
this
.
options
.
value
.
type
])
{
this
.
options
.
searchTableColumns
[
this
.
options
.
value
.
type
]
=
[
"selected"
,
"name"
,
"
owner"
,
"description"
,
"tag"
,
"typeName
"
];
this
.
options
.
searchTableColumns
[
this
.
options
.
value
.
type
]
=
[
"selected"
,
"name"
,
"
description"
,
"typeName"
,
"owner"
,
"tag"
,
"term
"
];
}
this
.
options
.
searchTableColumns
[
this
.
options
.
value
.
type
]
=
_
.
sortBy
(
_
.
union
(
this
.
options
.
searchTableColumns
[
this
.
options
.
value
.
type
],
this
.
getIdFromRuleObj
(
rule
)));
if
(
rule
.
rules
)
{
_
.
find
(
rule
.
rules
,
function
(
checkNamespace
)
{
if
(
checkNamespace
.
data
&&
checkNamespace
.
data
.
entityType
&&
checkNamespace
.
data
.
entityType
==
'namespace'
)
{
if
(
that
.
options
.
searchTableColumns
[
that
.
options
.
value
.
type
].
indexOf
(
'namespace'
)
==
-
1
)
{
that
.
options
.
searchTableColumns
[
that
.
options
.
value
.
type
].
push
(
checkNamespace
.
data
.
entityType
);
}
return
true
;
}
});
}
}
},
renderQueryBuilder
:
function
(
obj
,
rQueryBuilder
)
{
...
...
dashboardv3/public/js/views/search/SearchResultLayoutView.js
View file @
e159f767
...
...
@@ -787,7 +787,7 @@ define(['require',
}
})
};
col
[
'
Namespaces
'
]
=
{
col
[
'
namespace
'
]
=
{
label
:
"Namespaces"
,
cell
:
"Html"
,
editable
:
false
,
...
...
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