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 Me gusta

Agree we should fix this, for now pr-welcome

4 Me gusta

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 Me gusta

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 ¿tienes alguna idea sobre estos problemas?

Puedo pensar en una excepción.

Digamos que tenemos dos temas: A y B, cada uno con 100 votos, pero 20 de los usuarios que votaron por A también votaron por B. Si los dos temas se fusionan, no está garantizado que el tema final tendrá 200 votos, porque podría haber algunos usuarios que votaron en ambos temas y los votos no se duplicarán.

El conteo final será = número de usuarios que votaron por A + número de usuarios que votaron por B - número de usuarios que votaron por ambos A y B. En el ejemplo anterior (100 + 100 - 20 = 180).

2 Me gusta

He realizado algunos cambios aquí y acabo de enviar un pull request para aclarar las cosas. Una vez que se acepte este pull request, la publicación del moderador que se añade al tema original se editará para incluir cuántos votos se trasladaron y cuántos no se trasladaron (porque el usuario ya votó por el tema de destino).

4 Me gusta