Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cp -r ./${{ inputs.path }}/build/reports ./artifacts

- name: Upload Artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
if: always()
with:
name: '${{ inputs.name }} Checkstyle Report'
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
cp -r ./${{ inputs.path }}/build/reports ./artifacts

- name: Upload Artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
if: always()
with:
name: '${{ inputs.name }} Spotbugs Report'
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
cp -r ./${{ inputs.path }}/build/reports ./artifacts

- name: Upload Artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
if: always()
with:
name: '${{ inputs.name }} Unit Test Report'
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
cp -r ./scripts/logs ./artifacts

- name: Upload Artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
if: always()
with:
name: '${{ inputs.name }} Integration Test Report & Docker Logs'
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed
* Improved error handling in SkeletonProcessingService to throw a meaningful IllegalArgumentException
when a payload node cannot be matched to a skeleton document ID, replacing an uninformative NullPointerException.
* Fixed `canMergeCompleteBundle` incorrectly returning `true` when attachment logs are empty, causing a blank patient record after large message GP2GP transfers.

## [3.1.3] - 2025-09-19

Expand Down
5 changes: 2 additions & 3 deletions docker/docker-compose-checks.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
version: '3.8'
services:
gpc_facade:
container_name: gpc_facade_tests
build:
target: build
entrypoint: "gradle check"
entrypoint: ["gradle", "check"]
environment:
- GPC_FACADE_SERVER_PORT
- PS_DB_URL
Expand All @@ -15,7 +14,7 @@ services:
container_name: gp2gp_translator_tests
build:
target: build
entrypoint: "gradle check"
entrypoint: ["gradle", "check"]
environment:
- GP2GP_TRANSLATOR_SERVER_PORT
- PS_DB_URL
Expand Down
1 change: 0 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.8'
services:
gpc_facade:
build:
Expand Down
1 change: 0 additions & 1 deletion docker/release-scripts/ps-mhs-e2e/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'

############ Network ##############

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public boolean canMergeCompleteBundle(String conversationId) throws ValidationEx
}

var undeletedLogs = getUndeletedLogsForConversation(conversationId);

if (undeletedLogs.isEmpty()) {
return false;
}

return undeletedLogs.stream().allMatch(log -> log.getUploaded().equals(true));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,16 @@ public void When_AttachmentsPresent_Expect_AttachmentReferenceUpdated()
verify(nackAckPreparationService, never()).sendNackMessage(any(NACKReason.class), any(RCMRIN030000UKMessage.class), any());
}

@Test
public void When_AllAttachmentLogsDeleted_CanMergeCompleteBundle_Expect_ReturnFalse() throws JAXBException {
var emptyAttachmentLogs = new ArrayList<PatientAttachmentLog>();

when(patientAttachmentLogService.findAttachmentLogs(CONVERSATION_ID)).thenReturn(emptyAttachmentLogs);
var result = inboundMessageMergingService.canMergeCompleteBundle(CONVERSATION_ID);

assertFalse(result);
}


private ArrayList<PatientAttachmentLog> createPatientAttachmentList(Boolean isParentUploaded, Boolean isSkeleton) {
var patientAttachmentLogs = new ArrayList<PatientAttachmentLog>();
Expand Down
Loading