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

Guard against failure to fetch NOMIS data #632

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

libuk
Copy link
Contributor

@libuk libuk commented Sep 14, 2023

Context

In the event the API returns a 404 we would throw an unhandled exception
which would stop the user from completing the referral.

This change ensures that we handle this scenario and throw for anything
else.

Changes in this PR

Screenshots of UI changes

Before

Screenshot 2023-09-14 at 17 43 22

After

Adjudications

Screenshot 2023-09-14 at 17 42 16

ACCT alerts

ACCT_after

Release checklist

Release process documentation.

Pre-merge checklist

  • Are any changes required to dependent services for this change to work?
    (eg. CAS API)
  • Have they been released to production already?

Post-merge checklist

@libuk libuk force-pushed the change/1312-guard-against-bad-nomis-data branch from e961ea4 to 1aaee1c Compare September 14, 2023 14:59
@libuk libuk changed the title Change/1312 guard against bad nomis data Guard against failure to fetch NOMIS data Sep 14, 2023
@libuk
Copy link
Contributor Author

libuk commented Sep 14, 2023

@libuk libuk marked this pull request as ready for review September 14, 2023 16:59
In the event the API returns a 404 we would throw an unhandled exception
which would stop the user completing the referral.

This change ensures that we handle this scenario and throw for anything
else.

The UI already handles the scenario of the acctAlerts array being empty,
we so we pass an empty array in this case.
In the event the API returns a 404 we would throw an unhandled exception
which would stop the user completing the referral.

This change ensures that we handle this scenario and throw for anything
else.

The UI already handles the scenario of the adjudications array being
empty, we so we pass an empty array in this case.
@libuk libuk force-pushed the change/1312-guard-against-bad-nomis-data branch from 1aaee1c to 426e98e Compare September 18, 2023 08:31
@libuk libuk merged commit b0c3447 into main Sep 18, 2023
3 checks passed
@libuk libuk deleted the change/1312-guard-against-bad-nomis-data branch September 18, 2023 09:10
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.

2 participants