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

fix: non-date string crash in trainingCompensationEndDate #2262

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

rikuke
Copy link
Collaborator

@rikuke rikuke commented Sep 7, 2023

Description ✨

User is able to input anything into the handler application training compensation end date field and it crashes the app.
This happens because the getCorrectEndDate() function returns undefined when it cannot convert either of the supplied date strings into dates. This PR fixes the issue by making the return value optional.

Issues πŸ›

Testing βš—οΈ

Navigate to the handler application and into an application that has one or more training compensation rows, try to type something into the training compensation end date.

Screenshots πŸ“Έ

Screenshot 2023-09-08 at 16 50 23

Additional notes πŸ—’οΈ

@terovirtanen
Copy link
Contributor

API branch is deployed to platta: https://helsinkilisa-pr2262.api.dev.hel.ninja/healthz πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2262.dev.hel.ninja πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

TestCafe result is success for https://helsinkilisa-ui-pr2262.dev.hel.ninja πŸ˜†πŸŽ‰πŸŽ‰πŸŽ‰

@terovirtanen
Copy link
Contributor

API branch is deployed to platta: https://helsinkilisa-pr2262.api.dev.hel.ninja/healthz πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2262.dev.hel.ninja πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2262.dev.hel.ninja πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

TestCafe result is success for https://helsinkilisa-ui-pr2262.dev.hel.ninja πŸ˜†πŸŽ‰πŸŽ‰πŸŽ‰

@sonarcloud
Copy link

sonarcloud bot commented Sep 8, 2023

[yjdh] Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Sep 8, 2023

[yjdh] Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Sep 8, 2023

[yjdh] Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Sep 8, 2023

[yjdh] Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

86.9% 86.9% Coverage
0.0% 0.0% Duplication

@terovirtanen
Copy link
Contributor

API branch is deployed to platta: https://helsinkilisa-pr2262.api.dev.hel.ninja/healthz πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2262.dev.hel.ninja πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2262.dev.hel.ninja πŸš€πŸš€πŸš€

@rikuke rikuke marked this pull request as ready for review September 8, 2023 13:51
@terovirtanen
Copy link
Contributor

TestCafe result is success for https://helsinkilisa-ui-pr2262.dev.hel.ninja πŸ˜†πŸŽ‰πŸŽ‰πŸŽ‰

@rikuke rikuke merged commit 592c533 into main Sep 20, 2023
54 checks passed
@rikuke rikuke deleted the HL-910-date-input branch September 20, 2023 11:55
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.

None yet

3 participants