Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Keep shared guest-read evidence optional across workload types

pulse-triage[bot]ce2111c089b4
diff --git a/frontend-modern/browser-tests/resource-guest-safety.tsx b/frontend-modern/browser-tests/resource-guest-safety.tsx
index dc048daf34..b307a6fd2e 100644
--- a/frontend-modern/browser-tests/resource-guest-safety.tsx
+++ b/frontend-modern/browser-tests/resource-guest-safety.tsx
@@ -24,6 +24,7 @@ const resource = (
type,
name: 'Backup guest',
displayName: 'Backup guest',
+ platformId: 'fixture',
platformType: type === 'agent' ? 'agent' : 'proxmox-pve',
platformScopes: type === 'agent' ? ['agent'] : ['proxmox-pve'],
sources: type === 'agent' ? ['agent'] : ['proxmox'],
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.guest-safety.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.guest-safety.test.tsx
index 3f3a1ced6b..6651b5f197 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.guest-safety.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.guest-safety.test.tsx
@@ -42,6 +42,8 @@ const vm = (patch: Partial<Resource> = {}): Resource => ({
id: 'fixture:pve1:101',
type: 'vm',
name: 'Backup guest',
+ displayName: 'Backup guest',
+ platformId: 'fixture',
status: 'online',
sourceType: 'api',
platformType: 'proxmox-pve',
@@ -66,7 +68,7 @@ const openAnalysis = async () => {
beforeEach(() => {
resetAIRuntimeState();
- syncAIRuntimeSettings({ discovery_enabled: true });
+ syncAIRuntimeSettings({ discovery_enabled: true } as Parameters<typeof syncAIRuntimeSettings>[0]);
resetCreateNonSuspendingQueryCacheForTest();
});
afterEach(() => {
diff --git a/frontend-modern/src/components/Workloads/guestDrawerModel.ts b/frontend-modern/src/components/Workloads/guestDrawerModel.ts
index 5874731709..f78290928c 100644
--- a/frontend-modern/src/components/Workloads/guestDrawerModel.ts
+++ b/frontend-modern/src/components/Workloads/guestDrawerModel.ts
@@ -441,18 +441,15 @@ export interface GuestDrawerGuestReadPresentation {
// Both drawer shapes use the same provider-owned signals. A canonical resource
// need not fabricate a complete workload (or infer liveness from metrics).
-export type GuestDrawerGuestReadEvidence = Pick<
+export interface GuestDrawerGuestReadEvidence extends Pick<
Guest,
- | 'type'
- | 'workloadType'
- | 'agentKind'
- | 'platformType'
- | 'platformScopes'
- | 'guestAgentStatus'
- | 'diskStatusReason'
- | 'lock'
- | 'backupInProgress'
->;
+ 'type' | 'workloadType' | 'agentKind' | 'platformType' | 'platformScopes'
+> {
+ diskStatusReason?: VM['diskStatusReason'];
+ guestAgentStatus?: VM['guestAgentStatus'];
+ lock?: VM['lock'];
+ backupInProgress?: VM['backupInProgress'];
+}
export const GUEST_DRAWER_BACKUP_PRECAUTION =
'Do not run live diagnostics or restart the guest agent during a backup, freeze/thaw or an unresponsive-guest incident. An OK backup or a running VM does not prove thaw. Confirm thaw and writes to the filesystems covered by the backup independently.';