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

July 2013 OAS deferral #945

Merged
merged 35 commits into from
Dec 11, 2023
Merged

July 2013 OAS deferral #945

merged 35 commits into from
Dec 11, 2023

Conversation

alex-solo
Copy link
Collaborator

@alex-solo alex-solo commented Nov 6, 2023

AB#143069 (ADO label)

AB#142328 (ADO label)

Description

Long awaited July 2013 OAS deferral logic. See associated ADO task to get a full idea of requirements. In brief, there are front and "back" end portions to this.

Front-end: When client selects "Yes", they already receive OAS, the deferral dropdown values are populated based on their age in July 2013. If they were between the ages 65-70 at that time, they could have deferred by 70 - age in July 2013.

Back-end: If the client answers "No" to whether they already receive OAS, we need to know what the users age was in July 2013 and based on that calculate the "deferred" scenario (as a reminder, we calculate the deferred and non-deferred scenarios and compare which would provide a more beneficial estimate for the user). The comparison logic is still the same, we just needed to calculate the deferral scenario differently - keeping in mind the "true" number of months the client could have deferred based on the fact that OAS deferral only came into effect in July 2013.

List of proposed changes:

  • merge Vero's branch
  • front-end July 2013 OAS deferral logic
  • back-end July 2013 OAS deferral logic
  • new test scenarios
  • test utils logic to calculate age in July 2013 based on birth year and month
  • upload latest scenarios excel sheet from sharepoint

What to test for/How to test

back-end is hard to test, the automated tests do that but should test the front end dropdowns making sure the correct number of years/months are being populated. For example, if the user was over 70 in July 2013, shouldn't have the option to select anything, if they were 67.5, should be able to select up to 2 years and 6 months

Copy link

github-actions bot commented Nov 7, 2023

Copy link

github-actions bot commented Nov 7, 2023

Copy link

github-actions bot commented Nov 8, 2023

Copy link

github-actions bot commented Nov 8, 2023

Copy link

github-actions bot commented Nov 9, 2023

Copy link

Copy link

Copy link

Copy link

github-actions bot commented Dec 5, 2023

Copy link

github-actions bot commented Dec 5, 2023

Copy link

github-actions bot commented Dec 5, 2023

merging work branch to latest develop
Copy link

github-actions bot commented Dec 5, 2023

Copy link

github-actions bot commented Dec 5, 2023

@alex-solo alex-solo marked this pull request as ready for review December 5, 2023 22:01
@alex-solo alex-solo changed the title [WIP]: July 2013 OAS deferral July 2013 OAS deferral Dec 5, 2023
Copy link
Contributor

@Maxim-Lam Maxim-Lam left a comment

Choose a reason for hiding this comment

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

Everything looks good, Alex. I tested with the scenarios you mention and everything works like you describe.

Copy link

cypress/e2e/alw.cy.ts Dismissed Show dismissed Hide dismissed
cypress/e2e/alw.cy.ts Dismissed Show dismissed Hide dismissed
Copy link

Copy link

@alex-solo alex-solo merged commit 950f2f8 into develop Dec 11, 2023
7 checks passed
@alex-solo alex-solo deleted the feat/2013-oas-deferral-2.0 branch December 11, 2023 19:15
andr0272 added a commit that referenced this pull request Dec 20, 2023
* collaps result summary in mobile

* title language fix

* changed date to 1900 to match error message

* Checking in tests

* force white background on select

* check benefit exists

* just to check deployment

* update title

* final test fixes.

* update

* change reference to ALWS

* change year to 1899

* initial commit

* Update build-and-push-dev.yml

* Update build-and-push-prod.yml

* Update build-and-push-dev.yml

* Update build-and-push-prod.yml

* fixing trigger and cleanup

* fix:updated rates for Q1 2024

* updated links and border color on focus

* fix:updated rates for Q1 2024

* fix: removed excess packages

* Adding pipeline secrets

* Use fieldDefinition instead of categoryMapping

* Adding values for variables, removing unused secrets

* ADO 134595: Refactor benefitHandler (#960)

* Undoing previous commit, cleaning up the variable names

* Using a new service principal

* July 2013 OAS deferral (#945)

Co-authored-by: VeroBr0~ <veronique.breault@cgi.com>
Co-authored-by: Veronique B <131703940+VeroBr0@users.noreply.github.com>

* updated link anchor for footer

* update width

* update

* Adding the NEXT_AUTH_SECRET variable

* Adding the EXPOSE instruction for the proper port of this app

* Revert "Q124 rate update"

* removing an underscore (#971)

* Pipeline underscore (#972)

* removing an underscore

* testing new home var

* Pipeline underscore2 (#974)

testing new home var

* Fix 143948

* fix for failing tests

* Pipeline updates (#977)

* Updating pipelines

* Updating pipelines

* Pipeline underscore (#973)

* removing an underscore

* testing new home var

* testing new home var

* clarify comment

* Pipeline updates (#978)

* Updating pipelines

* Updating pipelines

* Fixing a docker tag problem

---------

Co-authored-by: Jeremy Kennedy <jerekennedy@deloitte.ca>
Co-authored-by: Marco <52539578+MarcoGoC@users.noreply.github.com>

* added condition for partner legal status

* updated dev yml

* hotfix typo

* Remove leading space in message, fix for 40 years not displaying

* added params to current result benefit handler

* super hotfix

* Merge main (#989)

* Updating pipelines

* Fixing pipeline files

* merge main

---------

Co-authored-by: shawn320 <azuneko1110@gmail.com>
Co-authored-by: MarcoGoC <marcogoc951@gmail.com>
Co-authored-by: Maxim Lam <maxim.lam@hrsdc-rhdcc.gc.ca>
Co-authored-by: Marco <52539578+MarcoGoC@users.noreply.github.com>
Co-authored-by: Adam <adam.andrews2797@gmail.com>
Co-authored-by: Maxim Lam <109530511+Maxim-Lam@users.noreply.github.com>
Co-authored-by: Adam Andrews <35509135+andr0272@users.noreply.github.com>
Co-authored-by: “Patrick“ <p@rickjobin.com>
Co-authored-by: VeroBr0~ <veronique.breault@cgi.com>
Co-authored-by: Veronique B <131703940+VeroBr0@users.noreply.github.com>
Co-authored-by: Jeremy Kennedy <jerekennedy@deloitte.ca>
alex-solo added a commit that referenced this pull request Dec 27, 2023
* collaps result summary in mobile

* title language fix

* changed date to 1900 to match error message

* Checking in tests

* force white background on select

* check benefit exists

* just to check deployment

* update title

* final test fixes.

* update

* change reference to ALWS

* change year to 1899

* initial commit

* Update build-and-push-dev.yml

* Update build-and-push-prod.yml

* Update build-and-push-dev.yml

* Update build-and-push-prod.yml

* fixing trigger and cleanup

* fix:updated rates for Q1 2024

* updated links and border color on focus

* fix:updated rates for Q1 2024

* fix: removed excess packages

* Adding pipeline secrets

* Use fieldDefinition instead of categoryMapping

* Adding values for variables, removing unused secrets

* ADO 134595: Refactor benefitHandler (#960)

* Undoing previous commit, cleaning up the variable names

* Using a new service principal

* July 2013 OAS deferral (#945)

Co-authored-by: VeroBr0~ <veronique.breault@cgi.com>
Co-authored-by: Veronique B <131703940+VeroBr0@users.noreply.github.com>

* updated link anchor for footer

* update width

* update

* Adding the NEXT_AUTH_SECRET variable

* Adding the EXPOSE instruction for the proper port of this app

* Revert "Q124 rate update"

* removing an underscore (#971)

* Pipeline underscore (#972)

* removing an underscore

* testing new home var

* Pipeline underscore2 (#974)

testing new home var

* Fix 143948

* fix for failing tests

* Pipeline updates (#977)

* Updating pipelines

* Updating pipelines

* Pipeline underscore (#973)

* removing an underscore

* testing new home var

* testing new home var

* clarify comment

* Pipeline updates (#978)

* Updating pipelines

* Updating pipelines

* Fixing a docker tag problem

---------

Co-authored-by: Jeremy Kennedy <jerekennedy@deloitte.ca>
Co-authored-by: Marco <52539578+MarcoGoC@users.noreply.github.com>

* added condition for partner legal status

* updated dev yml

* hotfix typo

* fix:ran scraper

* fix:ran scraper

* Remove leading space in message, fix for 40 years not displaying

* added params to current result benefit handler

* super hotfix

* Merge main (#989)

* Updating pipelines

* Fixing pipeline files

* merge main

---------

Co-authored-by: shawn320 <azuneko1110@gmail.com>
Co-authored-by: MarcoGoC <marcogoc951@gmail.com>
Co-authored-by: Maxim Lam <maxim.lam@hrsdc-rhdcc.gc.ca>
Co-authored-by: Marco <52539578+MarcoGoC@users.noreply.github.com>
Co-authored-by: Adam <adam.andrews2797@gmail.com>
Co-authored-by: Maxim Lam <109530511+Maxim-Lam@users.noreply.github.com>
Co-authored-by: Adam Andrews <35509135+andr0272@users.noreply.github.com>
Co-authored-by: “Patrick“ <p@rickjobin.com>
Co-authored-by: VeroBr0~ <veronique.breault@cgi.com>
Co-authored-by: Veronique B <131703940+VeroBr0@users.noreply.github.com>
Co-authored-by: Jeremy Kennedy <jerekennedy@deloitte.ca>
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.

3 participants