-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find all Decidim code that calls Proposal#update_votes_count #86
Comments
Pausing this, too much WIP in the kanban, I'll reopen when we're on v0.24.0 and have the lv_state work integrated |
I think this is covered, and better addressed, by #90. The one thing in this issue not quite covered by #90 is seeding vote data. Today the seed process writes If we want someday to seed votes, we need to step up to voting via the LV api (perhaps converting seeded Given #90 + leaving vote seeding for later, I'll close this one. |
Reopening as per #90 (comment) |
We're going with compiling where the calls are made through logs watched on Honeycomb. |
Agreed on approach...also I think we agreed this is lower priority for the moment, I'll return it to backlog |
Since our module is repurposing the
proposals.proposal_votes_count
attribute, we need to know what Decidim code callsProposal#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 generateProposalVote
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
The text was updated successfully, but these errors were encountered: