Multiple Poll Types

Created on 27 May 2024, 28 days ago

Problem/Motivation

Currently Poll module only implements a single simple poll type. There are many other types that can also be implemented:

1. current simple "default" style (i dont know if it has a name)
2. multiple choice - similar to the first but with more choices.
3. rating (where you choose a number instead of a choice and then they are averaged for total result)
4. concordset style where you rank choices and lease popular choices are eliminated with votes redistributed to next ranked choice until one choice reached over 50%.

A complication is that the last style of poll cannot easily show "live" results as the calculations needed for the result could be quite complicated.

Ratings (and ranking) type polls will also need to store additional data than that the module stores at this stage.

I envisage a plugin based approach here, where Poll plugins add additional features. Currently the database manipulation are all in src/PollVoteStorage.php. These will likely need to be moved into the plugins.

I have been planning to work on this at some point, but I haven't created an issue yet. Not assigning as i haven't started to work on it and if someone with more skills beats me to it I will appreciate that.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom NaheemSays

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024