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

[TTAHUB-3917] Support case related to endDate calculation #2685

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nvms
Copy link
Collaborator

@nvms nvms commented Feb 26, 2025

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:

Screenshot 2025-02-26 at 4 28 15 PM

After:

Screenshot 2025-02-26 at 4 28 30 PM

Additionally, make sure the issue from a previous (and related) support case is still resolved:

Screenshot 2025-02-27 at 10 33 14 AM

Issue(s)

Checklists

Every PR

  • Meets issue criteria
  • JIRA ticket status updated
  • Code is meaningfully tested
  • Meets accessibility standards (WCAG 2.1 Levels A, AA)
  • API Documentation updated
  • Boundary diagram updated
  • Logical Data Model updated
  • Architectural Decision Records written for major infrastructure decisions
  • UI review complete
  • QA review complete

Before merge to main

  • OHS demo complete
  • Ready to create production PR

Production Deploy

  • Staging smoke test completed

After merge/deploy

  • Update JIRA ticket status

@nvms nvms marked this pull request as ready for review February 26, 2025 20:57
@thewatermethod
Copy link
Collaborator

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', () => {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Copy link
Collaborator Author

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

@nvms
Copy link
Collaborator Author

nvms commented Feb 27, 2025

Seems we may have another issue (pre-existing??)

Screen.Recording.2025-02-26.at.5.02.05.PM.mov

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

@nvms nvms marked this pull request as draft February 27, 2025 15:08
@nvms nvms marked this pull request as ready for review February 27, 2025 15:59
@nvms nvms requested a review from AdamAdHocTeam February 27, 2025 15:59
Copy link
Collaborator

@kryswisnaskas kryswisnaskas left a comment

Choose a reason for hiding this comment

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

Looks good 👍

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.

4 participants