From 2d2180af785afe5e4306c4dab297c834edf3125f Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Tue, 30 May 2023 15:53:29 -0400 Subject: [PATCH] fix(config): sw-1294 rhacs, rhods inventory links (#1129) * rhacs, updated inventory path for links * rhods, disabled inventory paths, annotation --- .../__tests__/__snapshots__/product.rhacs.test.js.snap | 2 +- .../__tests__/__snapshots__/product.rhods.test.js.snap | 9 +-------- src/config/product.rhacs.js | 2 +- src/config/product.rhods.js | 8 +++----- 4 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/config/__tests__/__snapshots__/product.rhacs.test.js.snap b/src/config/__tests__/__snapshots__/product.rhacs.test.js.snap index f7e6a0200..726e2a3cf 100644 --- a/src/config/__tests__/__snapshots__/product.rhacs.test.js.snap +++ b/src/config/__tests__/__snapshots__/product.rhacs.test.js.snap @@ -65,7 +65,7 @@ exports[`Product RHACS config should apply an inventory configuration: filtered, { "title": , + "title": "lorem ipsum", }, { "title": "t(curiosity-inventory.label_billing_provider, {"context":"none"})", diff --git a/src/config/product.rhacs.js b/src/config/product.rhacs.js index 095cf7451..a8c2785ac 100644 --- a/src/config/product.rhacs.js +++ b/src/config/product.rhacs.js @@ -167,7 +167,7 @@ const config = { isInline component="a" variant="link" - href={`${helpers.UI_DEPLOY_PATH_LINK_PREFIX}/insights/inventory/${instanceId.value}/`} + href={`${helpers.UI_DEPLOY_PATH_LINK_PREFIX}/application-services/acs/instances/instance/${instanceId.value}`} > {displayName.value || instanceId.value} diff --git a/src/config/product.rhods.js b/src/config/product.rhods.js index 115595792..80ffdcad5 100644 --- a/src/config/product.rhods.js +++ b/src/config/product.rhods.js @@ -144,11 +144,9 @@ const config = { initialInventoryFilters: [ { id: INVENTORY_TYPES.DISPLAY_NAME, - cell: ( - { [INVENTORY_TYPES.DISPLAY_NAME]: displayName = {}, [INVENTORY_TYPES.INSTANCE_ID]: instanceId = {} }, - session - ) => { - const { inventory: authorized } = session?.authorized || {}; + cell: ({ [INVENTORY_TYPES.DISPLAY_NAME]: displayName = {}, [INVENTORY_TYPES.INSTANCE_ID]: instanceId = {} }) => { + // FixMe: Disabled, see SWATCH-1209 for resolution + const { inventory: authorized = false } = {}; if (!instanceId.value) { return displayName.value;