From 7ec5ba4a1d22047ee4288d6aca269e477cd7368b Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Sun, 8 Oct 2023 10:51:47 -0400 Subject: [PATCH] hide cpu and memory app events from activity feed (#3763) --- .../app-view/tabs/activity-feed/ActivityFeed.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dashboard/src/main/home/app-dashboard/app-view/tabs/activity-feed/ActivityFeed.tsx b/dashboard/src/main/home/app-dashboard/app-view/tabs/activity-feed/ActivityFeed.tsx index 4bb24508d2..d28fe7561d 100644 --- a/dashboard/src/main/home/app-dashboard/app-view/tabs/activity-feed/ActivityFeed.tsx +++ b/dashboard/src/main/home/app-dashboard/app-view/tabs/activity-feed/ActivityFeed.tsx @@ -39,7 +39,13 @@ const ActivityFeed: React.FC = ({ appName, deploymentTargetId, currentClu // remove this filter when https://linear.app/porter/issue/POR-1676/disable-porter-agent-code-for-cpu-alerts is resolved const isNotFilteredAppEvent = (event: PorterAppEvent) => { - return !(event.type === "APP_EVENT" && event.metadata?.short_summary?.includes("non-zero exit code")); + return !(event.type === "APP_EVENT" && + ( + event.metadata?.short_summary?.includes("requesting more memory than is available") + || event.metadata?.short_summary?.includes("requesting more CPU than is available") + || event.metadata?.short_summary?.includes("non-zero exit code") + ) + ); } const { data: eventFetchData, isLoading: isEventFetchLoading, isRefetching } = useQuery(