Add guardian software version tracking - #113
Open
bansalayush247 wants to merge 6 commits into
Open
Conversation
- Introduced and methods in the API service to retrieve gateway information based on federation ID and invite code. - Updated API types to include , , and for better structure and type safety. feat(database): create gateway_poll_snapshots table - Added a new table to store snapshots of gateway visibility over time, including fields for federation ID, gateway ID, poll time, and visibility status. feat(federation): implement gateway fetching logic - Implemented to aggregate gateway information from federation peers. - Enhanced the to periodically poll and store gateway data, including metrics for activity and uptime. fix(federation): update gateway listing to include metrics - Modified to return additional metrics such as activity and uptime for specified time windows. - Improved error handling and logging for gateway fetching operations. refactor(federation): adjust module visibility - Changed the visibility of the module to to restrict access to internal components only.
…tus notifications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note:
This PR is based on the gateway branch, so GitHub may show gateway-related commits/files depending on the selected base branch. The guardian software version changes are primarily in
GuardianHealth,guardian_health.software_version, and the guardian health UI.Summary
Adds guardian
fedimintdsoftware version tracking to federation health data and displays the version in the guardian status UI.Changes
fedimintdversion using the Fedimintfedimintd_versionendpoint.guardian_health.software_versioncolumn.v10.sqlfor the new column.software_versionthrough theGuardianHealthAPI type.Version unknownwhen the version endpoint is unavailable or returns no value.Why
This helps operators and users see which software version each guardian is currently running, making it easier to spot outdated or inconsistent guardian deployments.
Implementation Notes
The version is stored separately from the raw guardian
statusJSON instead of injecting observer-owned data into the status payload. This keeps the data model cleaner and avoids showing stale historical JSON values as the current version.Testing
cargo check -p fmo_servernpm run buildScreenshots
Added screenshots showing the guardian software version badge in the federation detail UI.
