Dispatch event when Poll Vote is saved

Created on 26 January 2019, over 5 years ago
Updated 13 March 2024, 4 months ago

Problem/Motivation

Get to know when a Poll Vote is saved. Do this so other pieces can react off of this such as triggering an email to the voter. From what I can tell, the Poll Vote is not an entity, therefore, the CRUD hooks cannot be leveraged here.

Proposed resolution

Dispatch an event in the save vote method.

Remaining tasks

I wrote a patch, but direction and feedback is welcome/needed.

User interface changes

None

API changes

None

Data model changes

None

✨ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States johnsicili Phoenix

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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