precisely / web

1 stars 0 forks source link

Report does not display with multiple entries in user-sample table #355

Closed gcv closed 5 years ago

gcv commented 5 years ago

User signs up. Tries to upload a bad input file, which fails. The user-sample table gets stamped for that user ID with an error status. Then the user uploads a working file, it imputes and succeeds. That adds another row to user-sample with a success status for the same user ID. As long as the error user-sample row exists, the report does not render.

gcv commented 5 years ago

Solution: use just the entry which says "ready" if available. Else if there's one in "processing", get the latest one available. Else if there's one in "error", get the latest one available.