Statuses BookComponent - Source - Converted Files
Based on the wiki here . We need to update Statuses of Book, Book Component, and Files. For this we need two basic changes:
-
fix the side effects of not having a source file -
fix statuses based on the tables of the wiki. Are 3-4 cases that should change -
Update the restriction rules based on the table. this means there that there are some rules when we should change status or not.
@danjela's questions from #565 (closed) are resolved by this issue, and the decisions below:
-
On the book manager row for each chapter we should show the book component version number only. It would be confusing to show a file version because this should always reflect whatever is the latest -- sometimes this would be the source file version and sometimes this would be the converted file version. -
When the book component status is "In Review" we also show the source file status on the book component row. The change here is: show the status of whichever file is most recent: either source or converted. That's meaningful to the user because whichever file is most recent is the one being processed. 3. [ ] Finally the file version for the Last published value on the book component row should change to display the Book Component Version Number + most recent published converted file version
I've also linked related issues that will be resolved by this work
Work-in-progress corrections:
- For the wholebook use case, when status = new book
-
the 'Reload preview' button should be inactive on the files tab -
I upload a converted file, the file status is correct but the book component and book status does not change
-
-
When I request a review on a wholebook or chapter within a chapter-brocessed book, the book component status does not change to In Review -- this is blocking me from testing other use cases. See screen recording in #note_63789