تأثر الجدول الزمني للمواضيع بقيمة الموضوعات المقترحة غير الافتراضية

أضع هذا في Contribute > Bug لأنني أشعر أنه يمنع الاستخدام الطبيعي لـ Discourse، لكنه قد يكون أنسب لـ Contribute > UX.

بدأت ألاحظ في أحد مواقعنا (موقع داخلي، لذا لا يمكنني مشاركة الرابط) أن تسلسل الموضوعات كان غير مستقر بعض الشيء، وبدأت ألعب به لأحاول فهم ما يحدث. بشكل أساسي، عند استخدام تسلسل الموضوعات للانتقال إلى منشور حديث (مثل المنشور الخامس أو السادس من أصل ستة)، لا تنزلق المنشورات كما هو متوقع، والمنشور الذي انتقلت إليه لا يظهر فعليًا. لم أتمكن من إعادة إنتاج هذه المشكلة في Meta أو Stonehearth، ولا في بيئة التطوير الخاصة بي، لذا بدأت أفحص ما يختلف بين المواقع. أدركت في النهاية أن موقعي يحتوي على ميزة “المواضيع المقترحة” معطّلة (suggested topics = 0)، بينما Meta وStonehearth وبيئة التطوير لا تحتوي عليها. بعد تعطيل المواضيع المقترحة في بيئة التطوير، تمكنت من إعادة إنتاج المشكلة.

@eviltrout، هل يفترض التمرير في تسلسل الموضوعات وجود مواضيع مقترحة؟

فيديوهات توضح المشكلة:

الوضع الافتراضي - 5 مواضيع مقترحة:

0 مواضيع مقترحة:

20 موضوعًا مقترحًا:

3 إعجابات

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

6 إعجابات

This should fix it:

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

5 إعجابات

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)

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 إعجابات

Happy to test once this reaches tests_passed!

إعجاب واحد (1)

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.