SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
581 stars 353 forks source link

Group Member Requirement Status Not Updating #6042

Closed CourtneyKHarris closed 2 weeks ago

CourtneyKHarris commented 1 month ago

Description

When a group member is no longer part of a Group Requirement Type data view, the group member still shows as having that requirement met even though they do not belong to the requirement data view any longer.

Group Member in Group Showing that Requirement has been met: Screenshot 2024-10-21 at 1 21 58 PM

Actual Behavior

A group member initially met one of the group requirements, however, the birthdate was updated which caused the group member to no longer be part of the data view associated with the requirement. After the Calculate Group Requirements job was run, Refresh Requirements was clicked within this group member's detail, but it still shows that the specific requirement has been met.

Dataview that the Requirement is referencing: Screenshot 2024-10-21 at 1 19 23 PM

Group Type Role with Requirement: Screenshot 2024-10-21 at 1 44 57 PM

Dataview Filters: Screenshot 2024-10-21 at 1 17 53 PM

Group Member that does NOT meet requirement: Live Scan/Background Check is NO Screenshot 2024-10-21 at 1 16 30 PM

Person is older than 12: Screenshot 2024-10-21 at 1 41 32 PM

Group Member NOT in Dataview: Screenshot 2024-10-21 at 1 27 45 PM

Group Member Detail in Group Showing that Requirement has been met: Screenshot 2024-10-21 at 1 21 58 PM

Expected Behavior

When this group member was no longer part of the Group Requirement Type data view, that group member's requirement should've shown as not being met within the group member details.

When testing this on our demo site (currently 16.5) the group member that no longer met the requirements showed as 'not met' after the Calculate Group requirements job ran.

Steps to Reproduce

  1. Create a dataview and link to a group requirement type.
  2. Add requirement at the group type level to the specific group role.
  3. Find a person in a group of that group type who is also in a group requirement data view.
  4. Update the person so that they no longer meet one of the requirements.
  5. Check the requirement data view to make sure they are no longer there.
  6. Click into the group member's detail from the group and click 'Refresh Requirements.'

Issue Confirmation

Rock Version

16.6

Client Culture Setting

en-US

CourtneyKHarris commented 2 weeks ago

Worked with Nathan La Barbera to resolve this issue.