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

Implement physical attributes NOMIS to DPS synchronisation #666

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

mikehalmamoj
Copy link
Contributor

No description provided.

@mikehalmamoj mikehalmamoj force-pushed the mh-SDI-1816-synchronise-physical-attributes branch from ea2de39 to 4787f7d Compare June 21, 2024 10:10
@mikehalmamoj mikehalmamoj force-pushed the mh-SDI-1816-synchronise-physical-attributes branch from 77afd31 to 424107c Compare June 21, 2024 10:12

sendPhysicalAttributesChangedEvent()

verifyResults(type = "ignored", reason = "New physical attributes are empty")
Copy link
Contributor

Choose a reason for hiding this comment

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

Question; are physical attributes not copied by NOMIS for new bookings (like it does for Alerts)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are yes. This test is for a brand new booking - if you go into the physical info NOMIS screen it creates this "empty" record which makes no sense to synchronise.

}

@Test
fun `should put message on DLQ if booking has no physical attributes`() = runTest {
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We shouldn't be receiving events for bookings without any physical attributes - but I chose not to assume that in the code, so had to handle the error scenario. Should never happen.

Copy link
Contributor

@andymarke andymarke left a comment

Choose a reason for hiding this comment

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

lgtm

@mikehalmamoj mikehalmamoj enabled auto-merge (squash) June 21, 2024 10:37
@mikehalmamoj mikehalmamoj merged commit 579f8df into main Jun 21, 2024
3 checks passed
@mikehalmamoj mikehalmamoj deleted the mh-SDI-1816-synchronise-physical-attributes branch June 21, 2024 10:41
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.

None yet

2 participants