When moving a solved topic to a category that disallows solutions, remove solved

I’ve seen this too when moving topics out of a category where solved was set, any way to fix this @sam?

  • When moving a topic out of a category with solutions, remove solved stuff

  • When moving a topic into a category with solution, make solved possible

إعجابَين (2)

Agree, we should get this cleaned up, for now pr-welcome

4 إعجابات

Added Trigger DiscourseEvent when topic category is changed by bekicot · Pull Request #4785 · discourse/discourse · GitHub, so that plugin can hook into :topic_category_changed. I think it is required in order to fix this issue.

5 إعجابات

Thanks for the PR @bekicot :thumbsup:

I was just curious but is it possible to avoid adding a DiscourseEvent trigger and just add a model callback which checks when the category_id has been changed?

إعجابَين (2)

Seems like this is still happening.

A topic marked as solution which is moved out of a category with solutions remains marked as solution (and cannot be unchecked as such)

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

When one of the replies is marked incorrectly as the correct answer, then the admin sees that the category is wrong and moves the topic to another category. The marked replay is still displayed as the correct answer, even if this feature is not enabled in the new category.
In these cases, the admin can not cancel the marked replay. It should change the category to where this feature is enabled. Cancel the correct answer and change the category again.

It would be a little easier if managers could cancel the correct answer in all categories (even those with this feature turned off).

لقد عالجنا هذا الأمر من خلال ضمان أنه إذا تم نقل مشاركة الحل خارج الموضوع، يعود الموضوع إلى حالة غير محلولة.
يتم إخطار المستخدم الذي ينقل مشاركة الحل بالتأثير قبل إكمال إجراء النقل:

4 إعجابات

بالنسبة لي، يبدو هذا وكأنه إصلاح لـ Carelessly splitting a solved post to a new topic breaks things

لا يبدو أنه يصلح المشكلة الموصوفة في الموضوع الأصلي والتي تتحدث عن نقل موضوع بأكمله إلى فئة أخرى حيث لا يتم تمكين الحلول، وليس عن نقل بضعة منشورات إلى موضوع آخر. عندما أنقل https://meta.discourse.org/t/personal-messages-username-search-filter-doesnt-work/371848، وهو موضوع تم حله، إلى Feature حيث لا يُسمح بالحلول، لا تتم إزالة الحل، ولا يوجد تحذير.

إنه يعالج هذه المشكلة:

ولكني أرى أن هناك المزيد من المشكلة حتى نتمكن من إبقاء هذا مفتوحًا.

حسنًا، ما زلت لا أفهم. أليس هذا ما جربته للتو؟

موضوع تم تحديده كحل

لقد اخترت هذا الموضوع الذي تم تحديده كحل `personal_messages:username` search filter doesn't work

تم نقله خارج فئة تحتوي على حلول

لقد نقلته إلى Feature حيث لم يتم تمكين الحلول

لا يزال مُعلمًا كحل (ولا يمكن إلغاء تحديده كذلك)

ومع ذلك ظل مُعلمًا كحل. ما الذي غيَّره الإصلاح في هذه العملية؟

إعجابَين (2)

عذرًا، أرى ما تقصده الآن. كنت أقرأ هذا بشكل خاطئ، كـ مشاركة مُعلَّمة كحل وتم نقلها خارج فئة.

سأقوم بجدولة هذا لتصحيحه، على الرغم من أنني أعتقد أنه يجب أن يكون تحسينًا صغيرًا للعمل الذي قمنا به مع المشاركة التي تم حلها.

3 إعجابات

لقد قمنا بتحديث هذا السلوك بحيث عند نقل موضوع تم حله إلى فئة لا تدعم الحلول، ستتم إزالة الحل المقبول من الموضوع. سنقوم بإخطار المسؤولين بذلك قبل إتمام النقل:

5 إعجابات

تم إغلاق هذا الموضوع تلقائيًا بعد يومين. لم يعد الردود الجديدة مسموحًا بها.