Number counts on open issues for PDF chapters WF is not correct
On the issues tab of a book component for the PDF chapter processed, when there are issues there is also a label which counts how many are open and how many in total.
Expected behavior
When the user opens an issue the label updates as 1/1 OPEN. And if this is closed it updates to 0/1 OPEN. For chapter processed books, each book component has their own issues and count.
Current behavior
When there are two chapters with issues (or more), the value number at OPEN always are the same with the component which had issues created first. Example here The first component has no issues and still has 4/5 OPEN.
Steps to reproduce
- Create a chapter processed PDF book
- Upload at least two chapters
- Go to one of the chapters, on the issues tab, create two issues. The count will show 2/2 OPEN
- Go to the other chapter and see that it will show the count 2/2 OPEN even though there are no issues. Create one issue there and the count will not update.
Environment
[Provide browser name and version and if you're working from a PC or Mac]
Possible solution
[Not required. Suggest a fix for the bug]
NCBI's priority feedback
[Select "Y" or "N" and provide an explanation]
- This bug is blocking NCBI's work on migration planning for deployment 1 (Y/N)
- This can be prioritised after deployment 1 (Y/N)
QA Steps
- Create a chapter processed PDF book
- Upload at least two chapters
- Go to one of the chapters, on the issues tab, create two issues. The count will show 2/2 OPEN
- Go to the other chapter and see that it will not show the count 2/2 OPEN because there are no issues for that chapter. Create one issue there and the count will update.