NIAD-3467 Fixed undeleted logs bug#1285
Closed
chiaramapellimt wants to merge 1 commit into
Closed
Conversation
167ae74 to
10f4a99
Compare
|
Images built and published to ECR using a Build Id of PR-1132-2e89c01 |
10f4a99 to
8be05c5
Compare
Bump actions/upload-artifact from 6.0.0 to 7.0.1 (#1281) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6.0.0 to 7.0.1. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@b7c566a...043fb46) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ORybak5 <12736698+ORybak5@users.noreply.github.com> NIAD-3467 Fixed undeleted logs bug
8be05c5 to
a9355ad
Compare
|
Looks good. All 3 mutations in this change were killed.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add an empty list guard to
canMergeCompleteBundleinInboundMessageMergingServiceto prevent premature bundle building when all attachment logs have been deleted.Why
When the last attachment chunk of a large GP2GP patient record transfer arrives,
checkAndMergeFilePartsmerges the fragments and then deletes their logs from the DB as cleanup. Immediately after,canMergeCompleteBundlechecks those same logs to decide if the bundle is ready to build but they've just been deleted, so the list is empty. Java'sallMatch()on an empty list always returnstrue, so the bundle gets built too early with no attachments.The result is a blank patient record in Medicus after the transfer which is ofc wrong.
Type of change
Please delete options that are not relevant.
Checklist: