Skip to content

changes to reconcile current gpm message to website data#70

Closed
tmbattey-2021 wants to merge 2 commits intomainfrom
reconciliation
Closed

changes to reconcile current gpm message to website data#70
tmbattey-2021 wants to merge 2 commits intomainfrom
reconciliation

Conversation

@tmbattey-2021
Copy link
Copy Markdown
Contributor

No description provided.

@bpow bpow marked this pull request as draft September 15, 2024 19:56
{
return $this->group->isEp;

return $this->group->isEp || $this->group->isWg || $this->group->isCdwg;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the reason this is not sufficient is elucidated by tracing the code path of what happens when a member is added to a group (regardless of whether EP, WG, CDWG):

A POST is made to /api/groups/{group:uuid}/members, which you can see in app/Modules/Group/routes/api.php (or perhaps more easily by looking at the output of php artisan route:list) is associated to App\Modules\Group\Actions\MemberAdd.

handle of that controller dispatches a MemberAdded event. This ultimately inherits from the GroupEvent you've modified here, but through GroupMemberEvent which overrides shouldPublish to include conjunction with $this->group->expertPanel->definitionIsApproved;

So even though you've modified GroupEvent to produce events for groups that are not EPs, but the subclass GroupMemberEvents that aren't from EPs cannot satisfy this conjunction, so do not end up being published to the data exchange.

@bpow
Copy link
Copy Markdown
Collaborator

bpow commented Dec 17, 2024

Replaced by #86

@bpow bpow closed this Dec 17, 2024
@bpow bpow deleted the reconciliation branch December 17, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants