From 082d73fd3f33539ba48d262c90ba0cc7a253f315 Mon Sep 17 00:00:00 2001 From: Anil Natha Date: Tue, 1 Oct 2024 17:09:41 -0700 Subject: [PATCH] Added hard coded path for STAC Browser for the unity-venue-ops and emit-dev accounts. --- src/state/slices/healthSlice.ts | 38 ++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/src/state/slices/healthSlice.ts b/src/state/slices/healthSlice.ts index f00ecab..bd9295e 100644 --- a/src/state/slices/healthSlice.ts +++ b/src/state/slices/healthSlice.ts @@ -39,12 +39,31 @@ const getItems = () => { // Get additional links that should be added for the given project and venue - const project = Config['general']['project']; - const venue = Config['general']['venue']; + const project = Config['general']['project'].toUpperCase(); + const venue = Config['general']['venue'].toUpperCase(); let serviceItems:Service[] = Array(); - if( project.toUpperCase() === 'EMIT' && venue.toUpperCase() === 'DEV' ) { + if( project === "UNITY" && venue === 'OPS') { + + serviceItems = [ + { + componentName: "STAC Browser", + ssmKey: "", + healthCheckUrl: "", + landingPageUrl: "https://www.mdps.mcp.nasa.gov:4443/data/stac_browser/", + healthChecks: [ + { + status: "UNKNOWN", + httpResponseCode: "", + date: "" + } + ] + } + ]; + } + + if( project === "EMIT" && venue === "DEV" ) { serviceItems = [ { @@ -86,6 +105,19 @@ const getItems = () => { } ] }, + { + componentName: "STAC Browser", + ssmKey: "", + healthCheckUrl: "", + landingPageUrl: "https://www.mdps.mcp.nasa.gov:4443/data/stac_browser/", + healthChecks: [ + { + status: "UNKNOWN", + httpResponseCode: "", + date: "" + } + ] + } ]; }