-
Notifications
You must be signed in to change notification settings - Fork 10
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
HL-737 | Calculator changes #2021
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2021 +/- ##
============================================
- Coverage 34.20% 14.18% -20.02%
============================================
Files 599 286 -313
Lines 11029 7501 -3528
Branches 2343 1889 -454
============================================
- Hits 3772 1064 -2708
+ Misses 6858 6151 -707
+ Partials 399 286 -113 see 641 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Helsinkibenefit-bf-hdlr is deployed to: https://helsinkibenefit-bf-hdlr-2021.test.kuva.hel.ninja 🚀🚀🚀 |
API branch is deployed to platta: https://kesaseteli-pr2021.api.dev.hel.ninja/healthz 🚀🚀🚀 |
Helsinkibenefit-bf-appl is deployed to: https://helsinkibenefit-bf-appl-2021.test.kuva.hel.ninja 🚀🚀🚀 |
Helsinkibenefit-bf-bknd is deployed to: https://helsinkibenefit-bf-bknd-2021.test.kuva.hel.ninja 🚀🚀🚀 |
YOUTH branch is deployed to platta: https://youth-pr2021.dev.hel.ninja 🚀🚀🚀 |
EMPLOYER branch is deployed to platta: https://kesaseteli-pr2021.dev.hel.ninja 🚀🚀🚀 |
HANDLER branch is deployed to platta: https://handler-pr2021.dev.hel.ninja 🚀🚀🚀 |
TestCafe result is success for https://helsinkibenefit-bf-appl-2021.test.kuva.hel.ninja! 😆🎉🎉🎉 |
TestCafe result is success for https://handler-pr2021.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://kesaseteli-pr2021.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://youth-pr2021.dev.hel.ninja 😆🎉🎉🎉 |
API branch is deployed to platta: https://kesaseteli-pr2021.api.dev.hel.ninja/healthz 🚀🚀🚀 |
HANDLER branch is deployed to platta: https://handler-pr2021.dev.hel.ninja 🚀🚀🚀 |
EMPLOYER branch is deployed to platta: https://kesaseteli-pr2021.dev.hel.ninja 🚀🚀🚀 |
TestCafe result is success for https://handler-pr2021.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://kesaseteli-pr2021.dev.hel.ninja 😆🎉🎉🎉 |
YOUTH branch is deployed to platta: https://youth-pr2021.dev.hel.ninja 🚀🚀🚀 |
TestCafe result is success for https://youth-pr2021.dev.hel.ninja 😆🎉🎉🎉 |
[yjdh-kesaseteli-handler] Kudos, SonarCloud Quality Gate passed! |
[yjdh-kesaseteli-shared] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
[yjdh-kesaseteli-api] Kudos, SonarCloud Quality Gate passed! |
[yjdh-kesaseteli-employer] SonarCloud Quality Gate failed. |
API branch is deployed to platta: https://kesaseteli-pr2021.api.dev.hel.ninja/healthz 🚀🚀🚀 |
[yjdh-kesaseteli-youth] Kudos, SonarCloud Quality Gate passed! |
6430c8f
to
3d1e4ee
Compare
API branch is deployed to platta: https://helsinkilisa-pr2021.api.dev.hel.ninja/healthz 🚀🚀🚀 |
HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2021.dev.hel.ninja 🚀🚀🚀 |
[yjdh-helsinkilisa-shared] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
[yjdh-helsinkilisa-applicant] Kudos, SonarCloud Quality Gate passed! 8 Bugs No Coverage information |
[yjdh-helsinkilisa-handler] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
[yjdh-helsinkilisa-api] Kudos, SonarCloud Quality Gate passed! |
API branch is deployed to platta: https://helsinkilisa-pr2021.api.dev.hel.ninja/healthz 🚀🚀🚀 |
HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2021.dev.hel.ninja 🚀🚀🚀 |
APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2021.dev.hel.ninja 🚀🚀🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the last line endings in json files, otherwise very OK 👍
@@ -143,7 +321,9 @@ def days360(start_date, end_date): | |||
) | |||
|
|||
|
|||
def duration_in_months(start_date, end_date, decimal_places=None): | |||
def duration_in_months( | |||
start_date: date, end_date: date, decimal_places: Union[int, None] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also Optional
from typing
for these cases. Doesn't really matter, as I hope we can upgrade to python 3.10 soon.
@@ -1044,4 +1047,4 @@ | |||
}, | |||
"keyword": "Hakusana" | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the editors should be configured so that they don't mess up the line endings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is green now, not worth waiting for builds. Maybe merge and do a hotfix to address the line change issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix the line endings in a separate PR.
TestCafe result is success for https://helsinkilisa-ui-pr2021.dev.hel.ninja 😆🎉🎉🎉 |
Description ✨
This PR updates the calculator with the changes mandated by the new legislation coming into effect 1.7.2023.
The changes in a nutshell:
Testing ⚗️
pytest calculator/tests/test_handler_excel_examples.py
or create a new application through the UI using the any of the test cases in the excel.
Screenshots 📸
Additional notes 🗒️