From 49fed0947e4cd0b4cca38b259667a47b9592f8b0 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Thu, 16 Sep 2021 12:56:11 +0200 Subject: [PATCH] chore: Add todo for future improvements Signed-off-by: Johan Haals --- plugins/catalog-backend/src/next/DefaultRefreshService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/catalog-backend/src/next/DefaultRefreshService.ts b/plugins/catalog-backend/src/next/DefaultRefreshService.ts index bb713fd355..cfc7fa220b 100644 --- a/plugins/catalog-backend/src/next/DefaultRefreshService.ts +++ b/plugins/catalog-backend/src/next/DefaultRefreshService.ts @@ -33,6 +33,8 @@ export class DefaultRefreshService implements RefreshService { ref.startsWith('location:'), ); + // TODO: Refreshes are currently scheduled(as soon as possible) for execution and will therefore happen in the future. + // There's room for improvements here where the refresh could potentially hang or return an ID so that the user can check progress. if (locationAncestor) { await this.database.refresh(tx, { entityRef: locationAncestor,