Open CritiqalPete opened 6 months ago
I tried assigning one of these team seasons' writing coach roles to Yuri Morales and it's not showing up in his view. Beginning to suspect a record malform.
@lautirozen FYI
The issue starts earlier in the flow. Simply choosing one of the teams from the Teams list which opens the Activities view, reports and error. TypeError: Cannot read properties of null (reading 'toString') adding to bug detail.
we need to determine if the TeamSeasonID is being lost by the app (it's already received the ID in order to display the list of Teams) LIKELY CULPRIT or if the API is sending the ID a second time as a NULL and that is displacing the correct value CHECK API LOGS
seeing this when I drill down from the Teams list on Bridges Boys to view the list of Sessions. Two should appear but the view remains empty. This is in the debugger: [TypeError: Cannot read property 'toString' of null]
This happens again when I start the Create Session flow.
[TypeError: Cannot read property 'match' of null]
This is what is logged when I pick a date and submit:
{"SessionDate": "2024-04-23", "SessionTopic": "Soccer", "TeamSeasonId": "", "sessionEnd": "14:00", "sessionStart": "13:00"}
LOG changes {"SessionDate": "2024-04-23", "SessionTopic": "Soccer", "TeamSeasonId": "", "sessionEnd": "14:00", "sessionStart": "13:00"}
Why is TeamSeasonID blank???
This seems like an error in the Calendar component or date parsing. I eventually get the app to hang when I select a date range.
Cause identified and (temporarily) fixed: The Account Record was missing a value for "Regionc" (Team_Seasonr.Teamr.School_Siter.Region__c references an AccountID)
When I assigned this Account to 'Oakland' the bug went away
Need to think about protections on the Salesforce side as well as any App that uses strategies like this for filtering/ordering.
Leaving Aptos Account unchanged so we can test further.
See below for callstack for Coach App.
mysteriously, this issue appears isolated to two team seasons: a0qUQ000001q9ufYAA (Bridges Girls 2023-2024) a0qUQ000001qI3VYAU (Bridges Boys 2023-2024)
To observe:
No session is created in the DB. Response suggests an incomplete request is being sent but this appears isolated to these team seasons only
May need parallel investigation on Salesforce DB.
Error (from Salesforce)
"message": "Required fields are missing: [Team_Season__c]
API LOGS
Coach App runtime shows:
Activities.Screen.js:166-199
Presumably the implementation here has undergone some changes for certain conditions and is likely due maintenance, but the NULL condition seems prior to the function failing.