AmericaSCORESBayArea / AmericaSCORESBayArea/student-registration
(Critical) Update Student Form does not reflect data being returned from Salesforce leading user to duplicate Waivers and Enrollments
- Vorherrschende Sprache
- JavaScript
- Sterne
- 2
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Goal:
Coach can rely on data displayed in Reg forms to be accurate to make effective decisions when updating a student record
### Issue:
1. User searches for a student who is already enrolled
2. User selects the student (maybe not noticing the enrollment date on the list)
3. user chooses a TeamSeason for enrollment
4. User changes the Birthdate because it appears inaccurate (separate bug????)
5. User selects "Paper form Received"
6. Users Submits
**Results:**
- the new enrollment and waiver are created which may be duplicates
- the birthdate entered is saved correctly but appears in the form (if reloaded) as +1 day from what was committed
Additionally
- If the coach makes any change to the record, even if the waiver and/or enrollment already is recorded, a new waiver and enrollment is created but the updates are not saving
### What needs to happen:
1. Waiver Status should be displayed accurately. And the checkbox set based on whether there is an active waiver for the current date. Multiple valid waivers should not interfere with this feature
2. IF the coach attempts to enroll in the same TeamSeason, this will cause an error. Two things should happen:
- The app should show an Warning but allow submission of record updates
- If the app somehow fails, Salesforce should prevent creation of the enrollment record but allow contact update. The error message should be "Student is already enrolled on this TeamSeason"
- IN ANY SITUATION where the app gets an error message it does not know how to handle, the message text should be displayed to the user. Once the user clears the modal, they can be allowed to change the form and re-submit as many times as they like.
Example:
1. User searches and finds an existing student.
2. user updates a couple fields on the record, such as birthdate and Language Spoken at Home.
3. There is a current Waiver for the student with End Date greater than the current date, so the date is displayed and checkbox checked and disabled.
4. user sees the current enrollment displayed above the Enrollment Selector and because the student is participating with two teams, user elects to use the enrollment selector.
5. user makes a mistake and selects the same team as the student is currently enrolled
6. a warning appears "This student is currently enrolled on {TeamSeason}. Choose another to avoid duplication."
7. user accidentally misreads or clicks submit
8. the student record changes are submitted
9. No Waiver History record request is posted
10. The Enrollment record request is posted
11. The server rejects the enrollment but accepts the record changes to the Student Record.
12. The app receives the error and accompanying message from the API and displays it to the user. The Enrollment Selector is reset to clear the error values, but is usable, once the user clears the Error Message
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.