AmericaSCORESBayArea / AmericaScores-CoachApp

React native based mobile app for Americas scores attendance management
5 stars 2 forks source link

New Sessions are not being auto-populated with Attendance Records #507

Open CritiqalPete opened 5 months ago

CritiqalPete commented 5 months ago

Tested in Release (beta) 20.90 iOS Steps to Reproduce:

  1. login as tester
  2. select the Summer 2024 season
  3. Choose the Developer Debate Team
  4. Select a Session with no attendance or create a new Session
  5. Observe the message (see screenshot)
  6. verify there are enrollments by Selecting the Students View (next to the Team Sessions View Tab) and review the students appear Results: the error says there are no enrollments (incorrect as per step 6 above)

Expected: the App detects missing Attendance Records and shows the Attendance Screen anyway using the correct enrollment records, provided reach record has a start and end date that is inclusive of the session date (or no value in Start/End that would exclude that session date)

CritiqalPete commented 5 months ago

this used to work

za-zohaib commented 5 months ago

@CritiqalPete can you attach the mentioned screenshot. Thanks

za-zohaib commented 5 months ago

Also is tester account same as the test account i have 4155551214

CritiqalPete commented 3 months ago

I was using a staff account. here is where I think we have a problem https://github.com/AmericaSCORESBayArea/AmericaScores-CoachApp/blob/8d8415f8b72d943e9330dae41197b67346a00177/src/Attendance.Screen.js#L554

CritiqalPete commented 3 months ago

This is reproducible now in sandbox with the test coach profile.

CritiqalPete commented 3 months ago

image