Athou / commafeed

Google Reader inspired self-hosted personal RSS reader.
https://www.commafeed.com
Apache License 2.0
2.82k stars 377 forks source link

Left menu : unread items by category not shown anymore #1180

Closed canoine closed 11 months ago

canoine commented 11 months ago

Hello,

Describe the bug Since today's changes, the number of unread items by category isn't available anymore. However the "All" unread items is still shown and correct. (Edit : no, it isn't)

To Reproduce Update and restart commafeed.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Capture d’écran_2023-12-29_20-39-27

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Athou commented 11 months ago

Since today's changes, the number of unread items by category isn't available anymore.

The unread count is only displayed on collapsed categories, It's been like this since the 3.0 revamp, I don't think I changed something about that recently 😄

However the "All" unread items is still shown and correct. (Edit : no, it isn't)

I'm not sure I understand your edit, could you please elaborate on what's not working?

canoine commented 11 months ago

The unread count is only displayed on collapsed categories, It's been like this since the 3.0 revamp, I don't think I changed something about that recently 😄

You're right. Is browser driving me mad ? It seems some parts of the page are cached somewhere and aren't correctly refreshed, even when I force the reloading. And so, sometimes, the unread number is still here, even when I unfold the category...

I'm not sure I understand your edit, could you please elaborate on what's not working?

...and so, sometimes, the given number is wrong. When I edited my post, it was 18, but I manually found 17 unread items. Now, the "All" unread items is 17, but I count 19 unread items. Edit ; and now, it is 19, the right number. What is weird is it's decreasing immediately when I open an unread item, but it's remaining wrong fora while.

Athou commented 11 months ago

Can't seem to reproduce, with or without redis cache enabled :(

canoine commented 11 months ago

I'm trying to determine if the problem is my browser or some extension. As it seemly persists keeping much more data than I want it to (even a "Ctrl+R" doesn't totally refresh the hole page, nowadays... The KISS principle is dead for ages), I'm testing with a new clean profile, with no error until now. Perhaps cleaning the local cache will be sufficient.

To be continued...

Edit : setting a decent value for the "treeReloadInterval" parameter can help. I wrote "30m" instead of "30s" when adding it to my config.yml file. :fearful: That said, it seems the unread numbers are locally stored, locally decreased when I read one item, and potentially corrected when the tree is automatically reloaded, aren't they ?

canoine commented 11 months ago

One week later, I saw no gap between the given number of unread items and the real one. So the problem was the huge value for the "treeReloadInterval" parameter, all is fine now.

Thank you for your work, and happy new year. :smiley: