Email Notifications

Created on 18 August 2020, over 4 years ago
Updated 10 December 2024, about 1 month ago

Problem/Motivation

Send an email notification to the user when their membership request has been approved.

Proposed resolution

Use State Machine to handle the request status as this will provide all the events to trigger sending an email.

Remaining tasks

  • Prpose resolution
  • Code
  • Tests

User interface changes

Should be none

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom dwkitchen London

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.

  • 🇧🇷Brazil leonardo.montenegro

    About 2 years ago, back when we were still using Groups v1 with older versions of all modules, we used the same example from @mr.andrey. It has been working fine throughout the time, but suddenly it's presenting issues after moving to Groups V3 and grequest v3.1.

    In my case, I'm using the three events below:

    • group_membership_request.create.post_transition
    • group_membership_request.approve.post_transition
    • group_membership_request.reject.post_transition

    From our tests, the ones from approval/rejection are being triggered just fine, but the create one (called after a Group Membership Request is created) isn't being called. As a result, our custom notification mechanism stopped working for new requests.

    My guess is that it stopped working for the newer versions. At least as a temporary workaround, probably a "hook_group_relationship_insert" would work, for detecting any Group Membership Requests creation attempts.

Production build 0.71.5 2024