Skip to content
Snippets Groups Projects
Commit a590b4aa authored by Daniel Lyons's avatar Daniel Lyons
Browse files

Display the fetch status

parent b4485a93
No related branches found
No related tags found
2 merge requests!1452Merge 2.8.2 to main,!1417Add the FETCH stage completion state to the workflow_metadata field on the capability version
......@@ -149,7 +149,7 @@
<td [ngClass]="{'stage1-status': getExecutionStatusName(request) === 'Awaiting QA',
'execution-status': getExecutionStatusName(request) === 'Executing',
'stage2-status': getExecutionStatusName(request) === 'Stage 2 Review'}">{{ getExecutionStatusName(request) }}</td>
<td>{{ request.latestVersion.workflow_metadata.download_status }}</td>
<td>{{ getFetchStatus(request) }}</td>
<td>{{ getMetadata(request).sdm_id }}</td>
<td>{{ getMetadata(request).bands ? getMetadata(request).bands.split(' ').join(', ') : "" }}</td>
<td>{{ getMetadata(request).array_config }}</td>
......
......@@ -716,4 +716,19 @@ export class ActiveCapabilityRequestsComponent implements OnInit, OnDestroy {
trackActiveRequests(index: number, activeRequest: any) {
return activeRequest.id;
}
getFetchStatus(request: CapabilityRequest): string {
// figure out the latest version
if (request.versions.length == 0)
return "Not started";
let version = request.versions[request.versions.length - 1];
if (version.workflow_metadata && version.workflow_metadata.fetch_end_time)
return "Complete";
else if (version.workflow_metadata && version.workflow_metadata.fetch_start_time)
return "In Progress";
else
return "Not started";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment