Support merging of 2 topics with voting

I had people two topics in a voting category which were essentially the same request, so I merged all comments from Topic B to Topic A, and now Topic A has no votes.

Has anyone seen an issue where votes on Topic A are lost/reset after moving a number of commits into it from Topic B?

I think I did, but don’t know if there’s any place I can tell if a Topic A ever got votes. If they were logged anywhere, I’d love to know so I can check.

「いいね!」 7

Agree we should fix this, for now pr-welcome

「いいね!」 4

Hello,

This PR should fix this.

Let’s say we have topics A and B. When topic A is merged into topic B, all users who voted topic A will automatically vote B and their votes for A will be removed.

「いいね!」 6

Are there any exceptions to this rule? I’ve noticed some inconsistent behaviour e.g. when I merged this topic:

Let users specify number of shares while buying - Ideas 💡 - Freetrade Community

into this one:

Buy an specific number of shares rather than a £ amount - Ideas 💡 - Freetrade Community

not all of the votes were carried across the latter topic. IIRC only 16 made it across.

Yes, I’ve experienced the same thing. We’re regularly merging topics. Our process is to merge to the oldest topic to preserve the chronological order of the posts. When this happen we lose the votes for the other topics.

@dan、これらの問題について何かアイデアはありますか?

考えられる例外が一つあります。

A と B の 2 つのトピックがあるとしましょう。それぞれ 100 票ありますが、A に投票したユーザーのうち 20 人が B にも投票していたとします。この 2 つのトピックをマージした場合、最終的なトピックの票数が 200 票になるとは限りません。両方のトピックに投票したユーザーがいる場合、票数が重複しないためです。

最終的な票数は、A に投票したユーザー数 + B に投票したユーザー数 - A と B の両方に投票したユーザー数 で計算されます。上記の例では、(100 + 100 - 20 = 180) となります。

「いいね!」 2

いくつか変更を加え、より明確にするためにプルリクエストを提出しました。このプルリクエストが承認された後、元のトピックに追加されたモデレーター投稿が編集され、移動された票数と移動されなかった票数(ユーザーが既に移動先のトピックに投票しているため)が記載されるようになります。

「いいね!」 4