diff --git a/frontend-v2/src/components/resources/builder/index.tsx b/frontend-v2/src/components/resources/builder/index.tsx index e7e9ca710..0696beb43 100644 --- a/frontend-v2/src/components/resources/builder/index.tsx +++ b/frontend-v2/src/components/resources/builder/index.tsx @@ -104,7 +104,7 @@ const NewBuilder = () => { return ( !!type && mutateAsync({ name, config: { type, params: {} } }) } @@ -113,13 +113,13 @@ const NewBuilder = () => {
Name setName(e.target.value)} />
- Alerter Type + Builder Type diff --git a/frontend-v2/src/lib/socket.tsx b/frontend-v2/src/lib/socket.tsx index 247e40dd2..d3a3008d4 100644 --- a/frontend-v2/src/lib/socket.tsx +++ b/frontend-v2/src/lib/socket.tsx @@ -32,7 +32,8 @@ const on_message = ( ["GetDeployment"], ["GetLog"], ["GetDeploymentActionState"], - ["GetDeploymentStatus"] + ["GetDeploymentStatus"], + ["GetDeploymentsSummary"] ); } @@ -42,12 +43,33 @@ const on_message = ( ["GetServer"], ["GetServerActionState"], ["GetServerStatus"], - ["GetHistoricalServerStats"] + ["GetHistoricalServerStats"], + ["GetServersSummary"] ); } if (update.target.type === "Build") { - invalidate(["ListBuilds"], ["GetBuild"], ["GetBuildActionState"]); + invalidate( + ["ListBuilds"], + ["GetBuild"], + ["GetBuildActionState"], + ["GetBuildMonthlyStats"], + ["GetBuildVersions"], + ["GetBuildsSummary"] + ); + } + + if (update.target.type === "Builder") { + invalidate( + ["ListBuilders"], + ["GetBuilder"], + ["GetBuilderAvailableAccounts"], + ["GetBuildersSummary"] + ); + } + + if (update.target.type === "Alerter") { + invalidate(["ListAlerters"], ["GetAlerter"], ["GetAlertersSummary"]); } };