AmericaSCORESBayArea / student-registration

Student families need to easily access their records and waivers at least once per year. This service needs to be paper-free, secure, and reliable... and a future standard for school districts and youth-focused nonprofits/volunteer organizations. Interfaces with Mulesoft API's and Salesforce.
https://scoresu.org
Other
2 stars 0 forks source link

QuickRegistration: retrieve all TeamSeasons after the given date #256

Closed AleksandrMolchagin closed 2 weeks ago

AleksandrMolchagin commented 2 weeks ago

Description:

At the moment, quick registration's dropdown menu retrieves only TeamSeasons at 2023-08-14: Image

This might lead to some missing records with the start date after the given date, like the following one:

    {
        "SeasonStartDate": "2024-06-03",
        "TotalNoOfSessions": "0.0",
        "CoachWriting": "",
        "Partnership": "",
        "SeasonName": "2024 Summer",
        "TotalNoOfPlayers": "0.0",
        "TeamSeasonName": "Bret Harte Select-2024 Summer",
        "CoachSoccer": "Marco Bonilla",
        "TeamSeasonId": "a0qUQ000001xlITYAY",
        "TeamName": "Bret Harte Select",
        "SchoolSite": "Bret Harte Elementary School",
        "SeasonEndDate": "2024-08-02",
        "ScoresProgramManager": "Genaro Arana",
        "ProgramCoordinator": "",
        "Region": "San Francisco Crocker",
        "SeasonId": "a0oUQ000000dq6nYAA"
    },

We need to modify the call to retrieve all TeamSeasons by modifying the API call from /teamSeasons?date=2023-08-14 to /teamSeasons?date=2023-08-14&isWithinDateRange=true

AleksandrMolchagin commented 2 weeks ago

Duplicate: https://github.com/AmericaSCORESBayArea/Student-Registration-React-Web/issues/97