Open
Description
Since our module is repurposing the proposals.proposal_votes_count
attribute, we need to know what Decidim code calls Proposal#update_votes_count
. We update the attribute a different way, and so any code that calls this method is unexpected and will corrupt our vote count.
We shouldn't ignore the calls, nor make the method a no-op, because both can result in corrupting the count.
One known example: rake db:seed
will generate ProposalVote
objects, which then updates the vote count attribute with a Decidim (not Liquidvoting) value.
Any found calls need to be adapted to insure only Liquidvoting is updating the vote count.
Related also to #48
Metadata
Metadata
Assignees
Labels
No labels