Unable to publish chapters because of an unexplained error
cc @jordandc
Expected behaviour
User should be able to publish chapters in a previewing state.
Current behaviour
Not able to publish a number of chapters because of an unexplained error:
Steps to reproduce
Go to: ncbi.cloud68.co/organizations/9f638bd9-4226-4d99-a9fb-579dba128443/bookmanager/9a3107b8-4661-44d8-be72-acbda43d4f58
- Select all chapters in previewing state
- Publish
- In modal press publish again
- See error provided above
(Note first time did this received a different red box error I could not capture, and a few did manage to Publish, but not all; when I tried again I got the error here)
Update trying to publish in this book with same steps to reproduce:
Got this error that doesn't make sense to me -
Update: Now I see published statuses, but there is a long disconnect between doing the action, seeing red pop up errors, and then a status change.
Solution
-
Resolve possible errors at publish step: increase the execution time of a request above the default value of 2 minutes. (this is fixed as a result of #915 (closed)) -
Resolve possible errors at publish step: When a update domain request fails due to 502
error (this can be resolved by implementing #800 (closed)) -
Improve the user experience as below: - User selects chapters in bulk and selects publish button
- Confrimation modal is shown, user selects publish button
- Modal closes, users sees "Publishing spinner" and then relevant chapters status update to "publishing"
- The publish button should be inactive during spinner action and "publishing" status
Environment
N/A
QA Steps
- Select all chapters in previewing state
- Publish
- In modal press publish again, see status change to publishing
- If there is a valid error status will change to publishing failed and the errors will show on the errors tab
- Alternatively, to test on NCBI production deployment, follow the related QA steps: #800 (closed)
Priority
Y - need to be able to publish a representative sample of chapters to test TOCs