Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckinGroupList falsely throws an Infinite Recursion on highly nested group types #5637

Closed
2 tasks done
tcavaletto opened this issue Oct 19, 2023 · 0 comments
Closed
2 tasks done
Labels
Fixed in v16.1 Type: Bug Confirmed bugs or reports that are very likely to be bugs.

Comments

@tcavaletto
Copy link
Contributor

Description

When dealing with a nested checkin configuration like below, CheckinGroupList falsely throws an infinite recursion.
image

I believe the issue lies here: https://github.com/SparkDevNetwork/Rock/blob/1.15.1/RockWeb/Blocks/CheckIn/CheckinGroupList.ascx.cs#L176. As you can see below, when grabbing the parent group type, it sets the groupType variable, adds the now new group type id to the parentRecursionHistory list, and then compares it against a list that will always already have it. I suggest setting a groupTypeId variable at the beginning of the while loop, and adding that to the recursion list at the end of the while loop. That way we're adding the original groupTypeId instead of the parent groupTypeId prematurely.
image

Actual Behavior

We see the following:
image
image

Expected Behavior

We should see
image

Steps to Reproduce

  • Go to Attendance Analytics
  • Select the Weekly Service Check-in
  • Click the Checkin Detail button:
    image
  • Select a group and attendance occurrence, for example the test group. See the expected behavior:
    image
  • In a new tab, simulate a more nested setup by adding a new group type underneath the weekly checkin config. Remove your relevant group type ( In this case, Checkin Test Area) from the weekly checkin config group type's Child Group Types, and add it to your new group type, so that it looks like this:
    image
  • Refresh your attendance detail tab:
    image
  • See Error

Issue Confirmation

  • Perform a search on the Github Issues to see if your bug or enhancement is already reported.
  • Try to reproduce the problem on a fresh install or on the demo site.

Rock Version

15.2, 14.2

Client Culture Setting

en-US

@sparkdevnetwork-service sparkdevnetwork-service added Type: Bug Confirmed bugs or reports that are very likely to be bugs. Status: In Dev Queue This issue is being worked on, and has someone assigned. and removed Status: In Dev Queue This issue is being worked on, and has someone assigned. labels Oct 19, 2023
MrUpsideDown added a commit that referenced this issue Nov 1, 2023
…lar references in the Group Type inheritance chain. (Fixes #5637)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in v16.1 Type: Bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

No branches or pull requests

3 participants