La línea de tiempo del tema se ve afectada por el valor no predeterminado de los temas sugeridos

Pongo esto en Contribute > Bug, ya que siento que esto está impidiendo el uso normal de Discourse, aunque podría encajar mejor en Contribute > UX.

Empecé a notar en uno de mis sitios (interno, así que no puedo compartir un enlace) que la línea de tiempo de los temas estaba un poco extraña, y comencé a experimentar para intentar entender qué estaba pasando. Básicamente, al usar la línea de tiempo del tema para ir a una publicación reciente (como la 5 o 6 de 6), las publicaciones no se desplazaban como se esperaba, y la publicación a la que llegué no era realmente visible. No pude reproducir esto en Meta ni en Stonehearth, ni en mi entorno de desarrollo, así que comencé a investigar qué era lo diferente entre los sitios. Finalmente me di cuenta de que mi sitio tiene los temas sugeridos “deshabilitados” (suggested topics = 0), mientras que Meta, Stonehearth y el entorno de desarrollo no. Después de deshabilitar los temas sugeridos en el entorno de desarrollo, pude reproducir el problema.

@eviltrout, ¿el desplazamiento de la línea de tiempo del tema asume que hay temas sugeridos?

Videos del problema:

Predeterminado - 5 temas sugeridos:

0 temas sugeridos:

20 temas sugeridos:

3 Me gusta

It very well could be a bug! I’ll look into it.

6 Me gusta

This should fix it:

https://github.com/discourse/discourse/commit/4e1f8ec72b791006fca7c6c3347c8347d27e4dc6

5 Me gusta

I’m re-opening this for now. Unfortunately my fix broke scrolling on meta a bit so I reverted it. I’ll have to come up with a more robust solution.

1 me gusta

Okay, I think this fixes it for good. This is surprisingly complicated stuff to get right.

@jomaxro could you confirm it’s working for you?

https://github.com/discourse/discourse/commit/cb8f91ca215a5dc85a771b3691b334a89c54664a

4 Me gusta

Happy to test once this reaches tests_passed!

1 me gusta

I hate to say this, but it’s “mostly” working. Just tested in the two topics I shared with you via PM. They both load correctly now (showing the last post) and using the timeline to go from a post to the last one work, but the timeline itself is very finicky.

Entering a fully read topic results in the browser being scrolled fully, but the timeline is not.

Also, moving via the timeline is incredibly jumpy. In topic 8022, moving the timeline to post 4 results in the timeline jumping to post 2 upon release. Post 3 also jumps to post 2. Post 5 jumps to post 6…etc.

Happy to change the password back if you’d like…

I would rather force everyone to use suggested topics rather than spend days of engineering effort on this unusual non-default settings scenario.

That said there are other places where suggested may not be there, such as PMs.