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

AI-generated summary

The discussion addresses a bug where moving a solved topic to a category that disallows solutions failed to remove the “solved” status. codinghorror initially reported the issue, noting that topics moved out of categories with solutions retained their solved markers. sam agreed to the cleanup, and bekicot submitted a PR adding a plugin hook to handle category changes. tgxworld suggested using a model callback instead of a new event trigger. fhe and nildarar confirmed the issue persisted, explaining that admins could not uncheck the solution after moving the topic to an incompatible category. lindsey initially claimed a fix was in place, but Moin clarified that the previous fix only addressed moving individual posts, not entire topics. lindsey acknowledged the misunderstanding and lindsey committed to fixing the topic-level issue. Finally, lindsey confirmed the behavior was updated: when a solved topic is moved to a category without solution support, the accepted solution is automatically removed, and admins receive a notification before the move is completed.

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

返信のいずれかが誤って正解としてマークされた場合、管理者はそのカテゴリが誤っていることに気づき、トピックを別のカテゴリに移動させます。この機能が無効な新しいカテゴリであっても、マークされた返信は引き続き正解として表示されます。
これらの場合、管理者はマークされた返信の取り消しを行うことができません。この機能が有効なカテゴリに変更する必要があります。正解のマークを解除し、再度カテゴリを変更してください。

管理者がすべてのカテゴリ(この機能がオフになっているものも含む)で正解のマークを解除できれば、もう少し簡単になるでしょう。

ソリューション投稿がトピック外に移動された場合、トピックが未解決の状態に戻るようにすることで、この問題に対処しました。

ソリューション投稿を移動するユーザーには、移動アクションを完了する前にその影響が通知されます。

「いいね!」 4

私には、これは Carelessly splitting a solved post to a new topic breaks things に対する修正のように見えます。

OP で述べられている問題は、解決策が無効になっているカテゴリへトピック全体が移動する件についてであり、一部の投稿を別のトピックへ移動する件ではありません。私が `personal_messages:username` search filter doesn't work (解決済みトピック)を Contribute > Feature(解決策が許可されていないカテゴリ)へ移動すると、解決策は削除されず、警告も表示されません。

この問題に対処しています。

しかし、問題はこれだけではないようなので、この件はオープンにしておきましょう。

うーん、まだよく分かりません。さっき私がやろうとしていたことと違いませんか?

解決済としてマークされたトピック

私は「解決済み」とマークされていたこのトピックを選びました。`personal_messages:username` search filter doesn't work

ソリューション機能が無効化されているカテゴリから移動する

私はこれを「#contribute:feature」に移動しました。ここはソリューション機能が有効になっていません。

依然として解決済としてマークされており(解除できない)

それでもまだ解決済としてマークされていました。この修正は、このプロセスのどこを変更したのでしょうか?

「いいね!」 2

すみません、今おっしゃっていることがわかりました。私はこれを、カテゴリから移動された「解決済み」としてマークされた投稿として誤って読んでいました。

しかし、これは修正するためにキューに入れます。これは、解決済み投稿で行った作業に対する小さな改善になるべきだと思います。

「いいね!」 3

解決済みのトピックがソリューションをサポートしていないカテゴリに移動された場合、承認済みのソリューションがトピックから削除されるように、この動作を更新しました。移動を完了する前に管理者に通知します。

「いいね!」 5

このトピックは2日後に自動的にクローズされました。新しい返信は許可されていません。