[ADF-No-issue-number] search problem type fix (#3068)

* search problem type fix

* fix type test

* fix test node selector

* fix test content node selector panel
This commit is contained in:
Eugenio Romano
2018-03-13 12:10:06 +00:00
committed by GitHub
parent ba905acf13
commit c3e2588e35
8 changed files with 18 additions and 17 deletions

View File

@@ -26,7 +26,8 @@ import { Observable } from 'rxjs/Observable';
@Injectable()
export class ContentNodeSelectorService {
constructor(private searchService: SearchService) {}
constructor(private searchService: SearchService) {
}
/**
* Performs a search for content node selection
@@ -47,11 +48,11 @@ export class ContentNodeSelectorService {
extraNodeIds
.filter(id => id !== rootNodeId)
.forEach(extraId => {
extraParentFiltering += ` OR ANCESTOR:'workspace://SpacesStore/${extraId}'`;
});
extraParentFiltering += ` OR ANCESTOR:'workspace://SpacesStore/${extraId}'`;
});
}
const parentFiltering = rootNodeId ? [ { query: `ANCESTOR:'workspace://SpacesStore/${rootNodeId}'${extraParentFiltering}` } ] : [];
const parentFiltering = rootNodeId ? [{ query: `ANCESTOR:'workspace://SpacesStore/${rootNodeId}'${extraParentFiltering}` }] : [];
let defaultSearchNode: any = {
query: {
@@ -59,8 +60,8 @@ export class ContentNodeSelectorService {
},
include: ['path', 'allowableOperations'],
paging: {
maxItems: `${maxItems}`,
skipCount: `${skipCount}`
maxItems: maxItems,
skipCount: skipCount
},
filterQueries: [
{ query: "TYPE:'cm:folder'" },