From 1479f65e573523a3eab7989ba2fcf55c9a4b42ee Mon Sep 17 00:00:00 2001 From: Nikhil Sinha Date: Thu, 4 Jan 2024 11:07:49 +0530 Subject: [PATCH 1/2] fix for PR # 593: extract cache path and cache size from About API and display on About page in Parseable UI --- src/@types/parseable/api/about.ts | 3 +++ src/components/Navbar/infoModal.tsx | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/@types/parseable/api/about.ts b/src/@types/parseable/api/about.ts index a37563fd..be2ce2b2 100644 --- a/src/@types/parseable/api/about.ts +++ b/src/@types/parseable/api/about.ts @@ -13,4 +13,7 @@ export type AboutData = { uiVersion: string; grpcPort: number; oidcActive: boolean; + cacheEnabled: string; + cacheDir: string; + cacheSize: number; }; diff --git a/src/components/Navbar/infoModal.tsx b/src/components/Navbar/infoModal.tsx index 5fd702f5..786c7aee 100644 --- a/src/components/Navbar/infoModal.tsx +++ b/src/components/Navbar/infoModal.tsx @@ -171,6 +171,18 @@ const InfoModal: FC = (props) => { {data.store} + Cache Enabled + {data.cacheEnabled.toString()} + + + Cache Directory + {data.cacheDir} + + + Cache Size + {data.cacheSize} + + LLM Status {llmStatus} From 96f6119890eb8ed9ada134d7ab1b089d1fd0adcb Mon Sep 17 00:00:00 2001 From: Nikhil Sinha Date: Thu, 4 Jan 2024 12:39:24 +0530 Subject: [PATCH 2/2] fix for PR#593: fetch cache details from AboutAPI and display on About page --- src/@types/parseable/api/about.ts | 4 +--- src/components/Navbar/infoModal.tsx | 12 ++---------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/@types/parseable/api/about.ts b/src/@types/parseable/api/about.ts index be2ce2b2..511242e7 100644 --- a/src/@types/parseable/api/about.ts +++ b/src/@types/parseable/api/about.ts @@ -13,7 +13,5 @@ export type AboutData = { uiVersion: string; grpcPort: number; oidcActive: boolean; - cacheEnabled: string; - cacheDir: string; - cacheSize: number; + cache: string; }; diff --git a/src/components/Navbar/infoModal.tsx b/src/components/Navbar/infoModal.tsx index 786c7aee..775532d2 100644 --- a/src/components/Navbar/infoModal.tsx +++ b/src/components/Navbar/infoModal.tsx @@ -171,16 +171,8 @@ const InfoModal: FC = (props) => { {data.store} - Cache Enabled - {data.cacheEnabled.toString()} - - - Cache Directory - {data.cacheDir} - - - Cache Size - {data.cacheSize} + Cache + {data.cache} LLM Status