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.

@دان هل لديك أي أفكار بخصوص هذه القضايا؟

يمكنني التفكير في استثناء واحد.

لنفترض أن لدينا موضوعين: أ و ب، لكل منهما 100 صوت، لكن 20 من المستخدمين الذين صوتوا لـ أ صوتوا أيضًا لـ ب. إذا تم دمج الموضوعين، فلا يضمن أن يكون للموضوع النهائي 200 صوت، لأنه قد يكون هناك بعض المستخدمين الذين صوتوا في كلا الموضوعين ولن يتم تكرار الأصوات.

سيكون العدد النهائي = عدد المستخدمين الذين صوتوا لـ أ + عدد المستخدمين الذين صوتوا لـ ب - عدد المستخدمين الذين صوتوا لكلا الموضوعين أ و ب. في المثال أعلاه (100 + 100 - 20 = 180).

إعجابَين (2)

لقد أجريت بعض التغييرات هنا وقمت للتو بتقديم طلب سحب (pull request) لتوضيح الأمور. بعد قبول طلب السحب هذا، سيتم تعديل منشور المشرف الذي يُضاف إلى الموضوع الأصلي ليشمل عدد الأصوات التي تم نقلها وعدد الأصوات التي لم تُنقل (لأن المستخدم قد صوّت بالفعل للموضوع الوجهة).

4 إعجابات