Skip to content

Commit

Permalink
fix(config): sw-1294 rhacs, rhods inventory links (#1129)
Browse files Browse the repository at this point in the history
* rhacs, updated inventory path for links
* rhods, disabled inventory paths, annotation
  • Loading branch information
cdcabrera committed May 30, 2023
1 parent 654eb1e commit 2d2180a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ exports[`Product RHACS config should apply an inventory configuration: filtered,
{
"title": <Button
component="a"
href="/insights/inventory/XXXX-XXXX-XXXXX-XXXXX/"
href="/application-services/acs/instances/instance/XXXX-XXXX-XXXXX-XXXXX"
isInline={true}
variant="link"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,7 @@ exports[`Product RHODS config should apply an inventory configuration: filtered,
{
"cells": [
{
"title": <Button
component="a"
href="/insights/inventory/XXXX-XXXX-XXXXX-XXXXX/"
isInline={true}
variant="link"
>
lorem ipsum
</Button>,
"title": "lorem ipsum",
},
{
"title": "t(curiosity-inventory.label_billing_provider, {"context":"none"})",
Expand Down
2 changes: 1 addition & 1 deletion src/config/product.rhacs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
</Button>
Expand Down
8 changes: 3 additions & 5 deletions src/config/product.rhods.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d2180a

Please sign in to comment.