diff --git a/src/components/PacksTable/PackTable.test.tsx b/src/components/PacksTable/PackTable.test.tsx index 1c7138443e..08bc4eb144 100644 --- a/src/components/PacksTable/PackTable.test.tsx +++ b/src/components/PacksTable/PackTable.test.tsx @@ -15,6 +15,7 @@ describe("FilteredTable Tests", () => { cloudTypesFormatted: "edge-native", version: "0.1.0", status: "deprecated", + prodStatus: "deprecated", packCreateDate: "2022-09-13", packLastModifiedDate: "2022-09-15", timeLastUpdated: "11 months", @@ -30,6 +31,7 @@ describe("FilteredTable Tests", () => { cloudTypesFormatted: "eks", version: "1.0.0", status: "deprecated", + prodStatus: "deprecated", packCreateDate: "2021-04-21", packLastModifiedDate: "2021-05-07", timeLastUpdated: "2 years", diff --git a/src/components/PacksTable/PacksTable.tsx b/src/components/PacksTable/PacksTable.tsx index 8614b605e2..bcda223e08 100644 --- a/src/components/PacksTable/PacksTable.tsx +++ b/src/components/PacksTable/PacksTable.tsx @@ -11,6 +11,8 @@ type Pack = { cloudTypesFormatted: string; version: string; status: string; + prodStatus: string; + inProduction: string; packCreateDate: string; packLastModifiedDate: string; timeLastUpdated: string; @@ -140,7 +142,9 @@ const FilteredTable: React.FC = () => { fetch("/packs-data/packs_report.json") .then((response) => response.json()) .then((packData: PacksData) => { - const deprecatedPackData = packData.Packs.filter((pack) => pack.status !== "active"); + const deprecatedPackData = packData.Packs.filter((pack) => { + return pack.prodStatus !== "active" && pack.prodStatus !== "unknown" + }); setDeprecatedPacks(deprecatedPackData); setLoading(false); })