Status changes to "Published" before NCBI processes for this status have completed
User Story: User needs accurate statuses that reflect the NCBI Bookshelf website for content management, tracking, and reporting
Expected behaviour
File and component status only changes to "Published" when the content is truely "Published" on the NCBI Bookshelf website
Current behaviour
The File and component status is changing to "Published" before the PMCBook and Task Manager systems have completed necessary steps to make the content "Published" on the live NCBI Bookshelf website
Steps to reproduce
See - publishing
- Find a component in "Previewing"
- Select it and press "Publish"
- Check NCBI logs (only NCBI can do this)
Environment
PC Chrome Version 92.0.4515.159 (Official Build) (64-bit)
Solution
- When package is set with
release
=true
, make the status "publishing". - If BCMS gets a "success" response (status=0) make the status "published'.
- If BCMS gets a "failed" response (status=3) make the status "publishing failed'. These errors are shown on the errors tab.
This same functionality applies to toc.xml packages as described in Step 8 in #739 (closed)
UI Improvement: when user selects "publish" for more or more chapters in "Previewing" status, this opens the confirmation modal. When user selects "publish" in the modal, the modal should close, and each chapter gets the "Publishing" status (until the kafka notification is received and the status is updated.)