@@ -91,7 +91,7 @@ describe('CaseTreeService', () => {
9191 }
9292 } ) ;
9393
94- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
94+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
9595 } ) ;
9696
9797 it ( 'should initialize with root node hidden' , ( done ) => {
@@ -108,7 +108,7 @@ describe('CaseTreeService', () => {
108108 }
109109 } ) ;
110110
111- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
111+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
112112 } ) ;
113113
114114 it ( 'should initialize lazy-loaded tree with root node shown' , ( done ) => {
@@ -137,7 +137,7 @@ describe('CaseTreeService', () => {
137137 }
138138 } ) ;
139139
140- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
140+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
141141 } ) ;
142142
143143 it ( 'should initialize lazy-loaded tree with root node hidden' , ( done ) => {
@@ -168,7 +168,7 @@ describe('CaseTreeService', () => {
168168 }
169169 } ) ;
170170
171- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
171+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
172172 } ) ;
173173
174174 it ( 'should initialize eager-loaded tree with root node shown' , ( done ) => {
@@ -210,7 +210,7 @@ describe('CaseTreeService', () => {
210210 } ) ;
211211
212212 treeService . isEagerLoaded = true ;
213- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
213+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
214214 } ) ;
215215
216216 it ( 'should initialize eager-loaded tree with root node hidden' , ( done ) => {
@@ -250,7 +250,7 @@ describe('CaseTreeService', () => {
250250 } ) ;
251251
252252 treeService . isEagerLoaded = true ;
253- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
253+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
254254 } ) ;
255255
256256 it ( 'should add root child with root node shown' , ( done ) => {
@@ -281,7 +281,7 @@ describe('CaseTreeService', () => {
281281 }
282282 } ) ;
283283
284- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
284+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
285285 } ) ;
286286
287287 it ( 'should add root child with root node hidden' , ( done ) => {
@@ -307,7 +307,7 @@ describe('CaseTreeService', () => {
307307 }
308308 } ) ;
309309
310- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
310+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
311311 } ) ;
312312
313313 // NAE-1185
@@ -346,7 +346,7 @@ describe('CaseTreeService', () => {
346346 } ) ;
347347
348348 treeService . isEagerLoaded = true ;
349- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
349+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
350350 } ) ;
351351
352352 // NAE-1185 similar to the reported bug but in combination with changed fields response adding multiple sibling branches
@@ -395,7 +395,7 @@ describe('CaseTreeService', () => {
395395 } ) ;
396396
397397 treeService . isEagerLoaded = true ;
398- treeService . rootFilter = SimpleFilter . fromCaseQuery ( { stringId : 'root' } ) ;
398+ treeService . rootFilter = SimpleFilter . fromCaseQuery ( { id : 'root' } ) ;
399399 } ) ;
400400} ) ;
401401
@@ -452,11 +452,11 @@ class TreeTestCaseResourceService {
452452 public searchCases ( filter : Filter , params ?: Params ) : Observable < Page < Case > > {
453453 if ( filter . type === FilterType . CASE
454454 && ! Array . isArray ( filter . getRequestBody ( ) )
455- && ( filter . getRequestBody ( ) as CaseSearchRequestBody ) . stringId
456- && ! Array . isArray ( ( filter . getRequestBody ( ) as CaseSearchRequestBody ) . stringId ) ) {
455+ && ( filter . getRequestBody ( ) as CaseSearchRequestBody ) . id
456+ && ! Array . isArray ( ( filter . getRequestBody ( ) as CaseSearchRequestBody ) . id ) ) {
457457 const content : Array < Case > = [ ] ;
458- if ( this . mockCases . has ( ( filter . getRequestBody ( ) as CaseSearchRequestBody ) . stringId as string ) ) {
459- content . push ( this . mockCases . get ( ( filter . getRequestBody ( ) as CaseSearchRequestBody ) . stringId as string ) ) ;
458+ if ( this . mockCases . has ( ( filter . getRequestBody ( ) as CaseSearchRequestBody ) . id as string ) ) {
459+ content . push ( this . mockCases . get ( ( filter . getRequestBody ( ) as CaseSearchRequestBody ) . id as string ) ) ;
460460 }
461461 return of ( createMockPage ( content ) ) ;
462462 } else {
0 commit comments