投票機能のあるトピックを投票機能のないカテゴリに移動しても、票は解放されません

It appears that when a topic with votes is moved to another category, where voting is not enabled, the votes are not being returned to the owners. Is this a bug or an intended behaviour?

Additionally, there are edge cases where closing a topic doesn’t automatically return the votes to the user.

thank you for your time!

「いいね!」 5

I’ve just tested this on my local development site and can confirm that votes are not being returned to the user when a topic is moved to a category that does not allow for votes. This doesn’t seem ideal to me, but I’m not sure if it’s the intended behaviour or not. The only alternative I can think of is that if a topic is moved to a category that does not allow voting, all votes should be removed from the topic. There would be potential issues with this approach as well.

If you know of any specific ways of reproducing the edge cases, let us know. I can look into this some more next week.

「いいね!」 4

I’m also needing to release votes after moving a topic to a non-voting category. As it is, moving a topic with votes to a non-voting category risks destroying the voting system imo because the larger a database the more difficult/tedious it would be for moderators to manually ensure users don’t “lose” voting power. If 10 votes were allowed, and two topics I voted on got moved to a non-voting category without releasing their votes, I’d lose 20% of my global voting power.

Like what issues?

「いいね!」 1

The first one that came to mind was that if a topic was mistakenly recategorized (say by a TL3 user) all votes would be lost when it was put back to the correct category.

「いいね!」 1

I think best practice for now would be:

  • Make sure to close a topic before moving it to a category without the plugin.

これはまだバグです。修正される可能性はありますか?

以下も試しました。

  • トピックを投票カテゴリに戻す
  • トピックを閉じる
  • 正しい非投票カテゴリに移動する
  • 再度開く

それでも投票は残っているようです。

ルーカス・カズンズ様

数ヶ月前にいくつかのエッジケースを修正しましたが、まだ一部のシナリオが見落とされている可能性があります。問題を検証するためには、再現可能な手順をご提供いただけると大変助かります。

すべての移動されたトピックで発生していますか?それとも、共有できる特定のシナリオがありますか?

ありがとうございます!

「いいね!」 1

私がこれに気づいたトピックは4月17日に作成され、移動されました。それ以来修正された可能性はありますか?私たちは定期的にアップデートをインストールしているので、tests-passedより1週間以上遅れることはめったにありません。

最新バージョンでもこの問題が発生しています。実装の予定はありますか?

テストサイトで再現を試しましたが、できませんでした。トピックを投票カテゴリから非投票カテゴリに移動すると、テストユーザーの投票が戻ってきました。

確認のために、以下のように行っています。

  • カテゴリでトピック投票を有効にする
  • テストユーザーでトピックに投票する
  • 管理者として、トピックを非投票カテゴリに再分類する
  • テストユーザーとして、別のトピックに投票し、ポップアップの「情報」で残りの投票数を確認する
「いいね!」 1

申し訳ありません、おっしゃる通りです。修正前に移動されたトピックの古い投票のみがリリースされていないようです。誤った報告で申し訳ありませんでした。

「いいね!」 1