internetarchive / internetarchive/openlibrary

Reading log counts in sidebar do not update when a book's status changes

Open
#5,339 0 comments 0 reactions 0 assignees View on GitHub
Lead: @mekarpeles Priority: 4 Type: Bug
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

After updating the status of a book in the reading log view, the log counts in the sidebar do not change.

### Evidence / Screenshot (if possible)
![log-counts-not-updating](https://user-images.githubusercontent.com/28732543/122800241-b3499680-d290-11eb-886f-bb535baa5ca7.png)
*Count is "1" after removing the only book from the "Currently Reading" log*
### Relevant url?

https://openlibrary.org/account/books

### Steps to Reproduce

1. Navigate to your reading log page. View any log that contains books.
2. Change the status of a book using the status drop-down input.
3. Note that the counts in the sidebar did not change.

* Actual: Counts in the sidebar do not change.
* Expected: Count in the sidebar accurately reflect the state of the patron's reading logs.

### Details

- **Logged in (Y/N)?** Y
- **Browser type/version?** N/A
- **Operating system?** N/A
- **Environment (prod/dev/local)?** prod

### Proposal & Constraints
- Avoid using jQuery.
- Identify other instances of this issue.
- Fix

### Related files

### Stakeholders

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.