From b54678345107dfd2cec656fadddbe50c6cf14c69 Mon Sep 17 00:00:00 2001 From: Priyanka Terala <104053200+Terala-Priyanka@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:26:20 +0530 Subject: [PATCH] UIREQ-1211 - Cleanup retrieval service point implementation from deprecated folder. (#1247) --- CHANGELOG.md | 1 + src/deprecated/routes/RequestsRoute/RequestsRoute.js | 5 +---- src/deprecated/routes/RequestsRoute/RequestsRoute.test.js | 8 -------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d41511b..49016346 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Add optional column "Retrieval service point" to requests search list. Refs UIREQ-1188. * Increase code coverage for src/ChooseRequestTypeDialog.js by Jest/RTL tests. Refs UIREQ-1044. +* Cleanup retrieval service point implementation from deprecated folder. Refs UIREQ-1211. ## [11.0.2] (https://github.com/folio-org/ui-requests/tree/v11.0.2) (2024-12-10) [Full Changelog](https://github.com/folio-org/ui-requests/compare/v11.0.1...v11.0.2) diff --git a/src/deprecated/routes/RequestsRoute/RequestsRoute.js b/src/deprecated/routes/RequestsRoute/RequestsRoute.js index 441c34b3..8f25e6f3 100644 --- a/src/deprecated/routes/RequestsRoute/RequestsRoute.js +++ b/src/deprecated/routes/RequestsRoute/RequestsRoute.js @@ -265,7 +265,6 @@ export const getListFormatter = ( ); }, 'requesterBarcode': rq => (rq.requester ? rq.requester.barcode : DEFAULT_FORMATTER_VALUE), - 'retrievalServicePoint': rq => get(rq, 'item.retrievalServicePointName', DEFAULT_FORMATTER_VALUE), 'requestStatus': rq => (requestStatusesTranslations[rq.status] ? : ), @@ -335,7 +334,6 @@ class RequestsRoute extends React.Component { 'requestStatus': 'status', 'servicePoint': 'searchIndex.pickupServicePointName', 'requesterBarcode': 'requester.barcode', - 'retrievalServicePoint': 'item.retrievalServicePointName', 'requestDate': 'requestDate', 'position': 'position/number', 'proxy': 'proxy', @@ -1418,7 +1416,6 @@ class RequestsRoute extends React.Component { servicePoint: , requester: , requesterBarcode: , - retrievalServicePoint: , singlePrint: , proxy: , ...(isViewPrintDetailsEnabled && { @@ -1689,7 +1686,7 @@ class RequestsRoute extends React.Component { resultIsSelected={this.resultIsSelected} onFilterChange={this.handleFilterChange} sortableColumns={['requestDate', 'title', 'year', 'itemBarcode', 'callNumber', 'type', 'requestStatus', - 'position', 'servicePoint', 'requester', 'requesterBarcode', 'retrievalServicePoint', 'proxy', 'copies', 'printed']} + 'position', 'servicePoint', 'requester', 'requesterBarcode', 'proxy', 'copies', 'printed']} pageAmount={100} pagingType={MCLPagingTypes.PREV_NEXT} /> diff --git a/src/deprecated/routes/RequestsRoute/RequestsRoute.test.js b/src/deprecated/routes/RequestsRoute/RequestsRoute.test.js index b835d017..76fb1d64 100644 --- a/src/deprecated/routes/RequestsRoute/RequestsRoute.test.js +++ b/src/deprecated/routes/RequestsRoute/RequestsRoute.test.js @@ -1150,8 +1150,6 @@ describe('RequestsRoute', () => { select: 'test value', item: { barcode: 'itemBarcode', - retrievalServicePointId: '3a40852d-49fd-4df2-a1f9-6e2641a6e91f', - retrievalServicePointName: 'Circ Desk 1', }, position: 'position', proxy: {}, @@ -1373,12 +1371,6 @@ describe('RequestsRoute', () => { }); }); - describe('retrieval service point', () => { - it('should return retrieval service point', () => { - expect(listFormatter.retrievalServicePoint(requestWithData)).toBe(requestWithData.item.retrievalServicePointName); - }); - }); - describe('when formatting copies column', () => { it('should return copies for copies column', () => { expect(listFormatter.copies(requestWithData)).toBe(requestWithData.printDetails.printCount);