mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ADF-4707] add properties in node selector search (#4878)
* add properties in node selector search * fix test
This commit is contained in:
parent
d531a022d0
commit
90c403ae9e
@ -331,7 +331,7 @@ describe('ContentNodeSelectorComponent', () => {
|
|||||||
query: {
|
query: {
|
||||||
query: searchTerm ? `${searchTerm}* OR name:${searchTerm}*` : searchTerm
|
query: searchTerm ? `${searchTerm}* OR name:${searchTerm}*` : searchTerm
|
||||||
},
|
},
|
||||||
include: ['path', 'allowableOperations'],
|
include: ['path', 'allowableOperations', 'properties'],
|
||||||
paging: {
|
paging: {
|
||||||
maxItems: 25,
|
maxItems: 25,
|
||||||
skipCount: skipCount
|
skipCount: skipCount
|
||||||
|
@ -23,6 +23,7 @@ import { ContentTestingModule } from '../testing/content.testing.module';
|
|||||||
|
|
||||||
class SearchServiceMock {
|
class SearchServiceMock {
|
||||||
public query: QueryBody;
|
public query: QueryBody;
|
||||||
|
|
||||||
searchByQueryBody(query: QueryBody) {
|
searchByQueryBody(query: QueryBody) {
|
||||||
this.query = query;
|
this.query = query;
|
||||||
}
|
}
|
||||||
@ -56,7 +57,7 @@ describe('ContentNodeSelectorService', () => {
|
|||||||
it('should make it including the path and allowableOperations', () => {
|
it('should make it including the path and allowableOperations', () => {
|
||||||
service.search('nuka cola quantum');
|
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', () => {
|
it('should make the search restricted to nodes only', () => {
|
||||||
|
@ -60,7 +60,7 @@ export class ContentNodeSelectorService {
|
|||||||
query: {
|
query: {
|
||||||
query: `${searchTerm}* OR name:${searchTerm}*`
|
query: `${searchTerm}* OR name:${searchTerm}*`
|
||||||
},
|
},
|
||||||
include: ['path', 'allowableOperations'],
|
include: ['path', 'allowableOperations', 'properties'],
|
||||||
paging: {
|
paging: {
|
||||||
maxItems: maxItems,
|
maxItems: maxItems,
|
||||||
skipCount: skipCount
|
skipCount: skipCount
|
||||||
|
Loading…
x
Reference in New Issue
Block a user