Skip to content

Conversation

@tiago-graf
Copy link
Collaborator

@tiago-graf tiago-graf commented Nov 25, 2025

Added the programYear.startDate when loading the details for the supported user. This fixed the dynamic year (CalculatedTaxYear) not showing up on the supporting user (partner) application form on the ministry portal.

image

commit 5fffabd
Merge: 2a95119 e797473
Author: Tiago Graf <tiago.graf@quartech.com>
Date:   Tue Nov 25 10:10:10 2025 -0800

    Merge branch 'main' into bugs/#4441-supporting-user-dynamic-year

commit 2a95119
Author: Tiago Graf <tiago.graf@quartech.com>
Date:   Tue Nov 25 10:05:39 2025 -0800

    Add program start date to get supporting user details

commit 4ca463a
Author: Tiago Graf <tiago.graf@quartech.com>
Date:   Fri Nov 21 13:25:00 2025 -0800

    Removed unused imports

commit 84690f5
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Fri Nov 21 12:20:07 2025 -0800

    Update Applications.vue

commit 161d798
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Fri Nov 21 12:07:30 2025 -0800

    Refactoring to use new student getter

commit f30ea3b
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Fri Nov 21 09:18:08 2025 -0800

    Add a student store getter for valid sin

commit 0d45dc9
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Thu Nov 20 16:31:40 2025 -0800

    Update studentwelcomepage.json

commit 3933378
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Thu Nov 20 16:24:17 2025 -0800

    Update studentwelcomepage.json

commit ed8df83
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Thu Nov 20 12:48:07 2025 -0800

    lint fix

commit 41041d1
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Thu Nov 20 12:44:03 2025 -0800

    Update studentwelcomepage.json

commit 18cecc1
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Thu Nov 20 12:11:03 2025 -0800

    Updated student welcome page formio

commit e17c99b
Merge: 8506569 b93dedd
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Thu Nov 20 11:04:17 2025 -0800

    Merge branch 'bug/#5393-student-start-application-enabled' of https://github.com/bcgov/SIMS into bug/#5393-student-start-application-enabled

commit b93dedd
Author: Tiago Graf <tiago.graf@quartech.com>
Date:   Thu Nov 20 11:01:06 2025 -0800

    Update sources/packages/web/src/views/student/financial-aid-application/StudentApplication.vue

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

commit 4583a0f
Author: Tiago Graf <tiago.graf@quartech.com>
Date:   Thu Nov 20 11:00:08 2025 -0800

    Update sources/packages/web/src/views/student/financial-aid-application/StudentApplication.vue

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

commit 9d2d692
Author: Tiago Graf <tiago.graf@quartech.com>
Date:   Thu Nov 20 10:59:35 2025 -0800

    Update sources/packages/web/src/views/student/financial-aid-application/StudentApplication.vue

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

commit 6dce21d
Author: Tiago Graf <tiago.graf@quartech.com>
Date:   Thu Nov 20 10:54:13 2025 -0800

    Update sources/packages/web/src/views/student/financial-aid-application/StudentApplication.vue

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

commit 8506569
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Thu Nov 20 09:52:12 2025 -0800

    Removed double import

commit 1492232
Author: Tiago Graf <Tiago.Graf@gov.ab.ca>
Date:   Thu Nov 20 09:38:49 2025 -0800

    Disable Start Application button if invalid SIN
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an issue where the dynamic tax year (CalculatedTaxYear) was not displaying correctly on the supporting user (partner) application form in the ministry portal. The fix adds programYear.startDate to the data retrieved when loading supporting user details.

Key Changes

  • Added programYear.startDate to the database query in SupportingUserService.getSupportingUsersDetails()
  • Exposed programYearStartDate in the controller response and DTO
  • Updated the e2e test to assert the new field is returned

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
supporting-user.service.ts Added programYear.startDate to the select fields in the getSupportingUsersDetails() query
supporting-user.aest.controller.ts Mapped programYearStartDate from the application's program year to the response DTO
supporting-user.dto.ts Added programYearStartDate property to SupportingUserFormDataAPIOutDTO
supporting-user.aest.controller.getIdentifiableSupportingUser.e2e-spec.ts Updated test assertion to verify the programYearStartDate field is returned correctly

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Copy link
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.

Good work @tiago-graf thanks for the making the change.

…ting-user/models/supporting-user.dto.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link

@github-actions
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.63% ( 4272 / 20708 )
Methods: 9.9% ( 251 / 2535 )
Lines: 24.79% ( 3655 / 14743 )
Branches: 10.67% ( 366 / 3430 )

@github-actions
Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 74.8% ( 1045 / 1397 )
Methods: 77.93% ( 113 / 145 )
Lines: 78.34% ( 763 / 974 )
Branches: 60.79% ( 169 / 278 )

@github-actions
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 85.47% ( 1559 / 1824 )
Methods: 84.76% ( 178 / 210 )
Lines: 88.39% ( 1241 / 1404 )
Branches: 66.67% ( 140 / 210 )

@github-actions
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 74.24% ( 8302 / 11183 )
Methods: 73.61% ( 982 / 1334 )
Lines: 78.47% ( 6065 / 7729 )
Branches: 59.2% ( 1255 / 2120 )

@tiago-graf tiago-graf enabled auto-merge November 25, 2025 20:06
@tiago-graf tiago-graf added this pull request to the merge queue Nov 25, 2025
Merged via the queue into main with commit 508f031 Nov 25, 2025
22 checks passed
@tiago-graf tiago-graf deleted the bug/#4441-supporting-user-dynamic-year branch November 25, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants