Closed berntpopp closed 6 hours ago
related error message: [Error] Error fetching cohort status for Cohort ID 79668108-2d73-436d-b9c5-7efde2fd301e: Cannot read properties of undefined (reading 'has')
Also for single jobs, the status is not updating correctly anymore.
Description
When querying the cohort status using the
getCohortStatus
API, the status of jobs in the cohort is retrieved successfully. However, the UI does not reflect these status updates. Each job remains in theSubmitted
status, even if its actual status has changed (e.g.,Processing
orCompleted
).Steps to Reproduce
Submitted
for all jobs, regardless of their actual status.Expected Behavior
Actual Behavior
Submitted
status in the UI.Possible Cause
updateCohortUI
function does not correctly map thestatus
field from the API response to the UI elements.Suggested Fix
updateCohortUI
to update each job's status dynamically based on the latest API response.Additional Context
pollJobStatusAPI
.