From 056f17ef8303d716ca2380363a6e9d3d8dcd59a4 Mon Sep 17 00:00:00 2001 From: BKadirkhodjaev Date: Thu, 15 Jan 2026 12:40:21 +0500 Subject: [PATCH 1/4] [MODORDERS-1395]. Populate holdings relations details with information about PO Lines --- .../examples/holdingDetailResults.sample | 21 +++++++++++++ mod-orders/schemas/holdingDetail.json | 31 +++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/mod-orders/examples/holdingDetailResults.sample b/mod-orders/examples/holdingDetailResults.sample index 340a62a2..3e7b4a72 100644 --- a/mod-orders/examples/holdingDetailResults.sample +++ b/mod-orders/examples/holdingDetailResults.sample @@ -1,14 +1,25 @@ { "e54b1f4d-7d05-4b1a-9368-3c36b75d8ac1": { + "poLine_detail_collection": { + "poLine_detail": [ + { + "id": "8f3a7d2b-6e1c-4b9a-a2d5-f9e8c3b1a0d4", + "tenantId": "consortium" + } + ], + "totalRecords": 1 + }, "pieces_detail_collection": { "pieces_detail": [ { "id": "8d0e7e3e-8e4f-4f3c-9c9e-1a2b3c4d5e6f", + "poLineId": "8f3a7d2b-6e1c-4b9a-a2d5-f9e8c3b1a0d4", "itemId": "7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d", "tenantId": "consortium" }, { "id": "9e1f2a3b-4c5d-6e7f-8a9b-0c1d2e3f4a5b", + "poLineId": "8f3a7d2b-6e1c-4b9a-a2d5-f9e8c3b1a0d4", "itemId": "8b2c3d4e-5f6a-7b8c-9d0e-1f2a3b4c5d6e", "tenantId": "consortium" } @@ -30,10 +41,20 @@ } }, "f65c2g5e-8e16-5c2b-a479-4d47c86e9bd2": { + "poLine_detail_collection": { + "poLine_detail": [ + { + "id": "c9b4e1f7-0d2a-45c8-9e6b-3f2a1d7c0b5e", + "tenantId": "consortium" + } + ], + "totalRecords": 1 + }, "pieces_detail_collection": { "pieces_detail": [ { "id": "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d", + "poLineId": "c9b4e1f7-0d2a-45c8-9e6b-3f2a1d7c0b5e", "itemId": "b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e", "tenantId": "consortium" } diff --git a/mod-orders/schemas/holdingDetail.json b/mod-orders/schemas/holdingDetail.json index 843f4125..14560ea0 100644 --- a/mod-orders/schemas/holdingDetail.json +++ b/mod-orders/schemas/holdingDetail.json @@ -3,6 +3,33 @@ "type": "object", "description": "The contents of the dynamic map holding details", "properties": { + "poLine_detail_collection": { + "description": "Collection of poLine details for the holding", + "type": "object", + "properties": { + "poLine_detail": { + "description": "Array of poLine details", + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "description": "UUID of the poLine record", + "$ref": "../../../raml-util/schemas/uuid.schema" + }, + "tenantId": { + "description": "Associated tenant in ECS-enabled environments", + "type": "string" + } + } + } + }, + "totalRecords": { + "description": "Total number of records in the array", + "type": "integer" + } + } + }, "pieces_detail_collection": { "description": "Collection of piece details for the holding", "type": "object", @@ -17,6 +44,10 @@ "description": "UUID of the piece record", "$ref": "../../../raml-util/schemas/uuid.schema" }, + "poLineId": { + "description": "UUID of the associated poLine record", + "$ref": "../../../raml-util/schemas/uuid.schema" + }, "itemId": { "description": "UUID of the associated item record", "$ref": "../../../raml-util/schemas/uuid.schema" From 586a79b6ce64307bbc1ed3a64e7dde80967fbeec Mon Sep 17 00:00:00 2001 From: BKadirkhodjaev Date: Thu, 15 Jan 2026 12:57:05 +0500 Subject: [PATCH 2/4] [MODORDERS-1395]. Update block keys --- mod-orders/examples/holdingDetailResults.sample | 4 ++-- mod-orders/schemas/holdingDetail.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mod-orders/examples/holdingDetailResults.sample b/mod-orders/examples/holdingDetailResults.sample index 3e7b4a72..6ff56dcb 100644 --- a/mod-orders/examples/holdingDetailResults.sample +++ b/mod-orders/examples/holdingDetailResults.sample @@ -1,7 +1,7 @@ { "e54b1f4d-7d05-4b1a-9368-3c36b75d8ac1": { - "poLine_detail_collection": { - "poLine_detail": [ + "poLines_detail_collection": { + "poLines_detail": [ { "id": "8f3a7d2b-6e1c-4b9a-a2d5-f9e8c3b1a0d4", "tenantId": "consortium" diff --git a/mod-orders/schemas/holdingDetail.json b/mod-orders/schemas/holdingDetail.json index 14560ea0..e437ac85 100644 --- a/mod-orders/schemas/holdingDetail.json +++ b/mod-orders/schemas/holdingDetail.json @@ -3,11 +3,11 @@ "type": "object", "description": "The contents of the dynamic map holding details", "properties": { - "poLine_detail_collection": { + "poLines_detail_collection": { "description": "Collection of poLine details for the holding", "type": "object", "properties": { - "poLine_detail": { + "poLines_detail": { "description": "Array of poLine details", "type": "array", "items": { From d2f21a3dce39f9af1ba2af7f493321f90390549a Mon Sep 17 00:00:00 2001 From: BKadirkhodjaev Date: Thu, 15 Jan 2026 14:11:50 +0500 Subject: [PATCH 3/4] [MODORDERS-1395]. Remove tenantId --- mod-orders/examples/holdingDetailResults.sample | 6 ++---- mod-orders/schemas/holdingDetail.json | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/mod-orders/examples/holdingDetailResults.sample b/mod-orders/examples/holdingDetailResults.sample index 6ff56dcb..0567ca78 100644 --- a/mod-orders/examples/holdingDetailResults.sample +++ b/mod-orders/examples/holdingDetailResults.sample @@ -3,8 +3,7 @@ "poLines_detail_collection": { "poLines_detail": [ { - "id": "8f3a7d2b-6e1c-4b9a-a2d5-f9e8c3b1a0d4", - "tenantId": "consortium" + "id": "8f3a7d2b-6e1c-4b9a-a2d5-f9e8c3b1a0d4" } ], "totalRecords": 1 @@ -44,8 +43,7 @@ "poLine_detail_collection": { "poLine_detail": [ { - "id": "c9b4e1f7-0d2a-45c8-9e6b-3f2a1d7c0b5e", - "tenantId": "consortium" + "id": "c9b4e1f7-0d2a-45c8-9e6b-3f2a1d7c0b5e" } ], "totalRecords": 1 diff --git a/mod-orders/schemas/holdingDetail.json b/mod-orders/schemas/holdingDetail.json index e437ac85..f2be9745 100644 --- a/mod-orders/schemas/holdingDetail.json +++ b/mod-orders/schemas/holdingDetail.json @@ -16,10 +16,6 @@ "id": { "description": "UUID of the poLine record", "$ref": "../../../raml-util/schemas/uuid.schema" - }, - "tenantId": { - "description": "Associated tenant in ECS-enabled environments", - "type": "string" } } } From af4617865cd6838645aa827a5e2656950691b2db Mon Sep 17 00:00:00 2001 From: BKadirkhodjaev Date: Thu, 15 Jan 2026 16:43:45 +0500 Subject: [PATCH 4/4] [MODORDERS-1395]. Update samples --- mod-orders/examples/holdingDetailResults.sample | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod-orders/examples/holdingDetailResults.sample b/mod-orders/examples/holdingDetailResults.sample index 0567ca78..3a13fa9e 100644 --- a/mod-orders/examples/holdingDetailResults.sample +++ b/mod-orders/examples/holdingDetailResults.sample @@ -40,8 +40,8 @@ } }, "f65c2g5e-8e16-5c2b-a479-4d47c86e9bd2": { - "poLine_detail_collection": { - "poLine_detail": [ + "poLines_detail_collection": { + "poLines_detail": [ { "id": "c9b4e1f7-0d2a-45c8-9e6b-3f2a1d7c0b5e" }