Convert votes into entities

Created on 24 March 2019, over 5 years ago
Updated 10 March 2024, 4 months ago

Currently the poll votes are stored in the poll_votes table however the data is not a field or an entity. I am working on this to get past the hurdle of not having to use another contrib module to fully supporting migration from previous drupal versions.

I am considering the value of changing it to an entity and also having the following fields:

1. id - a requirement for entities?
2. uuid - it seems all entities have these. I am unsure if it is strictly necessary?
3. value - a numerical field, default value of 1, that can be used to extend the module to allow the poll_vote entity to be used other type of polling. Currently this can be used (as a more expensive?) version of count but in the future it will allow extension to allow different vote values and even different votingsystems such as rating or ranking. Those will need more work on the Poll entity (follow up, not for this issue).

πŸ“Œ Task
Status

Needs work

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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024