From c288c2f38656860fc922b0210f913e95b9d45f49 Mon Sep 17 00:00:00 2001 From: dd217 Date: Wed, 7 Oct 2026 09:39:11 -0500 Subject: [PATCH 1/2] DIS-3031: Properly sort Symphony delta imports --- .../symphony/SymphonyExportMain.java | 4 ++-- code/web/release_notes/26.10.00/DIS-3031.yaml | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 code/web/release_notes/26.10.00/DIS-3031.yaml diff --git a/code/symphony_export/src/com/turning_leaf_technologies/symphony/SymphonyExportMain.java b/code/symphony_export/src/com/turning_leaf_technologies/symphony/SymphonyExportMain.java index 1b5f94f525..bb8a775d71 100644 --- a/code/symphony_export/src/com/turning_leaf_technologies/symphony/SymphonyExportMain.java +++ b/code/symphony_export/src/com/turning_leaf_technologies/symphony/SymphonyExportMain.java @@ -811,6 +811,8 @@ private static int updateRecords(Connection dbConn){ //process unzipped files(marcExportPath) File[] exportedMarcDeltaFiles = marcDeltaPath.listFiles((dir, name) -> name.endsWith("mrc") || name.endsWith("marc")); if (exportedMarcDeltaFiles != null && exportedMarcDeltaFiles.length > 0){ + //Sort the files to process by date + Arrays.sort(exportedMarcDeltaFiles, Comparator.comparingLong(File::lastModified)); for (File exportedMarcDeltaFile : exportedMarcDeltaFiles) { if (exportedMarcDeltaFile.lastModified() / 1000 < lastUpdateFromMarc){ if (exportedMarcDeltaFile.delete()){ @@ -826,8 +828,6 @@ private static int updateRecords(Connection dbConn){ } } } - //Sort the files to process by date - Arrays.sort(exportedMarcDeltaFiles, Comparator.comparingLong(File::lastModified)); } if (!filesToProcess.isEmpty()){ diff --git a/code/web/release_notes/26.10.00/DIS-3031.yaml b/code/web/release_notes/26.10.00/DIS-3031.yaml new file mode 100644 index 0000000000..fa4ae97c53 --- /dev/null +++ b/code/web/release_notes/26.10.00/DIS-3031.yaml @@ -0,0 +1,12 @@ +Jira: DIS-3031 +Type: Bug +Developer: David Dowling (DD) +ContributingOrg: Prairie Lakes Library System +Sponsor: Prairie Lakes Library System +GroveRelease: 26.10.00 +CommunityRelease: 26.11.00 +Component: Symphony +Description: + - Fix improper sorting of Symphony delta import files by last modified time. +NewSettings: +NewPermissions: \ No newline at end of file From 2312434159d01f9ac541e6bca7e1f384f4d6f6ef Mon Sep 17 00:00:00 2001 From: dd217 Date: Thu, 8 Oct 2026 09:06:35 -0500 Subject: [PATCH 2/2] DIS-3031: Update component to match Jira term --- code/web/release_notes/26.10.00/DIS-3031.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/web/release_notes/26.10.00/DIS-3031.yaml b/code/web/release_notes/26.10.00/DIS-3031.yaml index fa4ae97c53..7705d626f9 100644 --- a/code/web/release_notes/26.10.00/DIS-3031.yaml +++ b/code/web/release_notes/26.10.00/DIS-3031.yaml @@ -5,7 +5,7 @@ ContributingOrg: Prairie Lakes Library System Sponsor: Prairie Lakes Library System GroveRelease: 26.10.00 CommunityRelease: 26.11.00 -Component: Symphony +Component: Symphony ILS Description: - Fix improper sorting of Symphony delta import files by last modified time. NewSettings: