#9158 closed defect (bug) (fixed)
Group members not notified that they have been promoted in Nouveau
Reported by: | needle | Owned by: | imath |
---|---|---|---|
Milestone: | 14.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Groups | Keywords: | has-patch has-unit-tests |
Cc: |
Description
When using BP Nouveau:
- Navigate to "Some Group" -> "Manage" -> "Members"
- Promote a member from "Member" to "Administrator"
- No email notification is sent
The groups_notification_promoted_member()
function is hooked to groups_promoted_member
but none of this family of actions (e.g. groups_demoted_member
, groups_banned_member
etc) fires because Nouveau routes via the BP REST API instead of groups_screen_group_admin_manage_members()
.
BP Classic still fires these actions and works as expected.
Not firing these actions also affects plugins that perform tasks based on the status of group members.
Change History (11)
#2
@
7 months ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 14.0.0
Hi @needle
Thanks a lot for your report. I agree with your diagnostic. I will work on it shortly.
#3
@
7 months ago
@imath Thanks for looking into this. I would have added a patch, but I wasn't sure about the preferred approach - i.e. whether the groups_*_member
actions should be added to the REST API or whether they should be deprecated.
This ticket was mentioned in PR #293 on buddypress/buddypress by imath.
7 months ago
#4
- Keywords has-patch has-unit-tests added; needs-patch removed
Hi @needle
Just checked, I believe we actually need to update BuddyPress and the BP REST API.
- BuddyPress: it shouldn't use the current hooks as there can be situations where the hook is fired although the requested action failed.
- BuddyPress
groups_$action_member()
function should be usable outside of the Web version using the BP REST API for instance. It's not currently the case and I suspect it to be the reason why we were directly usingBP_Groups_Member->$action()
- The BP REST API should absolutely use
groups_$action_member()
functions to be sure cache is cleared or group activities are deleted when it's needed. It's currently not the case. I'll soon submit a PR to the BP REST API GH repo.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9158
#5
@
7 months ago
FYI here's the BP REST API PR that should bring the notifications back to Nouveau:
https://github.com/buddypress/BP-REST/pull/507
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
6 months ago
#9
@
6 months ago
@needle FYI
Additionally, Nouveau allows me to demote all group admins so that there are none left. BP Classic does not allow this. I don't think Nouveau should either.
We'll deal about this issue from #9163, I'll focus on your ticket description here.
#10
@
6 months ago
- Owner set to imath
- Resolution set to fixed
- Status changed from new to closed
In 13873:
Additionally, Nouveau allows me to demote all group admins so that there are none left. BP Classic does not allow this. I don't think Nouveau should either.