Placement Group Sync Workflow Action - #202
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Rock RMS workflow action component to keep registration group member attribute values in sync with placement group membership changes (add/remove), supporting scenarios like camps where placement drives check-in/labels.
Changes:
- Introduces
UpdateRegistrationGroupWithPlacementGroupworkflow action to update registration group member attributes based on placement group membership, with Lava-enabled configuration. - Updates the workflow plugin project file to compile the new action.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| Plugins/org.secc.Workflow/org.secc.Workflow.csproj | Includes the new workflow action source file in the build. |
| Plugins/org.secc.Workflow/Registrations/UpdateRegistrationGroupWithPlacementGroup.cs | Implements the workflow action and its placement-to-registration synchronization logic. |
…al; added trim to groupnameprefix; updated logic for finding other matching placement groups to include groups attached to the template
gmcgrady
left a comment
There was a problem hiding this comment.
This PR should effectively replace our SQL job for syncing placement groups & group member attributes in registration groups. Instance-level and template-level placement configurations makes it future-proof. Also, great catch on checking for placement in another group during a removal operation. The architecture of using a workflow triggered by the group type makes the 'Execute()' method of this action straight forward. Approving & merging.
This workflow action is for syncing groupmember attribute values on registration groups when a member is added to or removed from a placement group associated with that registration instance.