mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-09 07:13:36 -05:00
[PR #748] [MERGED] Add: Server Version Mismatch Warnings & Alert System #775
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/748
Author: @MP-Tool
Created: 8/20/2025
Status: ✅ Merged
Merged: 8/23/2025
Merged by: @mbecker20
Base:
1.19.1← Head:ui/version-mismatch-warnings📝 Commits (10+)
b7dabe2start 1.19.1ac2786fdeploy 1.19.1-dev-11c79757feat: implement version mismatch warnings in server UI5307ebfMerge branch 'moghtech:1.19.1' into 1.19.1469c49bfeat: add warning count to server summary and update backup documentation link75f6c0bfeat: add server version mismatch alert handling and update server summary invalidation logicc1b9f8fMerge branch 'moghtech:1.19.1' into 1.19.173e33bbMerge branch '1.19.1' into ui/version-mismatch-warnings7fdca8ffix: correct version mismatch alert config and disabled server display69caf63cleanup📊 Changes
16 files changed (+345 additions, -21 deletions)
View changed files
📝
bin/core/src/alert/discord.rs(+22 -0)📝
bin/core/src/alert/mod.rs(+22 -0)📝
bin/core/src/alert/slack.rs(+26 -0)📝
bin/core/src/api/read/server.rs(+13 -1)📝
bin/core/src/monitor/alert/server.rs(+71 -0)📝
bin/core/src/resource/server.rs(+1 -0)📝
client/core/rs/src/api/read/server.rs(+2 -0)📝
client/core/rs/src/entities/alert.rs(+14 -0)📝
client/core/rs/src/entities/server.rs(+9 -0)📝
client/core/ts/src/types.ts(+19 -0)📝
frontend/public/client/types.d.ts(+22 -0)📝
frontend/src/components/resources/alerter/config/alert_types.tsx(+1 -0)📝
frontend/src/components/resources/server/config.tsx(+11 -0)📝
frontend/src/components/resources/server/index.tsx(+74 -9)📝
frontend/src/components/util.tsx(+26 -1)📝
frontend/src/lib/color.ts(+12 -10)📄 Description
Server Version Mismatch Warnings & Alert System
Building upon existing alert infrastructure:
This PR enhances the robust alert system foundation by adding comprehensive version mismatch detection and warnings, ensuring better visibility and proactive monitoring of server version discrepancies across the infrastructure.
Problems Addressed:
🚨 Version Management Issues:
🎨 UI Inconsistencies:
Solutions Implemented:
⚡ Backend Alert System:
send_version_mismatch_alertstoggle per server🎯 Multi-Channel Integration: *untested
✨ UI Enhancements:
🛡️ WebSocket Optimizations:
Technical Details:
Backend Changes:
alert/server.rs: Added version mismatch detection with proper config flag usagealert/*.rs: Exhaustive pattern matching for ServerVersionMismatch in all handlersentities/server.rs: Newsend_version_mismatch_alertsconfiguration fieldresource/server.rs: Proper field mapping for list item populationFrontend Changes:
server/index.tsx: Version mismatch detection hooks and warning badgesserver/config.tsx: Configuration toggle in alerts sectionlib/socket.tsx: Optimized WebSocket update logic for better performancelib/color.ts: Enhanced color system supporting version mismatch warningsImpact:
#[serde(default)]for new fieldsTesting:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.