Status doesn't update correctly based on notification
Expected behaviour
- The UI should update to show the current status after kafka notifications
- The BCMS status should be accurate based on kafka notification status
Current behaviour
(note: I'm basing this on Task manager email notifications. I don't know what the time delay is between receiving this and the BCMS receiving Kafka notification)
- The UI is very slow to update. sometimes it doesn't update after refreshing
- When the UI does update, it shows a "Failed" status incorrectly
Steps to reproduce
Testing in this chapter
- Chapter status is "failed". Select Reload preview --> status changes to "loading preview"
- I got this Task Manager notification for "chapter ingest failed" (9:25 local time), this means the status should be "loading errors"
Chapter : bcms10000004.bgd-biotin-NoAbHead.2.aad800
Target : PMCA3
Started at : 2021-12-07 02:09:08
Failed at : 2021-12-07 02:25:20
http://ipmc-prod.be-md.ncbi.nlm.nih.gov:5701/internal/utils/tm/index.fcgi?s=monitor&sel=1&sessid=11494009
- View chapter in the BCMS at 9:32 local time (7 mins after receiving the Task Manager notification). See video of point below:
ncbidev-status-update-bug-20211207
- The status has not updated from "loading preview" to "loading errors"
- The submit button is active (it should not be in either of these states)
- going between book manager page and book component page does not update the status, nor does hard refresh.
- Select 'submit button' --> status changes to converting
- I got this Task Manager notification for "word conversion completed" (9:46 local time), this means the status should be "loading preview"
Package : bcms10000004.bgd-biotin-NoAbHead.docx.df0395.2021_12_07-07_33_40.zip
BCMS jobid : df0395
Started at : 2021-12-07 02:34:47
Completed at : 2021-12-07 02:45:31
http://ipmc-prod.be-md.ncbi.nlm.nih.gov:5701/internal/utils/tm/index.fcgi?s=monitor&sel=1&sessid=11494134
- View chapter in the BCMS at 9:49 local time (3 mins after receiving the Task Manager notification). See video of point below:
ncbidev-ConvertingStatus-update-bug-20211207
- The status has not updated from "converting" to "loading preview"
- When I hard refresh, the status changes to "failed"
- Go to errors, tab. Both sessions above are reported as "failed" status
Environment
Mac 13,3-inch; Chrome Version 96.0.4664.55
Priority
Highest priority (with #839 (closed)) so NCBI can continue testing