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:
+6
-2
@@ -157,9 +157,13 @@ describe('MetadataProgressWidgetComponent', () => {
|
||||
translocoService.translate('shared.metadataProgress.statusError')
|
||||
);
|
||||
|
||||
component.ngOnDestroy();
|
||||
vi.advanceTimersByTime(60000);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
expect((component as any).timeoutHandles.size).toBe(1);
|
||||
|
||||
component.ngOnDestroy();
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
expect((component as any).timeoutHandles.size).toBe(0);
|
||||
expect(component.activeTasks[task.taskId]).toEqual(task);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -58,6 +58,7 @@ describe('TagComponent', () => {
|
||||
host.variant = 'pill';
|
||||
host.rounded = true;
|
||||
host.pill = true;
|
||||
fixture.changeDetectorRef.markForCheck();
|
||||
fixture.detectChanges();
|
||||
|
||||
const tag = fixture.nativeElement.querySelector('span') as HTMLSpanElement;
|
||||
|
||||
Reference in New Issue
Block a user