[ADF-4707] add properties in node selector search (#4878)

* add properties in node selector search

* fix test
This commit is contained in:
Eugenio Romano 2019-06-25 15:37:24 +01:00 committed by GitHub
parent d531a022d0
commit 90c403ae9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -331,7 +331,7 @@ describe('ContentNodeSelectorComponent', () => {
query: {
query: searchTerm ? `${searchTerm}* OR name:${searchTerm}*` : searchTerm
},
include: ['path', 'allowableOperations'],
include: ['path', 'allowableOperations', 'properties'],
paging: {
maxItems: 25,
skipCount: skipCount

View File

@ -23,6 +23,7 @@ import { ContentTestingModule } from '../testing/content.testing.module';
class SearchServiceMock {
public query: QueryBody;
searchByQueryBody(query: QueryBody) {
this.query = query;
}
@ -56,7 +57,7 @@ describe('ContentNodeSelectorService', () => {
it('should make it including the path and allowableOperations', () => {
service.search('nuka cola quantum');
expect(search.query.include).toEqual(['path', 'allowableOperations']);
expect(search.query.include).toEqual(['path', 'allowableOperations', 'properties']);
});
it('should make the search restricted to nodes only', () => {

View File

@ -60,7 +60,7 @@ export class ContentNodeSelectorService {
query: {
query: `${searchTerm}* OR name:${searchTerm}*`
},
include: ['path', 'allowableOperations'],
include: ['path', 'allowableOperations', 'properties'],
paging: {
maxItems: maxItems,
skipCount: skipCount