Skip to content

#5764 - Legacy Withdraw Restriction Conditions (Cherry Pick to Main)#5769

Merged
CarlyCotton merged 1 commit intomainfrom
cherry-pick/#5764-Legacy-Withdraw-Restriction-Conditions
Feb 12, 2026
Merged

#5764 - Legacy Withdraw Restriction Conditions (Cherry Pick to Main)#5769
CarlyCotton merged 1 commit intomainfrom
cherry-pick/#5764-Legacy-Withdraw-Restriction-Conditions

Conversation

@CarlyCotton
Copy link
Copy Markdown
Collaborator

Bringing the changes from PR #5765 into main.

- Updated condition for the `withdrawal_active_flag` to `N` or `NULL` on
the DB. Please note, from the file, the value will be a white space that
will be imported as `null`, as it is today.
- Found an issue when a student with two applications that meet the
conditions for a WTHD will generate two active student restrictions when
only one should be added.
- The added `DISTINCT` caused an SQL error if the parameters in the
query were not cast to their types.

## E2E Tests

Adapted an existing E2E test to ensure two WTHD will not be added to the
same student, and the `withdrawal_active_flag` will be considered as an
`N` or ` ` (white space).

Queue processor for sfas-integration,
√ Should import one active WTHD restrictions and ignore three other SFAS
applications for withdrawal import when the SFAS applications have
different withdrawal data for withdrawal_date, withdrawal_reason, and
withdrawal_active_flag considering withdrawal_active_flag as 'N', and
multiple WTHD restrictions must be imported as a single active one.
√ Should import one active WTHD restrictions and ignore three other SFAS
applications for withdrawal import when the SFAS applications have
different withdrawal data for withdrawal_date, withdrawal_reason, and
withdrawal_active_flag considering withdrawal_active_flag as 'white
space', and multiple WTHD restrictions must be imported as a single
active one.

### Data setup for the above scenarios

<img width="679" height="142" alt="image"
src="https://github.com/user-attachments/assets/6d43cd4d-6a17-409e-8b98-af6d602166d6"
/>

<img width="683" height="142" alt="image"
src="https://github.com/user-attachments/assets/3f5a09fc-30aa-478c-a439-2c9f401e2520"
/>
@CarlyCotton CarlyCotton self-assigned this Feb 12, 2026
@CarlyCotton CarlyCotton added the Branch Sync-up Branch features move between main/release/hotfix branches. label Feb 12, 2026
@sonarqubecloud
Copy link
Copy Markdown

@CarlyCotton CarlyCotton changed the title #5764 - Legacy Withdraw Restriction Conditions (#5765) #5764 - Legacy Withdraw Restriction Conditions (Cherry Pick to Main) Feb 12, 2026
@github-actions
Copy link
Copy Markdown

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.39% ( 4426 / 21705 )
Methods: 9.94% ( 262 / 2636 )
Lines: 24.51% ( 3778 / 15414 )
Branches: 10.56% ( 386 / 3655 )

@github-actions
Copy link
Copy Markdown

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 75.41% ( 1055 / 1399 )
Methods: 79.31% ( 115 / 145 )
Lines: 78.79% ( 769 / 976 )
Branches: 61.51% ( 171 / 278 )

@github-actions
Copy link
Copy Markdown

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 85.68% ( 1616 / 1886 )
Methods: 85% ( 187 / 220 )
Lines: 88.64% ( 1287 / 1452 )
Branches: 66.36% ( 142 / 214 )

@github-actions
Copy link
Copy Markdown

E2E SIMS API Coverage Report

Totals Coverage
Statements: 78.19% ( 9097 / 11635 )
Methods: 77.56% ( 1061 / 1368 )
Lines: 82.42% ( 6598 / 8005 )
Branches: 63.57% ( 1438 / 2262 )

Copy link
Copy Markdown
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

Copy link
Copy Markdown
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@CarlyCotton CarlyCotton added this pull request to the merge queue Feb 12, 2026
Merged via the queue into main with commit 2678fda Feb 12, 2026
26 of 27 checks passed
@CarlyCotton CarlyCotton deleted the cherry-pick/#5764-Legacy-Withdraw-Restriction-Conditions branch February 12, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Branch Sync-up Branch features move between main/release/hotfix branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants