Forum doesn't know how many New topics there are

For the past several days, I’m noticing that the forum “New” count is inconsistent. On the forum Home page (at this moment), I see this:
image
When I click on the “New” tab, it shows the list of new posts, but the count (and the list agrees) shows this:


If I return to the Home page, the New count matches what I saw in the New list, but if I refresh the page, the count goes back to the lower (incorrect) number.
I have cleared the browser cache, dismissed all new posts, and tried different browsers with no effect.

This occurs in Firefox and Chrome, and with OS of Windows or Linux.

This morning when I came to the forum home, it showed


I clicked on “New,” and saw

I clicked the Plex logo to return to home, and see

All the topics in the page agree with whatever the New count is, by the way. When New shows “3,” there are only three notations of new messages in subcategories (actually just one in this case, because I have some libraries muted)

After following the described steps and ‘New’ is 14,

Found a situation where the forum doesn’t even agree with itself on the same page.

Has anyone asked Discourse about this? This is becoming very disruptive to my forum experience.

Do you have any categories or tags muted?

We absolutely want to sort this out, but I am going to need a bit more details here, the implementation depends on a cache and in some conditions it can get out-of-sync so we need to figure out what triggers this.

Some sort of repro using multiple accounts would be amazingly useful.

Yes, there’s a screenshot here. Those have been muted for nearly as long as Plex has been using Discourse, but this behavior is recent. As noted earlier, it occurs with multiple browsers on multiple OSes, and the behavior is routinely reproducible, as described in the first and second posts in this thread.

You can force the situation by clicking ‘Dismiss New’ inside any forum category. I just did the following:

  1. Logged into a second account (this account has NO muted categories). It showed 55 new messages at the top of the forum home page.
  2. Clicked on a category that had around a dozen new messages.
  3. Clicked ‘Dismiss New’ inside that category.
  4. Clicked on the Plex logo to return to the home page. The ‘New’ count at the top was now ‘2’.
  5. Clicked on the ‘New (2)’ link. The New page listed over 30 new messages.
  6. Clicked on the Plex logo to return to the home page. The ‘New’ count at the top was now ‘New (33)’. (33 is approximate. I don’t remember the exact number).

Even after I’ve followed the above steps, there are still uncounted new posts:

After going to ‘New’ and getting the larger, supposedly complete count of new messages, I did the following:

To begin with, note the ‘total’ New message count:


I clicked on the ‘3 new’ link for the Desktop Players forum. When it displayed the list of new messages, there were 5, not 3 (there actually were 5 new messages. These were not posted in the past few seconds, but at least an hour prior).

When I returned to the top page without reading any of the messages, the ‘total’ now includes the previously-uncounted messages.

1 Like

Just acknowledging that we have all this data now and will investigate a fix.

It may take a bit of time to get it applied as many of us are on a break at the moment.

No worries. Let me know if I can provide anything else.

1 Like

Hi @beckfield,

Thanks for all the details. From them, I managed to reproduce the problem, and we have a fix in the pipeline. It should be deployed here first thing next week.

Some background, if you’re interested: the bug only occurs in a very specific scenario. You need to have used the Dismiss New button on a specific category and you must never have touched the ‘notification level’ on the category. Setting your category notification level to ‘watching’, and then back to ‘regular’ would work around the problem.

1 Like

Great news, thanks!

Sorry to pile on, but while I’ve got you, can I direct your attention to this? It doesn’t seem like correct behavior to me:

Tracking state doesn’t transfer to subcategories by design. That means users have the maximum flexibility when setting their preferences.

In some situations, people may want to mute a category, but not its subcategories. For example, on this forum, someone might want to mute #plex-players but keep track of topics under #plex-players:mobile-devices.

That said, I totally see your situation where it makes sense to have settings propagate down. We have had a few requests for this, including yours, so the feature might be developed in future. We have a topic on our meta forum which discusses the issue.

@beckfield this is now deployed here - please let us know if you run into any other issues.

1 Like

Thanks! I’ll keep an eye out.