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.

@дан, есть какие-то идеи по этим проблемам?

Я могу вспомнить одно исключение.

Допустим, у нас есть две темы: A и B, у каждой из которых по 100 голосов, но 20 пользователей, проголосовавших за A, также проголосовали за B. Если две темы будут объединены, не гарантируется, что итоговая тема получит 200 голосов, поскольку некоторые пользователи могли голосовать за обе темы, и голоса не будут дублироваться.

Итоговый подсчет будет равен: количество пользователей, проголосовавших за A + количество пользователей, проголосовавших за B - количество пользователей, проголосовавших и за A, и за B. В приведенном выше примере (100 + 100 - 20 = 180).

2 лайка

Я внес несколько изменений и только что отправил pull request для уточнения формулировок. После принятия этого pull request сообщение модератора, добавленное к исходной теме, будет отредактировано: в нём будет указано, сколько голосов было перенесено и сколько не было перенесено (так как пользователь уже проголосовал за тему назначения).

4 лайка