From d5535ddc62a9b9094046b4b9935dfad69ee620d8 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Sun, 20 Mar 2022 20:22:44 +0200 Subject: [PATCH] no longer remove user if file ends up in error state --- .../app/modules/file-preview/services/file-data.service.ts | 2 +- apps/red-ui/src/assets/config/config.json | 4 ++-- libs/red-domain/src/lib/dossier-stats/dossier-stats.model.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts b/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts index a53669d21..635ad622f 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts @@ -99,7 +99,7 @@ export class FileDataService { async loadAnnotations() { const file = await this._state.file; - if (!file || file.isError) { + if (!file) { const dossier = await this._state.dossier; return this._router.navigate([dossier.routerLink]); } diff --git a/apps/red-ui/src/assets/config/config.json b/apps/red-ui/src/assets/config/config.json index 4f84161f0..10c141307 100644 --- a/apps/red-ui/src/assets/config/config.json +++ b/apps/red-ui/src/assets/config/config.json @@ -1,7 +1,7 @@ { "ADMIN_CONTACT_NAME": null, "ADMIN_CONTACT_URL": null, - "API_URL": "https://dom1.iqser.cloud/redaction-gateway-v1", + "API_URL": "https://aks-staging.redactmanager.com/redaction-gateway-v1", "APP_NAME": "RedactManager", "AUTO_READ_TIME": 3, "BACKEND_APP_VERSION": "4.4.40", @@ -17,7 +17,7 @@ "MAX_RETRIES_ON_SERVER_ERROR": 3, "OAUTH_CLIENT_ID": "redaction", "OAUTH_IDP_HINT": null, - "OAUTH_URL": "https://dom1.iqser.cloud/auth/realms/redaction", + "OAUTH_URL": "https://aks-staging.redactmanager.com/auth/realms/redaction", "RECENT_PERIOD_IN_HOURS": 24, "SELECTION_MODE": "structural", "MANUAL_BASE_URL": "https://docs.redactmanager.com/preview" diff --git a/libs/red-domain/src/lib/dossier-stats/dossier-stats.model.ts b/libs/red-domain/src/lib/dossier-stats/dossier-stats.model.ts index 142f9af37..1aa89a44e 100644 --- a/libs/red-domain/src/lib/dossier-stats/dossier-stats.model.ts +++ b/libs/red-domain/src/lib/dossier-stats/dossier-stats.model.ts @@ -16,6 +16,7 @@ const PROCESSING_STATES: ProcessingFileStatus[] = [ ProcessingFileStatuses.NER_ANALYZING, ProcessingFileStatuses.PROCESSING, ProcessingFileStatuses.SURROUNDING_TEXT_PROCESSING, + ProcessingFileStatuses.FULL_PROCESSING, ]; const PROCESSED_STATES: ProcessingFileStatus[] = [ProcessingFileStatuses.PROCESSED];