Skip to content

Commit

Permalink
Merge pull request #939 from MetadataConsulting/MET-1375_All_Ellement…
Browse files Browse the repository at this point in the history
…s_View

MET-1375 Added a fix for the search in template, plus some comments
  • Loading branch information
davidmilward authored Feb 21, 2017
2 parents c520193 + 6d1e755 commit f668fa6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,10 @@ <h3 class="panel-title" title="{{element.name}}">
</p>
<ng-include src="view.template"></ng-include>
</div>
<!--<div class="row detail-section show-more-detail-section">-->
<!--<p ng-click="element.$$full = true" class="with-pointer text-center detail-section-title small">-->
<!--<span class="title">Show More</span>-->
<!--</p>-->
<!--</div>-->
<!--<p ng-click="element.$$full = false" class="with-pointer text-center detail-section-title small">-->
<!--&lt;!&ndash;<span class="title">Show More</span>&ndash;&gt;-->
<!--<span class="fa fa-angle-double-up" aria-hidden="true"></span>-->
<!--</p>-->
</form>
</div>
</div>
<!--<div class="panel-actions" ng-if="!noActions">-->
<!--<contextual-actions size="sm" no-colors="true" icon-only="true" group="true"-->
<!--role="item-infinite-list"></contextual-actions>-->
<!--</div>-->

</div>
</div>
<div class="row" ng-if="elements.length < total">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ x in ['apple', 'banana', 'cherry']
'dataClass'
]
keys: []
hideInOverview: true
template: '/mc/core/ui/detail-sections/tableData.html'
actions: [
{
Expand Down Expand Up @@ -277,6 +278,7 @@ x in ['apple', 'banana', 'cherry']
'dataClass'
]
keys: []
hideInOverview: true
template: '/mc/core/ui/detail-sections/tableData.html'
actions: [
{
Expand Down Expand Up @@ -328,6 +330,7 @@ x in ['apple', 'banana', 'cherry']
'dataType'
]
keys: []
hideInOverview: true
template: '/mc/core/ui/detail-sections/tableData.html'
getList: (element) ->
return @result if @result
Expand Down Expand Up @@ -365,6 +368,7 @@ x in ['apple', 'banana', 'cherry']
'validationRule'
]
keys: []
hideInOverview: true
template: '/mc/core/ui/detail-sections/tableData.html'
actions: [
{
Expand Down Expand Up @@ -421,6 +425,7 @@ x in ['apple', 'banana', 'cherry']
'validationRule'
]
keys: []
hideInOverview: true
template: '/mc/core/ui/detail-sections/tableData.html'
actions: [
{
Expand Down Expand Up @@ -478,6 +483,7 @@ x in ['apple', 'banana', 'cherry']
'dataElement'
]
keys: []
hideInOverview: true
template: '/mc/core/ui/detail-sections/tableData.html'
actions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class ElasticSearchService implements SearchCatalogue {
// relationship copies relationship type mapping
mapping[typeName].properties.data_model = getMapping(DataModel).data_model
}

//Ignore date information NOT mapped as date
if (toplevel) {
mapping[typeName].date_detection = false
}
Expand Down Expand Up @@ -633,10 +633,13 @@ class ElasticSearchService implements SearchCatalogue {
if (response.exists) {
return just(response.index)
}

//Create elastic serach builder
CreateIndexRequestBuilder request = client.admin()
.indices()
.prepareCreate(response.index)

//add mappings for index
for (Class type in supportedTypes) {
request.addMapping(getTypeName(type), getMapping(type, true))
}
Expand Down

0 comments on commit f668fa6

Please sign in to comment.