refactor(api): optimize caching mechanisms and improve book filtering (#372)
* refactor(api): optimize caching mechanisms and improve book filtering logic * refactor(preferences): remove unused ExternalDocLinkComponent and enhance translate function typing * refactor(initializer): add Duration import for improved cache management * refactor(docker): increase MaxMetaspaceSize for improved memory management * refactor(repository): replace findAllForSummaryByIds with findAllById * refactor(cache): implement invalidateAppBooksQueries for improved cache management * refactor(AppBookService): increase default page size and optimize magic shelf book resolution * refactor(AppBookSpecification, MagicShelfBookService, TaskCancellationManager, magic-shelf-component): streamline join handling and improve memory management * refactor(AppBookService, MagicShelfBookService): enhance book retrieval logic and improve error handling * chore: fix formatting * chore: fix formatting
This commit is contained in:
@@ -85,6 +85,7 @@ describe('SecureSrcDirective', () => {
|
||||
expect(errorSpy).not.toHaveBeenCalled();
|
||||
|
||||
fixture.componentInstance.src = '/covers/3';
|
||||
fixture.changeDetectorRef.markForCheck();
|
||||
fixture.detectChanges();
|
||||
|
||||
const secondRequest = httpTestingController.expectOne('/covers/3');
|
||||
@@ -104,6 +105,7 @@ describe('SecureSrcDirective', () => {
|
||||
httpTestingController.expectOne('/covers/4').flush(new Blob(['first']));
|
||||
|
||||
fixture.componentInstance.src = '/covers/5';
|
||||
fixture.changeDetectorRef.markForCheck();
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(revokeSpy).toHaveBeenCalledWith('blob:first');
|
||||
|
||||
Reference in New Issue
Block a user