HĂĄ coisas como as seguintes que tenho notado hĂĄ meses, mas nunca registrei um relatĂłrio, porque nunca consegui reproduzi-las consistentemente. Mas, finalmente, por acidente, capturei uma em vĂdeo! (EntĂŁo, por favor, perdoem as pausas e a confusĂŁo refletidas nos movimentos do meu cursor.)
As coisas para observar sĂŁo:
A aba âNĂŁo lidosâ estar vazia
Contribute > Feature aparecendo como âNormalâ (apesar de estar sendo rastreado, conforme mostrado nas minhas preferĂȘncias) e sĂł aparecer como âRastreadoâ apĂłs uma atualização da pĂĄgina
Um tĂłpico aparecendo misteriosamente em âNĂŁo lidosâ (de dias atrĂĄs, da categoria howto)
Pouco antes de gravar este vĂdeo, estava tentando reproduzir esse bug rastreando Contribute > Bug e, em seguida, clicando em um dos tĂłpicos dele na aba âNĂŁo lidosâ. NĂŁo consegui, mas ao parar de rastrear Contribute > Bug, minha aba âNĂŁo lidosâ foi preenchida com cerca de 20 tĂłpicos fechados em Contribute > Bug de por volta de 2015, o que parece ser o mesmo bug do ponto 3.
NĂŁo entendo por que isso poderia estar acontecendo.
I canât consistently reproduce the first, where the correct notification level is only shown after a refresh (of a category, or a topic). Itâs been happening to me for months, but whenever I try to reproduce it, it doesnât happen.
The second, which I think is a bit more minor, but still a nuisance can be reproduced (for a limited time only) like so:
Clear /unread
Track a category currently set to âNormalâ
Go back to /unread and observe posts not previously in it
Iâve been able to do this with a number of categories, but only once for each. Once Iâve dismissed the posts from unread, they never appear again.
Consistently reproducing it takes a little more work, so hold onto your hats, itâs gonna get a bit crazy:
Go to unread in a category of your choosing which has a notification level of âNormalâ, observe nothing there:
So, the bug here is that previously opened topics in a category become tracked, and appear in unread (unless previously dismissed), when the category is tracked, whereas nothing happens to old not-opened-before topics.
To me, what should happen is either:
Nothing changes about the notification status of old topics in a category when it becomes tracked, previously opened or not.
or
All old topics become tracked when the category is tracked, but are automatically dismissed, so only new activity appears in the unread tab.
I lean towards the second solution, provided explicitly set notification levels on topics are kept.
I havenât investigated how this works with other notification levels, I imagine its the same, but I feel it would confuse things for the time being.
A primeira seria os tĂłpicos nĂŁo sendo rastreados implicitamente de forma adequada. Se o fossem, todos os tĂłpicos de Community Building > Praise deveriam aparecer nesta etapa:
A segunda parte seria o aparecimento de tĂłpicos aparentemente arbitrĂĄrios como nĂŁo lidos quando vocĂȘ rastreia uma categoria (assumo que seja um efeito colateral da alteração do estado de rastreamento de tĂłpicos anteriores de âregularâ para ârastreadoâ), o que poderia ser corrigido dispensando automaticamente esses tĂłpicos da lista de nĂŁo lidos.
From a practical perspective, that doesnât make sense to me. If I buy a book and put it on my shelf having not opened it, it is both new and unread.
Wouldnât it be possible to have an old topic (with no tracking record) only appear in unread when thereâs new activity on it?
So, just as a tracking record is created on new activity for topics in watched categories, a tracking record would be created on new activity for topics in tracked categories.
Combined with the above, couldnât we just dismiss topics where the tracking record has been changed to âtrackingâ as a result of tracking the category, which would mean the same user experience, without any additional database writes? (If I understand how tracking records, dismissing and TopicUser relate.)
This way, it seems to me, we could have a mailing list experience for tracking too!
Sure, I agree. I was talking purely about how it currently works in discourse.
I believe @sam thought this would have major performance issues
Iâm 99% sure a new record isnât created for tracked topics - @sam said âcreated when we notify usersâ, and tracking doesnât cause notifications. Maybe fixing this is the solution
Ok⊠Iâve done some testing in my dev environment. As a simplest possible repro:
Set previous visit timeout hours site setting to 0, to make testing quicker
User A sets âConsider topics new whenâ to âcreated since I was last hereâ
User A sets Category1 to tracked
User B posts in Category1
User A observes the topic in ânewâ, but does not open it
User A leaves the site
User A comes back to the site later, and User Bâs post is gone from the ânewâ tab
User B posts again in the same topic
The topic does not appear in either ânewâ or âunreadâ for User A, even though they are tracking the topic
That same repro works for âwatchingâ a category as well. A notification is sent, but no TopicUser row is created (checked on the rails console). It seems that this:
is not happening for some reason, both for watched and tracked categories.
Would it though? We already have topics listed in the latest tab and the new/unread tabs simultaneously. And the two (new and unread) are for different purposes: new is âshow me the newest topics on this siteâ and unread is âshow me topics Iâve expressed an interest in, but havenât (finished) read(ing)â. For new to achieve its purpose it has to have unread topics in it which are new, and for unread to achieve its purpose it needs to have new topics in it which are unread.
Currently the unread tab is rather dysfunctional.
Interesting, thanks for doing all this investigation! So it would seem like if this did actually happen (or more specifically, a TopicUser row was created on topic update, rather than notification, to include tracked categories), then our problems here would be solved. @sam thoughts?
I am fine to change the semantics of âtracked categoryâ so it means, if a category is tracked it will unconditionally show up in new regardless of your new duration, it does not mean this now.