محتوى المنشور (جزئيًا) مفقود عند فشل "حفظ الرد" بسبب مشاكل الاتصال

When “Save Reply” happens while the internet connection is temporarily down (as just happened to me several times in this train), the content of the post are partially lost.

Steps to reproduce:

  • Start writing a reply.
  • While writing, cap your internet connection.
  • Hit “Save Reply”.
  • Some time later, restore your internet connection.

Expected behavior:
At some point, the “Saving…” process should give up and bring me back to the editor (or at least show a “Cancel” button that does this), so that I can try again to submit my response.

Actual behavior:
The “Saving…” bar at the bottom just sticks around with a spinning circle endlessly. The “expand” button it shows does nothing when clicked. The only thing I can do is to hit F5, which will restore some prior version of the post (not sure if from a local or a server-side cache) – but my last few sentences are lost.

I just had this happen 4 times in a row. At least the last two times I remembered to manually copy the post content before submitting, but that really should not be necessary.

Where are you seeing a “Save Reply” button? I am not aware of any such button in Discourse.

Drafts are saved automatically at regular intervals, provided the content has changed and there is enough content to save, beyond the minimum character limits.

Sorry, it’s called just “Reply”.

لقد واجهت هذه المشكلة مرة أخرى، حيث فقدت جميع التعديلات التي أجريتها على منشور لأن اتصال الإنترنت انقطع عندما ضغطت على “حفظ التعديل”. بمجرد عودة الاتصال، وعند إعادة تحميل الصفحة، اختفت تعديلاتي تمامًا. يبدو أنه عندما حاول الحفظ التلقائي على الخادم، لم يكن هناك اتصال بالفعل، ولم يحاول حتى الحفظ التلقائي محليًا؟

هل يمكنك وصف الفترة الزمنية لهذا التعديل بالثواني، وعدد الأحرف التي عدّلتها تقريبًا؟

كما ذكرت سابقًا، يتم حفظ المسودات تلقائيًا على فترات منتظمة، لكن ذلك يتطلب مدة معينة من التحرير.

كان التعديل يتعلق بإضافة جملتين. لست متأكدًا من المدة التي استغرقها ذلك، ربما بين 30 ثانية ودقيقة؟

إذن، هل تقصد أنه يجب حفظ المسودات محليًا من حيث المبدأ؟ هل سيكون من الممكن بعد ذلك تحفيز حفظ محلي آخر عند الضغط على “حفظ التعديل”، للتأكد من حفظ أحدث نسخة قبل تعطيل المحرر بشكل لا رجعة فيه؟

لا تزال هذه مشكلة في أحدث إصدار من Discourse (حسنًا، أيًا كان ما يستخدمه https://internals.rust-lang.org حاليًا): لقد أنشأت للتو منشورًا جديدًا، وبسبب اتصال إنترنت سيئ، فشل في النشر. كان يدور إلى الأبد. بعد بضع دقائق، ضغطت على F5 لإلغاء حظر علامة التبويب تلك، واكتشفت أن آخر ~30 ثانية من الكتابة قد ضاعت - كان هناك مسودة محفوظة محليًا، لكنها كانت قديمة.

ألا ينبغي أن يكون من السهل تحديث المسودة المحفوظة محليًا عند الضغط على “رد”؟ سأقدر إذا أخذ Discourse في الاعتبار احتياجات الأشخاص الذين يعانون من ضعف اتصال الإنترنت. حاليًا، هذا مجال تتفوق فيه المنتديات القديمة مثل phpBB3 على Discourse.