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

[AB2D-5918] Add Null Attestation Handling #1308

Merged
merged 15 commits into from
Feb 15, 2024

Conversation

Rwolfe-Nava
Copy link
Contributor

🎫 Ticket

https://jira.cms.gov/browse/AB2D-5908
https://jira.cms.gov/browse/AB2D-5918

🛠 Changes

Adds a Null Check for AttestationDate in JobPreprocessorImpl.

If Null Check Triggers:

Logs a warning to AWS
Updates job to a failed status and updates events job_status_changed table with relevant information.

ℹ️ Context for reviewers

This is to implement a check so we can handle the case where the attestation date of a contract was null in our system and a job was started against that contract and fail the job before it starts.

Alleviates the current issue where the job would be stuck in the submitted status, and our logs on AWS would be bombarded and clogged with NullPointer Exceptions.

✅ Acceptance Validation

This has been deployed to the IMPL environment and tested there:

AWS_Event_IMPL
Job_Status_Change_Screenshot
No_NullPointer_Message

🔒 Security Implications

  • This PR adds a new software dependency or dependencies.
  • This PR modifies or invalidates one or more of our security controls.
  • This PR stores or transmits data that was not stored or transmitted before.
  • This PR requires additional review of its security implications for other reasons.

If any security implications apply, add Jason Ashbaugh (GitHub username: StewGoin) as a reviewer and do not merge this PR without his approval.

@Rwolfe-Nava Rwolfe-Nava marked this pull request as ready for review January 25, 2024 00:03
@Rwolfe-Nava Rwolfe-Nava requested a review from a team as a code owner January 25, 2024 00:03
@@ -131,12 +132,30 @@ void whenJobIsInSubmittedStatus_ThenJobShouldBePutInProgress() throws Interrupte
verify(jobRepository).save(Mockito.any());
}

@DisplayName("Job is FAILED if contract is not attested")
@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

just a few line comments about mock tests also would be great for readability in future. Everything else looks great and Great job on finishing this super quickly!

@Sadibhatla Sadibhatla merged commit 1966b85 into master Feb 15, 2024
1 of 3 checks passed
@Sadibhatla Sadibhatla deleted the ab2d-5918-add-null-attestation-handling branch February 15, 2024 03:44
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