Should not be able to publish Collection TOC unless at least one members (book) is published
Current behaviour
User should not be able to publish Collection TOC with no members belonging to that collection - there must be at least one published book belonging to the collection
New requirement behaviour
Currently user can publish the Collection TOC before any books (members belonging to the collection) are published
Steps to reproduce
- See example of user who was able to this here: https://ncbi.cloud68.co/organizations/32d78686-4b9a-46af-b52a-f5d0c4052177/collectionmanager/b1c66823-81ea-4be5-989f-6293ad54669f
- Notice TOC button top right is green indicating it is published
- Click on TOC button and see you have a published view:
Priority
Y, must work for deployment
QA Steps
- Create a new collection
- Add some books (new or existing) to this collection which do not have the status published
- Check the collection TOC, should not be able to publish
- Add a book which is published to the collection
- On collection TOC now you should be able to publish & click publish
- After collection TOC is published. Go to the book again and click reload preview or upload a second version of source file, so the status is not published anymore
- Go to collection TOC again, the button to update the published TOC should be inactive. This is to make sure that the same rules apply to update the published version of the toc as we have for when we publish the first time.