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

Added BGS\MPI ICn lookup via fileNumber #19862

Merged
merged 10 commits into from
Dec 17, 2024

Conversation

michelpmcdonald
Copy link
Contributor

@michelpmcdonald michelpmcdonald commented Dec 12, 2024

Summary

Benefits Intake API accepts PDF uploads from consumers and sends them to EMMS API for intake into various VA systems.

Recently EMMS API added a new optional ICN field we can provide in the metadata we send them along with the PDFs to provide better tracking.

This PR adds an ICN lookup. Consumer provides fileNumber(it's usually a ssn, actual fileNumber, or participant ID).
Since MPI does not have a fileNumber only lookup, we first have to look up the veteran in BGS to get their birthday, then we hit MPI and grab the veterans ICN, we send that ICN to EMMS.

No flipper flag, but one method entry point to lookup protected with catch all exception handling logging.

Related issue(s)

API-41210

Team Banana Peels, we own the modified code

Testing done

  • New code is covered by unit tests

Also, extensive manual testing to make sure approach was valid

Screenshots

Note: Optional

What areas of the site does it impact?

Benefits Intake upload to EMMS API step

Acceptance criteria

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.
  • Events are being sent to the appropriate logging solution

Requested Feedback

@michelpmcdonald michelpmcdonald added Lighthouse lighthouse benefits-intake Lighthouse Benefits Intake API banana-peels Lighthouse Banana Peels Team labels Dec 12, 2024
@michelpmcdonald michelpmcdonald self-assigned this Dec 12, 2024
@michelpmcdonald michelpmcdonald marked this pull request as ready for review December 12, 2024 18:00
@michelpmcdonald michelpmcdonald requested review from a team as code owners December 12, 2024 18:00
@va-vfs-bot va-vfs-bot temporarily deployed to API-41210_find_report_icn_to_caseflow/main/main December 12, 2024 18:08 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-41210_find_report_icn_to_caseflow/main/main December 16, 2024 15:29 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-41210_find_report_icn_to_caseflow/main/main December 16, 2024 16:18 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-41210_find_report_icn_to_caseflow/main/main December 16, 2024 16:54 Inactive
ericboehs
ericboehs previously approved these changes Dec 16, 2024
Copy link
Contributor

@kristen-brown kristen-brown left a comment

Choose a reason for hiding this comment

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

Wow, that was a lot to figure out with BGS and MPI. Nice work!

I have one recommended change that should be quick to fix, and is outlined in a comment.

@va-vfs-bot va-vfs-bot temporarily deployed to API-41210_find_report_icn_to_caseflow/main/main December 17, 2024 15:07 Inactive
@michelpmcdonald michelpmcdonald merged commit dfb5072 into master Dec 17, 2024
27 of 28 checks passed
@michelpmcdonald michelpmcdonald deleted the API-41210_find_report_icn_to_caseflow branch December 17, 2024 18:46
derekhouck pushed a commit that referenced this pull request Dec 31, 2024
* Added BGS\MPI ICn lookup via fileNumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
banana-peels Lighthouse Banana Peels Team benefits-intake Lighthouse Benefits Intake API Lighthouse lighthouse require-backend-approval test-passing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants