RED-10405: check if file isError, indent pending type, remove unknown.
This commit is contained in:
parent
4b68708624
commit
d99f96b079
@ -61,6 +61,7 @@
|
||||
*ngFor="let config of statusConfig"
|
||||
[attr.help-mode-key]="'dashboard_in_dossier'"
|
||||
[config]="config"
|
||||
[class.indent]="!!PendingTypes[config.id]"
|
||||
[filterKey]="PendingTypes[config.id] ? 'pendingTypeFilters' : 'processingTypeFilters'"
|
||||
></iqser-progress-bar>
|
||||
</div>
|
||||
|
||||
@ -45,3 +45,7 @@
|
||||
iqser-progress-bar:not(:last-child) {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.indent {
|
||||
margin-left: 32px;
|
||||
}
|
||||
|
||||
@ -159,7 +159,6 @@ export class DossierDetailsComponent extends ContextComponent<DossierDetailsCont
|
||||
const files = this._filesMapService.get(this.#dossierId);
|
||||
const numberOfRulesLockedFiles = files.filter(file => file.errorCode === FileErrorCodes.LOCKED_RULES).length;
|
||||
const numberOfTimeoutFiles = files.filter(file => file.errorCode === FileErrorCodes.RULES_EXECUTION_TIMEOUT).length;
|
||||
const numberOfUnknownErrorFiles = stats.processingStats.pending - numberOfRulesLockedFiles - numberOfTimeoutFiles;
|
||||
return [
|
||||
{
|
||||
id: ProcessingTypes.pending,
|
||||
@ -182,13 +181,6 @@ export class DossierDetailsComponent extends ContextComponent<DossierDetailsCont
|
||||
count: numberOfTimeoutFiles,
|
||||
icon: 'red:reanalyse',
|
||||
},
|
||||
{
|
||||
id: PendingTypes.unknown,
|
||||
label: _('processing-status.pending-unknown'),
|
||||
total: stats.numberOfFiles,
|
||||
count: numberOfUnknownErrorFiles,
|
||||
icon: 'red:reanalyse',
|
||||
},
|
||||
{
|
||||
id: ProcessingTypes.ocr,
|
||||
label: _('processing-status.ocr'),
|
||||
|
||||
@ -987,7 +987,7 @@
|
||||
"download-file-disabled": "Download: Sie müssen Genehmiger im Dossier sein und die initiale Verarbeitung {count, plural, one{der Datei} other{der Dateien}} muss abgeschlossen sein.",
|
||||
"file-listing": {
|
||||
"file-entry": {
|
||||
"file-error": "Reanalyse erforderlich ({errorCode, select, RULES_EXECUTION_TIMEOUT{Zeitlimit für Regeln} LOCKED_RULES{Regeln gesperrt} other{unbekannt}})",
|
||||
"file-error": "Reanalyse erforderlich {errorCode, select, RULES_EXECUTION_TIMEOUT{(Zeitlimit für Regeln)} LOCKED_RULES{(Regeln gesperrt)} other{}}",
|
||||
"file-pending": "Ausstehend ..."
|
||||
}
|
||||
},
|
||||
@ -2103,7 +2103,6 @@
|
||||
"pending": "Ausstehend",
|
||||
"pending-locked-rules": "Ausstehend (Regeln gesperrt)",
|
||||
"pending-timeout": "Ausstehend (Zeitlimit für Regeln)",
|
||||
"pending-unknown": "Ausstehend (unbekannt)",
|
||||
"processed": "Verarbeitet",
|
||||
"processing": "Verarbeitung läuft"
|
||||
},
|
||||
|
||||
@ -987,7 +987,7 @@
|
||||
"download-file-disabled": "To download, ensure you are an approver in the dossier, and the {count, plural, one{file has undergone} other{files have undergone}} initial processing.",
|
||||
"file-listing": {
|
||||
"file-entry": {
|
||||
"file-error": "Re-processing required ({errorCode, select, RULES_EXECUTION_TIMEOUT{Rules timeout} LOCKED_RULES{Rules locked} other{unknown}})",
|
||||
"file-error": "Re-processing required {errorCode, select, RULES_EXECUTION_TIMEOUT{(Rules timeout)} LOCKED_RULES{(Rules locked)} other{}}",
|
||||
"file-pending": "Pending..."
|
||||
}
|
||||
},
|
||||
@ -2103,7 +2103,6 @@
|
||||
"pending": "Pending",
|
||||
"pending-locked-rules": "Pending (Rules locked)",
|
||||
"pending-timeout": "Pending (Rules timeout)",
|
||||
"pending-unknown": "Pending (unknown)",
|
||||
"processed": "Processed",
|
||||
"processing": "Processing"
|
||||
},
|
||||
|
||||
@ -987,7 +987,7 @@
|
||||
"download-file-disabled": "Download: Sie müssen Genehmiger im Dossier sein und die initiale Verarbeitung {count, plural, one{der Datei} other{der Dateien}} muss abgeschlossen sein.",
|
||||
"file-listing": {
|
||||
"file-entry": {
|
||||
"file-error": "Reanalyse erforderlich ({errorCode, select, RULES_EXECUTION_TIMEOUT{Zeitlimit für Regeln} LOCKED_RULES{Regeln gesperrt} other{unbekannt}})",
|
||||
"file-error": "Reanalyse erforderlich {errorCode, select, RULES_EXECUTION_TIMEOUT{(Zeitlimit für Regeln)} LOCKED_RULES{(Regeln gesperrt)} other{}}",
|
||||
"file-pending": "Ausstehend ..."
|
||||
}
|
||||
},
|
||||
@ -2103,7 +2103,6 @@
|
||||
"pending": "Ausstehend",
|
||||
"pending-locked-rules": "Ausstehend (Regeln gesperrt)",
|
||||
"pending-timeout": "Ausstehend (Zeitlimit für Regeln)",
|
||||
"pending-unknown": "Ausstehend (unbekannt)",
|
||||
"processed": "Verarbeitet",
|
||||
"processing": "Verarbeitung läuft"
|
||||
},
|
||||
|
||||
@ -987,7 +987,7 @@
|
||||
"download-file-disabled": "To download, ensure you are an approver in the dossier, and the {count, plural, one{file has undergone} other{files have undergone}} initial processing.",
|
||||
"file-listing": {
|
||||
"file-entry": {
|
||||
"file-error": "Re-processing required ({errorCode, select, RULES_EXECUTION_TIMEOUT{Rules timeout} LOCKED_RULES{Rules locked} other{unknown}})",
|
||||
"file-error": "Re-processing required {errorCode, select, RULES_EXECUTION_TIMEOUT{(Rules timeout)} LOCKED_RULES{(Rules locked)} other{}}",
|
||||
"file-pending": "Pending..."
|
||||
}
|
||||
},
|
||||
@ -2103,7 +2103,6 @@
|
||||
"pending": "Pending",
|
||||
"pending-locked-rules": "Pending (Rules locked)",
|
||||
"pending-timeout": "Pending (Rules timeout)",
|
||||
"pending-unknown": "Pending (unknown)",
|
||||
"processed": "Processed",
|
||||
"processing": "Processing"
|
||||
},
|
||||
|
||||
@ -15,7 +15,6 @@ export type ProcessingType = keyof typeof ProcessingTypes;
|
||||
export const PendingTypes = {
|
||||
lockedRules: 'lockedRules',
|
||||
timeout: 'timeout',
|
||||
unknown: 'unknown',
|
||||
} as const;
|
||||
|
||||
export type PendingType = keyof typeof PendingTypes;
|
||||
|
||||
@ -161,7 +161,7 @@ export class File extends Entity<IFile> implements IFile {
|
||||
file.fileAttributes && file.fileAttributes.attributeIdToValue ? file.fileAttributes : { attributeIdToValue: {} };
|
||||
|
||||
this.processingType = this.#processingType;
|
||||
this.errorCode = file.fileErrorInfo?.errorCode;
|
||||
this.errorCode = this.isError ? file.fileErrorInfo?.errorCode : undefined;
|
||||
this.pendingType = this.processingType === ProcessingTypes.pending ? this.#pendingType : undefined;
|
||||
}
|
||||
|
||||
@ -195,14 +195,14 @@ export class File extends Entity<IFile> implements IFile {
|
||||
return ProcessingTypes.processed;
|
||||
}
|
||||
|
||||
get #pendingType(): PendingType {
|
||||
get #pendingType(): PendingType | undefined {
|
||||
if (this.errorCode === FileErrorCodes.LOCKED_RULES) {
|
||||
return PendingTypes.lockedRules;
|
||||
}
|
||||
if (this.errorCode === FileErrorCodes.RULES_EXECUTION_TIMEOUT) {
|
||||
return PendingTypes.timeout;
|
||||
}
|
||||
return PendingTypes.unknown;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
isPageExcluded(page: number): boolean {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user