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

Waiver filtering update [Production] #302

Merged
merged 5 commits into from
Nov 1, 2024
Merged

Waiver filtering update [Production] #302

merged 5 commits into from
Nov 1, 2024

Conversation

AleksandrMolchagin
Copy link
Contributor

Fix for #298.

Please do not merge until debug+Sandbox has been verified.


  • Changes Implemented:

    1. Fix "ValidFrom" and "ValidTo": Ensure that "ValidFrom" and "ValidTo" fields are corrected, as they were previously swapped.
    2. Move Archive Filtering: Move the filtering based on the Archive status from the server logic to the SOQL query itself.
    3. Add Filtering Condition: Add a condition Waiver_Active_End__c >= TODAY in the SOQL query to filter out waivers that haven't met the required timelines.
    4. Handle Missing Waivers: If no waiver is found, return a 404 HTTP status code with the message: "No current waiver found".
  • Examples:

    • Successful Call:
image
  • No Waivers Found:
image

- Fix "ValidFrom" and "ValidFrom" (they were swapped)
- Move filtering based on the Archive from the server to SOQL query
- Add condition "Waiver_Active_End__c >= TODAY" to filter waivers that are not achieved on time
- If waiver not found, throw 404 error + return message "No current waiver found"
`Student_Record_Complete__c` is not set to true anymore, but the message was not updated.
…rticipated__c`

Add `Year_of_Reference_for_Grade_Information__c` and `Grades_child_participated__c` to GET, PATCH and POST flows:

- get:\contacts\(contactId)
- get:\contacts
- get:\contacts\search
- get:\contacts\searchByPhoneNumber
- post:\contacts
- patch:\contacts\(contactId)

Now payload supports: `YearOfReferenceForGradeInformation` and `GradesChildParticipated` as string objects. Use `;` as a seperator for GradesChildParticipated values (for example, "5th;6th").
…student-contact-fields

`Year_of_Reference_for_Grade_Information__c` and `Grades_child_participated__c`
@AleksandrMolchagin AleksandrMolchagin merged commit d3da16b into master Nov 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant