As the Vocdoni API enforces us to configure a number of votes overwrites, and this value has an implication in the cost of the election (as it needs more resources), an Implementer, needs to be able to change this value.
The Implementer i the sysadmin that installs and manages the Decidim installation, and as it's a detail very technical, we'll configure this through a config_accessor (Decidim::Vocdoni.votes_overwrite_max) and environment variable (DECIDIM_VOCDONI_VOTES_OVERWRITE_MAX). The default value will be 10.
To try to mitigate the risk of coercion, to participants we'll show the same message that we have now (You have already voted on this election. You can vote again.) and a notice with another color when they have only one last vote (You have already voted on this election. You can vote again only one last time.).
[ ] Given that I'm an implementer,
When I change the Decidim::Vocdoni.votes_overwrite_max configuration,
And I set up a new Election,
Then this is changed in the voteType.maxVoteOverwrites in the election's parameters.
[ ] Given that I'm an implementer,
When I change the DECIDIM_VOCDONI_VOTES_OVERWRITE_MAX environment variable,
And I set up a new Election,
Then this is changed in the voteType.maxVoteOverwrites in the election's parameters.
[ ] Given that I'm a voter,
When I go to an Election
And I "Verify my Identity"
And I still have 2 votes available to overwrite my vote
Then I see a callout that says:
"You have already voted on this election. You can vote again."
And this callout has a blue color (aka information)
[ ] Given that I'm a voter,
When I go to an Election
And I "Verify my Identity"
And I still have 1 vote available to overwrite my vote
Then I see a callout that says:
"You have already voted on this election. You can vote again one more time."
And this callout has a yellow color (aka alert)
[ ] Given that I'm a voter,
When I go to an Election
And I "Verify my Identity"
And I don't have any more votes available
Then I see an error page that says:
"You have already voted on this election. You can not vote again."
Ref: VOC-SEC-04
As the Vocdoni API enforces us to configure a number of votes overwrites, and this value has an implication in the cost of the election (as it needs more resources), an Implementer, needs to be able to change this value.
The Implementer i the sysadmin that installs and manages the Decidim installation, and as it's a detail very technical, we'll configure this through a config_accessor (
Decidim::Vocdoni.votes_overwrite_max
) and environment variable (DECIDIM_VOCDONI_VOTES_OVERWRITE_MAX
). The default value will be 10.To try to mitigate the risk of coercion, to participants we'll show the same message that we have now (
You have already voted on this election. You can vote again.
) and a notice with another color when they have only one last vote (You have already voted on this election. You can vote again only one last time.
).This issue is related to https://github.com/decidim-vocdoni/decidim-module-vocdoni/issues/34
Acceptance criteria
voteType.maxVoteOverwrites
in the election's parameters.DECIDIM_VOCDONI_VOTES_OVERWRITE_MAX
environment variable, And I set up a new Election, Then this is changed in thevoteType.maxVoteOverwrites
in the election's parameters.information
)alert
)