Skip to content

Commit

Permalink
fix(config): sw-1335 openshift on-demand inventory links (#1131)
Browse files Browse the repository at this point in the history
* openshift-dedicated, disabled inventory paths, annotation
* openshift-metrics, disabled inventory paths, annotation
  • Loading branch information
cdcabrera committed Jun 2, 2023
1 parent 51d5cba commit 22e6136
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,7 @@ exports[`Product OpenShift Dedicated config should apply an inventory configurat
"cells": [
{
"title": <React.Fragment>
<Button
component="a"
href="/insights/inventory/XXXX-XXXX-XXXXX-XXXXX/"
isInline={true}
variant="link"
>
lorem ipsum
</Button>
lorem ipsum
</React.Fragment>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,7 @@ exports[`Product OpenShift Metrics config should apply an inventory configuratio
"cells": [
{
"title": <React.Fragment>
<Button
component="a"
href="/insights/inventory/XXXX-XXXX-XXXXX-XXXXX/"
isInline={true}
variant="link"
>
lorem ipsum
</Button>
lorem ipsum
</React.Fragment>,
Expand Down
16 changes: 7 additions & 9 deletions src/config/product.openshiftDedicated.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,13 @@ const config = {
initialInventoryFilters: [
{
id: INVENTORY_TYPES.DISPLAY_NAME,
cell: (
{
[INVENTORY_TYPES.DISPLAY_NAME]: displayName = {},
[INVENTORY_TYPES.INSTANCE_ID]: instanceId = {},
[INVENTORY_TYPES.NUMBER_OF_GUESTS]: numberOfGuests = {}
} = {},
session
) => {
const { inventory: authorized } = session?.authorized || {};
cell: ({
[INVENTORY_TYPES.DISPLAY_NAME]: displayName = {},
[INVENTORY_TYPES.INSTANCE_ID]: instanceId = {},
[INVENTORY_TYPES.NUMBER_OF_GUESTS]: numberOfGuests = {}
} = {}) => {
// FixMe: Disabled, see SWATCH-1209 for resolution
const { inventory: authorized = false } = {};

if (!instanceId.value) {
return displayName.value;
Expand Down
16 changes: 7 additions & 9 deletions src/config/product.openshiftMetrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,13 @@ const config = {
initialInventoryFilters: [
{
id: INVENTORY_TYPES.DISPLAY_NAME,
cell: (
{
[INVENTORY_TYPES.DISPLAY_NAME]: displayName = {},
[INVENTORY_TYPES.INSTANCE_ID]: instanceId = {},
[INVENTORY_TYPES.NUMBER_OF_GUESTS]: numberOfGuests = {}
} = {},
session
) => {
const { inventory: authorized } = session?.authorized || {};
cell: ({
[INVENTORY_TYPES.DISPLAY_NAME]: displayName = {},
[INVENTORY_TYPES.INSTANCE_ID]: instanceId = {},
[INVENTORY_TYPES.NUMBER_OF_GUESTS]: numberOfGuests = {}
} = {}) => {
// FixMe: Disabled, see SWATCH-1209 for resolution
const { inventory: authorized = false } = {};

if (!instanceId.value) {
return displayName.value;
Expand Down

0 comments on commit 22e6136

Please sign in to comment.