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.

Pin hybrid-source platform version precedence

rcourtman3c25674d43de
diff --git a/frontend-modern/src/utils/__tests__/resourceBadgePresentation.test.ts b/frontend-modern/src/utils/__tests__/resourceBadgePresentation.test.ts
index f935cf5895..724bedee87 100644
--- a/frontend-modern/src/utils/__tests__/resourceBadgePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/resourceBadgePresentation.test.ts
@@ -331,6 +331,30 @@ describe('resourceBadgePresentation', () => {
).toEqual(['PVE 8.3.3', 'Agent']);
});
+ it('prefers platform-facet version over agent OS version on hybrid-source resources', () => {
+ const resource = makeResource({
+ type: 'agent',
+ platformType: 'proxmox-pve',
+ sourceType: 'hybrid',
+ sources: ['proxmox', 'agent'],
+ platformData: {
+ sources: ['proxmox', 'agent'],
+ agent: {
+ platform: 'debian',
+ osName: 'Debian GNU/Linux',
+ osVersion: '12',
+ },
+ proxmox: {
+ pveVersion: '8.3.2',
+ },
+ },
+ });
+
+ expect(getInfrastructureSystemIdentityBadges(resource).map((badge) => badge.label)).toEqual([
+ 'PVE 8.3.2',
+ ]);
+ });
+
it('keeps top-level platform facets ahead of collection method identity', () => {
const resource = makeResource({
platformType: 'agent',