-
Notifications
You must be signed in to change notification settings - Fork 8
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
[TTAHUB-3917] Support case related to endDate calculation #2685
base: main
Are you sure you want to change the base?
Conversation
Seems we may have another issue (pre-existing??) Screen.Recording.2025-02-26.at.5.02.05.PM.mov |
@@ -1369,51 +1369,6 @@ describe('Recipient DB service', () => { | |||
expect(result.map((obj) => obj.id)).toEqual([3, 2, 1]); // Sorted by endDate descending | |||
}); | |||
|
|||
it('handles undefined activityReports gracefully', () => { |
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.
Why do we remove this test? Do we still handle the null date case?
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 PR is simply a revert of what was recently introduced in order to resolve this support case
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.
in resolving the issue @thewatermethod found, I refactored to handle null/undefined more predictably (which appears to have been the issue all along - unpredictable sort order because of bad values), and reintroduced tests for null/undefined: cb06e9d
well that's definitely odd.. I'll try and track down why this is happening, but my assumption is that this was probably pre-existing either way, I will get this resolved update: should be good now: cb06e9d |
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.
Looks good 👍
Description of change
Reverts more changes that happened recently related to how endDate was calculated, restoring things to how they were before.
How to test
Go to http://localhost:3000/recipient-tta-records/263/region/11/rttapa?
Search for G63912
Make sure it shows a good value for
Last TTA
.Before:
After:
Additionally, make sure the issue from a previous (and related) support case is still resolved:
Issue(s)
Checklists
Every PR
Before merge to main
Production Deploy
After merge/deploy