From da16e2354755f33a1285bc684b9e68a01ed3b3d8 Mon Sep 17 00:00:00 2001 From: Philip Garrison Date: Thu, 19 Dec 2024 16:00:55 -0800 Subject: [PATCH] File Path (Vast) instead of File Path (Local) --- .../components/FileDetails/test/FileAnnotationList.test.tsx | 6 +++--- .../HttpAnnotationService/FMSAnnotationPresentationLayer.ts | 2 +- .../test/HttpAnnotationService.test.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/components/FileDetails/test/FileAnnotationList.test.tsx b/packages/core/components/FileDetails/test/FileAnnotationList.test.tsx index f283fcfd..22db100c 100644 --- a/packages/core/components/FileDetails/test/FileAnnotationList.test.tsx +++ b/packages/core/components/FileDetails/test/FileAnnotationList.test.tsx @@ -31,7 +31,7 @@ describe("", () => { ...TOP_LEVEL_FILE_ANNOTATIONS, new Annotation({ annotationName: "Local File Path", - annotationDisplayName: "File Path (Local)", + annotationDisplayName: "File Path (Vast)", description: "Path to file in on-premises storage.", type: AnnotationType.STRING, }), @@ -71,7 +71,7 @@ describe("", () => { for (const cellText of [ "File Path (Canonical)", filePath, - "File Path (Local)", + "File Path (Vast)", localPath, ]) { expect(await findByText(cellText)).to.not.be.undefined; @@ -118,7 +118,7 @@ describe("", () => { ); // Assert - expect(() => getByText("File Path (Local)")).to.throw(); + expect(() => getByText("File Path (Vast)")).to.throw(); ["File Path (Canonical)", filePath].forEach((cellText) => { expect(getByText(cellText)).to.not.be.undefined; }); diff --git a/packages/core/services/AnnotationService/HttpAnnotationService/FMSAnnotationPresentationLayer.ts b/packages/core/services/AnnotationService/HttpAnnotationService/FMSAnnotationPresentationLayer.ts index 9cadab47..dcd8fede 100644 --- a/packages/core/services/AnnotationService/HttpAnnotationService/FMSAnnotationPresentationLayer.ts +++ b/packages/core/services/AnnotationService/HttpAnnotationService/FMSAnnotationPresentationLayer.ts @@ -5,7 +5,7 @@ export default function renameAnnotation(annotation: AnnotationResponse): Annota if (annotation.annotationName === AnnotationName.LOCAL_FILE_PATH) { return { ...annotation, - annotationDisplayName: "File Path (Local)", + annotationDisplayName: "File Path (Vast)", } as AnnotationResponse; } else { return annotation; diff --git a/packages/core/services/AnnotationService/HttpAnnotationService/test/HttpAnnotationService.test.ts b/packages/core/services/AnnotationService/HttpAnnotationService/test/HttpAnnotationService.test.ts index e5e31af5..281870a8 100644 --- a/packages/core/services/AnnotationService/HttpAnnotationService/test/HttpAnnotationService.test.ts +++ b/packages/core/services/AnnotationService/HttpAnnotationService/test/HttpAnnotationService.test.ts @@ -32,14 +32,14 @@ describe("HttpAnnotationService", () => { expect(annotations[0]).to.be.instanceOf(Annotation); }); - it("renames Local File Path to File Path (Local)", async () => { + it("renames Local File Path to File Path (Vast)", async () => { const annotationService = new HttpAnnotationService({ fileExplorerServiceBaseUrl: FESBaseUrl.TEST, httpClient, }); const annotations = await annotationService.fetchAnnotations(); const localPathAnnotation = annotations.find((a) => a.name === "Local File Path"); - expect(localPathAnnotation?.displayName).to.equal("File Path (Local)"); + expect(localPathAnnotation?.displayName).to.equal("File Path (Vast)"); }); });