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

PI-2676 Don't create a release if there is already an un-recalled release #4482

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

marcus-bcl
Copy link
Contributor

The integration service should never create a release where there is already an active release. Delius expects releases and recalls to be in order and alternating, so you would never have two releases in a row, unless there was a recall between them.

Previously the releaseDateValid logic didn't account for an un-recalled release. If custody.mostRecentRelease() is not null, but custody.mostRecentRelease().recall is null, then it returned true but it should have returned false.

…ease

The integration service should never create a release where there is already an active release.  Delius expects releases and recalls to be in order and alternating, so you would never have two releases in a row, unless there was a recall between them.

Previously the `releaseDateValid` logic didn't account for an un-recalled release.  If `custody.mostRecentRelease()` is not null, but `custody.mostRecentRelease().recall` _is_ null, then it returned `true` but it should have returned `false`.
@marcus-bcl marcus-bcl requested a review from a team as a code owner December 6, 2024 16:49
@github-actions github-actions bot added the bug Something isn't working label Dec 6, 2024
@marcus-bcl marcus-bcl merged commit 8c7ec10 into main Dec 9, 2024
62 checks passed
@marcus-bcl marcus-bcl deleted the PI-2676-duplicate-release branch December 9, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants