Should not be able to publish collection TOC with chapter-processed books in Published status but without any Published TOC
Expected behaviour
BCMS only permits user to publish collection TOC in circumstances where statuses will not cause content integrity issues / errors.
Whether or not the collection TOC can be published is decided by:
- EITHER at least one chapter-processed book with
TOC status == published
is present, OR - if there exist at least one whole book with
status == published
Current behaviour
User can publish collection TOC with chapter-processed books in Published status but without any Published TOC
Steps to reproduce
- Find chapter-processed Book with Only chapter in Previewing Status that belongs to collection with no members but it
- Publish one Chapter
- Do not publish book TOC / make sure it hasn't been published already on chron job
- Go to collection book belongs
- See that you can Publish collection even though chapter-processed book has no TOC landing page for collection link to be built - Press Publish
Priority
Y, for deployment
QA Steps
- Create a collection
- Create a chapter processed book and add it to this collection
- Upload book components and publish them (not the toc)
- GO to the collection toc button should be inactive
- Go back to the book and publish the toc
- After TOC of the book is published. Go to the collection TOC and the button should be active
- remove the book from the collection. The publish button on the Collection TOC should be inactive again.